Google API using SOAP Lite doesn't like '&' in query
- From: mccownf@xxxxxxxxx
- Date: 29 Jun 2005 14:06:35 -0700
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
.
- Follow-Ups:
- Re: Google API using SOAP Lite doesn't like '&' in query
- From: Thomas Wittek
- Re: Google API using SOAP Lite doesn't like '&' in query
- From: mccownf
- Re: Google API using SOAP Lite doesn't like '&' in query
- Prev by Date: Re: Installing a CPAN Module online
- Next by Date: Can't find string terminator "EOM" - beginner question
- Previous by thread: Re: Can perl modules RECIPROCALLY 'use' one another?
- Next by thread: Re: Google API using SOAP Lite doesn't like '&' in query
- Index(es):
Relevant Pages
|