yhirose
106be19c3e
Issue 49512: cpp-httplib:server_fuzzer: Timeout in server_fuzzer
2022-07-30 23:27:29 -04:00
yhirose
25d72bf881
Release v0.11.0
2022-07-29 20:45:55 -04:00
Mehmet İbrahimoğlu
9d5b5297cc
ssize_t redefinition on Windows - int/int64 vs long/long long ( #1337 )
...
* ssize_t redefinition on Windows - int/int64 vs long/long long
* Define ssize_t as __int64 for _WIN64, not long long
Co-authored-by: iamttaM <9880090+oculusbytes@users.noreply.github.com>
2022-07-29 20:42:31 -04:00
Mehmet İbrahimoğlu
462884bebb
With SSL enabled and NOMINMAX not defined, there is a conflict with 'max', which this fixes ( #1334 )
...
Co-authored-by: iamttaM <9880090+oculusbytes@users.noreply.github.com>
2022-07-27 08:16:06 -04:00
yhirose
f0eb55b327
Changed to use const std::string & as much as possible instead of const char * ( #1331 )
...
* Changed to use `const std::string &` as much as possible instead of `const char *`
* Fix problems on Windows
2022-07-22 22:44:33 -04:00
yhirose
916b2a8fd3
Merge branch 'use_exception_ptr' of https://github.com/kuguma/cpp-httplib into kuguma-use_exception_ptr
2022-07-15 17:19:39 -04:00
yhirose
37bb3c6a77
No longer support VS 2013 and older #1325 ( #1326 )
...
* Fixed a warning
* No longer support VS 2013 and older (Fix #1325 )
2022-07-14 20:57:41 -04:00
Kai Aoki
d4ab2fa0e6
fix double ref and case of exceptions that are not std::exception
2022-07-15 01:45:10 +09:00
Kai Aoki
72d3f4896a
Update httplib.h
...
use std::exception_ptr
2022-07-12 00:10:57 +09:00
yhirose
5e6f973b99
Release v0.10.9
2022-07-08 17:40:05 -04:00
yhirose
127a64d5a0
Skip preamble and epilogue in multipart/form-data ( Fix #1317 ) ( #1320 )
...
* fix: skip MIME preamble (#1317 )
* Skip epilogue in multipart/form-data
Co-authored-by: Gavin1937 <71205842+Gavin1937@users.noreply.github.com>
2022-07-08 17:26:50 -04:00
yhirose
caa31aafda
Accept large data transfer over SSL ( Fix #1261 , Close #1312 )
2022-07-02 07:50:33 -04:00
yhirose
dae318495f
Revert "Accept large data transfer over SSL ( #1261 )"
...
This reverts commit 307b729549 .
2022-07-02 07:18:59 -04:00
Andrea Pappacoda
305a7abcb9
fix: update CPPHTTPLIB_VERSION to 0.10.8 ( #1305 )
2022-06-08 16:44:10 -04:00
yhirose
219d13b718
Fix #1303
2022-06-07 09:52:08 -04:00
conghuawang
df20c27696
resolve http server can't send file large than 2GB ( Fix #1290 ) ( #1294 )
...
* resolve problem: http server can't send file large than 2GB.
add unit test for http server send large file.
add /bigobj compile option to msvc x64.
* disable unit test "ServerLargeContentTest" due to out-of-memory on GitHub Actions.
2022-05-27 11:56:20 -04:00
yhirose
a5a62768c0
Fix #1292 ( #1296 )
2022-05-27 11:54:43 -04:00
yhirose
4001637beb
Added CPPHTTPLIB_FORM_URL_ENCODED_PAYLOAD_MAX_LENGTH
2022-05-26 10:16:32 -04:00
Martín Córdova
47044c05a8
Fix compile error with MINGW-64 GCC-12.1.0 ( #1283 )
2022-05-24 07:16:54 -04:00
yhirose
9452c0a4b6
Release v0.10.7
2022-04-28 10:21:14 -04:00
Yoshiki Matsuda
307b729549
Accept large data transfer over SSL ( #1261 )
...
* Add large data transfer test
* Replace `SSL_read` and `SSL_write` with `ex` functions
* Reflect review comment
* Fix return value of `SSLSocketStream::read/write`
* Fix return value in the case of `SSL_ERROR_ZERO_RETURN`
* Disable `LargeDataTransfer` test due to OoM in CI
2022-04-27 21:08:39 -04:00
mylogin
696239d6e1
Link Windows crypto libs only when CPPHTTPLIB_OPENSSL_SUPPORT is set ( #1254 )
2022-04-20 22:04:55 -04:00
yhirose
d87abeecf0
Release v0.10.6
2022-04-17 17:34:48 -04:00
yhirose
4e28e4f741
Fix #1251
2022-04-17 11:53:41 -04:00
yhirose
d05c343602
Release v0.10.5
2022-04-16 21:02:30 -04:00
yhirose
33f67386fe
Fix #1249
2022-04-16 08:54:56 -04:00
yhirose
56d8168dc4
clangformat
2022-04-16 08:52:55 -04:00
greenfish
5d87cc0558
resolve compiler warnings ( #1246 )
...
* resolve compiler warnings
- check `WSAStartup` return.
- `const` is not suitable for `std::move`.
* resolve compiler warnings
- bool startup => bool is_valid_.
- remove `const` not removed.
2022-04-14 11:46:10 -04:00
yhirose
cb41947eb4
Fix #1235 ( #1243 )
...
* Fix #1235
* fix BindIPAddress error (#1242 )
* Code cleanup
* Added a unit test
* Commented out 'SSLClientTest.SetInterfaceWithINET6'
* Fixed incorrect return value from if2ip
* Removed if_nametoindex call
Co-authored-by: Kotarou <2918558+CyberKoo@users.noreply.github.com>
2022-04-13 21:32:46 -04:00
Kotarou
0857eba17b
replace deprecated OpenSSL functions with evp functions ( #1241 )
2022-04-11 13:40:58 -04:00
Andrea Pappacoda
bf0760fde4
fix: update user agent ( #1218 )
2022-03-18 18:12:51 -04:00
yhirose
a1df576e4f
Fix #1212
2022-03-16 22:00:40 -04:00
yhirose
7fb0254794
Fix #1215
2022-03-16 12:50:13 -04:00
yhirose
c82d1e52cc
Fix #1214
2022-03-16 10:56:33 -04:00
yhirose
e12fe4cbbb
Performance improvement
2022-02-27 14:30:49 -05:00
Sebastien Blanchet
8191fd8e6c
Add optional private key password to SSLServer ctor ( #1205 )
2022-02-27 14:16:15 -05:00
yhirose
d73395e1dc
Release v0.10.3
2022-02-22 10:21:27 -05:00
au-ee
64d001162b
CPPHTTPLIB_NO_DEFAULT_USER_AGENT skips default user agent ( #1201 )
2022-02-22 09:39:26 -05:00
yhirose
bb00a23116
Apply clangformat
2022-02-09 17:16:47 -05:00
Rockybilly
7f43f0f3ff
User-Agent update cpp-httplib/0.10.2 ( #1181 )
2022-01-28 12:27:27 -05:00
Gregor Jasny
87e03dd1ce
Report connection timeout as separate event ( #1171 )
2022-01-26 17:32:40 -05:00
yhirose
e5cacb465d
Fix #1172 ( #1173 )
...
This change is based on RFC7230, § 3.5 'Message Parsing Robustness': "Although the line terminator for the start-line and header fields is the sequence CRLF, a recipient MAY recognize a single LF as a line terminator and ignore any preceding CR."
2022-01-26 13:34:23 -05:00
yhirose
b61f36579c
Fix #1166
2022-01-20 15:24:09 -05:00
yhirose
65a8f4cf44
Added hosted_at. ( Resolve #1113 )
2021-12-31 15:35:52 -05:00
yhirose
27d128bbb4
Fix problems in #1154
2021-12-31 14:55:40 -05:00
yhirose
070f9bec58
Code cleanup
2021-12-31 13:27:47 -05:00
c00c
f817032513
fix socket option setting for windows ( #1154 )
...
* fix socket option setting for windows
* misc
Co-authored-by: zhangsen <zhangsen@cyberkl.com>
2021-12-31 10:07:59 -05:00
yhirose
17abe221c0
Fix is_file problem on Windows ( #1153 )
2021-12-30 14:54:57 -05:00
vitaly-ivanov
4a7a81e039
Work around silly Win defines to support BoringSSL ( #1148 )
...
* Work around silly Win defines to support BoringSSL
* changes wrapped into ifdef(_WIN32) just in case
2021-12-30 11:08:51 -05:00
yhirose
37fd4eb643
Code cleanup
2021-12-26 07:53:56 -05:00
yhirose
865b0e4c03
Resolve #1145
2021-12-26 07:53:06 -05:00
yhirose
b324921c1a
Release v0.10.1
2021-12-24 21:01:06 -05:00
yhirose
63f72caf30
Fix "Issue 42689 in oss-fuzz: cpp-httplib:server_fuzzer: Timeout in server_fuzzer"
2021-12-24 20:58:09 -05:00
yhirose
99ac17b90a
Fix #1140
2021-12-23 23:19:14 -05:00
yhirose
4b0ed9ee88
Release v0.10.0
2021-12-21 18:15:41 -05:00
yhirose
3b35279b16
Added SSLServer::ssl_context()
2021-12-18 00:21:41 -05:00
yhirose
27deb44df5
Update SSL related code
2021-12-18 00:15:38 -05:00
yhirose
24a3ef949b
Performance improvement for multipart form data file upload.
2021-12-18 00:15:10 -05:00
yhirose
793ae9855e
Fix #1041 ( #1132 )
...
* Fix #1041
* Fixed problem with is_socket_alive
* Adjust the way to check if the sockt is still alive.
* Revert "Adjust the way to check if the sockt is still alive."
This reverts commit 6c673b21e5 .
* Adjust is_socket_alive according to the code review
2021-12-16 21:06:17 -05:00
yhirose
cec6288a99
Resolve #1131
2021-12-14 07:58:21 -05:00
yhirose
9639578c2a
Release v0.9.10
2021-12-11 19:26:22 -05:00
yhirose
743ecbd365
Issue1121 ( #1122 )
...
* Fixed test/Makefile problem when cleaning *.pem files
* Fix #1121
2021-12-11 19:07:12 -05:00
yhirose
ddff782133
Release v0.9.9
2021-11-26 20:46:38 -05:00
yhirose
3051152103
Fix #1102 ( #1108 )
2021-11-26 20:44:58 -05:00
yhirose
06026bb47d
Code formating
2021-11-23 10:53:05 -05:00
yhirose
226388ae27
Resolve #1100
2021-11-23 10:47:30 -05:00
Scott Graham
ea7548b4cc
Remove stray ; causing warning with -Wextra-semi ( #1099 )
2021-11-22 07:16:07 -05:00
Rodolphe
c7486ead96
accept protobuf encoding ( #1096 )
...
Co-authored-by: rodolphe <rodolphe@zen.ly>
2021-11-17 13:14:31 -05:00
yhirose
ec56dfa35e
Fix #1085 ( #1091 )
2021-11-15 14:37:10 -05:00
zhenyolka
4f8fcdbaf7
Allow to specify server IP address ( #1067 )
...
* Allow to specify server IP address
* Reimplement in set_hostname_addr_map
* Add tests for set_hostname_addr_map
* Fix tests after implement set_hostname_addr_map
* SpecifyServerIPAddressTest.RealHostname typo
2021-10-16 15:05:55 -04:00
CarlosLeeGit
b80aa7fee3
support custom ssl ctx configuration for SSLServer ( #1073 )
2021-10-15 07:13:16 -04:00
yhirose
d17ac3bb40
Fix "Issue 39922 in oss-fuzz: cpp-httplib:server_fuzzer: Timeout in server_fuzzer"
2021-10-14 08:55:29 -04:00
yhirose
c7554ccac2
Fix #1069 ( #1070 )
2021-10-09 20:35:58 -04:00
estshorter
3da42fd1e8
Avoid min/max macro expansion on Windows ( #1057 )
2021-09-25 08:53:15 -04:00
yhirose
503aa61325
Fix problem with an empty parameter in set_base_dir
2021-09-20 17:40:05 -04:00
Zizheng Tai
e1efa337a2
Make Client move-constructible ( #1051 )
2021-09-16 14:05:42 -04:00
yhirose
3c522386e9
Fix "Issue 38551 in oss-fuzz: cpp-httplib:server_fuzzer: Timeout in server_fuzze"
2021-09-12 19:24:48 -04:00
yhirose
c202aa9ce9
Read buffer support. ( Fix #1023 ) ( #1046 )
2021-09-12 00:26:02 -04:00
yhirose
4e05368086
Fix #1054
2021-09-11 14:13:49 -04:00
yhirose
e1afe74fe2
Fix #1037
2021-09-10 22:42:14 -04:00
Gregor Jasny
415edc237c
Set error variable for failed write_data ( #1036 )
2021-09-05 16:15:46 -04:00
yhirose
ab477b5631
Fix "Issue 37742 in oss-fuzz: cpp-httplib:server_fuzzer: Timeout in server_fuzzer"
2021-09-02 22:57:57 -04:00
yhirose
0823d5c7f2
Fixed #1031
2021-08-30 17:16:31 -04:00
yhirose
4297500928
Fix #1024
2021-08-17 09:28:17 -04:00
Thomas Behn
a58f042614
Don't define INVALID_SOCKET if it has been defined already (i.e. by libpcap) ( #1021 )
...
Co-authored-by: Thomas Behn <Thomas.Behn@meinberg.de>
2021-08-10 08:29:27 -04:00
Joel Rosdahl
887074efd2
Add test of httplib.h split into .h + .cc ( #1015 )
...
In order to test the split version (.h + .cc via split.py):
- Added a test_split program in the test directory whose main purpose is
to verify that it works to compile and link the test case code against
the split httplib.h version.
- Moved types needed for test cases to the “header part” of httplib.h.
Also added forward declarations of functions needed by test cases.
- Added an include_httplib.cc file which is linked together with test.cc
to verify that inline keywords have not been forgotten.
The changes to httplib.h just move code around (or add forward
declarations), with one exception: detail::split and
detail::process_client_socket have been converted to non-template
functions (taking an std::function instead of using a type parameter for
the function) and forward-declared instead. This avoids having to move
the templates to the “header part”.
2021-07-31 09:53:30 -04:00
Joel Rosdahl
9c2c15ca45
Add missing template method implementations ( #1013 )
...
When using the split version of httplib.h the templated implementation
of e.g. Client::set_connection_timeout ends up in httplib.cc and
therefore results in a linker error since the needed template
specialization has not been instantiated. Fix this by moving the
implementation of template methods into the part that ends up in
httplib.h after the split.
Fixes #1008 .
2021-07-30 10:05:49 -04:00
yosh-matsuda
879dd261c2
Fix gzip compression/decompression over 4 GiB data size ( #1002 )
...
* Fix gzip compression/decompression over 4 GiB data size
* Add gzip test for large random data
2021-07-22 22:07:40 -04:00
xxrl
52f5eb5980
[Fix] ca_cert_path/ce_cert_store lose ( #1004 )
...
When redirect from http to https, user setting for ca_cert will lose
issue: #1003
2021-07-22 21:41:41 -04:00
Gregor Jasny
ea2f69a0d7
Add httplib::Error to std::string function ( #999 )
...
Fixes : #978
2021-07-19 21:17:44 -04:00
yhirose
e3750d9ddf
Simplefied server APIs
2021-07-17 18:09:30 -04:00
yhirose
c1eee3012e
Fix #998
2021-07-17 17:18:56 -04:00
yhirose
06bfa7e08b
Fix #979
2021-07-14 22:49:49 -04:00
yhirose
3d83cbb872
Improve string compare performance
2021-07-12 23:51:56 -04:00
yhirose
8a803b30f6
Fix #990
2021-07-12 23:46:25 -04:00
yhirose
80be649de7
Fix #961
2021-06-26 18:26:33 -04:00
Gregor Jasny
6b9ffc8bec
Remove dead code ( #965 )
2021-06-18 07:20:34 -04:00
Simon Edlund
d903053faf
Update httplib.h ( #964 )
...
operator""_ replaced by operator""_t
2021-06-17 10:57:25 -04:00
yhirose
676f1b5a26
Updated the user agent string
2021-06-14 08:43:12 -04:00
Baruch Nissenbaum
b8dec12f15
Limit SSL_ERROR_WANT_READ retries to 1 sec ( #957 )
...
retry with 1ms delays to prevent CPU hoggin
2021-06-14 08:41:20 -04:00