36 char buf[200],
opts[50] =
"";
38 const char *proxy_path;
42 snprintf(opts,
sizeof(opts),
"?listen=1");
63 proxy_path = getenv(
"http_proxy");
68 char proxy_host[200], proxy_auth[200], dest[200];
71 proxy_host,
sizeof(proxy_host), &proxy_port,
NULL, 0,
74 ff_url_join(buf,
sizeof(buf),
"httpproxy", proxy_auth, proxy_host,
75 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.
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.
int ffurl_open(URLContext **puc, const char *filename, int flags, const AVIOInterruptCB *int_cb, AVDictionary **options, const URLProtocol **protocols, URLContext *parent)
Create an URLContext for accessing to the resource indicated by url, and open it. ...
const OptionDef options[]
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,...)
#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 struct URLProtocol ** protocols
A NULL-terminated list of protocols usable by the child contexts.
int ff_tls_open_underlying(TLSShared *c, URLContext *parent, const char *uri, AVDictionary **options)
unbuffered private I/O API