35 const char *p = strchr(uri,
'?');
44 c->
verify = strtol(buf, &endptr, 10);
62 const char *proxy_path;
68 snprintf(opts,
sizeof(opts),
"?listen=1");
92 proxy_path = getenv(
"http_proxy");
97 char proxy_host[200], proxy_auth[200], dest[200];
100 proxy_host,
sizeof(proxy_host), &proxy_port,
NULL, 0,
103 ff_url_join(buf,
sizeof(buf),
"httpproxy", proxy_auth, proxy_host,
104 proxy_port,
"/%s", dest);
void av_url_split(char *proto, int proto_size, char *authorization, int authorization_size, char *hostname, int hostname_size, int *port_ptr, char *path, int path_size, const char *url)
Split a URL string into components.
int ffurl_open_whitelist(URLContext **puc, const char *filename, int flags, const AVIOInterruptCB *int_cb, AVDictionary **options, const char *whitelist, const char *blacklist, URLContext *parent)
Create an URLContext for accessing to the resource indicated by url, and open it. ...
static void set_options(TLSShared *c, const char *uri)
AVIOInterruptCB interrupt_callback
miscellaneous OS support macros and functions.
int av_find_info_tag(char *arg, int arg_size, const char *tag1, const char *info)
Attempt to find a specific tag in a URL.
char underlying_host[200]
const char * protocol_whitelist
int ff_http_match_no_proxy(const char *no_proxy, const char *hostname)
int ff_url_join(char *str, int size, const char *proto, const char *authorization, const char *hostname, int port, const char *fmt,...)
char * av_strdup(const char *s)
Duplicate a string.
const char * protocol_blacklist
#define AVIO_FLAG_READ_WRITE
read-write pseudo flag
int av_strstart(const char *str, const char *pfx, const char **ptr)
Return non-zero if pfx is a prefix of str.
const OptionDef options[]
int ff_tls_open_underlying(TLSShared *c, URLContext *parent, const char *uri, AVDictionary **options)
unbuffered private I/O API