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

Need help with my httpapi_debug.txt errors.



   This is my first attempt using httpapi.
   My rpgle program compiles and runs without any errors but returns a
   response file with "bad request".
   This is the httpapi_debug.txt file below.� I have highlighted the
   lines I am concerned about but don't know what to do.
   HTTPAPI Ver 1.29 released 2015-02-23
   NTLM Ver 1.4.0 released 2014-12-22
   OS/400 Ver V6R1M0
   http_url_post_stmf(): entered
   getting post file size...
   opening file to be sent...
   opening file to be received
   http_persist_open(): entered
   http_long_ParseURL(): entered
   DNS resolver retrans: 2
   DNS resolver retry �: 2
   DNS resolver options: x'00000136'
   DNS default domain: DiamondT.COM
   DNS server found: 12.127.17.77
   DNS server found: 12.127.16.77
   Nagle's algorithm (TCP_NODELAY) disabled.
   (GSKit) Identifier value is not valid.
   ssl_error(701): (GSKit) Identifier value is not valid.
   SNI hostname error: (GSKit) Identifier value is not valid.
   -----------------------------------------------------------------------
   --------------
   Dump of server-side certificate information:
   -----------------------------------------------------------------------
   --------------
   Cert Validation Code = 0
   -----BEGIN CERTIFICATE-----
   (REMOVED FROM DOCUMENT)
   -----END CERTIFICATE-----
   Issuer Org: Thawte, Inc.
   Version: 03
   not before: 20150125180000
   not after: 20160126175959
   pub key alg: 1.2.840.113549.1.1.5
   Protocol Used: TLS Version 1.0
   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 /ipchapi/rh.aspx HTTP/1.1
   Host: [1]apidemo.ipcharge.net
   User-Agent: http-api/1.29
   Content-Type: text/xml;charset=UTF-8
   Content-Length: 2754
   sendraw(): entered
   Content-Type: text/xml; � � � � � � � � � � � � � � � �   � � � � � � � � � � � � � � � � � � � � � ��   <TRANSACTION> � � � � � � � � � � � � � � � � � � �   � � � � � � � � � � � � � � � � � � � � � � �   ��   � � <CLIENT_ID>13131700010001</CLIENT_ID> � � � � � � � � �   � � � � � � � � � � � � � � � � � � � � � �   � � <FUNCTION_TYPE>REPORT</FUNCTION_TYPE> � � � � � � � � �   � � � � � � � � � � � � � � � � � � � ��   � � <COMMAND>SETTLESUMMARY</COMMAND> � � � � � � � � � � �   � � � � � � � � � � � � � � � � � � � � �   � � <MAX_NUM_RECORDS_RETURNED>200</MAX_NUM_RECORDS_RETURNED> � � �   � � � � � � � � � � � � � � � � �   � � <FORMAT>xml</FORMAT> � � � � � � � � � � � � � � �   � � � � � � � � � � � � � � � � � � � � � � �   � � <DELIMITER>,</DELIMITER> � � � � � � � � � � � � �   � � � � � � � � � � � � � � � � � � � � � � �   � � <RETURN_FLD_HDRS>0</RETURN_FLD_HDRS> � � � � � � � � �   � � � � � � � � � � � � � � � � � � � � �   � � <RESPONSEFIELDS> � � � � � � � � � � � � � � � �   � � � � � � � � � � � � � � � � � � � � � � � �   � � � <BATCH_SEQ_NUM/> � � � � � � � � � � � � � � �   � � � � � � � � � � � � � � � � � � � � � � � �   � � � <SETTLE_DATE/> � � � � � � � � � � � � � � � �   � � � � � � � � � � � � � � � � � � � � � � � �   � � � <ERR_TRANS_IN_BATCH/> � � � � � � � � � � � � �   � � � � � � � � � � � � � � � � � � � � � � ��   � � � <SETTLE_CODE/> � � � � � � � � � � � � � � � �   � � � � � � � � � � � � � � � � � � � � � � � �   � � � <CRDT_SALE_AMT/> � � � � � � � � � � � � � � �   � � � � � � � � � � � � � � � � � � � � � � � �   � � � <CRDT_SALE_CNT/> � � � � � � � � � � � � � � �   � � � � � � � � � � � � � � � � � � � � � � � �   � � � <CRDT_CRDT_AMT/> � � � � � � � � � � � � � � �   � � � � � � � � � � � � � � � � � � � � � � � �   � � � <CRDT_CRDT_CNT/> � � � � � � � � � � � � � � �   � � � � � � � � � � � � � � � � � � � � � � � �   � � � <CRDT_VOID_AMT/> � � � � � � � � � � � � � � �   � � � � � � � � � � � � � � � � � � � � � � � �   � � � <CRDT_VOID_CNT/> � � � � � � � � � � � � � � �   � � � � � � � � � � � � � � � � � � � � � � � �   � � </RESPONSEFIELDS> � � � � � � � � � � � � � � � �   � � � � � � � � � � � � � � � � � � � � � � ��   � � <SEARCHFIELDS> � � � � � � � � � � � � � � � � �   � � � � � � � � � � � � � � � � � � � � � � � �   � � � <START_SETTLE_DATE>2015.13.18</START_SETTLE_DATE> � � � �   � � � � � � � � � � � � � � � � � ��   � � � <END_SETTLE_DATE>2015.04.15</END_SETTLE_DATE> � � � � �   � � � � � � � � � � � � � � � � � � ��   � � </SEARCHFIELDS> � � � � � � � � � � � � � � � �   � � � � � � � � � � � � � � � � � � � � � � �   ��   � </TRANSACTION>
   recvresp(): entered
   HTTP/1.1 200 OK
   Cache-Control: private
   Content-Type: text/html; charset=utf-8
   Server: Microsoft-IIS/7.5
   X-AspNet-Version: 2.0.50727
   Date: Wed, 15 Apr 2015 23:18:16 GMT
   Content-Length: 11
   SetError() #13: HTTP/1.1 200 OK
   recvresp(): end with 200
   recvdoc parms: identity 11
   header_load_cookies() entered
   recvdoc(): entered
   SetError() #0:
   Bad Request
   http_close(): entered
   END OF HTTTAPI_DEBUG TXT�   --
   Michael L. McCullough
   Classic Software, Inc
   1040 Ne Moss Point Road
   Lee's Summit, Mo� 64064
   Office: (816) 795-8386 � Cell: (816) 564-7000 � Fax: (816) 795-8288
   ��
References

   1. http://apidemo.ipcharge.net/
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------