response
Response
setContentAsString
void response.setContentAsString ( String content )
Description
Manually set the response content.
Parameters
- content Response text, as a string.
Return Values
Returns void.
getContentAsString
String response.getContentAsString ( )
Description
Retrieve the content of the response.
Parameters
This method does not receive any parameters.
Return Values
Returns the content of the response, as a string.
removeHTTPHeader
void response.removeHTTPHeader ( String key, String value )
Description
Remove HTTP header from response.
Parameters
- key Name of the header, as a string.
- value Value associated with the header, as a string.
Return Values
Returns void.
addHTTPHeader
void response.addHTTPHeader ( String key, String value )
Description
Add HTTP header to response.
Parameters
- key Name of the header, as a string.
- value Value associated with the header, as a string.
Return Values
Returns void.
setStatusLine
void response.setStatusLine ( String statusLine )
Description
Manually set the status line.
Parameters
- statusLine New status line declaration, as a string.
Return Values
Returns void.
getStatusLine
String response.getStatusLine ( )
Description
Retrieve the status line of the response.
Parameters
This method does not receive any parameters.
Return Values
Returns the status line of the response, as a string.
response
The response class provides you with a means for editing the responses received by the proxy server.
Scripts run in the scraping engine us the scrapeable file to manipulate server responses.