Dummy HTTP server for debugging
Posted
by
Andrea
on Super User
See other posts from Super User
or by Andrea
Published on 2012-08-30T14:37:51Z
Indexed on
2012/08/30
15:40 UTC
Read the original article
Hit count: 319
This is more or less the inverse of my previous question. I need to debug some HTTP requests that I am making. Since these requests arise from the use of some external libraries, sometimes I am not sure of what is the actual data I am sending.
Is there some dummy server (for Linux) that accepts HTTP requests and just prints them somewhere so that I can inspect them? I would like to be able to see in plain text the full request, like
POST /foo HTTP/1.1
Host: www.example.com
Accept: text/xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Language: en-gb,en;q=0.5
Content-Type: text/plain
Content-Length: 11
Hello world
© Super User or respective owner