Section A.1. Methods


A.1. Methods

Method

Description

abort()

Aborts the request

getAllResponseHeaders()

Returns all headers of the HTTP response

geTResponseHeader(header)

Returns the value of the given HTTP response header

open(method, url, async, username, password)

Creates an HTTP request with the given method (GET or POST) to the given URL. The other parameters are optional: whether to use an asynchronous call (default) or not, and credentials for HTTP Authentication

send(content)

Sends the HTTP request, optionally providing data to send with it (POST information)

setRequestHeader(name, value)

Adds a header with the given name and value to the HTTP request





Programming Atlas
Programming Atlas
ISBN: 0596526725
EAN: 2147483647
Year: 2006
Pages: 146

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net