libavformat/http.h File Reference

#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.


Function Documentation

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.

Parameters:
dest URL context whose authentication state gets updated
src URL context whose authentication state gets copied

Definition at line 86 of file http.c.

void ff_http_set_chunked_transfer_encoding ( URLContext h,
int  is_chunked 
)

Enable or disable chunked transfer encoding.

(default is enabled)

Parameters:
h URL context for this HTTP connection
is_chunked 0 to disable chunking, nonzero otherwise.

Definition at line 81 of file http.c.

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

Parameters:
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().


Generated on Fri Oct 26 02:38:20 2012 for FFmpeg by  doxygen 1.5.8