1
0
mirror of https://github.com/lammertb/libhttp.git synced 2025-12-22 04:02:04 +03:00
Commit Graph

133 Commits

Author SHA1 Message Date
bel
851a4cda6b Add HTTPS support to embedded example 2015-11-17 22:03:19 +01:00
bel
407e628b0b Merge #217 with a another (incomplete) implementation of the same issue, and format code 2015-10-30 01:25:19 +01:00
bel
29cb09973b Format C++ example 2015-10-27 21:52:01 +01:00
bel
64e6264676 Add example how to handle PUT and POST in C++ 2015-10-27 21:40:48 +01:00
tnoho
22877d8f2f Fix masking method 2015-10-16 16:30:49 +09:00
bel
4de9090577 Apply revised clang-format (#207) to all actively maintained source files 2015-10-05 20:58:14 +02:00
bel
de214bf8fa Add more comments to embedded_c example 2015-10-02 21:02:01 +02:00
bel
0b1ce03d0c Add some comments to embedded_c example 2015-10-02 20:53:06 +02:00
bel
0900edbe36 Embedded_c example should raise an error, if it is build with defines not supported by the civetweb library 2015-10-02 19:45:25 +02:00
bel2125
73155eea3e Documentation: IPv6 ports will listen for both, IPv4 and IPv6
- Add this to the user documentation
- Make it more clear in the interface documentation
- Change the embedding_c example accordingly (and auto-format the code)
2015-09-29 20:43:16 +02:00
bel2125
63ef9cbd35 Small fixes in Makefile 2015-09-26 23:33:30 +02:00
bel
ebc667a121 Test for bug report #205 2015-09-26 22:36:19 +02:00
bel
ac3e0d8292 Add new interface to get listening ports (deprecate old interface) 2015-09-26 22:34:55 +02:00
bel2125
3716b3faaa Update embedded_c example 2015-09-11 22:12:10 +02:00
bel
9f3f8baac0 Update websocket example - use the current interface 2015-08-19 21:15:22 +02:00
bel
615970e9d1 Update websocket example to use the current interface 2015-08-19 20:58:40 +02:00
bel
750ec3a7c7 Disable MicroSofts I dont like C warning in the upload example 2015-06-24 22:04:25 +02:00
bel
cafe5cbd01 Use operating system dependent temporary storage path in example 2015-06-24 21:52:39 +02:00
bel
dbc89c9ddc Bind to all IPv6 addresses in the example 2015-05-31 23:23:53 +02:00
bel
f2a9354b18 Test separated timeout for websocket and other requests 2015-05-30 01:25:39 +02:00
bel
e33d4bc263 Update embedded_c websocket example 2015-05-28 23:02:03 +02:00
bel
034274b309 Add some pattern matching to the embedding examples
See also #116
2015-05-22 21:44:58 +02:00
bel
d264808e52 Clean usage of const/not const mg_context* and mg_connection* handles in the API.
The API had an inconsistant usage of `const mg_connection *` and `mg_connection *`,
that may cause warnings (e.g., #109). Now all non-const `mg_connection *` is only
required to read/write the connection.
2015-04-29 00:13:25 +02:00
bel
0a1f99c6bb Remove misleading comment in CivetServer.h
See issue #92
2015-04-23 21:48:22 +02:00
bel
8c90b3cae5 Handler for websocket connection (Step 7/7)
Add an interface to register handler for websocket connections.
See enhancement #30 and question #101
2015-04-19 23:20:08 +02:00
bel
121ae6c7f6 Handler for websocket connection (Step 6/7)
Add an interface to register handler for websocket connections.
See enhancement #30 and question #101
2015-04-19 22:09:09 +02:00
bel
0ecec6bce7 Handler for websocket connection (Step 4/?)
Add an interface to register handler for websocket connections.
See enhancement #30 and question #101
2015-04-19 14:39:15 +02:00
bel
d64d507eaa Handler for websocket connection (Step 3/?)
Add an interface to register handler for websocket connections.
See enhancement #30 and question #101
2015-04-19 10:54:46 +02:00
bel
436bc39555 Handler for websocket connection (Step 2/?)
Add an interface to register handler for websocket connections.
See enhancement #30 and question #101
2015-04-19 00:43:11 +02:00
bel
0016b36204 Handler for websocket connection (Step 1/?)
Add an interface to register handler for websocket connections.
See enhancement #30 and question #101
2015-04-18 18:14:20 +02:00
Danny Al-Gaaf
1d5124ed5e WebSockCallbacks.c: replace obsolete asctime()
The asctime() function is marked as obsolete by POSIX.1-2008-
Replace with recommended strftime();

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2015-03-23 16:40:10 +01:00
Danny Al-Gaaf
ec9d5413a8 replace Windows CRLF with Unix newline
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2015-03-23 16:38:15 +01:00
bel
fa263b0633 Move form handling example to test directory 2015-03-18 00:49:06 +01:00
bel
50c2f4f11f Fix example for form handling and file upload in Lua (example for #70) 2015-03-18 00:46:30 +01:00
bel
b91be3b821 Move form handling example to test directory 2015-03-18 00:39:45 +01:00
bel
a1d9858c15 Performance optimization for the form handling example in Lua
Optimization of example for question ("issue") #70:

Concatenating many strings in a loop in Lua is not efficient.
The standard solution for this is a Lua string builder pattern:
Store all strings in a table and use table.concat
2015-03-18 00:34:26 +01:00
bel
821a36af17 Add example how to handle form data and file upload in Lua
The Lua code example is from the Civetweb discussion group:
https://groups.google.com/forum/#!topic/civetweb/m9ojynOyzU4

This is also an example that might answer a question posted as an issue in Github:
https://github.com/bel2125/civetweb/issues/70
Question: how to get header, parse POSTed content in Lua? (issue #70)
2015-03-18 00:34:23 +01:00
bel
a5eadbca86 Fix multiple file upload (issue #55) 2015-01-05 15:05:01 +01:00
bel
72bff5390a Improve documentation of example 2014-12-08 22:31:58 +01:00
bel
90fc294777 Change dead links to Civetweb sourceforge page 2014-12-08 17:20:47 +01:00
bel
fa73c09d92 Example for C: stop the server when the application exits 2014-09-23 21:24:23 +02:00
bel
154b80bb69 Make client address available in mg_request_info also for IPv6 (see also issue #33) 2014-09-14 11:04:42 +02:00
bel
5e52950838 Add close callback for websocket clients 2014-08-31 01:34:04 +02:00
bel
eac72465ad Allow multiple websocket clients with different callbacks and an additional user supplied argument 2014-08-30 23:31:21 +02:00
bel
694aecafc6 Add data exchange between websocket server and client to the websocket_client example 2014-08-30 10:46:40 +02:00
bel
e111ee40a2 Fix websocket client example, extend it by a local websocket server 2014-08-30 00:49:46 +02:00
bel
f64a9b8c81 Add Visual Studio project for websocket_client example 2014-08-28 23:28:16 +02:00
Jordan
5d465aadad Fixed the copyright, changed mg_client_websocket_connect to mg_websocket_client_connect 2014-08-26 15:22:22 -04:00
Jordan
a4eca7c492 Added a unit test for websocket_client functionality, other small fixes 2014-08-21 14:53:47 -04:00
Jordan
9b8cda8d95 Initial version of websocket client. SSL tested working. websocket_client example included. 2014-08-21 08:53:00 -04:00