After the HTTP client accessors issue their HTTP protocol requests they receive an HTTP protocol response which includes HTTP response headers.
It is possible to retrieve the HTTP protocol headers by issuing
the requests with the method
and then retrieving the HTTP protocol headers using the header keys
For example, the following code issues an HTTP GET protocol request and captures the HTTP response code:
INKFRequest request; INKFResponseReadOnly response; Object representation; int httpReturnCode; request = context.createRequest("active:httpGet"); request.addArgumentByValue("url", "http://www.mycomp.com"); response = context.issueRequestForResponse(request); httpReturnCode = response.getHeader("HTTP_ACCESSOR_STATUS_CODE_METADATA"); representation = response.getRepresentation();
The status code of the HTTP response as an Integer.
The HTTP response headers for the request as an IHDSNode list structure with the following item
Where name is the HTTP header name and value is the header value.