summaryrefslogtreecommitdiff
path: root/libavformat/http.c
Commit message (Collapse)AuthorAge
...
* avio: Add an AVIOInterruptCB parameter to ffurl_open/ffurl_allocMartin Storsjö2011-11-13
| | | | | Change all uses of these function to pass the relevant callback on.
* http: Handle proxy authenticationMartin Storsjö2011-11-11
| | | | | | | | Tested with both Basic and Digest authentication, and tested with both proxy authentication and authentication for the requested resource at the same time. Signed-off-by: Martin Storsjö <martin@martin.st>
* http: Print an error message for Authorization Required, tooMartin Storsjö2011-11-11
| | | | | | | | | | | The error was hidden before, to avoid showing an error on the first request where no auth has been provided, when the server indicates which authentication method to use. Now the error is printed if an authentication method was used, but failed. Signed-off-by: Martin Storsjö <martin@martin.st>
* http: Don't add a Range: bytes=0- header for POSTMartin Storsjö2011-11-10
| | | | | | That header simply doesn't make sense in that context. Signed-off-by: Martin Storsjö <martin@martin.st>
* http: Change the chunksize AVOption into chunked_postMartin Storsjö2011-11-10
| | | | | | | | | | | | | | | | | The chunksize internal variable has two different uses - for reading, it's the amount of data left of the current chunk (or -1 if the server doesn't send data in chunked mode), where it's only an internal state variable. For writing, it's used to decide whether to enable chunked encoding (by default), by using the value 0, or disable chunked encoding (value -1). This, while consistent, doesn't make much sense to expose as an AVOption. This splits the usage of the internal variable into two variables, chunksize which is used for reading (as before), and chunked_post which is the user-settable option, with the values 0 and 1, where 1 is default. Signed-off-by: Martin Storsjö <martin@martin.st>
* http: Add encoding/decoding flags to the AVOptionsAnton Khirnov2011-11-10
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* http: use different classes for http and https.Anton Khirnov2011-11-10
|
* http: Change an error log message to a warningMartin Storsjö2011-11-10
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* http: Remove the now unused ff_http_set_headers custom functionMartin Storsjö2011-11-10
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* http: Make custom headers settable via an AVOptionMartin Storsjö2011-11-10
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* Replace all usage of strcasecmp/strncasecmpReimar Döffinger2011-11-06
| | | | | | | | | | | All current usages of it are incompatible with localization. For example strcasecmp("i", "I") != 0 is possible, but would break many of the places where it is used. Instead use our own implementations that always treat the data as ASCII. Signed-off-by: Martin Storsjö <martin@martin.st>
* http: Remove the custom function for disabling chunked postsMartin Storsjö2011-11-05
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* avformat: Add the https protocolMartin Storsjö2011-11-05
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* Replace outdated references to ffmpeg tool with avconv.Diego Biurrun2011-11-02
|
* AVOptions: rename FF_OPT_TYPE_* => AV_OPT_TYPE_*Anton Khirnov2011-10-12
|
* http: Consider the stream as seekable if the reply contains Accept-Ranges: bytesStefan Fritsch2011-09-04
| | | | | | | | | | | | The initial request contains "Range: 0-", which servers normally have responded with "HTTP/1.1 206 Partial Content" reply with a Content-Range header, which was used as indicator for seekability. Apache, since 2.2.20, responds with "HTTP/1.1 200 OK" for these requests, which is more friendly to caches and proxies, but the seekability still is indicated via the Accept-Ranges: bytes header. Signed-off-by: Martin Storsjö <martin@martin.st>
* lavf: use designated initializers for AVClasses.Anton Khirnov2011-05-17
|
* AVOptions: make default_val a union, as proposed in AVOption2.Anton Khirnov2011-05-10
| | | | This breaks API and ABI.
* libavformat: Make protocols pass URLContext as log context where availableMartin Storsjö2011-04-20
| | | | | | | Since the libavformat major bump, URLContext contains an AVClass, making it a usable log context. Signed-off-by: Martin Storsjö <martin@martin.st>
* avio: remove AVIO_* access symbols in favor of new AVIO_FLAG_* symbolsStefano Sabatini2011-04-19
| | | | | | | | Make AVIO_FLAG_ access constants work as flags, and in particular fix the behavior of functions (such as avio_check()) which expect them to be flags rather than modes. This breaks API.
* lavf: use designated initializers for all protocolsAnton Khirnov2011-04-08
| | | | | This is more readable and makes it easier to reorder URLProtocol members.
* avio: AVIO_ prefixes for URL_ open flags.Anton Khirnov2011-04-07
|
* avio: make url_get_file_handle() internal.Anton Khirnov2011-04-04
|
* avio: make url_close() internal.Anton Khirnov2011-04-04
|
* avio: make url_write() internal.Anton Khirnov2011-04-04
|
* avio: make url_read() internal.Anton Khirnov2011-04-04
|
* avio: make url_open() internal.Anton Khirnov2011-04-04
|
* http: header field names are case insensitiveTyler2011-03-28
| | | | | | | | | Amazon S3 sends header field names all lowercase. This is actually acceptable according to the HTTP standard. http://tools.ietf.org/html/rfc2616#section-4.2 Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* Replace FFmpeg with Libav in licence headersMans Rullgard2011-03-19
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* Replace dprintf with av_dlogLuca Barbato2011-01-29
| | | | dprintf clashes with POSIX.1-2008
* Prefix all _demuxer, _muxer, _protocol from libavformat and libavdevice.Diego Elio Pettenò2011-01-26
| | | | | This also lists the objects from those two libraries as internal (by adding the ff_ prefix) so that they can then be hidden via linker scripts.
* http: Handle 301/307 redirect requests, tooMike Edenfield2010-11-02
| | | | | | Patch by Mike Edenfield, kutulu at kutulu dot org Originally committed as revision 25651 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Move AVOptions from libavcodec to libavutilMichael Niedermayer2010-09-26
| | | | Originally committed as revision 25210 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Move the definition of the maximum url size for static buffers to internal.hMartin Storsjö2010-08-19
| | | | Originally committed as revision 24833 to svn://svn.ffmpeg.org/ffmpeg/trunk
* http: Return EOF at the end of the content even if the connection isn't closedMartin Storsjö2010-08-09
| | | | | | We do request Connection: close, but some servers ignore it. Originally committed as revision 24746 to svn://svn.ffmpeg.org/ffmpeg/trunk
* http: Log a warning when receiving an error codeMartin Storsjö2010-07-16
| | | | Originally committed as revision 24266 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make ff_url_split() publicMåns Rullgård2010-06-27
| | | | | | | ff_url_split() is retained as an alias, as it was used by ffserver, to avoid breaking ABI compatibility with it. Originally committed as revision 23822 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make the http protocol open the connection immediately in http_open againMartin Storsjö2010-06-22
| | | | | | | Also make the RTSP protocol use url_alloc and url_connect instead of relying on the delay open behaviour. Originally committed as revision 23710 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add an AVClass to the HTTPContextMartin Storsjö2010-06-22
| | | | Originally committed as revision 23709 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Allocate the HTTPContext through URLProtocol.priv_data_sizeMartin Storsjö2010-06-22
| | | | Originally committed as revision 23708 to svn://svn.ffmpeg.org/ffmpeg/trunk
* HTTP: Add a method for initializing the authentication state from another ↵Martin Storsjö2010-06-21
| | | | | | connection Originally committed as revision 23685 to svn://svn.ffmpeg.org/ffmpeg/trunk
* ReindentMartin Storsjö2010-06-21
| | | | Originally committed as revision 23684 to svn://svn.ffmpeg.org/ffmpeg/trunk
* HTTP: Compact the code for writing chunked post dataMartin Storsjö2010-06-21
| | | | Originally committed as revision 23683 to svn://svn.ffmpeg.org/ffmpeg/trunk
* HTTP: Get rid of the is_chunked variable, use the chunksize variable insteadMartin Storsjö2010-06-21
| | | | Originally committed as revision 23682 to svn://svn.ffmpeg.org/ffmpeg/trunk
* HTTP: Clarify a commentMartin Storsjö2010-06-21
| | | | Originally committed as revision 23681 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Reset chunksize back to zero (= no chunked encoding) after each new openRonald S. Bultje2010-06-20
| | | | | | | | connection (e.g. a seek). This fixes the theoretical case where a server sends a file first using chunked encoding, and then using non-chunked encoding. Originally committed as revision 23665 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Use url_write(), not http_write(), for sending the HTTP headers. This preventsRonald S. Bultje2010-06-20
| | | | | | | them from being sent using chunked encoding (I don't think this ever happened, but either way it would be wrong). Originally committed as revision 23664 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make sure the http protocol handler returns errors if a delayed open had failedMartin Storsjö2010-06-09
| | | | Originally committed as revision 23548 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Initialize the http connection in http_seek, tooMartin Storsjö2010-06-09
| | | | | | | | This makes url_fsize return correct values for delay opened connections that have not yet been initialized. This fixes using the image2 demuxer with http sources. Originally committed as revision 23546 to svn://svn.ffmpeg.org/ffmpeg/trunk
* ReindentMartin Storsjö2010-06-08
| | | | Originally committed as revision 23534 to svn://svn.ffmpeg.org/ffmpeg/trunk