The web service requires a post method without an upload file. I notice in HTTPCMDR4 at line 146 the variable ‘upload’ is initialized with no value if peUpload = ‘*NONE’. Later at line 281 the variable ‘upload’ is tested for value ‘-‘. Since it was earlier initialized with no value the program tries to open the upload file and throws an error message, ” No such path or directory”.
I ran the program in debug mode and moved the value ‘-‘ into variable ‘upload’ after statement 147. This got past the error on open but I did not get the expected result from the web service. The final *ESCAPE CPF9897 message contains only the value ‘0’ (zero).
Debug data follows. Any thoughts would be appreciated.
HTTPAPI Ver 1.35 released 2017-05-03
NTLM Ver 1.4.0 released 2014-12-22
OS/400 Ver V7R2M0
http_setauth(): entered
http_persist_open(): entered
http_long_ParseURL(): entered
DNS resolver retrans: 2
DNS resolver retry : 2
DNS resolver options: x'00000136'
DNS default domain: AICCORP.COM
DNS server found: 10.48.60.60
DNS server found: 10.48.60.61
Nagle's algorithm (TCP_NODELAY) disabled.
SNI hostname set to: www.tcnp3.com
------------------------------
------------------------------ ------------------------- Dump of server-side certificate information:
------------------------------
------------------------------ ------------------------- Cert Validation Code = 0
-----BEGIN CERTIFICATE-----
<omitted certificate data>
-----END CERTIFICATE-----
Serial Number: 0E:E9:24:0E:9C:BC:7F:3D:A7:1C:
7D:8B:59:94:8C:AA Common Name: *.tcnp3.com
Country: US
State/Province: Utah
Locality: St. George
Org Unit: TCN, Inc.
Issuer CN: DigiCert SHA2 Secure Server CA
Issuer Country: US
Issuer Org: DigiCert Inc
Version: 3
not before: 20140330200000
Unknown Field: 20:00:00 30-03-2014
not after: 20170607080000
Unknown Field: 08:00:00 07-06-2017
pub key alg: 1.2.840.113549.1.1.1
signature algorithm: 1.2.840.113549.1.1.11
Unknown Field: 0382010F003082010A0282010100C4
D993D8B0CACDB3164CC72A27456ED2 40AC52D5237AC73AB07CA556747FA8 D4878F7FA0CCCCE7DB57F6EB6E1135 7826744946CF2FFBD40EA46FAA0342 F7176C316FDBEC4A62D24896CFAEC9 ABA99FCE4D68EDC084740B72D46619 0F4D8F29C81BFE312A4A21146C5D0F A3996BCA5BD684E12138DD8302623A 1DC5C1C894FED75BAFB74CA65CF480 878304233DED011182297E7BDAE687 53737099C3945870746BAABEC64C35 6E11F394DC265082C9FDC6B552D2A4 73E4EC79A8969086BB3051C594B5BF 3474D9D96A40AB4D5D0E3996F42E4B BF1F03588BD4A967B1E4340E40860C DBA1675044A30E2F3B0B48AC6A300C 7F78BF8A0A4987DB62BCA74535EA21 0203010001 Unknown Field: 2048
Unknown Field: 86AEF3963CFF41A1651F292735D11F
28 Unknown Field: 1.2.840.113549.2.5
Unknown Field: C1377F6D7BB4866A1F90EA811EF343
EE18CE992F Unknown Field: 427573166B640634CADF4C0407DBED
BEB0CFF2E61428F39513AA1923955B F836 Unknown Field: 5
Unknown Field: *.tcnp3.com
Unknown Field: 0
Unknown Field: 1.3.6.1.5.5.7.3.2
Unknown Field: 1.3.6.1.5.5.7.3.1
Unknown Field: 2.16.840.1.114412.1.1
Protocol Used: TLS Version 1.2
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 /backoffice/RemoteAgentList HTTP/1.1
Host: www.tcnp3.com
User-Agent: http-api/1.34
Content-Type: text/xml
Content-Length: 0
Authorization: Basic <omitted data>
sendraw(): entered
http_close(): entered
Lorne Sturgeoff
Information Technology
Lorne.Sturgeoff@BillGosling.com
905 513 3517 m. 416 993 1604
www.BillGosling.com
16635 Yonge Street, Suite 26, Newmarket, ON L3X 1V6 Canada
FURTHER TOGETHER
Some of our Awards:
CONFIDENTIALITY: This communication may contain confidential privileged information intended for the named recipient(s) only. If you received this by mistake, please destroy it and notify us of the error. Thank you.
--
_______________________________________________
Ftpapi mailing list
Ftpapi@xxxxxxxxxxxxxxxxxxxxxx
http://scottklement.com/mailman/listinfo/ftpapi
-- _______________________________________________ Ftpapi mailing list Ftpapi@xxxxxxxxxxxxxxxxxxxxxx http://scottklement.com/mailman/listinfo/ftpapi