hi

2002-03-04 Thread kavitha malar
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

hi

2002-03-04 Thread kavitha malar
I want to search a text in a website how to do that through perl.

parse headers returned

2002-03-04 Thread Torbjørn Lindahl
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

Re: parse headers returned

2002-03-04 Thread Torbjørn Lindahl
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

Re: parse headers returned

2002-03-04 Thread Maurice Aubrey
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

LWP::UserAgent::request: Simple response: Internal Server Error

2002-03-04 Thread open source devel company
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 ?

Re: LWP::UserAgent::request: Simple response: Internal Server Error

2002-03-04 Thread Gisle Aas
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

Re: http error source?

2002-03-04 Thread Sean M. Burke
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.

Re: parse headers returned

2002-03-04 Thread Randal L. Schwartz
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 =

Re: LWP::UserAgent::request: Simple response: Internal Server Error

2002-03-04 Thread open source devel company
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 ,