develooper Front page | perl.libwww | Postings from March 2001

HTTP/1.1 in header?

Thread Next
James E. Pace
March 8, 2001 09:49
HTTP/1.1 in header?
Message ID:

I know that libwww doesn't do HTTP/1.1, but I'd like to use it to send
requests of the form 'GET / HTTP/1.1' .  I handle the resulting 1.1
response myself.

Here's what I did to make this happen...

In, with Id of:

    # $Id:,v 1.50 2000/05/24 09:41:13 gisle Exp $

Around line 124, I modified ..

    my $proto="HTTP/1.0";
    $proto = $request->protocol if ($request->protocol);

    my $request_line = "$method $fullpath $proto$CRLF";
#else /* OLDSTUFF */
#    my $request_line = "$method $fullpath HTTP/1.0$CRLF";

Now, I can set $request->protocol($version) in my app.

Any chance of getting this committed?

(Sorry for lack of diff.)

Thank you very much.

James E. Pace              \o\_____         Manager of Software Quality     ##[==_____>        "Put a Rocket
(408) 371-8977 x106        /_/ dotRocket     on your Socket."

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About