Commit graph

30 commits

Author SHA1 Message Date
fgenesis
f5a04dd9d4 Better urlencode compatibility 2015-10-02 19:35:22 +02:00
fgenesis
9227cc114a Fix HTTP->HTTPS redirect, local redirect, and some other issues. Accept untrusted certs for now. 2015-10-02 17:44:54 +02:00
fgenesis
8dd0c35416 Fix super broken error handling 2015-10-02 16:03:28 +02:00
fgenesis
3630b020a3 Better use 200-205 as success, not only 200 2015-10-02 03:01:47 +02:00
fgenesis
67e50eb760 First implementation of POST 2015-10-02 03:01:25 +02:00
fgenesis
e7e8ee5e65 forgot one 2015-10-02 01:38:23 +02:00
fgenesis
997a9e4ae0 add URLEncode() 2015-10-02 01:36:26 +02:00
fgenesis
2d32a41975 Compile fix for newer polarssl/mbedtls headers 2015-10-02 01:02:43 +02:00
fgenesis
fbff82e607 Linux fix attempt (it used to work, wtf!) 2015-10-02 00:45:23 +02:00
fgenesis
5d43abaf39 Forgot something 2015-10-02 00:14:33 +02:00
fgenesis
895d1cf633 less debug spam 2015-10-01 22:12:05 +02:00
fgenesis
cf2e45aa84 fuck POSIX; errno shall die in a fire 2015-10-01 22:11:10 +02:00
fgenesis
f3d366320f Apparently we should use errno on *nix... 2015-10-01 22:01:09 +02:00
fgenesis
238a7f3208 Make HTTP->HTTPS redirection more robust 2015-10-01 21:16:52 +02:00
fgenesis
0060208acb Merge branch 'master' into ssl. Also attempt to sanitize send failure.
Conflicts:
	minihttp.cpp
2015-10-01 19:59:26 +02:00
fgenesis
19923844a0 Fix build on FreeBSD (thx Jan Beich), avoid sending SIGPIPE in *nix. 2015-10-01 13:49:53 +02:00
fgenesis
68e6e1ecd2 Allow supplying custom headers in HTTP request 2015-04-29 20:49:17 +02:00
fgenesis
587deb0e0e experimental (unsafe) SSL support using polarssl/mbedtls. also cmake cleanup. 2015-04-24 00:47:22 +02:00
fgenesis
f71e1cc396 Fix possible crash in HTTP header parsing code 2014-11-20 03:22:03 +01:00
fgenesis
acc6d97bf3 Remove unnecessary #undef 2014-03-27 02:30:42 +01:00
fgenesis
677000b533 Merge pull request from meh2481/master
Fix include order for MinGW Windows
2014-03-27 02:25:32 +01:00
Mark Hutcheson
e95496cc62 Fix include order for MinGW Windows 2014-03-26 21:12:06 -04:00
fgenesis
6fc6bbd1fb Do not call _OnRequestDone() and _OnClose() if following a redirect and autofollow is on.
This makes the redirect fully transparent and invisible for the outside.
2012-06-01 18:49:40 +02:00
fgenesis
d8bcc2f830 oops, typo that prevented non-win32 compile 2012-05-24 05:14:06 +02:00
fgenesis
7c56a6606c Finish incomplete requests if the socket gets closed unexpectedly 2012-05-23 20:51:24 +02:00
fgenesis
31e904abbb More fixes, added sample code. 2012-03-31 02:40:30 +02:00
fgenesis
c9cd4ad790 API refinement, cleanups, bugfixes.
Proper per-request (re-)connecting if redirected with a 3xx code.
2012-03-31 00:33:11 +02:00
fgenesis
56b5e2d85c cleaned code, initial status code handling. Following 3xx redirect works. 2012-03-30 06:18:54 +02:00
fgenesis
472886b39e WTFPL + a bit of reformatting 2012-03-30 04:04:50 +02:00
fgenesis
ab49748af7 Initial commit. Basic HTTP working, but status codes are not handled yet. 2012-03-30 03:27:54 +02:00