Sorry if this is a duplicate question.
My target site redirects me to desktop site if the browser is not a mobile. I want to parse the mobile version of the site (http://mobile.mysite.com). I can’t use Curl as my server is disabled for that.
what would be the useragent for mobile if it is possible at all ??!!
Sorry if this is a duplicate question. My target site redirects me to desktop
Share
If you need to send custom headers like
User-Agentwith yourfile_get_contentsrequest, the PHP answer to that are stream contexts:See
stream_context_createandfile_get_contents.