Commit Graph

  • 71b19ac358 Update README.md main cozis 2025-12-20 11:57:57 +01:00
  • b8eaeedd58 Increate output buffer limit to 16MB cozis 2025-12-18 13:34:32 +01:00
  • 7f0c638b62 Don't assert that requests have a host header cozis 2025-12-18 10:36:13 +01:00
  • 02d8206e9d Load full certificate chains, not just the leafs cozis 2025-12-15 23:08:31 +01:00
  • 2eb6a5fe9d Free SSL socket objects when clients disconnect from the server cozis 2025-12-15 22:37:27 +01:00
  • e2d52f8b63 Bug fix triggered by HTTPS connections cozis 2025-12-15 22:23:07 +01:00
  • f3345ba670 Properly mark server connections as FREE when they are deinitialized cozis 2025-12-15 08:50:37 +01:00
  • c681590fa2 Fix typo in assertion cozis 2025-12-15 08:44:50 +01:00
  • 1f9411119a Add request timeouts cozis 2025-12-12 22:35:46 +01:00
  • b361125bc3 Add second argument to _Static_assert to silence clang warnings cozis 2025-12-12 19:53:53 +01:00
  • 04deae62d6 Replace http_/HTTP_ prefixes with chttp_/CHTTP_ cozis 2025-12-09 12:12:21 +01:00
  • db030b3834 Add missing OpenSSL include cozis 2025-12-09 08:57:39 +01:00
  • e686e477e2 Ignore socket events when an HTTP response is being built by the user cozis 2025-12-03 18:40:14 +01:00
  • f6d81c1a87 Add -Wall -Wextra flags to the build script and fix the resulting compiler warnings cozis 2025-12-02 12:02:20 +01:00
  • f1fd633356 Add Content-Length to HTTP requests cozis 2025-11-29 21:28:56 +01:00
  • 64b40dfac7 Close socket when an HTTP response is received cozis 2025-11-29 19:56:54 +01:00
  • 954bcb7e3e Add option for HTTPS clients to not verify the peer's certificate cozis 2025-11-29 19:56:09 +01:00
  • 008772aef1 Fix bug in response builder state machine cozis 2025-11-27 21:02:31 +01:00
  • ddae5e721f Enhance cookie jar implementation with comprehensive RFC 6265 support claude/fix-cookie-jar-01LjeLbM8NcFv9xwn75HY92B Claude 2025-11-27 09:04:10 +00:00
  • 1ef6187b2d Add simplified client API (http_get, http_put, http_post, http_delete) cozis 2025-11-27 09:47:15 +01:00
  • 6a9ba6bbf4 Add HTTPS server examples cozis 2025-11-27 09:24:46 +01:00
  • 73086ca164 Add numbering prefix to examples cozis 2025-11-27 09:09:13 +01:00
  • 93c989b56f Add virtual hosts example cozis 2025-11-27 09:00:27 +01:00
  • b87a78a023 Add proxy example (draft) cozis 2025-11-26 23:51:24 +01:00
  • c4c41653f4 Add error codes cozis 2025-11-26 22:06:05 +01:00
  • a58dc241ef Rename http_request_builder_set_trace_bytes to *_trace cozis 2025-11-26 21:13:56 +01:00
  • 0c50cbff33 Separate http_request_builder_url into http_request_builder_method/_target cozis 2025-11-26 21:11:39 +01:00
  • 5706f12298 If a socket manager finds winsock uninitialized, it will initialize it and remember to deinitialize it at cleanup cozis 2025-11-26 16:30:59 +01:00
  • bb753ad8ee Add support for HTTPS, Windows, and Linux builds to Makefile cozis 2025-11-26 16:10:52 +01:00
  • 52ee89252c Properly consume socket events in the server when the socket manager reports them cozis 2025-11-26 15:42:05 +01:00
  • 749aef7c8d Add debug code to trace socket state transitions and fix bug in response parser where a space was consumed twice cozis 2025-11-26 15:33:15 +01:00
  • aa158980f5 Set expected certificate hostname when connecting to an HTTPS server cozis 2025-11-23 23:53:02 +01:00
  • 1be0c14415 Bug fix cozis 2025-11-23 23:49:56 +01:00
  • 9f0560fb9e Add http_client_wait_response for client who don't care about calling poll() directly cozis 2025-11-23 23:39:48 +01:00
  • f6b2c805c6 Fix HTTP request creation and simple client example cozis 2025-11-23 23:27:08 +01:00
  • 3c0aecb5f0 Bug fixes & cleanups cozis 2025-11-23 23:07:08 +01:00
  • 655289e542 Merge branch 'cookie_jar' into refactoring cozis 2025-11-23 22:36:01 +01:00
  • 7ce2765875 Add back url_buffer as HTTP_String Claude 2025-11-23 21:29:13 +00:00
  • b924f0772c Remove redundant url_buffer field Claude 2025-11-23 21:28:13 +00:00
  • e87fa490df Fix dangling pointer bug in URL storage Claude 2025-11-23 21:26:59 +00:00
  • 737d81f270 Fix compilation errors in cookie_jar branch Claude 2025-11-23 21:18:09 +00:00
  • 39d90111c9 Refactoring of the HTTP client cozis 2025-11-23 22:00:57 +01:00
  • e5358d883b Add Cookie headers when starting an HTTP request cozis 2025-11-23 17:56:26 +01:00
  • fc49b55225 Add HTTP_CookieJar object to HTTP_Client cozis 2025-11-23 17:38:53 +01:00
  • 6cb5bdacd2 Complete Set-Cookie header parser implementation Claude 2025-11-23 15:59:31 +00:00
  • 48ad83934b Progress on Set-Cookie header parser cozis 2025-11-23 16:51:05 +01:00
  • cb80bc3c14 Fix typo cozis 2025-11-23 09:29:32 +01:00
  • fa9b0e9919 Add zero-copy interface version of http_response_builder_body cozis 2025-11-22 23:51:43 +01:00
  • b881feb93a Define HTTP_SERVER_POLL_CAPACITY and HTTP_CLIENT_POLL_CAPACITY so that users can easily allocate poll arrays of the right size cozis 2025-11-22 22:55:12 +01:00
  • fe1c0d5b86 Draft of the Set-Cookie header parser cozis 2025-11-22 22:31:11 +01:00
  • 4ca5b67d8e Add a client example program and move examples to the examples/ folder cozis 2025-11-22 00:11:47 +01:00
  • eec1174047 Fix issues that caused the server to hang cozis 2025-11-21 23:02:18 +01:00
  • 54c02827be Bug fixes cozis 2025-11-21 20:46:21 +01:00
  • 51d3f84715 Address code review feedback for HTTP client and server Claudeandcozis 2025-11-21 19:32:08 +00:00
  • 9868ae2e33 Implement HTTP client in consistent style with server.c Claude 2025-11-21 19:17:18 +00:00
  • 2d407b63c2 Fix TODOs unrelated to HTTP client Claude 2025-11-21 19:07:51 +00:00
  • ccdd573e90 Add HTTPS support cozis 2025-11-21 19:24:21 +01:00
  • 3f76d1827e Add .gitignore and resolve simple TODOs cozis 2025-11-21 18:39:28 +01:00
  • 3c2ef70c66 Fix compiler errors cozis 2025-11-21 18:30:35 +01:00
  • aab1b8e7b8 Fix more compilation errors cozis 2025-11-21 15:12:32 +01:00
  • 93ccb5d6a1 Fix minor refactoring errors Claude 2025-11-21 12:15:11 +00:00
  • 879dc74e34 First version of the refactor cozis 2025-11-21 12:53:03 +01:00
  • 7be22fed4b Add comment to 060_virtual_hosts_over_https.c about adding entries to /etc/hosts for testing cozis 2025-10-17 12:21:26 +02:00
  • 17ad7ad383 Add http_match_host and update 060_virtual_hosts_over_https.c cozis 2025-10-17 12:08:05 +02:00
  • e26042e2e7 Allowing switching HTTPS builds on/off using the HTTPS Makefile parameter cozis 2025-10-17 11:29:26 +02:00
  • 13c578d347 Remove router cozis 2025-10-17 10:50:49 +02:00
  • a4f8f3abb7 Fix missing definition of SIZEOF cozis 2025-09-23 09:44:36 +02:00
  • b985a5faae Add HTTP_NOINCLUDE option cozis 2025-09-23 09:36:40 +02:00
  • 477d4bec4c Remove duplicate declaration of is_digit cozis 2025-09-23 09:36:27 +02:00
  • dc5376f8f3 Update chttp.c/.h cozis 2025-09-23 09:35:36 +02:00
  • d2fa677ac8 Add http_get_cookie, http_get_param, http_get_param_i cozis 2025-09-21 10:46:17 +02:00
  • b1021deb15 Add secure field to HTTP_Request to mark whether the underlying connection uses TLS or not cozis 2025-09-18 09:19:38 +02:00
  • a63e68f969 Add support for Transfer-Encoding cozis 2025-07-28 16:32:31 +02:00
  • 5d12070a29 Bug fix cozis 2025-07-22 13:57:53 +02:00
  • b99c4e9ccb Add beta-quality disclaimer cozis 2025-07-22 12:25:47 +02:00
  • 25f52444dd Add disclaimer cozis 2025-07-22 12:19:20 +02:00
  • 5c1cca6a2f Update README cozis 2025-07-22 12:13:21 +02:00
  • 536657b9ed Update README cozis 2025-07-22 12:11:49 +02:00
  • b73ad9f234 Update README cozis 2025-07-22 12:07:26 +02:00
  • 6412aab833 Update README cozis 2025-07-22 12:03:49 +02:00
  • f888b6b0a0 Update README cozis 2025-07-22 12:02:09 +02:00
  • 038df69372 Update README cozis 2025-07-22 11:45:24 +02:00
  • f810d284a9 Update README cozis 2025-07-22 11:37:05 +02:00
  • 2ec5c807fc Update README cozis 2025-07-22 11:33:08 +02:00
  • ecf5bedc43 Update README and move files to misc/ cozis 2025-07-22 11:30:47 +02:00
  • b7d8b82ec0 Remove resolved TODOs from the list cozis 2025-07-21 23:33:28 +02:00
  • c134de645b Rename HTTP_ResponseHandle to HTTP_ResponseBuilder cozis 2025-07-21 23:30:32 +02:00
  • a67d4dea9f Bug fixes cozis 2025-07-21 23:19:11 +02:00
  • 43627f81ab Initialize global state in the server examples cozis 2025-07-21 22:56:12 +02:00
  • 254bcbd666 Update README cozis 2025-07-21 22:52:00 +02:00
  • 73263da2c9 Fix the HTTPS build cozis 2025-07-21 22:42:43 +02:00
  • 51d0729aaf Fix Linux build bug cozis 2025-07-21 21:58:26 +02:00
  • 17b4c3d91a Improve windows support cozis 2025-07-21 21:54:56 +02:00
  • 58f8ace725 Add global state initialization functions cozis 2025-07-21 21:37:02 +02:00
  • a2912b5191 Refactoring for an improved event loop cozis 2025-07-21 20:29:35 +02:00
  • 5cb3977c3c Fix windows compilation errors cozis 2025-07-21 12:06:23 +02:00
  • acf4746611 Simplify amalgamation script cozis 2025-07-21 02:21:33 +02:00
  • c3bfb86707 Fix compiler errors cozis 2025-07-20 23:53:23 +02:00
  • 3b196546da Simplify print statements by using HTTP_UNPACK cozis 2025-07-20 21:29:41 +02:00
  • 1c6c0a75cf Remove compilation artifacts cozis 2025-07-20 21:25:06 +02:00