mirror of
https://github.com/stefanocasazza/ULib.git
synced 2025-09-28 19:05:55 +08:00
33 lines
609 B
Bash
Executable File
33 lines
609 B
Bash
Executable File
#!/bin/sh
|
|
|
|
. ../.function
|
|
|
|
## http.test -- Test client http feature
|
|
|
|
start_msg http
|
|
|
|
#UTRACE="0 5M 0"
|
|
#UOBJDUMP="0 100k 10"
|
|
#USIMERR="error.sim"
|
|
export UTRACE UOBJDUMP USIMERR
|
|
|
|
check_for_netcat
|
|
|
|
rm -f out/request.http
|
|
|
|
ncat_listen localhost 9080 inp/http/response.chunked out/request.http
|
|
$SLEEP
|
|
#netstat -tlp >>/tmp/netcat.err
|
|
#STRACE="$TRUSS"
|
|
start_prg http http://localhost:9080
|
|
kill_netcat
|
|
|
|
#ncat_listen localhost 9080 inp/http/response.auth out/request.http
|
|
#$SLEEP
|
|
#netstat -tlp >>/tmp/netcat.err
|
|
#start_prg http http://localhost:9081
|
|
#kill_netcat
|
|
|
|
# Test against expected output
|
|
test_output_diff http
|