mirror of
https://github.com/c-cube/tiny_httpd.git
synced 2025-12-05 19:00:32 -05:00
10 lines
152 B
Bash
Executable file
10 lines
152 B
Bash
Executable file
#!/usr/bin/env sh
|
|
|
|
ECHO=$1
|
|
PORT=8085
|
|
|
|
"$ECHO" -p $PORT &
|
|
PID=$!
|
|
sleep 0.1
|
|
curl -N "http://localhost:${PORT}/echo/?a=b&c=d" -H user-agent:test
|
|
kill $PID
|