- 22 Feb, 2016 2 commits
-
-
Anton Khirnov authored
This way, the decisions about which protocols are available for use in any given situations can be delegated to the caller.
-
Anton Khirnov authored
Instead of a linked list constructed at av_register_all(), store them in a constant array of pointers. Since no registration is necessary now, this removes some global state from lavf. This will also allow the urlprotocol layer caller to limit the available protocols in a simple and flexible way in the following commits.
-
- 30 Jul, 2015 1 commit
-
-
Luca Barbato authored
Makes slightly easier the life of those want to use the option from the command line
-
- 19 Apr, 2015 1 commit
-
-
Vittorio Giovara authored
This applies to every library where performance is not critical.
-
- 14 Feb, 2015 1 commit
-
-
Diego Biurrun authored
-
- 15 Aug, 2014 2 commits
-
-
Gabriel Dume authored
Signed-off-by: Diego Biurrun <diego@biurrun.de>
-
Diego Biurrun authored
Also fixes an unused variable warning with zlib disabled.
-
- 13 Aug, 2014 4 commits
-
-
Martin Storsjö authored
The cur_*auth_type variables were set before the http_connect call prior to 6a463e7f - their sole purpose is to record the authentication type used to do the latest request, since parsing the http response sets the new type in the auth state. CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
-
Andrew Stone authored
It won't hurt servers that don't care about the header, and those that do will include it by default. Signed-off-by: Anton Khirnov <anton@khirnov.net>
-
Andrew Stone authored
Signed-off-by: Anton Khirnov <anton@khirnov.net>
-
Martin Storsjö authored
Previously this logic was only used if the server didn't respond with Connection: close, but use it even for that case, if the server response is non-chunked. Originally the http code has relied on Connection: close to close the socket when the file/stream is received - the http protocol code just kept reading from the socket until the socket was closed. In f240ed18 we added a check for the file size, because some http servers didn't respond with Connection: close (and wouldn't close the socket) even though we requested it, which meant that the http protocol blocked for a long time at the end of files, waiting for a socket level timeout. When reading over tls, trying to read at the end of the connection, when the peer has closed the connection, can produce spurious (but harmless) warnings. Therefore always voluntarily stop reading when the specified file size has been received, if not using a chunked transfer encoding. (For chunked transfers, we already return 0 as soon as we get the chunk header indicating end of stream.) Signed-off-by: Martin Storsjö <martin@martin.st>
-
- 03 Aug, 2014 1 commit
-
-
Luca Barbato authored
Split return value handling from the actual opening. Incidentally fixes the https -> http redirect issue reported by Compn on behalf of rcombs. CC: libav-stable@libav.org
-
- 23 Jul, 2014 1 commit
-
-
Diego Biurrun authored
Also comment some #endifs and reshuffle headers into canonical order.
-
- 22 Jul, 2014 1 commit
-
-
Luca Barbato authored
-
- 21 Jul, 2014 2 commits
-
-
Luca Barbato authored
Remove a warning if https support is disabled.
-
Luca Barbato authored
Certain servers accept only PUT as valid method.
-
- 12 Mar, 2014 2 commits
-
-
Alessandro Ghedini authored
The icy_metadata_headers string never gets initialized, so, during the first call to av_strlcatf() in parse_icy(), strlen() will be called on a pointer to uninitialized memory. At best this causes some garbage data to be left at the start of the string. By initializing icy_metadata_headers to the empty string, the first call to strlen() will always return 0, so that data is appended from the start of the string. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
-
Martin Storsjö authored
Signed-off-by: Martin Storsjö <martin@martin.st>
-
- 11 Mar, 2014 11 commits
-
-
Clément Bœsch authored
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
-
Alessandro Ghedini authored
Add documentation where missing. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
-
Anssi Hannula authored
This also allows checking stream position as per ffurl_seek() doxy. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
-
Anssi Hannula authored
Comment from Reimar Döffinger included as pro memoria. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
-
Clément Bœsch authored
Contextually make the default User-Agent use the common "Name/Version" pattern. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
-
Michael Niedermayer authored
Bug-Id: https://bugs.debian.org/740421Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
-
Luca Barbato authored
Export the metadata as a icy_metadata_packet avoption. Based on the work of wm4 and Alessandro Ghedini. Bug-Id: https://bugs.debian.org/739936Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
-
Luca Barbato authored
-
Luca Barbato authored
-
Luca Barbato authored
-
Luca Barbato authored
-
- 22 Nov, 2013 3 commits
-
-
Martin Storsjö authored
Signed-off-by: Martin Storsjö <martin@martin.st>
-
Zhang Rui authored
In RFC 2616, this was explicitly said to be an absolute URL, while in an upcoming draft [1] it is allowed to be relative as well. [1] http://tools.ietf.org/html/draft-ietf-httpbis-p2-semantics-25#section-7.1.2Signed-off-by: Martin Storsjö <martin@martin.st>
-
Martin Storsjö authored
This was due to a copypaste oversight. Signed-off-by: Martin Storsjö <martin@martin.st>
-
- 14 Oct, 2013 1 commit
-
-
Michael Niedermayer authored
This makes sure we don't send the Except: 100-continue header if no authentication credentials have been provided. Signed-off-by: Martin Storsjö <martin@martin.st>
-
- 13 Oct, 2013 2 commits
-
-
Martin Storsjö authored
Inspired by a patch by Jakob van Bethlehem. But instead of doing an empty POST first to trigger the WWW-Authenticate header (which would succeed if no auth actually was required), add an Expect: 100-continue header, which is meant to be used exactly for cases like this. The header is added if doing a post, and the user has specified authentication but we don't know the auth method yet. Not all common HTTP servers support the Expect: 100-continue header, though, so we only try to use it when it really is needed. The user can request it to be added for other POST requests as well via an option - which would allow the caller to know immediately that the POST has failed (e.g. if no auth was provided but the server required it, or if the target URL simply doesn't exist). This is only done for write mode posts (e.g. posts without pre-set post_data) - for posts with pre-set data, we can just redo the post if it failed due to 401. Signed-off-by: Martin Storsjö <martin@martin.st>
-
Martin Storsjö authored
The default is to autodetect the auth method. This does require one extra request (and also closing and reopening the http connection). For some cases such as HTTP POST, the autodetection is not handled properly (yet). No option is added for digest, since this method requires getting nonce parameters from the server first and can't be used straight away like Basic. Signed-off-by: Martin Storsjö <martin@martin.st>
-
- 26 Sep, 2013 1 commit
-
-
Martin Storsjö authored
When passing a dict to the nested protocol, it will consume the used options from it, so a separate copy needs to be used when reopening the connection multiple times. Signed-off-by: Martin Storsjö <martin@martin.st>
-
- 28 Jul, 2013 1 commit
-
-
Zhang Rui authored
Derived from VLC's http module. Original authors: Antoine Cellerier <dionoea@videolan.org> Sébastien Escudier <sebastien-devel@celeos.eu> Rémi Duraffort <ivoire@videolan.org> Rémi Denis-Courmont <remi@remlab.net> Francois Cartegnie <fcvlcdev@free.fr> Normally, http servers shouldn't send this to us since we don't advertise it with an Accept-Encoding header, but some servers still do it anyway. Signed-off-by: Martin Storsjö <martin@martin.st>
-
- 07 Mar, 2013 1 commit
-
-
Reimar Döffinger authored
Make sure the behavior does not change with the locale. Signed-off-by: Martin Storsjö <martin@martin.st>
-
- 27 Feb, 2013 1 commit
-
-
Martin Storsjö authored
The handling of the environment variable no_proxy, present since one of the initial commits (de6d9b64), is inconsistent with how many other applications and libraries interpret this variable. Its bare presence does not indicate that the use of proxies should be skipped, but it is some sort of pattern for hosts that does not need using a proxy (e.g. for a local network). As investigated by Rudolf Polzer, different libraries handle this in different ways, some supporting IP address masks, some supporting arbitrary globbing using *, some just checking that the pattern matches the end of the hostname without regard for whether it actually is the right domain or a domain that ends in the same string. This simple logic should be pretty similar to the logic used by lynx and curl. Signed-off-by: Martin Storsjö <martin@martin.st>
-
- 09 Oct, 2012 1 commit
-
-
Janne Grunau authored
Fixes CID700730.
-