Google API using SOAP Lite doesn"t like "&" in query
am 29.06.2005 23:06:35 von mccownfMaybe 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=bowl s&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