1
0
mirror of https://github.com/lammertb/libhttp.git synced 2025-08-17 22:21:06 +03:00
Commit Graph

4 Commits

Author SHA1 Message Date
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
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