Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

400 URL must be absolute

by Win (Novice)
on Dec 17, 2007 at 15:31 UTC ( [id://657435]=perlquestion: print w/replies, xml ) Need Help??

Win has asked for the wisdom of the Perl Monks concerning the following question:

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re: 400 URL must be absolute
by shmem (Chancellor) on Dec 17, 2007 at 15:47 UTC
    You haven't posted the entire script - for instance, the processing of $ARGV[0] is lacking.

    Then, http://search.cpan.org/~gaas/libwww-perl-5.808/lib/LWP/Simple.pm isn't a valid HTTP Proxy address. A HTTP Proxy is basically (sort of) a web server which asks other web servers on behalf of the connecting client, and that's not what you get addressing a single file on the CPAN search server.

    --shmem

    _($_=" "x(1<<5)."?\n".q·/)Oo.  G°\        /
                                  /\_¯/(q    /
    ----------------------------  \__(m.====·.(_("always off the crowd"))."·
    ");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}
    A reply falls below the community's threshold of quality. You may see it by logging in.
Re: 400 URL must be absolute
by moritz (Cardinal) on Dec 17, 2007 at 15:39 UTC
    I can't reproduce your error, the script runs fine for me.

    Perhaps you should tell us which argument you provided to your script that made it fail.

    As oha explain in the CB, HTTP requests have to use absolute URLs, mostly likely you provided a relative URL somewhere.

    BTW it's quite weird to use a HTML page as a proxy URL.

    A reply falls below the community's threshold of quality. You may see it by logging in.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://657435]
Approved by moritz
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2024-03-28 19:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found