Unable to clear Response headers
Posted: Fri Nov 07, 2025 2:06 am
Hi Scott,
In our program, we are using the http_header() procedure to retrieve values from the response headers. However, we encountered a situation when making subsequent API calls within the same activation group, where a successful response was immediately followed by a response with return code -1 (rc = -1). When the -1 response occurred, the response headers did not appear to be cleared, resulting in incorrect headers being logged.
We explored possible solutions but found that the header data - stored in the HDR data structure within the HEADERR4 module - was not directly accessible.
Could you please advise if there is any method to explicitly clear the HTTP response headers either before or after invoking HTTP_POST()?
In our program, we are using the http_header() procedure to retrieve values from the response headers. However, we encountered a situation when making subsequent API calls within the same activation group, where a successful response was immediately followed by a response with return code -1 (rc = -1). When the -1 response occurred, the response headers did not appear to be cleared, resulting in incorrect headers being logged.
We explored possible solutions but found that the header data - stored in the HDR data structure within the HEADERR4 module - was not directly accessible.
Could you please advise if there is any method to explicitly clear the HTTP response headers either before or after invoking HTTP_POST()?