301 Moved Permanently
Posted: Tue Sep 07, 2021 11:56 pm
Hello,
i am completely new to HTTPAPI (in general to HTTP concept) and to this forum. Could not find option to create new topic, so replying to this topic for help, please forgive me...
I just installed HTTPAPI to my iseries and just trying to use EXAMPLE1 provided as it is, to validate if my iseries does satisfy all requirements to make HTTP calls (have done basic checks like, Digital Certificate Manager and IBM HTTP server for i is installed). Running EXAMPLE1, getting error. Here is what i see in "httpapi_debug.txt", please help....
Log:
i am completely new to HTTPAPI (in general to HTTP concept) and to this forum. Could not find option to create new topic, so replying to this topic for help, please forgive me...
I just installed HTTPAPI to my iseries and just trying to use EXAMPLE1 provided as it is, to validate if my iseries does satisfy all requirements to make HTTP calls (have done basic checks like, Digital Certificate Manager and IBM HTTP server for i is installed). Running EXAMPLE1, getting error. Here is what i see in "httpapi_debug.txt", please help....
Log:
Code: Select all
HTTPAPI Ver 1.43 released 2021-04-19
NTLM Ver 1.4.0 released 2014-12-22
OS/400 Ver V7R1M0
New iconv() objects set, PostRem=819. PostLoc=0. ProtRem=819. ProtLoc=0
http_persist_open(): entered
http_long_ParseURL(): entered
DNS resolver retrans: 2
DNS resolver retry : 2
DNS resolver options: x'00000136'
DNS default domain: MYDOMANINAME
DNS server found: My DNS Server IP
DNS server found: My DNS Server IP
Nagle's algorithm (TCP_NODELAY) disabled.
Nagle's algorithm (TCP_NODELAY) disabled.
http_persist_req(GET) entered.
http_long_ParseURL(): entered
http_long_ParseURL(): entered
do_oper(GET): entered
There are 0 cookies in the cache
GET /presentations/Web%20Services%20from%20RPG%20with%20HTTPAPI.pdf HTTP/1.1
Host: www.scottklement.com
User-Agent: http-api/1.43
recvresp(): entered
HTTP/1.1 301 Moved Permanently
Date: Tue, 07 Sep 2021 22:20:06 GMT
Server: Apache/2.4.48 (FreeBSD) OpenSSL/1.1.1k-freebsd PHP/7.4.21
Server: Apache/2.4.48 (FreeBSD) OpenSSL/1.1.1k-freebsd PHP/7.4.21
Location: https://www.scottklement.com/presentations/Web%20Services%20from%20RPG
Content-Length: 299
Content-Type: text/html; charset=iso-8859-1
SetError() #13: HTTP/1.1 301 Moved Permanently
recvresp(): end with 301
recvdoc parms: identity 299
header_load_cookies() entered
recvdoc(): entered
SetError() #0:
recvdoc(): Receiving 299 bytes.
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>301 Moved
SetError() #13: HTTP/1.1 301 Moved Permanently
SetError() #13: HTTP/1.1 301 Moved Permanently
http_close(): entered