开发者

HTTP requests from iPhone UIWebView and iPhone Safari / PC / Mac

开发者 https://www.devze.com 2023-02-04 11:42 出处:网络
I\'m quite a newbie on HTTP and client and server stuff. On the server side, is there a way to开发者_StackOverflow中文版 tell the difference between HTTP requests sent from \"iPhone UIWebView\" and \

I'm quite a newbie on HTTP and client and server stuff.

On the server side, is there a way to开发者_StackOverflow中文版 tell the difference between HTTP requests sent from "iPhone UIWebView" and "iPhone Safari / PC browsers / Mac Browsers", given that I the programmer don't add extra fields to the iPhone UIWebView request?

Thanks in advance.


No, since UIWebView's send a user agent akin to the one send with Mobile Safari. Last I checked, there wasn't anything noticeable that differed between the two, though that could've changed. Try sniffing the HTTP requests with a tool like Wireshark and see if they differ.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号