Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

JackJones's avatar

How come if I use cURL on Google I get a different page than if I visit in my browser?

I'm using Guzzle and if I visit https://www.google.com/search?safe=strict&client=firefox-b&q=Glasfryn+conwy+coordinates&oq=Glasfryn+conwy+coordinates&gs_l=psy-ab.3...279892.281596..281746...0.0..0.97.886.12......0....1..gws-wiz.......0i22i30j33i160j33i21.NeeaHsJCDKI

I get a page showing coordinates, but I use Guzzle it's just a really basic page with hardly any styling and no coordinates

0 likes
1 reply
Cronix's avatar

Curl isn't a browser. It isn't pulling in the images, or executing javascript on the page. Turn off javascript in your browser and visit the same page. If you view the retrieved pages source, it's probably about the same as what's being returned to curl.

Please or to participate in this conversation.