Tag Archives: http

Write HTTP request to web server with PHP.

I’ve recently built a proxy server that manually handles a lot of HTTP exchanges. I summarized the proxy’s read/writing to the server here. It actually is very simple: format a request in the form of an HTTP header, send the request to the server, and then read the server’s response. // OPEN SOCKET TO SERVER [...]

Posted in Programming | Also tagged , , | Leave a comment

Using Perl and LWP::UserAgent to POST to a HTML/PHP form.

Here is the original HTML form that you would see if you were navigating to the page to fill out the form: <form name="input" action="form_rec.php" method="post"> Ye giveth:<input type="text" name="in"> <input type="submit" value="Go"> </form> Notice that we’re posting to the file form_rec.php, not the file that actually contains this form code.  If you try posting [...]

Posted in Programming, Webhosting | Also tagged , , | Leave a comment