How to fetch a webpage as a mobile browser with curl on Linux?

On Linux, how to download a webpage as a mobile browser?

asked May 6, 2014 by Eric Z Ma (43,500 points)
edited May 6, 2014 by Eric Z Ma

1 Answer

 
Best answer

You can change the agent of curl to be a mobile browser's and the remote webserver may be consider the request from a mobile browser:

curl \
-A "Mozilla/5.0 (iPhone; CPU iPhone OS 6_1_3 like Mac OS X) AppleWebKit/536.26 (KHTML, like Gecko) CriOS/28.0.1500.12 Mobile/10B329 Safari/8536.25" \
http://www.example.com/
answered May 6, 2014 by Eric Z Ma (43,500 points)
edited May 6, 2014 by Eric Z Ma

Please log in or register to answer this question.

Copyright © SysTutorials. User contributions licensed under cc-wiki with attribution required.
Hosted on Dreamhost

...