You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For some parameters like uule that we need to pass to Google for search, they should not be urlencoded because then the value is lost. Since you're using http_build_query for your parameters, this particular parameter's value is being converted wrongly.
Ideally it should call https://www.google.co.in/search?lr=lang_en&hl=en&q=chinese+restaurants&complete=0&pws=0&uule=w+CAIQICIJTmV3IERlbGhp but it converts the "+" sign and that results in a wrong search in Google. So perhaps you need a function called, setRawParam which is then appended in it's raw form at the end of the built query.
The text was updated successfully, but these errors were encountered:
For some parameters like
uule
that we need to pass to Google for search, they should not be urlencoded because then the value is lost. Since you're usinghttp_build_query
for your parameters, this particular parameter's value is being converted wrongly.Example:
$googleUrl->setLang('en')->setNumberResults(10)->setTld("co.in")->setParam("uule","w+CAIQICIJTmV3IERlbGhp");
Ideally it should call
https://www.google.co.in/search?lr=lang_en&hl=en&q=chinese+restaurants&complete=0&pws=0&uule=w+CAIQICIJTmV3IERlbGhp
but it converts the "+" sign and that results in a wrong search in Google. So perhaps you need a function called,setRawParam
which is then appended in it's raw form at the end of the built query.The text was updated successfully, but these errors were encountered: