lovelost has asked for the wisdom of the Perl Monks concerning the following question:
It then barfs with:$request = HTTP::Request->new('GET', $reallylongurl); $request->content_type('image/gif'); $response = $ua->request($request, '/tmp/blah.gif');
This error originates from Protocol/http.pm, line 206 (LWP version 5.69 I believe). Entering the URL in the shell via wget, or even pasting it into Mozilla works fine (the server at the other end does not pose length restrictions). The above also works fine when it just so happens that my query is fairly short, although I have not tested precisely at what length this problem occurs, since someone may have come across this and knows an easy way around! Apologies if I am making a stupid error as I've not much experience with the LWP and associated routines.Error while getting [long url here] -- 500 short write
Many thanks.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: HTTP::Request GET - url length restriction?
by William G. Davis (Friar) on Jan 12, 2004 at 19:55 UTC | |
|
Re: HTTP::Request GET - url length restriction?
by hardburn (Abbot) on Jan 12, 2004 at 21:17 UTC | |
by lovelost (Initiate) on Jan 13, 2004 at 09:33 UTC | |
by William G. Davis (Friar) on Jan 13, 2004 at 12:24 UTC |