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

98 Commits

Author SHA1 Message Date
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
bel
26ecfa7261 Update websocket example - stop websocket threads per server context instead of using a static variable 2014-08-11 00:30:14 +02:00
bel
624aed908d Update websocket example - store websocket clients per server context instead of using static variables 2014-08-11 00:22:07 +02:00
bel
56389ad023 Update websocket example - use new API functions 2014-08-10 23:49:49 +02:00
Thomas Davis
1461951d13 Compile fixes for OSX
Also fixed github URL's to point to correct project.
2014-06-26 17:38:05 -04:00
bel
724753a7da Fix C++ build errors in Linux 2014-06-24 21:44:21 +02:00
bel
be97d78aac Enhance C++ embedding example for CivetServer::getParam test 2014-06-14 08:02:43 +02:00
Danny Al-Gaaf
ae0c43a0e3 chat.c: fix format argument type
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2014-04-24 11:23:44 +02:00
bel
c9f266e3a7 Issue #11: Method to get POST request parameters via C++ interface 2014-03-22 23:02:07 +01:00
Sangwhan Moon
ee3ef0af4e Make the Websockets example compile on Mac OS X, along with some other little patches. 2014-02-20 03:25:20 +09:00
bel
6766951f38 Websocket example should show creation and deletion of websocket connections 2014-01-12 14:13:51 +01:00
bel
c471b9bdc9 C++ embedding example should do the same as the C embedding example 2014-01-10 22:22:26 +01:00
bel
2b706509f7 Show the usage of mg_get_request_info in the example 2014-01-09 20:14:17 +01:00
bel
fc6c81c417 Test mg_set_request_handler() for patterns 2014-01-08 20:09:56 +01:00
bel
1a208a1989 Add forgotten file 2013-12-10 22:49:09 +01:00
bel
aa2cded31f New + better websocket example 2013-12-10 20:41:32 +01:00
bel
ee01cf1ca7 Replace trivial websocket example by a more illustrated one 2013-10-31 21:55:01 +01:00
bel
c09392f7bd Replace trivial websocket example by a more illustrated one 2013-10-31 21:53:29 +01:00
Thomas Davis
b73e2c198d Updated indentation 2013-10-07 14:22:27 -04:00
William Greathouse
aa7c2a1b8c Add WebSocket demo that uses asynchronous messages from the server. 2013-10-07 14:22:26 -04:00
William Greathouse
4358ced3a2 Update "document_root" to match new layout/naming. 2013-10-07 14:22:25 -04:00
Thomas Davis
b745f22107 Normallized coding style in a predictable way.
Uses astyle program which is freely avaiable on all platforms.
2013-10-07 14:22:22 -04:00
Thomas Davis
e551b74564 Updated comments 2013-10-07 14:22:22 -04:00
Thomas Davis
c67fbc7caf Added new C embedding example 2013-10-07 14:22:22 -04:00
Thomas Davis
840f3c4079 Stripped out extra test code. 2013-10-07 14:22:21 -04:00
Thomas Davis
6b7e1ff2a8 Made file dormat UNIX LF 2013-10-07 14:22:21 -04:00
Thomas Davis
031e2cd665 Relaxed the ordering contraint on the URI matches.
Solved by doing smart insertions.
2013-10-07 14:22:21 -04:00
Thomas Davis
af000e03c7 Added new URI to handler mapping for C code. 2013-10-07 14:22:21 -04:00
Thomas Davis
b2aee90d14 Regorganized directories to make them more intuitive 2013-10-07 14:22:16 -04:00
Thomas Davis
350b1fc75e Made md5 a static include, renamed source includes a .inl. 2013-10-07 14:22:15 -04:00
Thomas Davis
57a5276677 Updated guthub URI's 2013-10-07 14:22:13 -04:00
Thomas Davis
cd1696a972 Added Visual Studio 2012 reference projects. 2013-10-07 14:22:11 -04:00
Thomas Davis
4fc63e059c Fixed the md5 code inclusion in the build 2013-10-07 14:22:11 -04:00
Thomas Davis
a8bc92a305 Renamed to Civetweb 2013-10-07 14:22:09 -04:00
Sergey Lyubka
b07745ab50 Added Lua dll example 2013-07-30 14:49:52 +01:00
Sergey Lyubka
e645b33b6c using mg.read() only for POST requests 2013-07-16 07:53:08 +01:00