Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: problem with search module

by Lachesis (Friar)
on Jul 02, 2003 at 10:46 UTC ( [id://270761]=note: print w/replies, xml ) Need Help??


in reply to problem with search module

WWW:Search gives you a response method which will return the HTTP::Response object for the most recent query. Inspect that to see if that sheds any light on your problem.
my $response = $search->response(); if ($response->is_success) { print "Page returned ok"; } else { print "error: " . $response->as_string(); }

Replies are listed 'Best First'.
Re: Re: problem with search module
by dannoura (Pilgrim) on Jul 03, 2003 at 01:47 UTC

    OK, thanks, I tried it and it returns:

    Page returned ok

    Any other ideas?

      In that case the page will have been a valid response page so you could grab the content and visually check it. The actual HTML might give you a clue as to what happened, grab it with the $response->as_string();
      You could also get hold of the request object that was used for the search via $response->request();

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (4)
As of 2024-04-25 13:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found