tiny_httpd/tests/upload_chunked.sh
2021-12-11 20:37:06 -10:00

17 lines
278 B
Bash
Executable file

#!/usr/bin/env sh
echo upload_chunked 1>&2
rm -f data
SERVER=$1
PORT=8087
"$SERVER" . -p $PORT --upload --max-upload 100000000000 &
PID=$!
sleep 0.1
cat foo_50 | curl -N -X PUT http://localhost:$PORT/data --data-binary @- -H 'Transfer-Encoding: chunked'
kill $PID
wc data