Commit graph

428 commits

Author SHA1 Message Date
eidheim
7a1a23bf9c Fixes #126: unreachable code in http(s) examples 2017-05-30 19:05:20 +02:00
eidheim
4469de156b Fixed g++ error in Server::Request::parse_query_string 2017-05-27 09:44:00 +02:00
eidheim
550bbfe9d7 Finished query string parsing implementation (PR #109) 2017-05-27 09:07:13 +02:00
eidheim
e68488a157 Merge branch 'master' of https://github.com/harella1/Simple-Web-Server 2017-05-26 11:36:41 +02:00
Vladimir Venediktov
cfafbcbc7d Added support for request header Connection: keep-alive (see #123) 2017-05-06 09:05:37 +02:00
Santiago Castro
a859c42b41 Fix broken Markdown headings 2017-04-18 00:47:03 -03:00
ProTrack
e585a7a5bc If query string is present then cut it from the reqeust path so find resource won't fail 2017-02-27 10:13:33 +02:00
eidheim
6192c131ef Fixed #112: Client now supports Connection: close responses without Content-Length and Transfer-Encoding. Also supports HTTP 1.0 responses that does not specify content length 2017-02-24 19:16:15 +01:00
David Siroky
50ce7510ef remove locale dependent stof()
e.g. stof("1.1") might return 1.0 if the locale decimal delimiter is ","
2017-02-14 10:16:44 +01:00
ProTrack
d554c13db5 Travis CI build failed 2017-02-05 16:19:42 +02:00
ProTrack
a4dd2e6444 Added query string parsing and member to request 2017-02-05 16:01:00 +02:00
eidheim
de560e8b48 Renamed close_connection_after_send to close_connection_after_response, and changed the documentation of this variable slightly 2017-01-24 14:18:41 +01:00
Patrick Boettcher
600fbe39b2 Possible implementation for fixing #106 2017-01-24 13:23:33 +01:00
eidheim
91d01fb8ec Fixes #101: added Config::timeout_connect 2017-01-21 10:22:27 +01:00
Wei Dong
19627bbe6b Fixed Boost.Regex workaround in regex_orderable. Fixes #100 2017-01-11 11:37:48 +01:00
eidheim
f5e65bf422 Removed unnecessary public: 2017-01-02 17:19:59 +01:00
eidheim
fa8c381a4f Added warning to Server::resource 2017-01-02 12:52:37 +01:00
eidheim
8cdebfb612 Code simplification: got rid of opt_resource at minimal cost. Now utilise map instead of unordered map in resource and default_resource 2017-01-02 10:58:41 +01:00
eidheim
bfcb325472 Added on_upgrade for cases where one wants to handle connection upgrades by another library, for instanace Simple-WebSocket-Server 2017-01-01 14:34:42 +01:00
eidheim
549bc646bb Case insensitive header cleanup. Also cleanup and additions to parse_test 2016-12-31 10:34:03 +01:00
eidheim
ec5eda1521 Minor SocketServer<WSS> constructor cleanup 2016-12-30 10:44:10 +01:00
eidheim
8c8ef391f8 Fixed DEPRECATED macro in cases where it is already defined 2016-12-30 10:19:21 +01:00
eidheim
175d4dd869 Bugfix for last commit: config.timeout_content now correctly set in old constructor 2016-12-29 10:15:20 +01:00
eidheim
6c3a59d9ba Cleanup of server-constructors. Previous constructors have been marked as deprecated. 2016-12-29 09:53:58 +01:00
eidheim
30ef094b02 Fixes to HTTP caching (#97) 2016-12-28 10:54:59 +01:00
eidheim
12f0678065 Merge branch 'master' of https://github.com/sebt3/Simple-Web-Server 2016-12-28 09:37:40 +01:00
eidheim
92ddf86e15 Added stream versions of the Crypto:: hash functions for calculating hashes from for instance large files 2016-12-21 10:07:22 +01:00
Sébastien Huss
acea17162c oups again, it should have been painless. At least I reviewed my commit 2016-12-20 22:27:40 +01:00
Sébastien Huss
36c2264bdc oups forgot to link to openssl 2016-12-20 22:18:00 +01:00
Sébastien Huss
d4f5fddba3 Made the cache feature secured in #ifdef block and added it to the http
example too
2016-12-20 22:15:58 +01:00
Sébastien Huss
9492b942b9 Added support for HTTP caching in the https example 2016-12-20 22:02:52 +01:00
eidheim
9e29d2d572 Added Crypto::pbkdf2 2016-12-20 16:17:00 +01:00
eidheim
2daf3836fc Renamed Crypto:: hash methods 2016-12-20 15:54:51 +01:00
eidheim
5c5a1f78b2 Added crypto.hpp for convenient C++ wrappings for commonly used OpenSSL functions 2016-12-20 12:21:38 +01:00
Ziyi Zhang
5cdf4aa540 Avoid compiling error in MSVC 2016-12-20 15:22:03 +11:00
eidheim
db95a64354 Minor cleanup 2016-12-19 09:08:35 +01:00
eidheim
d19244e01f Minor cleanup 2016-12-19 09:05:55 +01:00
eidheim
eef8a10849 Added error reporting through on_error std::function 2016-12-19 08:44:41 +01:00
eidheim
8a88a019ea Minor cleanup, replaced expression with std::min 2016-12-18 17:34:22 +01:00
eidheim
7a97f8218d Added client verification when a verify file is passed to Server<HTTPS>. Also sets session_id_context for session reuse. See #89 2016-12-18 17:22:04 +01:00
eidheim
8fa7de4a2b Cleanup of Client<HTTPS> constructor 2016-12-18 11:18:16 +01:00
eidheim
4606dbd855 Fixes Client<HTTPS> proxy requests. See #83 2016-12-16 11:11:58 +01:00
Tadeu
dc74f7739e compile clean with gcc 4.6.3 2016-12-12 22:05:17 +00:00
eidheim
dc7762e63b Fixes #91: added timeout on Client's async_connect 2016-12-11 10:53:33 +01:00
eidheim
14d848be3e string::substr comparisons replaced by string::compare 2016-12-04 14:25:11 +01:00
eidheim
4a97949953 Security fix for Client<HTTPS>: added host verification, fixes #90 2016-12-04 13:45:39 +01:00
eidheim
302f980cf3 Added extra test: check if the stream version of the client request methods works if called first 2016-11-26 10:45:17 +01:00
eidheim
ddb5622f76 Fixed request path when using proxy with HTTPS client 2016-11-26 10:33:11 +01:00
eidheim
fa4dd130e5 Fixed proxy status code check 2016-11-25 12:49:48 +01:00
eidheim
599775c83f Made protocol() const, added default proxy ports, and added handshake on https proxy (based on #83) 2016-11-25 12:44:59 +01:00