35 const char *p = strchr(uri,
'?');
44 c->
verify = strtol(buf, &endptr, 10);
60 char buf[200], opts[50] =
"";
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.
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.
const OptionDef options[]
char underlying_host[200]
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 the string s.
#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.
int ffurl_open(URLContext **puc, const char *filename, int flags, const AVIOInterruptCB *int_cb, AVDictionary **options)
Create an URLContext for accessing to the resource indicated by url, and open it. ...
int ff_tls_open_underlying(TLSShared *c, URLContext *parent, const char *uri, AVDictionary **options)
unbuffered private I/O API