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

13 Commits

Author SHA1 Message Date
bel
b1924ecd99 Système D for checking why HTTPS does not run on travis and appveyor 2015-08-02 22:09:53 +02:00
bel
e497dd34f8 Test for chunked transfer encoding (#95, #98) 2015-04-24 00:36:34 +02:00
bel
199afb7369 Attempt to fix chunked tranfer encoding (see #95, #98) - not fully tested yet 2015-04-23 23:48:09 +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
c9f84988c7 Use multibyte character set in all Visual Studio projects 2015-04-19 20:37:59 +02:00
bel
d30b3faf3e Add windows build for the chunked transfer test client 2015-04-18 13:07:07 +02:00
bel2125
da5c8d6683 Quick and dirty test client to check chunked transfer encoding
A quick hack to check chunked transfer encoding for Linux
(see converation to issue #98, chunked transfer encoding
has been added with #95 but there are merge errors).

Can be used this way:
Compile civetweb 'make WITH_LUA=1'.
Set environment variable 'export resource_script_demo_storage=/tmp/'
Start it with 'civetweb -document_root /path/to/civetweb/test'.
Compile this example directly with 'gcc testclient.c' from the command line.
Start the resulting file './a.out'
A file /tmp/r1.txt with 1024 bytes will be created ('ls -l /tmp/').
Delete this file ('rm /tmp/r1.txt').
This was NOT chunked transfer encoding.
Now enable chunked tranfer encoding: Change to chunked=1 in line 38.
Rebuild 'gcc testclient.c' and run './a.out' again.
Currently a 0 byte file will be created in /tmp/.
This file has to be deleted after every test.

Hope this helps fixing the merge errors.
2015-04-18 11:05:12 +02:00
bel
010998ca2f Test for chunked transfer encoding (Windows client only) 2015-04-17 23:27:08 +02:00
bel
21a9b629ef Modify test client to check keep alive connections
Temporary test to reproduce issue #82 without manual typing
2015-04-13 22:52:40 +02:00
bel
ec83050347 Change indent and line endings 2015-04-13 21:45:47 +02:00
bel
1d611a7ba5 Test keep-alive in testclient 2015-04-13 21:44:48 +02:00
bel
4aad970422 Add TODO list for test utils 2015-04-12 21:26:58 +02:00
bel
1f27b1cb44 Add test utils (TCP test client, browser)
These test programs have been created in 2012, to test http
connection handling.
2015-04-12 20:57:55 +02:00