Parse HTTP Parameters

Enter an HTTP request, like the ones you can capture using the LiveHTTPHeaders addon for Firefox.


Keep File Content

Note the request must be properly formated. For example:

GET / HTTP/1.1
Host: tap.rubyforge.org
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.12) Gecko/20080201 Firefox/2.0.0.12
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive

Proper formatting for POST requires an empty line between the headers and body. Without it you get a WEBrick::HTTPStatus::BadRequest error.