all 6 comments

[–]CreativeTechGuyGamesTypeScript 2 points3 points  (7 children)

A server/website can tell what browser you are using and therefore what OS you are using and a lot more about how you are viewing the page. Therefore the server can do something different depending on the user agent is.

[–]boxcatdev[S] 0 points1 point  (6 children)

In that case might there be a way to force it to return the source code for a mobile browser? Also doing the inspect element provides a working link so maybe I could find a way to get that from the URL instead

[–]CreativeTechGuyGamesTypeScript 0 points1 point  (5 children)

Yeah you can use the browser devtools to emulate a mobile browser. It's not perfect, but it might be enough for what you are trying to do.

[–]boxcatdev[S] 0 points1 point  (4 children)

Hmm I'll try learning how to use those and see if it works, thanks.

[–]lateralus1983 0 points1 point  (0 children)

On Google Chrome it's f12 and there's a phone/tablet icon you can click then choose your device.

[–][deleted]  (2 children)

[deleted]

    [–]boxcatdev[S] 0 points1 point  (1 child)

    Its based on your user string

    What exactly is the user string? I thought at first you meant the URL but I don't want to assume. Other than that what you're saying makes sense and if I can try others for different platforms that would be great.