Commit Graph

49 Commits

Author SHA1 Message Date
tastytea 57238020a3
Do not return lowercased header, but the original one. 2019-10-07 23:06:15 +02:00
tastytea 2fa3bff89c
Re-add support for getting headers. 2019-10-06 14:35:06 +02:00
tastytea ff43aea4ab
Add CentOS 7 workaround.
continuous-integration/drone/push Build is passing Details
2019-09-20 03:55:13 +02:00
tastytea 08ae30835c
Confirmed that proxies work, added debug message with proxy info.
continuous-integration/drone/push Build is passing Details
2019-08-30 08:06:48 +02:00
tastytea 707771c7bf
Bugfix: Do not try to set proxy in parent class.
continuous-integration/drone/push Build is passing Details
2019-08-25 05:27:00 +02:00
tastytea 6b070dec98
Percent-decode proxy username and password. 2019-08-25 05:08:37 +02:00
tastytea d2a4d835de
Moved set_proxy() to API::http().
continuous-integration/drone/push Build is failing Details
API::set_proxy() calls API::http::set_proxy(). Deleted API::get_proxy().
2019-08-25 04:50:08 +02:00
tastytea acbcb6224e
Mastodon::http inherits proxy config from parent.
continuous-integration/drone/push Build is passing Details
Ff set_proxy() is called, _http.inherit_proxy() is called.
2019-08-21 11:06:41 +02:00
tastytea 41a580b32b
Rewrite parsing of http_proxy environment variable.
The regex matches host, port, username and password.
2019-08-21 10:42:59 +02:00
tastytea 915c85e9e9
Changed error codes and introduced error constants.
continuous-integration/drone/push Build is passing Details
2019-08-21 08:00:46 +02:00
tastytea 5ddea09924
Repair domain-change detection on HTTP redirect.
Also added debug statements.
2019-08-21 07:28:28 +02:00
tastytea c48c1a66f2
Removed and replaced last bits of curlpp.
continuous-integration/drone/push Build is passing Details
2019-08-21 04:54:17 +02:00
tastytea 62d28c523a
Updated TODOs and FIXMEs. 2019-08-21 04:20:25 +02:00
tastytea 12c0b896db
Use references for HTMLForm, where possible.
HTMLForm can't be copied, so I'm returning using unique_ptr in maptoformdata()
and references everywhere else.
2019-08-21 03:53:51 +02:00
tastytea ecb49c7e00
Actually send forms. 2019-08-21 03:36:25 +02:00
tastytea bc58a977f0
Add more debug statements around forms. 2019-08-21 03:35:44 +02:00
tastytea f97608ecfa
[WIP] Switch from curlpp to POCO.
Compilable, but untested and unfinished.
2019-08-20 18:13:51 +02:00
tastytea 231663b07e
Changed license to AGPL3.
continuous-integration/drone/push Build is passing Details
2019-08-15 22:53:38 +02:00
tastytea c2eff2b09e
Print remaining content of the stream in debug mode.
the build was successful Details
2019-04-10 21:12:13 +02:00
tastytea 031c0c3e22
Catch path by value in request_stream().
the build was successful Details
2019-04-10 21:04:04 +02:00
tastytea 09ecd8e5e4
Report errors with get_stream() in-stream.
the build was successful Details
2019-04-10 20:52:36 +02:00
tastytea bde8d11706
Revamped streams. 2019-04-10 02:25:55 +02:00
tastytea ccedfba4af
Added GET_STREAM to switch in http::request(). 2019-04-09 21:58:02 +02:00
tastytea 6a01efc6aa
Moved API::http::method to http_method. 2019-04-05 14:40:54 +02:00
tastytea 57ec1fd23a
Cleaned up whitespace. 2019-03-30 22:14:58 +01:00
tastytea 9f21c5811a
Changed error codes for curlpp errors. 2019-03-02 11:53:02 +01:00
tastytea cbb1e18b0c
Replaced return types for get_stream, patch, post, put, del
the build failed Details
2019-02-22 12:36:03 +01:00
tastytea e034dbc299
Replaced return codes in API::http. 2019-02-22 12:03:28 +01:00
tastytea c8baf41582
Renamed macros.hpp to debug.hpp. 2019-02-22 11:35:06 +01:00
tastytea 318221a2e6
Changed uint_fast16_t to uint16_t and uint_fast64_t to uint64_t. 2019-02-22 08:29:54 +01:00
tastytea 24687cba07
Removed deprecated code. 2019-02-22 08:23:26 +01:00
tastytea ee82d35357
Removed const where it has no effect.
the build was successful Details
2018-12-04 11:26:28 +01:00
tastytea e3c765ea5b
deleted useless debug statements 2018-10-08 01:45:46 +02:00
tastytea e372614068
Added error 16: Timeout 2018-10-08 01:33:09 +02:00
tastytea b9603587c5
Added proxy to get_stream() 2018-05-26 23:48:03 +02:00
tastytea 86a614dd61
Added proxy support 2018-05-26 22:34:31 +02:00
tastytea d342edfd21
added http::callback_progress() to cancel transfers quicker and more reliably 2018-05-20 12:29:04 +02:00
tastytea 273a92c4ab
Added mutex 2018-05-17 17:59:44 +02:00
tastytea 56cfe7e2ce
replaced http::abort_stream() with http::cancel_stream() 2018-05-13 16:00:27 +02:00
tastytea 53c8bb7b4c
remoced errors 20-25 2018-04-10 10:47:54 +02:00
tastytea bbdcf70efd
Added support for passing exceptions 2018-04-10 10:17:46 +02:00
tastytea a7b714259b
Added errors: SSL, timeout 2018-04-09 17:55:11 +02:00
tastytea 62826f60cf
Fixed bug: answer contained the headers on HTTP error 2018-04-03 00:52:06 +02:00
tastytea 69fd5138ee
added error 23 2018-04-02 02:29:39 +02:00
tastytea 844fb2c577
Replaced uint16_t with uint_fast16_t, refactoring 2018-04-02 01:47:44 +02:00
tastytea cd87269b59
Don't send Connection: close for streaming requests 2018-03-15 12:45:49 +01:00
tastytea a9080f8cda
changed request_sync() to request() 2018-03-13 14:37:44 +01:00
tastytea c4a509c42e
semantic clarifications 2018-01-10 18:19:19 +01:00
tastytea be6fca69fe
The first GET requests are working. 2018-01-09 22:12:11 +01:00