I am new to HTPPAPI, trying to use it to post.
the statement in my RPGLE is:
http_stmf('POST': url: response: output: 'application/json');
response and output are strings with ifs locations.
I am getting the error: #44: CommTCP_read: Socket has been shut down.
When I use Postman to send the data it is received with no errors.
Any help would be appreciated.
Thanks,
Chris Ruser
the http_debug code is below:
HTTPAPI Ver 1.45 released 2021-09-20
NTLM Ver 1.4.0 released 2014-12-22
OS/400 Ver V7R3M0
http_persist_open(): entered
http_long_ParseURL(): entered
DNS resolver retrans: 2
DNS resolver retry : 2
DNS resolver options: x'00000136'
DNS default domain: int.uhs.com
DNS server found: 172.16.155.7
DNS server found: 172.16.155.6
Nagle's algorithm (TCP_NODELAY) disabled.
SNI hostname set to: agilitidev.service-now.com
-------------------------------------------------------------------------------------
Dump of server-side certificate information:
-------------------------------------------------------------------------------------
Cert Validation Code = 6000
-----BEGIN CERTIFICATE-----
MIIG1TCCBb2gAwIBAgIQFiXdLtlf3NCMOc3jEvj/JTANBgkqhkiG9w0BAQsFADCB
ujELMAkGA1UEBhMCVVMxFjAUBgNVBAoTDUVudHJ1c3QsIEluYy4xKDAmBgNVBAsT
H1NlZSB3d3cuZW50cnVzdC5uZXQvbGVnYWwtdGVybXMxOTA3BgNVBAsTMChjKSAy
MDEyIEVudHJ1c3QsIEluYy4gLSBmb3IgYXV0aG9yaXplZCB1c2Ugb25seTEuMCwG
A1UEAxMlRW50cnVzdCBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eSAtIEwxSzAeFw0y
MjAxMjEyMDE4MDhaFw0yMjEwMjIyMDE4MDhaMG0xCzAJBgNVBAYTAlVTMRMwEQYD
VQQIEwpDYWxpZm9ybmlhMRIwEAYDVQQHEwlTYW4gRGllZ28xGTAXBgNVBAoTEFNl
cnZpY2VOb3csIEluYy4xGjAYBgNVBAMMESouc2VydmljZS1ub3cuY29tMIIBIjAN
BgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA65Gz2Evbv3F0EAu9KITmX6nmjqtL
uGqGu29rA64Haq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OMhmKAYnaRguJKkAdwBVgdTCFpA2AUrq
C5tXPFPwwOQ4eHAlCBcvo6odBxPTDAAAAX5+Sg2UAAAEAwBIMEYCIQCw8P441Bag
PWWeUV/Mk9QRwCa3TiPaUkuqvJqakBum8gIhAKnHV2rqdbS/QvObb7r2hsMxYoPN
2PL9xzrKzF5/wXI1AHcAKXm+8J45OSHwVnOfY6V35b5XfZxgCvj5TV0mXCVdx4QA
AAF+fkoNOgAABAMASDBGAiEAkbjynYXB/6OXDIXsv2SjhTmW7fNjNfu+QDytAVpD
km8CIQCzcGXAD1hzfPA+pxELst/HtUuFX1o6bPl+CSSojHH5ITANBgkqhkiG9w0B
AQsFAAOCAQEArYoBFkiD6K2KAsgy4xonLZ+BhO4FkWdFSSva8PKVeQZinbnACpyk
axuNm7u0JKpB2bUrdc5kJXZikA9QYzt/3Ds1kfzFa5dhr4b2EdmY7CAdBr6wjPFO
dG057qXpeMwY365u8ppckt4CC4BjThtNcqyNeUMw9fH2WRJGjn0VRETm3IlK7ZyW
VHQMZdShfJM6Mp4gvvEv9fo8npJIf8b1Mtopy8+Q4p/gqwPXJb2GXFLAeHCZj6hz
wCMkjqCO3pGuIUwrrxxPpy9Rb4OrhwHTR3hsBHYADRQUW6Q4fNIWgYlx5m9abUom
60HZX18hJ/6ePgFa4vormrNPdZwa45Lm+Q==
-----END CERTIFICATE-----
Serial Number: 16:25:DD:2E:D9:5F:DC:D0:8C:39:CD:E3:12:F8:FF:25
Common Name: *.service-now.com
Country: US
State/Province: California
Locality: San Diego
Org Unit: ServiceNow, Inc.
Issuer CN: Entrust Certification Authority - L1K
Issuer Country: US
Issuer Org: Entrust, Inc.
Issuer Org Unit: (c) 2012 Entrust, Inc. - for authorized use only, OU=See www.entrust.net/legal-terms
Version: 3
not before: 20220121141808
Unknown Field: 14:18:08 21-01-2022
not after: 20221022151808
Unknown Field: 15:18:08 22-10-2022
pub key alg: 1.2.840.113549.1.1.1
signature algorithm: 1.2.840.113549.1.1.11
Unknown Field: 0382010F003082010A0282010100EB91B3D84BDBBF7174100BBD2884E65FA9E68EAB4BB86A86BB6F6B03AE076AAA4B882C771121265553615489FA060947F03049639D2BBBF5BB287747BAF6F7D522FC426122EA5A774F72646CFB25A78C04C1C96D03B95D508AD452930725E967D288A5E83B1B0A96DF93A5DDB6F1D91A2ED2813B4D4164416C21622E5567A95159748793D86C00D4B9CC7E9E9D1988E81182A72CB3A49A111398D1A811A8866F4C8A5929D8BF3A0DB7963B341F5A8E38FE13F245D01EBD4C2540D36E69B867A7DB14F3019F190D2CEB7FDB6EBC7AD77944AA06BD038D1CA3CBED5A82271BBA06C6ACEB2CC82B76C6379D2077F33D81BE8C5DA5157D317205336B7183D9B9212F0203010001
Unknown Field: 2048
Unknown Field: 5B55275CB434B0AACD2E8B3C48F5013E
Unknown Field: 1.2.840.113549.2.5
Unknown Field: 537EF8FA3AA65438C536F2E651BAAF5DB4A16294
Unknown Field: B6EFDF93D14554A7F1AF135996439D0DDB022996C8FECC0A95D94CDA3A1D2973
Unknown Field: 5
Unknown Field: *.service-now.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.23.140.1.2.2
Unknown Field: 2.16.840.1.114028.10.1.5
Unknown Field: http://ocsp.entrust.net
Protocol Used: TLS Version 1.2
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 /api/now/import/x_nuvo_eam_incommand_rental_transfer_req HTTP/1.1
Host: agilitidev.service-now.com
User-Agent: http-api/1.45
Content-Type: application/json
Content-Length: 430
Authorzation: Basic YWlsZW9yZGVyOnYhdHlsV2ViJHZjMjAyMQ==
sendraw(): entered
{"u_substitute":"","u_substitute_of":"","u_cannot_fulfill_reason":"","u_fulfilled_by":"","u_substitution_needed":"","u_fulfilled_on":"","u_quantity_backordered":0,"u_status":"","u_requested_model":"","u_adjusted_request_quantity":0,"u_unable_to_fulfill":"","u_number":26652988,"u_purchase_order":"222","u_fulfilled_quantity":0,"u_requested_quantity":2,"u_transfer_work_order":"","u_prefix":"BAL","u_department":"dept","u_name":""}
recvresp(): entered
SetError() #44: CommTCP_read: Socket has been shut down.
recvresp(): end with err
http_close(): entered