perl -MLWP::Simple -e 'getprint http://www.yahoo.com;'
400 Bad Request URL:http://www.yahoo.com
anybody knows why this error is happening .
--jude
I want to search a text in a website how to do that through perl.
hi, the responsobject from a HTTP request contains headers and the contents
of the document, usually HTML.
the individual header fields i have learned can be returned by the notation
$respons-header('some header');
but how does one get the status field? in the as_string representation of
the
Ah, brilliant!
Thank you.
regards
Torbjørn
On 4 Mar 2002, Randal L. Schwartz wrote:
Torbjørn == Torbjørn lindahl [EMAIL PROTECTED] writes:
Torbjørn All the headers are represented on a line each with a colon, but how do i
Torbjørn reach the info on the first line, ie HTTP/1.0 200 OK
On Mon, Mar 04, 2002 at 06:27:34AM -0800, Randal L. Schwartz wrote:
Torbjørn == Torbjørn lindahl [EMAIL PROTECTED] writes:
Torbjørn All the headers are represented on a line each with a colon, but how do i
Torbjørn reach the info on the first line, ie HTTP/1.0 200 OK
Torbjørn are they
Hi all ,
I tried using LWP to get a page wwwgooglecom
and my script is
giving the following message as one of the lines ,
when LWP debug is run
LWP::UserAgent::request: Simple response: Internal
Server Error
but the same page works using IO::Sockets
so what seems to be wrong with LWP ?
open source devel company [EMAIL PROTECTED] writes:
I tried using LWP to get a page www.google.com...
and my script is
giving the following message as one of the lines ,
when LWP debug is run
LWP::UserAgent::request: Simple response: Internal
Server Error
but the same page works
At 13:37 2002-03-03 +0100, Ulrich Wisser wrote:
yes, I try to differentiate between 500 errors
(sometimes our uplink is down and my software
doesn't know about it)
I want to know if the answer is from the server I tried
to reach or if libwww encountered an error and wants to
tell me about it.
Maurice == Maurice Aubrey [EMAIL PROTECTED] writes:
Maybe Gisle could add $self-status_line that factors this out.
Maurice There is a $self-status_line:
Maurice sub status_line
Maurice {
Maurice my $self = shift;
Maurice my $code = $self-{'_rc'} || 000;
Maurice my $mess =
The script that works .. I mean gets the desired
search results ...
use IO::Socket;
my $server = www.google.com;
my $port = 80;
my $document = /search?hl=enq=programmer;
my $EOL = \015\012;
my $BLANK = $EOL x 2;
my $remote = IO::Socket::INET-new(Proto=tcp,
PeerAddr=$server, PeerPort=$port ,
10 matches
Mail list logo