summaryrefslogtreecommitdiff
path: root/libavformat/http.c
Commit message (Collapse)AuthorAge
...
* 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
* Add support for disabling chunked transfer encoding for the http protocolJosh Allmann2010-06-08
| | | | | | Patch by Josh Allmann, josh dot allmann at gmail Originally committed as revision 23531 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix handling of errors in the http protocolMartin Storsjö2010-06-08
| | | | | | | | | If http_connect fails, we've already stored the new connection handle in s->hd, so clear it so http_close won't double-free it. 10l to me for not spotting it during review Originally committed as revision 23529 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix bugs in the http custom header handlingMartin Storsjö2010-06-08
| | | | | | | | | Initialize the buffer av_strlcatf writes into. Add the dash at the end of the Range header. 10l to me for not spotting it earlier Originally committed as revision 23528 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add the capability to write custom HTTP headersJosh Allmann2010-06-08
| | | | | | Patch by Josh Allmann, joshua dot allmann at gmail Originally committed as revision 23526 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Modify the behaviour of http_open to implicitly delay connection establishmentJosh Allmann2010-06-08
| | | | | | | | The connection is made on the first http_read, http_write or http_seek. Patch by Josh Allmann, joshua dot allmann at gmail Originally committed as revision 23525 to svn://svn.ffmpeg.org/ffmpeg/trunk
* http: Set http_code to 200 when doing a POSTMartin Storsjö2010-06-04
| | | | | | This avoids reading and comparing uninitialized memory. Originally committed as revision 23464 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Declare the url_write buffer parameter as constMartin Storsjö2010-06-01
| | | | Originally committed as revision 23401 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Split out http authentication handling into a separate fileMartin Storsjö2010-03-24
| | | | | | This prepares for adding support for more authentication methods Originally committed as revision 22660 to svn://svn.ffmpeg.org/ffmpeg/trunk
* move ff_url_split() and ff_url_join() declarations to internal.hAurelien Jacobs2010-03-14
| | | | | | those functions are not part of the public API Originally committed as revision 22534 to svn://svn.ffmpeg.org/ffmpeg/trunk
* ReindentMartin Storsjö2010-03-08
| | | | Originally committed as revision 22322 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Rename url_split to ff_url_splitMartin Storsjö2010-03-08
| | | | | | Since this function isn't in the public API, it should have an ff_ prefix. Originally committed as revision 22321 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Use ff_url_join for assembling URLs, instead of snprintfMartin Storsjö2010-03-05
| | | | | | | | | This ensures proper escaping of numerical IPv6 addresses. The RTSP (de)muxer needs its own network initialization, since it isn't a protocol and url_open hasn't been called yet. Originally committed as revision 22226 to svn://svn.ffmpeg.org/ffmpeg/trunk
* restore old buffer content when seek failed in http protocol, fix issue #1631Baptiste Coudurier2010-01-13
| | | | Originally committed as revision 21208 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Reindent after r21166.Ronald S. Bultje2010-01-12
| | | | Originally committed as revision 21167 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Use chunked encoding for HTTP uploads. Patch by Tomas HärdinTomas Härdin2010-01-12
| | | | | | <$firstname.$lastname()codemill,se>. Originally committed as revision 21166 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add support for "chunked" data blocks. Patch by Peter Holik (peter holik at).Peter Holik2009-06-23
| | | | Originally committed as revision 19256 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Cosmetics : Use dprintf instead of printf.Peter Holik2009-06-06
| | | | | | Patch by Peter Holik < $firstname @ $lastname . at > Originally committed as revision 19126 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Cosmetics : Fix indentation after last commit.Jai Menon2009-06-06
| | | | Originally committed as revision 19125 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Introduce http_get_line and modify http_connect to use http_get_line.Peter Holik2009-06-06
| | | | | | Patch by Peter Holik <$firstname @ $lastname . at> Originally committed as revision 19124 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add url_get_file_handle(), which is used to get the file descriptorRonald S. Bultje2009-03-03
| | | | | | | | | | | associated with the I/O handle (e.g. the fd returned by open()). See "[RFC] rtsp.c EOF support" thread. There were previously some URI-specific implementations of the same idea, e.g. rtp_get_file_handles() and udp_get_file_handle(). All of these are deprecated by this patch and will be removed at the next major API bump. Originally committed as revision 17779 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Reduce allocated length of the HTTP authentication request field buffer, asRonald S. Bultje2009-03-03
| | | | | | | | | | | | | noticed by Stefano and Luca in the "[PATCH]RTSP Basic Authentication" mailinglist thread. av_base64_encode() was recently changed. The previous implementation required 12 extra bytes (ceil(len(src)/3.)*4+12), whereas the new one is guaranteed to fit in an exact buffer (ceil(len(src)/3.)*4), plus one extra byte for the trailing zero. This change fixes no bug, it just slightly decreases the amount of allocated memory. Originally committed as revision 17761 to svn://svn.ffmpeg.org/ffmpeg/trunk
* cosmetics: Remove pointless period after copyright statement non-sentences.Diego Biurrun2009-01-19
| | | | Originally committed as revision 16684 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove offset_t typedef and use int64_t directly instead.Diego Biurrun2008-10-03
| | | | | | | The name offset_t is easily confused with the standard off_t type and *_t is POSIX reserved namespace if any POSIX header is included. Originally committed as revision 15533 to svn://svn.ffmpeg.org/ffmpeg/trunk