summaryrefslogtreecommitdiffstats
path: root/libmpdemux/http.c
Commit message (Collapse)AuthorAgeFilesLines
* Convert all if(verbose>X) to mp_msg_test calls.diego2006-03-241-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17933 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix base64 encoding for basic auth according to RFC.reimar2006-03-081-4/+8
| | | | | | | Patch by Jeff D'Angelo (jcd+mplayer at psu edu). git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17779 b3059339-0415-0410-9bf9-f77b7e298cf2
* Patch by Stefan Huehner / stefan % huehner ! org \rathann2006-02-091-1/+1
| | | | | | | | | | | | | | | | | | | | | | patch replaces '()' for the correct '(void)' in function declarations/prototypes which have no parameters. The '()' syntax tell thats there is a variable list of arguments, so that the compiler cannot check this. The extra CFLAG '-Wstrict-declarations' shows those cases. Comments about a similar patch applied to ffmpeg: That in C++ these mean the same, but in ANSI C the semantics are different; function() is an (obsolete) K&R C style forward declaration, it basically means that the function can have any number and any types of parameters, effectively completely preventing the compiler from doing any sort of type checking. -- Erik Slagter Defining functions with unspecified arguments is allowed but bad. With arguments unspecified the compiler can't report an error/warning if the function is called with incorrect arguments. -- Måns Rullgård git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17567 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add another content-type for aac audio in shoutcast streamsrtognimp2005-11-081-1/+1
| | | | | | | Fixes http://www.digitallyimported.com/aacplus/goapsy.pls git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16949 b3059339-0415-0410-9bf9-f77b7e298cf2
* fix typos: aslo->also, falback->fallback (they were just too annoying *g*)reimar2005-11-061-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16933 b3059339-0415-0410-9bf9-f77b7e298cf2
* Use correct demuxer type for aac in shoutcast streamsrtognimp2005-11-051-0/+2
| | | | | | | | (content-type="audio/aacp"). Fixes http://160.79.128.40:7040 (it does not work with internal faad) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16918 b3059339-0415-0410-9bf9-f77b7e298cf2
* another url_free that shouldn't be commented out.reimar2005-09-281-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16615 b3059339-0415-0410-9bf9-f77b7e298cf2
* memleak fixes when invalid http url specified.reimar2005-09-061-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16418 b3059339-0415-0410-9bf9-f77b7e298cf2
* Some ICY servers (e.g. http://broadcast.spnet.net:8000/darikhigh) do not setreimar2005-07-241-1/+1
| | | | | | | the protocol correctly, so look for icy-metaint in the response instead. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16079 b3059339-0415-0410-9bf9-f77b7e298cf2
* Multiple unsv/scast bug fixes.reimar2005-07-231-8/+14
| | | | | | | | | * use recv instead of read for MinGW compatibility * detect EOF more reliably * use ultravox only for unsv:// instead of trying autodetection git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16071 b3059339-0415-0410-9bf9-f77b7e298cf2
* Forgotten doxygen commentsreimar2005-07-201-0/+15
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16033 b3059339-0415-0410-9bf9-f77b7e298cf2
* Ultravox improvements according to specs (didn't know they existed *g*)reimar2005-07-201-3/+6
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16032 b3059339-0415-0410-9bf9-f77b7e298cf2
* SHOUTcast and ultravox supportreimar2005-07-191-2/+146
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16014 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove code that is already done by fixup_network_stream_cache.reimar2005-06-161-9/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15733 b3059339-0415-0410-9bf9-f77b7e298cf2
* Change header order to avoid compile error because of STREAM_SEEKreimar2005-06-021-7/+9
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15615 b3059339-0415-0410-9bf9-f77b7e298cf2
* ported all network streams to the new APInicodvb2005-05-291-0/+333
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15586 b3059339-0415-0410-9bf9-f77b7e298cf2
* free http field_name to fix memleakreimar2005-01-111-0/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14461 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix url escaping and avoid double escapertognimp2004-05-011-2/+2
| | | | | | | Patch by adland, approved by Bertrand Baudet git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12392 b3059339-0415-0410-9bf9-f77b7e298cf2
* remote exploitable heap overflow fix by ("blexim" <blexim at hush dot com>)michael2004-03-301-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12084 b3059339-0415-0410-9bf9-f77b7e298cf2
* Removed hard coded value for the length of the header separator.bertrand2002-11-131-4/+6
| | | | | | | Used the value previous detected. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8180 b3059339-0415-0410-9bf9-f77b7e298cf2
* Check if realloc failed on http_hdr->buffer instead of ptr in ↵bertrand2002-09-071-2/+2
| | | | | | | | | http_response_append, and got rid of ptr which wasn't used anymore. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7305 b3059339-0415-0410-9bf9-f77b7e298cf2
* - simpler http_response_append (uses realloc())arpi2002-09-061-16/+8
| | | | | | | | | | - http_response_append addes extra 0 byte to close teh string (some functions like http_is_header_entire() use standard string functions like strstr which requires trailing zero) - check for NULL string in http_is_header_entire() git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7294 b3059339-0415-0410-9bf9-f77b7e298cf2
* Added base64 encoderbertrand2002-06-231-0/+100
| | | | | | | Added http basic authentication git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6515 b3059339-0415-0410-9bf9-f77b7e298cf2
* Removed unecessary malloc and memcpy.bertrand2002-06-201-9/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6466 b3059339-0415-0410-9bf9-f77b7e298cf2
* Convert printf to mp_msg in the network layeralbeu2002-04-301-28/+29
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5916 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fixed the http response parser when the http header only has the HTTPbertrand2002-02-231-1/+2
| | | | | | | | answer and no field. Fixed some compiler warnings. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4817 b3059339-0415-0410-9bf9-f77b7e298cf2
* Modified the output of the http_debug function.bertrand2002-01-231-6/+12
| | | | | | | Fixed a bug in the reading of the "reason answer" git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4312 b3059339-0415-0410-9bf9-f77b7e298cf2
* 10l...arpi2001-12-271-1/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3786 b3059339-0415-0410-9bf9-f77b7e298cf2
* warning fix == cleanuparpi2001-12-271-3/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3785 b3059339-0415-0410-9bf9-f77b7e298cf2
* Handle broken server that doesn't send CRLF but jusr LF.bertrand2001-12-161-11/+14
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3515 b3059339-0415-0410-9bf9-f77b7e298cf2
* Made the HTTP request escaped the url.bertrand2001-12-141-7/+26
| | | | | | | This now allow for example the spaces in the URL. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3498 b3059339-0415-0410-9bf9-f77b7e298cf2
* Removed the field number limitation.bertrand2001-11-201-26/+54
| | | | | | | We can add as much field as we want. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3040 b3059339-0415-0410-9bf9-f77b7e298cf2
* Added ASF http server streaming (Not mms streaming).bertrand2001-10-261-1/+1
| | | | | | | | Fixed one bug in the ASF mms streaming. Fixed a typo in http. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2490 b3059339-0415-0410-9bf9-f77b7e298cf2
* libdemuxer...arpi2001-10-201-0/+296
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2311 b3059339-0415-0410-9bf9-f77b7e298cf2