mirror of
https://github.com/c-cube/tiny_httpd.git
synced 2025-12-06 03:05:29 -05:00
15 lines
241 B
Bash
Executable file
15 lines
241 B
Bash
Executable file
#!/usr/bin/env sh
|
|
|
|
rm data
|
|
|
|
SERVER=$1
|
|
PORT=8087
|
|
|
|
"$SERVER" . -p $PORT --upload --max-upload 100000000000 &
|
|
|
|
sleep 0.1
|
|
|
|
cat foo_50 | curl -N -X PUT http://localhost:$PORT/data --data-binary @- -H 'Transfer-Encoding: chunked'
|
|
|
|
kill %1
|
|
wc data
|