[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


   I am trying to test our CGI program by using the command HTTPAPI with a
   request type of *POST.� I have also tried using http_url_post with
   similar results.
   The error message I receive is "13 HTTP/1.1 500 Internal Server Error".
   Here is what I am executing:�   HTTPAPI
   URL('[1]http://xxx.xxx.xx.xxx:8002/post/wmsadsi/cgi/obrshparrq/')�   DOWNLOAD('/QOPENSYS/Max/Project140080/Testing/ordshpresp.txt')�   REQTYPE(*POST)�   UPLOAD('/QOPENSYS/Max/Project140080/Testing/ordshppost.xml')
   Attached is the debug file.
   I believe my xml header may not be complete or correct, but I am not
   what is required (besides the data).
   Can someone help ?
   Max Buda


   1. http://xxx.xxx.xx.xxx:8002/post/wmsadsi/cgi/obrshparrq/
HTTPAPI Ver 1.28 released 2015-01-19
NTLM Ver 1.4.0 released 2014-12-22
OS/400 Ver V7R1M0

http_persist_open(): entered
http_long_ParseURL(): entered
DNS resolver retrans: 2
DNS resolver retry  : 2
DNS resolver options: x'00000136'
DNS default domain: dsccorp.net
DNS server found: xxx.xxx.x.xx
DNS server found: xxx.xxx.x.x
Nagle's algorithm (TCP_NODELAY) disabled.
http_persist_post(): entered
http_persist_req(POST) entered.
http_long_ParseURL(): entered
http_long_ParseURL(): entered
do_oper(POST): entered
There are 0 cookies in the cache
POST /post/wmsadsi/cgi/obrshparrq/ HTTP/1.1
Host: xxx.xxx.xx.xxx:8002
User-Agent: http-api/1.28
Content-Type: text/xml
Content-Length: 360

sendraw(): entered
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"; xmlns:tns="http://www.webserviceX.net/";>

recvresp(): entered
HTTP/1.1 500 Internal Server Error
Date: Wed, 06 May 2015 20:05:30 GMT
Server: Apache
Content-Length: 539
Connection: close
Content-Type: text/html; charset=UTF-8

SetError() #13: HTTP/1.1 500 Internal Server Error
recvresp(): end with 500
recvdoc parms: identity 539
header_load_cookies() entered
recvdoc(): entered
SetError() #0:
<TITLE>500 Internal Server Error</TITLE>
<H1>Internal Server Error</H1>
<P>The server encountered an internal error or misconfiguration and was unable to complete your request.</P>
 <P>Please contact the server administrator, [no address given] and inform them of the time the error occurred, and anything you might have done that may have caused the error. </P>
<P>More information about this error may be available in the server error log.</P>

SetError() #13: HTTP/1.1 500 Internal Server Error
http_close(): entered
This is the FTPAPI mailing list.  To unsubscribe, please go to: