This code give you a HTML front end for HTTP using PHP. I quite often find myself wanting to fire up putty to send some custom HTTP headers, so I wrote this simple PHP tool to provide a “front end” for HTTP. It allows quick and easy customisation of HTTP headers, sends them to a web server and shows you in plain text the HTTP response headers and body. It’s quite nifty and rather useful for debugging / hacking / etc.
You can customise:
- GET/POST info
- Host
- Referer
- Cookie
- User Agent
- Basic HTTP Authentication
- User Agent
- … and more!
Resolves IP>Host or Host>IP
Optionally return either only headers or everything.
If you use this tool, I strongly recommend you password protect it, either with .htaccess, or using my generic password protection script (because hackers could use it to hack people and make it look like it came from your IP address)
Play around with the demo and you’ll see that it’s actually a pretty powerful tool.
#1 by Kronalias on May 16, 2009 - 11:10 am
Hi!
Just a quick thankyou.
You used to have (and possibly still do!) an excellent write-up on HTTP headers that was associated with your PHP front end.
Do you still publish it? It was really useful – in fact the best tutorial on headers I’ve come across, and I learned oodles from it. I’m not requesting this for me – you put me on the right track – but I’m sure lots of other people would appreciate a quick link to it.
I have used your script extensively – and modded it for my own requirements – and it’s helped me immensely. So a very large thankyou!
If you’re ever in Wales, especially near Cardigan, drop me an email – I owe you a pint or two!
Cheers, Kronalias
#2 by user24 on May 17, 2009 - 7:23 am
Hi! Glad to hear you like my code.
The HTTP write-up is here. I’ve recently updated this blog, and had forgotten to add tags to that article.
I used to live in Wales (Lampeter) if I’m ever around that way again I’ll drop you a line :0) Thanks!
#3 by Milad on April 1, 2010 - 6:49 am
Thank you man you made my work straight forward and really saved my time.
a few moments ago I was just about to go and read whole the http and also find a way to embed it in php script and you know the rest…
Sorry for my English.
regards
#4 by Howard Yeend on April 2, 2010 - 9:47 am
Really glad to hear it helped you out! Your English is fine :0)
#5 by bedava izle on February 26, 2011 - 6:34 pm
güzelmiş teşekkürler.
#6 by Paul on April 22, 2011 - 8:10 am
wow, cool little piece of coding there, thank you. I am sure i can put this to great use.
Paul