How to set Timeout seconds in http_url_post_stmf
Posted: Thu Jul 13, 2023 8:40 am
Hi All,
During auto-scaling, the Rest API application is down for 80 seconds. Our RPG code that is consuming this Rest API is ending in error during auto-scaling. I would like to setup timeout seconds (HTTP_TIMEOUT) as 120 seconds while posting request using http_url_post_stmf. I think the default is 60 seconds. Could you please tell me how to do it.
http_url_post_stmf(%trim(url)
: json_input
: json_response
: HTTP_TIMEOUT
: HTTP_USERAGENT
: content_type );
httpapi version installed - 1.45
Thanks in advance.
During auto-scaling, the Rest API application is down for 80 seconds. Our RPG code that is consuming this Rest API is ending in error during auto-scaling. I would like to setup timeout seconds (HTTP_TIMEOUT) as 120 seconds while posting request using http_url_post_stmf. I think the default is 60 seconds. Could you please tell me how to do it.
http_url_post_stmf(%trim(url)
: json_input
: json_response
: HTTP_TIMEOUT
: HTTP_USERAGENT
: content_type );
httpapi version installed - 1.45
Thanks in advance.