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
问问题
5571 次
2 回答
6
您不需要传递任何 User-Agent 标头,除非您使用的是明确需要它的服务,例如用于跟踪或调试目的等。
HTTP 在没有 User-Agent 标头的情况下运行良好。
于 2010-03-13T00:51:03.357 回答
0
您可以发送:“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”这是模拟器用户代理字符串
于 2010-03-12T11:24:53.500 回答