I'd like to print a properly formatted http request to an io::socket
connection I've set up to a web server port.  I've used the HTTP::Request
"as_string" method to see the format for a proper HTTP request with
various headers.  However, when I copy the text ouputted from a
$req->as_string into a variable and try to submit that directly to the
connected IO::socket, I get a 400 Bad Request response.  If I go directly
through LWP::UserAgent, I get a successful response.  So, clearly there is
something different between the $req->as_string and the actual raw strings
sent by LWP::UserAgent.  Is there a method for viewing the raw http
request string?

Thanks,
--Ben


Reply via email to