debugging host refused connection
Posted: Sat Jul 29, 2023 2:35 am
hey all, new to HTTPAPI. trying to post a stmf using a simple http_url_post_stmf
rc = http_url_post_stmf( URL : %trim(filepath) : %trim(responsePath) );
but everytime i try it says host refused connection( going after localhost )
URL :https://localhost:7143/string/string( url is correct tested in postman)
was this api not meant to be used with local host? do i have parameters i am missing?
i know this may be more of a network thing but has anyone ran into this issue before?
here is the log im getting in debug
HTTPAPI Ver 1.45 released 2021-09-20
NTLM Ver 1.4.0 released 2014-12-22
OS/400 Ver V7R4M0
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: internal.treeoflife.com
DNS server found: 10.51.100.5
DNS server found: 10.57.100.5
Nagle's algorithm (TCP_NODELAY) disabled.
SetError() #6: connect(1): A remote host refused an attempted connect operation.
rc = http_url_post_stmf( URL : %trim(filepath) : %trim(responsePath) );
but everytime i try it says host refused connection( going after localhost )
URL :https://localhost:7143/string/string( url is correct tested in postman)
was this api not meant to be used with local host? do i have parameters i am missing?
i know this may be more of a network thing but has anyone ran into this issue before?
here is the log im getting in debug
HTTPAPI Ver 1.45 released 2021-09-20
NTLM Ver 1.4.0 released 2014-12-22
OS/400 Ver V7R4M0
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: internal.treeoflife.com
DNS server found: 10.51.100.5
DNS server found: 10.57.100.5
Nagle's algorithm (TCP_NODELAY) disabled.
SetError() #6: connect(1): A remote host refused an attempted connect operation.