Re: HTTP::Request uppercase problem
Derek Balling (dredd@megacity.org)
Wed, 23 Jun 1999 23:08:12 -0700
I think the answer is: Upgrade your app.
It is my understanding that headers are case-INsensitive, and thus, your
app isn't compliant with the HTTP spec.
That said, I don't see why LWP should be altered to talk to something
that's plainly broken.
D
Caveat: I'm not the LWP maintainer, I can't speak for the developers, my
opinion is my own.
At 12:22 AM 6/24/99 -0400, Wade Strickland wrote:
>Hi folks,
>
>I am using HTTP::Request to connect with a custom HTTP application. The
>problem I am seeing is that even though my code has this:
>
>my $req = HTTP::Request->new(GET => $url);
>$req->referer("http://www.yahoo.com");
>$req->header("Client-ip" => "204.71.200.68");
>
>The actual request made looks like this when I snoop packets:
>Client-Ip: 204.71.200.68
>
>Why is the "I" in Client-Ip getting switched to uppercase? Any way to
>avoid this?? It is crashing my app! (The app is distributed across over
>130 machines worldwide, so it isn't too easy to upgrade and make the app
>more forgiving.)
>
>thanks,
>Wade