Hacker News new | past | comments | ask | show | jobs | submit login
Show HN: HTTPLab – An interactive web server (github.com/gchaincl)
171 points by gchaincl on Feb 28, 2017 | hide | past | favorite | 23 comments



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".


I think nc -l 80 should do it


Not if you want a UI.


Another related tool is mitmproxy https://mitmproxy.org/


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.

OWASP ZAP Proxy - https://www.owasp.org/index.php/OWASP_Zed_Attack_Proxy_Proje...

Burp Suite - https://portswigger.net/


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)


definitively: https://github.com/gchaincl/httplab/issues/4 can u elaborate on the predefined request-response case?


For those who'd like a GUI instead of tabbing fields, I'm a big fan of Insomnia. [1]

https://insomnia.rest


But insomnia is a http client. This is a server. Also insomnia is more expensive than Paw and is also subscription based. There is also Postman - https://chrome.google.com/webstore/detail/postman/fhbjgbifli... which is also a great tool and free too.


good job. a similar tool called wuzz [0] was released like a month ago.

[0] https://github.com/asciimoo/wuzz/


The README for HTTPLab says it is heavily inspired by wuzz.


I think I've heard of something like this as an Emacs mode. Does that exist?



I was looking for something like this a couple of days back. Looks cool.


Heh This is pretty cool.


this is pretty impressive. can you add HTTPS support please.





Consider applying for YC's W25 batch! Applications are open till Nov 12.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: