Question

I building an Https Client to send some data to a server, but I don't know what to pass in User-Agent. Should I use the webkit one's or do I have to build one explicitely for my App? I'm using this handy post Thanks for any help

Was it helpful?

Solution

You don't need to pass any User-Agent header, unless you're using a service that explicitly requires it such as for tracking or debugging purposes etc.

HTTP works perfectly well without the User-Agent header being present.

OTHER TIPS

you can send: "Mozilla/5.0 (Linux; U; Android 1.0; en-us; generic) AppleWebKit/525.10+ (KHTML, like Gecko) Version/3.0.4 Mobile Safari/523.12.2" that's emulator user agent string

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top