Fetching Webpages as a Mobile Browser Using curl
You can fetch a webpage as if you’re requesting from a mobile device by setting curl’s User-Agent header to match a mobile browser. Remote servers use the User-Agent header to decide whether to serve mobile or desktop versions of pages. Basic syntax Use the -A (or –user-agent) flag to specify a mobile User-Agent string: curl…
