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