mirror of
https://github.com/c-cube/tiny_httpd.git
synced 2025-12-06 03:05:29 -05:00
13 lines
178 B
Bash
Executable file
13 lines
178 B
Bash
Executable file
#!/usr/bin/env sh
|
|
|
|
SERVER=$1
|
|
PORT=8084
|
|
"$SERVER" . -p $PORT &
|
|
|
|
sleep 0.1
|
|
|
|
curl -N "http://localhost:${PORT}/foo_50" -o data2 \
|
|
-H 'Tranfer-encoding: chunked'
|
|
|
|
kill %1
|
|
wc data2
|