Couldn't you just pipe a response file to netcat running on 80?
cat response.html | nc -lp 80
That's what I used to do :P, one of the features that httplab offer, is that you can inspect the request
Or redirect the standard input of netcat to the response file.
nc -lp 80 < response.html
Today I learned something fantastic, thank you! :o)
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".
If your use cases allow for graphical apps, there's a couple that are heavily used by the web app. security testing community and have quite a bit of useful functionality for inspecting/modifying HTTP(s) requests.
Looks like a great tool for ad hoc testing of HTTP clients. Exactly what I often need during development of the client you use in the demo :)
:P
This is really cool.
Any plans for HTTPS support? This could be a really powerful tool for network based reverse engineering (even more so if there was support for predefined request-response pairs so more elaborate cases could be done)