Commit graph

529 commits

Author SHA1 Message Date
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
eidheim
4141b76574 Cleanup of Client::connect methods 2016-11-24 18:05:19 +01:00
eidheim
f8cae4fde5 Corrected path when using proxy server in client 2016-11-24 17:55:09 +01:00
eidheim
9d9a8622d5 Added proxy server support to Client. Based on #83 2016-11-24 14:07:11 +01:00
Mathieu Schroeter
59bf48b37f Fixes #88: no longer tries to read and write 0 bytes in Client when reading chunked transfer encoding 2016-11-23 14:43:28 +01:00
eidheim
6138e95d08 Minor cleanup of CMakeLists.txt 2016-11-23 14:06:58 +01:00
Mathieu Schroeter
e7be91ef14 Fixes #87: now connects to socket when using second Client::request method 2016-11-23 13:43:00 +01:00
eidheim
74d7ca0cdb Added Client::request stream content test as suggested in #87 2016-11-23 12:24:55 +01:00
eidheim
76bf8942fd Made Client::close thread safe 2016-11-23 10:32:53 +01:00
eidheim
0d8052dcb9 Simplified Server::parse_request 2016-11-23 09:54:22 +01:00
eidheim
b1200958cc Added workaround for buggy MSVS 2016-11-23 09:24:41 +01:00
eidheim
56d36ddf92 Related to #86: added Client::close method 2016-11-23 09:13:55 +01:00
eidheim
fad2292061 Fixed Client<HTTPS> socket creation in cases where the socket has been closed 2016-11-23 08:47:44 +01:00
eidheim
7d95360e62 Minor timeout source cleanups 2016-11-23 07:17:14 +01:00
eidheim
8a73cb381a Fixes #86: can now set timeout on client requests 2016-11-23 07:01:48 +01:00
eidheim
2f32a2b52f Client now uses asynchronous asio read/write calls 2016-11-23 06:01:39 +01:00
David Olszowka
743785b563 Fixed crash if server instance gets deleted after the call to io_service->stop() but before the acceptor gets notified of the stop. 2016-11-10 10:16:49 +01:00
eidheim
8da3ad4dde Fixes #82: wrong reset method called in ::start 2016-11-07 15:24:04 +01:00
eidheim
8e0d3142bf Added fallback to boost::regex if gcc version<4.9. Fixes #77 2016-10-25 08:33:02 +02:00
eidheim
88a8b154e5 Simplified the default_resource example 2016-10-24 15:41:33 +02:00
eidheim
78d68b063b Now uses std::regex instead of boost::regex 2016-10-24 14:54:09 +02:00
eidheim
7fb40a1be9 Reverted e50f0b597f 2016-10-19 10:19:51 +02:00
eidheim
3a4b7143cc Can now use external, or reuse, boost::asio::io_service. 2016-10-19 09:53:32 +02:00
eidheim
e50f0b597f Minor cleanup of default_resource example 2016-10-19 09:41:58 +02:00
eidheim
d94f6d6d27 Slight optimisation: less copies of shared_ptr objects 2016-10-19 09:16:02 +02:00
eidheim
1c904b018f Added sh to markdown of compile instructions 2016-10-18 17:40:29 +02:00
eidheim
ccb6e4d4f1 Updated compile and run instructions 2016-10-18 17:38:39 +02:00
eidheim
7120e8aff2 Minor typo fix 2016-09-07 20:56:23 +02:00
eidheim
4efd3bf83c default_resource examples should now always output errors 2016-09-07 20:34:00 +02:00
eidheim
1a2fe59fa9 Updated post json example in https_examples.cpp as well 2016-09-07 10:01:23 +02:00
eidheim
b44fdc8183 Minor cleanup of post json example 2016-09-07 09:59:04 +02:00
eidheim
8e5ff77421 Merge branch 'patch-1' of https://github.com/Arash-codedev/Simple-Web-Server 2016-09-07 09:30:31 +02:00
eidheim
87508d1ae2 Minor cleanup of exception_handler code 2016-09-07 09:01:01 +02:00
Arash
dd41fb3265 Update http_examples.cpp 2016-09-04 17:57:31 +10:00
Arash
99114fd065 Update http_examples.cpp 2016-09-04 17:56:57 +10:00
Arash
1de7c6b1db Update http_examples.cpp 2016-09-04 17:55:09 +10:00
Arash
c8bbf7e789 Fixing response header
Previously, running 

$.post( "json", JSON.stringify({ firstName: "John", lastName: "Smith", age: 25 }) );

would give an error message in Firefox browser console
syntax error

Now, this error message is not shown.
2016-09-04 10:48:11 +10:00
Jørgen Lien Sellæg
eafca19cb3 feature: move exception handling of read_remote_endpoint_data to calling method 2016-09-03 18:15:57 +02:00
Jørgen Lien Sellæg
d490c3ff4e feature: add exception handler for http server 2016-09-01 17:17:31 +02:00
eidheim
ffac7545cf Fixes #66, added boost::asio::ssl::context::set_default_verify_paths when verify_certificate is set to true in Client<HTTPS> constructor 2016-08-24 09:26:38 +02:00
eidheim
e18fcb4ceb Force tlsv12 in Client<HTTPS> 2016-08-22 14:07:16 +02:00
Michael Behrns-Miller [bitpost-gentoo]
9701a4504b only use tlsv12, nothing older 2016-08-21 07:42:58 -04:00
eidheim
1268c5b6de Changed private to protected in Server/Client<HTTP/HTTPS> classes, and some cleanup 2016-08-21 10:59:24 +02:00
eidheim
7fbb74b456 Fixes #62, required boost version is now 1.53 2016-08-18 12:36:17 +02:00
Alfredo Luque
7ad8de4abc rename include subdirectory to simple-web-server 2016-08-10 15:56:32 -04:00
alfredo
9124a3edd2 Add install target for headers 2016-08-09 20:41:08 -04:00
eidheim
d6f3d55019 Renamed test folder to tests 2016-08-03 12:15:32 +02:00
eidheim
c33009beb1 Added CI 2016-08-03 11:57:40 +02:00
eidheim
a7c6d6fdb6 Added io_test 2016-08-03 11:32:11 +02:00
Ole Christian Eidheim
d149601bad Updated copyright year in LICENSE 2016-07-01 09:26:44 +02:00