Google API using SOAP Lite doesn't like '&' in query



Maybe someone knows why the Google API is having problems when the '&'
char appears in a query. This is necessary when trying to find out
info about a URL as the code below demonstrates.

my $query =
'http://www.duexotictimbers.com/gallerydisplay.aspx?cat=bowls&test=1';
my $google_search = SOAP::Lite->service("file:GoogleSearch.wsdl");
my $results = $google_search ->
doGoogleSearch(
$google_key, $query, 0, 10, "false", "", "false",
"", "latin1", "latin1");
@{$results->{resultElements}} or exit;

The last line causes this run-time error:

Can't use an undefined value as an ARRAY reference at ...

Any ideas how this problem can be fixed? I tried replacing the & with
%26 but then Google can't find the site.

Thanks,
Frank

.



Relevant Pages

  • Re: API
    ... Google API is limited to 10 at a time? ... then the documentation is wrong I guess... ... You can retrieve a maximum of 10 results per query, ... It might be however, that fetching 30 results is counted as 3 queries, ...
    (alt.internet.search-engines)
  • Re: API
    ... Google API is limited to 10 at a time? ... then the documentation is wrong I guess... ... You can retrieve a maximum of 10 results per query, ... best regards ...
    (alt.internet.search-engines)
  • RE: leading zeroes
    ... > I have a table with two columns.(A Number, B text (13 char in size)) ... > I need to write an update query which would make column B ... > to look like column A but with leading zeroes. ... Prev by Date: ...
    (microsoft.public.access.queries)