Retrieve response header information. If the response length is not known
set |response_length| to -1 and read_response() will be called until it
returns false (0). If the response length is known set |response_length|
to a positive value and read_response() will be called until it returns
false (0) or the specified number of bytes have been read. Use the
|response| object to set the mime type, http status code and other
optional header values. To redirect the request to a new URL set
|redirectUrl| to the new URL. |redirectUrl| can be either a relative or
fully qualified URL. It is also possible to set |response| to a redirect
http status code and pass the new URL via a Location header. Likewise with
|redirectUrl| it is valid to set a relative or fully qualified URL as the
Location header value. If an error occured while setting up the request
you can call set_error() on |response| to indicate the error condition.
Retrieve response header information. If the response length is not known set |response_length| to -1 and read_response() will be called until it returns false (0). If the response length is known set |response_length| to a positive value and read_response() will be called until it returns false (0) or the specified number of bytes have been read. Use the |response| object to set the mime type, http status code and other optional header values. To redirect the request to a new URL set |redirectUrl| to the new URL. |redirectUrl| can be either a relative or fully qualified URL. It is also possible to set |response| to a redirect http status code and pass the new URL via a Location header. Likewise with |redirectUrl| it is valid to set a relative or fully qualified URL as the Location header value. If an error occured while setting up the request you can call set_error() on |response| to indicate the error condition.