| GSK Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | Object Hierarchy | ||||
GskUrlTransferHttp;
void gsk_url_transfer_http_set_ssl_cert (GskUrlTransferHttp *http,
const char *cert_fname);
void gsk_url_transfer_http_set_ssl_key (GskUrlTransferHttp *http,
const char *key_fname);
void gsk_url_transfer_http_set_ssl_password
(GskUrlTransferHttp *http,
const char *password);
void gsk_url_transfer_http_set_user_agent
(GskUrlTransferHttp *http,
const char *user_agent);
void gsk_url_transfer_http_add_extra_header
(GskUrlTransferHttp *http,
const char *key,
const char *value);
void gsk_url_transfer_http_set_proxy_address
(GskUrlTransferHttp *http,
GskSocketAddress *proxy_address);
void (*GskUrlTransferHttpRequestModifierFunc)
(GskHttpRequest *request,
gpointer mod_data);
void gsk_url_transfer_http_add_modifier (GskUrlTransferHttp *http,
GskUrlTransferHttpRequestModifierFunc modifier,
gpointer data,
GDestroyNotify destroy);
A transfer with an HTTP-based URL. In particular, this class defines many HTTP specific configurations.
void gsk_url_transfer_http_set_ssl_cert (GskUrlTransferHttp *http, const char *cert_fname);
Set the SSL certificate file for this connection.
|
the transfer to affect. |
|
the certificate filename. |
void gsk_url_transfer_http_set_ssl_key (GskUrlTransferHttp *http, const char *key_fname);
|
|
|
void gsk_url_transfer_http_set_ssl_password
(GskUrlTransferHttp *http,
const char *password);
|
|
|
void gsk_url_transfer_http_set_user_agent
(GskUrlTransferHttp *http,
const char *user_agent);
Set the User-Agent to use for this HTTP transaction.
|
the transfer to affect. |
|
the User-Agent: header's value for this transfer. |
void gsk_url_transfer_http_add_extra_header
(GskUrlTransferHttp *http,
const char *key,
const char *value);
Add an arbitrary header to the HTTP request.
|
the transfer to affect. |
|
a HTTP header name |
|
the value of that HTTP header. |
void gsk_url_transfer_http_set_proxy_address
(GskUrlTransferHttp *http,
GskSocketAddress *proxy_address);
Set an HTTP proxy for this transfer.
|
the transfer to affect. |
|
the socket-address to really connect to. |
void (*GskUrlTransferHttpRequestModifierFunc)
(GskHttpRequest *request,
gpointer mod_data);
|
|
|
void gsk_url_transfer_http_add_modifier (GskUrlTransferHttp *http, GskUrlTransferHttpRequestModifierFunc modifier, gpointer data, GDestroyNotify destroy);
Add a generic transformation to do to the HTTP request header.
|
the transfer to affect. |
|
function to call to modify the HTTP request header. |
|
data to pass to modifier. |
|
called with data when the modifier is destroyed. |