Y
Hacker News
new
|
ask
|
show
|
jobs
by
cpeth
3399 days ago
Couldn't you just pipe a response file to netcat running on 80?
cat response.html | nc -lp 80
5 comments
gchaincl
3399 days ago
That's what I used to do :P, one of the features that httplab offer, is that you can inspect the request
link
susam
3399 days ago
Or redirect the standard input of netcat to the response file.
nc -lp 80 < response.html
link
mstade
3399 days ago
Today I learned something fantastic, thank you! :o)
link
spinningarrow
3399 days ago
What's the correct command for BSD nc (on macOS)? For the `-l` option, the manual says "It is an error to use this option in conjunction with the -p, -s, or -z options".
link
gchaincl
3399 days ago
I think nc -l 80 should do it
link
hoodoof
3399 days ago
Not if you want a UI.
link