Method Protocols.HTTP.do_async_proxied_method()
- Method do_async_proxied_method
void
do_async_proxied_method(string
|Standards.URI
proxy
,string
user
,string
password
,string
method
,string
|Standards.URI
url
,void
|mapping
(string
:int
|string
|array
(string
))query_variables
,void
|mapping
(string
:string
|array
(string
))request_headers
,Protocols.HTTP.Query
con
,void
|string
data
)- Description
Low level asynchronous proxied HTTP call method.
Makes an HTTP request through a proxy.
- Parameter
proxy
URL for the proxy.
- Parameter
user
- Parameter
password
Proxy authentication credentials.
- Parameter
method
The HTTP method to use, e.g.
"GET"
.- Parameter
url
The URL to perform
method
on. Should be a complete URL, including protocol, e.g."https://pike.lysator.liu.se/"
.- Parameter
query_variables
Calls http_encode_query and appends the result to the URL.
- Parameter
request_headers
The HTTP headers to be added to the request. By default the headers User-agent, Host and, if needed by the url, Authorization will be added, with generated contents. Providing these headers will override the default. Setting the value to 0 will remove that header from the request.
- Parameter
con
Previously initialized connection object. In particular the callbacks must have been set (Query.set_callbacks()).
- Parameter
data
Data payload to be transmitted in the request.
- See also
do_async_method(), do_proxied_method(), Query.set_callbacks()