Commit graph

44 commits

Author SHA1 Message Date
Thulinma
6eec3661ca Add support for non-URL-compatible parameter parsing (taking + to not mean space, not encoding as such either) and uses it for RTMP auth 2024-07-03 12:02:53 +02:00
Thulinma
8b8a28c4ec Added some HTTP parser unit tests, fixed HTTP support for zero content length, added gcovr file for coverage reports 2023-07-17 18:22:03 +02:00
Thulinma
c979acff52 Fixing all of the things. 😩 2023-04-10 14:15:00 +02:00
Thulinma
bf15ec6741 HTTP backport
Change-Id: Iaa33c15bbd19b000b0bc8c5389e95109938c2e48
2023-04-10 14:12:54 +02:00
Marco van Dijk
8ac486b815 Completed new sessions system
Co-authored-by: Thulinma <jaron@vietors.com>
2022-10-05 03:13:52 +02:00
Thulinma
9953cd6ee2 Generic HTTP handler
# Conflicts:
#	src/output/output_mp4.cpp
#	src/output/output_mp4.h
2021-10-19 22:29:41 +02:00
DDVTech
fccf66fba2 Restyle 2021-10-19 22:29:40 +02:00
Thulinma
3aeebd1a4a Fixed HTTP::Parser support for chunked transfer and HTTP/1.0 unknown body size 2020-09-24 20:01:44 +02:00
Thulinma
35e3fb4bca HTTP::Downloader::post() now supports pointers+sizes besides only std::strings. 2020-03-12 12:24:29 +01:00
Ramoe
4ed5dd21e3 Added callback support to HTTP parser 2020-03-09 19:59:29 +01:00
Thulinma
793f6f7809 Split HTTP namespace up into http_parser.h and url.h, since the URL library can be useful stand-alone as well. 2020-02-28 16:39:24 +01:00
Thulinma
cc9e970ea3 More backports from Pro edition, among which HTTPS/TLS support 2019-07-13 14:23:59 +02:00
Thulinma
917ce2d452 Fixed Downloader class progress callbacks, added HTTP::Parser progress calculation function. 2019-05-23 12:24:41 +02:00
Thulinma
61d116e2f3 Added HTTP::URL::getExt function 2018-05-09 09:41:51 +02:00
Thulinma
2e65c1e431 Added HTTP::URL::getFilePath() 2018-05-08 11:35:39 +02:00
Thulinma
ce9aae3095 HTTP parser updates to Digest auth and support for getProxyUrl() for proxying, SendRequest with payload by reference. 2017-11-01 16:41:21 +01:00
Thulinma
c22a3c6e0f Added authentication support to HTTP library 2017-10-24 13:59:06 +02:00
Thulinma
047aebdb27 URL parser fixes/improvements 2017-10-24 13:58:56 +02:00
Thulinma
74acdedeb2 Added HTTP::Downloader class 2017-07-22 18:51:11 +02:00
Thulinma
0afbaaaa41 Many improvements and fixes to HTTP::URL class 2017-07-05 13:44:41 +02:00
Thulinma
35fbafc831 Added arguments support to URL parser 2017-01-31 14:39:33 +01:00
Thulinma
e57cf42352 Added generic URL parsing class 2016-09-22 09:42:23 +02:00
Thulinma
6d33ba2cbd Extracted HTTP::parseVars function from HTTP::Parser, for easier reuse. 2016-09-22 09:42:15 +02:00
Thulinma
e8e97adb49 Improved HTTP library GetHeader/GetVar functions, added hasHeader function 2016-09-02 14:48:19 +02:00
Thulinma
6816b6074c Fixed support for non-HTTP-compliant devices pulling HTTP TS output 2016-07-26 13:20:13 +02:00
Thulinma
4c9c6fa7ba Backported various little edits from Pro edition. 2016-06-02 14:07:21 +02:00
Thulinma
66dc2dc0cb Encoding fixes:
- base64 library renamed to encode library
- Moved urlencode/urldecode functions from HTTP library to encode library
- Moved hex/unhex functions from HTTP library to encode library
- Added urldecode support to RTMP urls, fixing XSplit wildcard stream support
2016-04-14 12:03:40 +02:00
Erik Zandvliet
3c48a6c03c Embedding of flash players 2016-01-26 14:14:12 +01:00
Thulinma
a3bf393bea Added generic CORS header adder, now used in controller, HLS output and internal HTTP handler. 2015-05-12 11:23:00 +02:00
Thulinma
f9201cbf9a Fixes to HTTP parser lib, DTSCMeta keysizes, MP4 headers and 4+GiB MP4 file output by Oswald de Bruin 2015-04-02 16:22:52 +02:00
Thulinma
1ca3775552 Fixed preservation of HTTP headers when using StartResponse 2015-03-04 23:42:08 +01:00
Thulinma
d93fb0c4dc Added support for buffering in HTTP library. Turned off by default. 2015-02-18 15:01:12 +01:00
Thulinma
d6fb4baff4 Generalized TS PMT generation, fixed various minor problems with MP4 and HTTP. 2015-02-12 14:17:33 +01:00
Erik Zandvliet
701b421d9c Fix for sending non-chunked when connection:close is encountered 2014-11-13 16:56:44 +01:00
wouter spruit
d0f2f78517 overloaded BuildReponse in http_parser 2014-09-22 16:17:20 +02:00
Thulinma
8c01ec8897 Such style. (Code style unification) 2014-06-18 10:39:27 +02:00
Thulinma
ca07e477fe HTTP library usability improvements. 2013-08-23 00:04:38 +02:00
Thulinma
f21ce291ae Added many helper functions to HTTP library, optimizing and fixing support for certain cases (among which chunked encoding). 2013-08-21 11:59:43 +02:00
Thulinma
9228198097 Fixed a FLV header bug causing both video and audio to always be mentioned even when not present, added header-only parsing support to HTTP library. 2013-06-03 15:50:21 +02:00
Thulinma
7dbbc6c892 Implemented chunked transfer encoding support. 2012-12-31 19:13:04 +01:00
Thulinma
38ef8704f8 Global cleanups and standardization of code style. 2012-12-11 11:03:33 +01:00
Thulinma
c6bb67c4b9 Improvements to HTTP::Parser - now builds responses and requests by reference and has getUrl() method to get the URL without URI-parameters. 2012-08-31 16:56:50 +02:00
Thulinma
e7e37105b6 Several stability improvements and optimizations for HTTP handling and parsing (also, should fix HTTP Progressive under Windows - again). 2012-06-12 10:11:58 +02:00
Thulinma
ad410a2e79 Convert to autotools build system for cleanness (part1). 2012-05-08 19:19:42 +02:00
Renamed from util/http_parser.h (Browse further)