Commit Graph

119 Commits

Author SHA1 Message Date
Mario Limonciello
76b54e7de4 Sanitize uploaded filenames in upload example to prevent path traversal
The upload example wrote each uploaded file using the filename supplied
verbatim in the multipart Content-Disposition header. A client could set
that filename to an absolute path or one containing "../" components and
cause the server to create or overwrite files outside the working
directory.

Reduce each client-supplied filename to its base name and reject the
request with 400 Bad Request if the result is empty, ".", "..", or
still contains a path separator (including colon for Windows drive
letters).
2026-07-27 10:56:49 -05:00
yhirose
b4eec3ee77 Removed deprecated APIs (#2423) 2026-04-11 20:54:06 -04:00
yhirose
464867a9ce WebSocket and Dynamic Thread Pool support (#2368)
* WebSocket support

* Validate selected subprotocol in WebSocket handshake

* Fix problem with a Unit test

* Dynamic Thread Pool support

* Fix race condition in new Dynamic ThreadPool
2026-02-14 17:44:49 -05:00
yhirose
6be32a540d Abstract TLS API support (Resolve #2309) (#2342)
Abstract TLS API support (OpenSSL and MbedTLS backends)
2026-02-01 23:48:03 -05:00
yhirose
40f7985e02 Update copyright year 2025-12-31 22:18:11 -05:00
yhirose
51b704b902 Implement SSEClient (#2308)
* Implement SSEClient

* Fix Windows problem
2025-12-15 00:00:42 -05:00
Jean-Francois Simoneau
b7097f1386 Replace httpbin.org with httpcan.org (#2300)
* Replace httpbin.org with httpcan.org

* Fix DigestAuthTest.FromHTTPWatch_Online test
2025-12-13 23:52:05 -05:00
yhirose
8bba34eebc Add New Streaming API support (#2281) 2025-12-01 21:40:13 -05:00
yhirose
2da189f88c Fix EventDispatcher problem (#2257) 2025-10-27 18:10:52 -04:00
yhirose
af73377611 Fix #1578 (#2171)
* Fix #1578

* Update README

* Update

* Update

* Update

* Update

* Update

* Update
2025-07-06 21:27:24 -04:00
yhirose
1729aa8c1f Issue 2162 (#2163)
* Resolve #2162

* Update
2025-06-24 17:37:30 -04:00
Florian Albrechtskirchinger
2996cecee0 Fix code inconsistently formatted and re-format (#2063)
* Fix code inconsistently formatted by clang-format

* Run clang-format
2025-02-17 12:14:02 -05:00
yhirose
929dfbd348 Update copyright year 2025-01-20 00:32:10 -05:00
yhirose
9b5f76f833 Fix #2012 2024-12-27 17:19:23 -05:00
yhirose
413994912d Update vcxproj files 2024-11-16 11:14:13 -05:00
yhirose
c673d502b9 Update server_and_client.cc 2024-09-07 11:11:57 -04:00
yhirose
01a52aa8bd Add example/server_and_client.cc 2024-09-07 10:05:53 -04:00
yhirose
45f3694f82 Fix problem with clean command in Makefile 2024-08-08 19:30:46 -04:00
yhirose
0b657d28cf Added example/one_time_request.cc. 2024-06-14 18:29:34 -04:00
yhirose
eba980846b Fix #1628 (OpenSSL 1.1.1 End of Life on September 11, 2023) (#1745) 2023-12-24 08:20:58 -05:00
Ilya Andreev
5b943d9bb8 Use StatusCode in tests and examples (#1743)
* Use StatusCode in tests and examples

* Use StatusCode in README
2023-12-20 17:28:57 -05:00
yhirose
ae3a6dd2a9 Fixed an issue with example/Makefile on MacOS 2023-02-21 22:00:10 -05:00
yhirose
d663588491 Removed is_writable() from DataSink (Resolve #1478, too) (#1483) 2023-02-04 13:53:42 -05:00
yhirose
5c3624e1af Updated example/uploader.sh 2022-08-06 14:43:56 -04:00
Edwin Kofler
66eed5681a Fix typo in Dockerfile (#1187) 2022-02-06 09:15:15 -05:00
yhirose
412ab5f063 Added example/Dockerfile.hello 2022-01-11 00:18:20 -05:00
yhirose
c247dcdd7b Added uploader.sh 2021-12-17 22:34:00 -05:00
yhirose
90a291214c Update Makefile 2021-11-15 23:08:49 -05:00
yhirose
fc9b223acc Updated copyright year 2021-06-11 14:45:35 -04:00
Joseph Huang
dcf24d45a2 fix ssesvr use of deleted function (#938) 2021-05-18 23:19:15 -04:00
Philipp Hasper
28e07bca16 Fixed minor code smells (#901) 2021-04-09 14:55:21 -04:00
yhirose
dc5f9ba164 Better error handling on client (#601) 2020-08-08 20:50:24 -04:00
yhirose
cf084e1db1 Fixed example build errors 2020-08-08 00:10:08 -04:00
yhirose
6cde600922 Simplified simplecli.cc 2020-07-29 16:04:28 -04:00
yhirose
12540fe8d3 Brotli support on client 2020-07-25 20:44:02 -04:00
yhirose
0e9cfd9f49 SSE client example 2020-07-25 11:20:57 -04:00
yhirose
366d073490 Fixed build errors 2020-07-25 09:40:35 -04:00
yhirose
0db9d21eb0 Fix #571 2020-07-19 18:40:55 -04:00
yhirose
66f698fab6 Fixed build errors with some examples 2020-05-16 00:50:52 -04:00
yhirose
da26b517a3 Added url::Get interface 2020-04-21 23:00:39 -04:00
yhirose
5b51aa6851 Revert "Add 1000-concurrency-result report"
This reverts commit b0af78e340.
2020-03-24 17:30:32 -04:00
yhirose
b0af78e340 Add 1000-concurrency-result report 2020-03-21 15:49:26 +00:00
yhirose
ab96f49766 Fixed problem that line end char is missing on start messagein simple
server example
2020-03-13 16:36:33 -04:00
yhirose
b251668522 Fixed build problem. 2020-02-03 22:45:50 -05:00
yhirose
ac7742bb32 Changed the order of parameters of set_mounting_point. 2020-02-01 09:18:24 -05:00
yhirose
8801e51138 Fix #341 2020-01-31 20:35:20 -05:00
yhirose
f5e19faae7 Updated README 2020-01-17 23:21:42 -05:00
yhirose
2e360f9dd6 Improved Stream interface 2020-01-16 23:28:11 -05:00
yhirose
b4f808da74 Updated example/upload.cc 2020-01-10 18:38:38 -05:00
yhirose
04957c0f08 Fix #315 2020-01-06 17:13:31 -05:00