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

Re: [Ftpapi] HTTPAPI error using *POST with UPLOAD(*NONE)



Lorne,

How are you executing webservice, via HTTPAPI command? You can try by giving any valid IFS path in upload parm and it should work.

Thanks,
Pargat

On Mon, May 29, 2017 at 11:21 AM, Sturgeoff, Lorne <lorne.sturgeoff@xxxxxxxxxxxxxxx> wrote:

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: 0382010F003082010A0282010100C4D993D8B0CACDB3164CC72A27456ED240AC52D5237AC73AB07CA556747FA8D4878F7FA0CCCCE7DB57F6EB6E11357826744946CF2FFBD40EA46FAA0342F7176C316FDBEC4A62D24896CFAEC9ABA99FCE4D68EDC084740B72D466190F4D8F29C81BFE312A4A21146C5D0FA3996BCA5BD684E12138DD8302623A1DC5C1C894FED75BAFB74CA65CF480878304233DED011182297E7BDAE68753737099C3945870746BAABEC64C356E11F394DC265082C9FDC6B552D2A473E4EC79A8969086BB3051C594B5BF3474D9D96A40AB4D5D0E3996F42E4BBF1F03588BD4A967B1E4340E40860CDBA1675044A30E2F3B0B48AC6A300C7F78BF8A0A4987DB62BCA74535EA210203010001

Unknown Field: 2048

Unknown Field: 86AEF3963CFF41A1651F292735D11F28

Unknown Field: 1.2.840.113549.2.5

Unknown Field: C1377F6D7BB4866A1F90EA811EF343EE18CE992F

Unknown Field: 427573166B640634CADF4C0407DBEDBEB0CFF2E61428F39513AA1923955BF836

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

cid:image007.png@01D27006.BA065EA0  cid:image008.png@01D27006.BA065EA0  cid:image009.png@01D27006.BA065EA0  cid:image010.png@01D27006.BA065EA0

 

cid:image011.png@01D27006.BA065EA0

cid:image012.png@01D27006.BA065EA0

Some of our Awards:

cid:image013.png@01D27006.BA065EA0    cid:image014.png@01D27006.BA065EA0   


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