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.
Nov 20, 2018
1
Level 14
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
Please or to participate in this conversation.