Get server details (IP, port, system number)#
a) ST06 > Additional functions > Lan check with ping > Application Server > Mark all + 1x PING > LAN Check by Pingb) SM51 > Mark server > Menu > Goto > Information > Logon Data
Note: system number is the last two digits of the port from b)
Server/Profile Parameters#
For a reliable HTTP communication set the following
icm/server_port_0 | PROT=HTTP,PORT=xxxx,TIMEOUT=90,PROCTIMEOUT=3600 |
icm/server_port_2 | PROT=HTTPS,PORT=xxxx,TIMEOUT=90,PROCTIMEOUT=3600 |
icm/keep_alive_timeout | 90 |
icm/conn_timeout | 20000 |
If icm/HTTP/client/keep_alive_timeout=0 is used, HTTP Keep-Alive is disabled altogether when acting as client. This solution affects all outbound HTTP connections.
HTTP keep-alive#
Use HTTP 1.1 withlo_http_client->request->set_version( if_http_request=>co_protocol_version_1_1 ).
If you use it within HTTP header you need to set Connection=keep-alive, too!
HTTP/1.1 200 OK Connection: keep-alive Content-Type: text/html; chartset=utf-8 Keep-Alive: timeout=10, max=100