Error: CommTCP_read: Socket has been shut down.
Posted: Fri Dec 16, 2022 1:50 pm
We're on OS v7r4
One of my programs is failing with the following error:
CommTCP_read: Socket has been shut down.
URL that I'm attempting:
http://192.168.999.998/SendEmail/SendEm ... &subj=Test
If I enter the url from a browser window, it works. When I call the url from the program on the IBM, it fails with the error msg.
Here's a code snip:
URL = 'http://' + %trim(server) + %trim(ASP) +
'?' + %trim(data);
rc = http_url_get_raw(%trim(URL): *loval: %paddr('INCOMING'):30);
Here's the debug log info:
HTTPAPI Ver 1.45 released 2021-09-20
NTLM Ver 1.4.0 released 2014-12-22
OS/400 Ver V7R4M0
http_persist_open(): entered
http_long_ParseURL(): entered
DNS resolver retrans: 2
DNS resolver retry : 2
DNS resolver options: x'00000136'
DNS default domain: domain_name
DNS server found: 192.168.999.999
Nagle's algorithm (TCP_NODELAY) disabled.
http_persist_get(): entered
http_persist_req(GET) entered.
http_persist_req(GET) entered.
http_long_ParseURL(): entered
http_long_ParseURL(): entered
do_oper(GET): entered
There are 0 cookies in the cache
GET /SendEmail/SendEmail.aspx?from=tom@myserver.com&to=tom@myserver.com&msg=Test&subj=Test
HTTP/1.1
Host: 192.168.999.998
User-Agent: http-api/1.45
recvresp(): entered
SetError() #44: CommTCP_read: Socket has been shut down.
recvresp(): end with err
http_close(): entered
One of my programs is failing with the following error:
CommTCP_read: Socket has been shut down.
URL that I'm attempting:
http://192.168.999.998/SendEmail/SendEm ... &subj=Test
If I enter the url from a browser window, it works. When I call the url from the program on the IBM, it fails with the error msg.
Here's a code snip:
URL = 'http://' + %trim(server) + %trim(ASP) +
'?' + %trim(data);
rc = http_url_get_raw(%trim(URL): *loval: %paddr('INCOMING'):30);
Here's the debug log info:
HTTPAPI Ver 1.45 released 2021-09-20
NTLM Ver 1.4.0 released 2014-12-22
OS/400 Ver V7R4M0
http_persist_open(): entered
http_long_ParseURL(): entered
DNS resolver retrans: 2
DNS resolver retry : 2
DNS resolver options: x'00000136'
DNS default domain: domain_name
DNS server found: 192.168.999.999
Nagle's algorithm (TCP_NODELAY) disabled.
http_persist_get(): entered
http_persist_req(GET) entered.
http_persist_req(GET) entered.
http_long_ParseURL(): entered
http_long_ParseURL(): entered
do_oper(GET): entered
There are 0 cookies in the cache
GET /SendEmail/SendEmail.aspx?from=tom@myserver.com&to=tom@myserver.com&msg=Test&subj=Test
HTTP/1.1
Host: 192.168.999.998
User-Agent: http-api/1.45
recvresp(): entered
SetError() #44: CommTCP_read: Socket has been shut down.
recvresp(): end with err
http_close(): entered