Danny Al-Gaaf
5bf5f19452
unit_test.c: close va_list before return
...
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de >
2015-03-23 16:39:54 +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
e0fd24ebe1
Add some basic access checks to the Lua form handling example (see #70 )
2015-03-18 01:09:03 +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
bel2125
5e9859510b
Add documentation on the working path used for Lua scripts
...
Document that Lua uses the current working path of the process.
See also issue #56 .
2015-01-06 21:09:32 +01:00
bel
01711abd46
Test even more HTTP methods
2015-01-04 22:10:46 +01:00
bel
9ada200a3a
Improve HTTP method test
...
Format whitespaces, add random post data
2015-01-04 19:53:24 +01:00
bel
2a5d351028
Improve HTTP method test
2015-01-04 18:00:44 +01:00
bel
4040ba73f9
HTTP POST requests to static files must return 405
...
Fix for a bug recently introduced in a redesign of the request handling.
Fix for a request method test page.
2015-01-04 00:12:39 +01:00
bel
971310a422
Add test for HTTP method handling
2015-01-03 23:50:53 +01:00
bel
65c83fa8a6
get_response_code_text for Lua
...
The new function get_response_code_text should be available for Lua as well.
Add it to the Lua environment and add a test.
2014-12-28 19:26:41 +01:00
bel
90fc294777
Change dead links to Civetweb sourceforge page
2014-12-08 17:20:47 +01: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
5f7a623fd5
Clean Lua for different define configurations, avoid warnings
2014-09-02 20:29:55 +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
593596307b
Unit test must start local server
2014-08-27 22:25:09 +02:00
bel
b53fd004c6
Get civetweb to compile for strict C again
2014-08-27 22:04:14 +02:00
bel2125
1a901e5526
Merge pull request #38 from jshelley/master
...
Implemented initial websocket client support - a few changes to interface and implementation will follow soon.
2014-08-27 21:42:13 +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
bel
ba13b79d27
Add content length and type to the Lua environment
2014-08-21 21:37:35 +02:00
Jordan
a4eca7c492
Added a unit test for websocket_client functionality, other small fixes
2014-08-21 14:53:47 -04:00
bel
61c52a6fb9
Fix another TODO in the unit test
2014-08-21 00:37:04 +02:00
bel
53d4247314
clean up unit_test: SSL related TODOs are done
2014-08-19 21:58:23 +02:00
bel
2603a43dbf
Fix unit test for SSL redirect
2014-08-19 21:42:40 +02:00
bel
49ecd448ce
Improve unit test for mg_download
2014-08-18 23:46:28 +02:00
bel
a0b8f8de31
Fix unit test for HTTPS
2014-08-17 01:52:21 +02:00
bel
65bcfea12c
Adapt unit test for mg_download, so the tested http operations are standard compliant
2014-08-17 01:06:10 +02:00
Jan Willem Janssen
d1437f9f5d
Make content length available in request_info:
...
- given that the content-length header is already parsed, lets make
it also available in the request_info struct to allow easy access;
- added simple unit test to verify the behavior of the new field.
2014-08-13 15:07:01 +02:00
bel
ed72d40adf
Websocket test should support WSS
2014-07-30 21:25:33 +02:00
bel
1b9430718d
Check for recursions when printing Lua tables in the test
2014-07-26 01:57:42 +02:00
bel
88770422b9
Documentation for Websocket for Lua
2014-06-11 23:40:59 +02:00
bel
73135887de
Rewrite websocket for Lua (Step 18 of ?)
2014-06-11 22:51:34 +02:00
bel
1bb0b78e04
Extend test: Read content of POST request
2014-06-10 23:40:07 +02:00
bel
838ae24645
Add test for PUT/DELETE in Lua resource scripts
2014-06-10 22:37:18 +02:00
bel
661a1bac39
Rewrite websocket for Lua (Step 16 of ?)
2014-06-09 22:44:45 +02:00
bel
e7f26f92e0
Rewrite websocket for Lua (Step 15 of ?)
2014-06-09 01:34:23 +02:00
bel
021341c362
Rewrite websocket for Lua (Step 10 of ?)
2014-05-24 00:56:28 +02:00
bel
ab3bc563cd
Rewrite websocket for Lua (Step 9 of ?)
2014-05-24 00:14:37 +02:00
bel
6e8415d4e5
Rewrite websocket for Lua (Step 8 of ?)
2014-05-22 23:51:32 +02:00
bel
e2f8196be3
Rewrite websocket for Lua (Step 7 of ?)
2014-05-22 23:17:07 +02:00
bel
dbcae1b0e8
Rewrite websockets for Lua (Step 6 of ?)
2014-05-21 22:52:07 +02:00
bel
5d7c1d165b
Rewrite websockets for Lua (Step 5 of ?)
2014-05-21 22:32:08 +02:00
bel
c9adad6e81
Rewrite websockets for Lua (Step 3 of ?)
2014-05-18 00:09:14 +02:00
bel
5522ad9555
Rewrite websockets for Lua (Step 1 of ?)
2014-05-11 21:55:08 +02:00
bel2125
76813c8d0b
Merge pull request #21 from dalgaaf/wip-da-sca
...
Various fixes from SCA and Coverity
2014-04-28 23:29:14 +02:00
bel
4b0bfbb55b
Error4xx page should be an error404 page. The error 403 (e.g., list a directory if enable_directory_listing no is configured) will show the error.lua page
2014-04-24 22:23:29 +02:00
Danny Al-Gaaf
d36e535c65
unit_test.c: fix printf, remove unused parameter
...
Fix for:
[test/unit_test.c:827]: (warning) printf format string requires 0
parameters but 1 is given.
[test/unit_test.c:833]: (warning) printf format string requires 0
parameters but 1 is given.
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de >
2014-04-24 11:25:05 +02:00