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();