Needs to be called when not reading content via getResponseBody or getMediaData to be able to reuse the client.
Returns
Supported Clients
Sample
Get the charset of the response body.
var charset = response.getCharset();
Get the content of response as binary data. It also supports gzip-ed content.
var mediaData = response.getMediaData();
Get the content of the response as String.
var pageData = response.getResponseBody();
Gets the headers of the response as name/value arrays.
var allHeaders = response.getResponseHeaders(); var header; for (header in allHeaders) application.output(header + ': ' + allHeaders[header]);
Parameters
var contentLength = response.getResponseHeaders("Content-Length");
Gets the status code of the response, the list of the possible values is in HTTP_STATUS constants.
var status = response.getStatusCode();// compare with HTTP_STATUS constants