#include "url.h"
Go to the source code of this file.
Functions | |
void | ff_http_set_headers (URLContext *h, const char *headers) |
Set custom HTTP headers. | |
void | ff_http_set_chunked_transfer_encoding (URLContext *h, int is_chunked) |
Enable or disable chunked transfer encoding. | |
void | ff_http_init_auth_state (URLContext *dest, const URLContext *src) |
Initialize the authentication state based on another HTTP URLContext. |
void ff_http_init_auth_state | ( | URLContext * | dest, | |
const URLContext * | src | |||
) |
Initialize the authentication state based on another HTTP URLContext.
This can be used to pre-initialize the authentication parameters if they are known beforehand, to avoid having to do an initial failing request just to get the parameters.
dest | URL context whose authentication state gets updated | |
src | URL context whose authentication state gets copied |
void ff_http_set_chunked_transfer_encoding | ( | URLContext * | h, | |
int | is_chunked | |||
) |
void ff_http_set_headers | ( | URLContext * | h, | |
const char * | headers | |||
) |
Set custom HTTP headers.
A trailing CRLF ("\r\n") is required for custom headers. Passing in an empty header string ("\0") will reset to defaults.
The following headers can be overriden by custom values, otherwise they will be set to their defaults. -User-Agent -Accept -Range -Host -Connection
h | URL context for this HTTP connection | |
headers | the custom headers to set |
Definition at line 70 of file http.c.
Referenced by mmsh_open().