<legend id='GuGbd'><style id='GuGbd'><dir id='GuGbd'><q id='GuGbd'></q></dir></style></legend>
          <bdo id='GuGbd'></bdo><ul id='GuGbd'></ul>

      1. <small id='GuGbd'></small><noframes id='GuGbd'>

        <i id='GuGbd'><tr id='GuGbd'><dt id='GuGbd'><q id='GuGbd'><span id='GuGbd'><b id='GuGbd'><form id='GuGbd'><ins id='GuGbd'></ins><ul id='GuGbd'></ul><sub id='GuGbd'></sub></form><legend id='GuGbd'></legend><bdo id='GuGbd'><pre id='GuGbd'><center id='GuGbd'></center></pre></bdo></b><th id='GuGbd'></th></span></q></dt></tr></i><div id='GuGbd'><tfoot id='GuGbd'></tfoot><dl id='GuGbd'><fieldset id='GuGbd'></fieldset></dl></div>

        <tfoot id='GuGbd'></tfoot>
      2. UIWebView 是否在请求标头中发送与移动 Safari 相同的用户代理?

        Does UIWebView send the same User-Agent in the Request Headers as mobile Safari?(UIWebView 是否在请求标头中发送与移动 Safari 相同的用户代理?)
            <tbody id='CXB23'></tbody>
        1. <tfoot id='CXB23'></tfoot><legend id='CXB23'><style id='CXB23'><dir id='CXB23'><q id='CXB23'></q></dir></style></legend>
          <i id='CXB23'><tr id='CXB23'><dt id='CXB23'><q id='CXB23'><span id='CXB23'><b id='CXB23'><form id='CXB23'><ins id='CXB23'></ins><ul id='CXB23'></ul><sub id='CXB23'></sub></form><legend id='CXB23'></legend><bdo id='CXB23'><pre id='CXB23'><center id='CXB23'></center></pre></bdo></b><th id='CXB23'></th></span></q></dt></tr></i><div id='CXB23'><tfoot id='CXB23'></tfoot><dl id='CXB23'><fieldset id='CXB23'></fieldset></dl></div>

          <small id='CXB23'></small><noframes id='CXB23'>

                  <bdo id='CXB23'></bdo><ul id='CXB23'></ul>

                  本文介绍了UIWebView 是否在请求标头中发送与移动 Safari 相同的用户代理?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  抱歉,我只是自己测试一下,但我目前没有我的 mac.在 UIWebView 内发出的 Web 请求是否发送与从移动 Safari 发出的 Web 请求相同的用户代理信息?

                  Sorry, I would just test this myself, but I'm currently without my mac. Does a web request made inside of a UIWebView send the same user-agent info that a web request made from mobile Safari would?

                  推荐答案

                  从 UIWebView 发出的 Web 请求不会在用户代理字符串中包含单词Safari".从 Mobile Safari 发出的 Web 请求会.这是我发现的确定请求来自应用程序内部还是来自 Mobile Safari 的最佳方式.

                  Web requests made from UIWebView will not include the word "Safari" in the User Agent string. Web requests made from Mobile Safari will. This is the best way I have found for determining of a request is coming from within an app or from Mobile Safari.

                  来自 App 内 UIWebView 的用户代理示例:

                  Sample User Agent from UIWebView within App:

                  User-Agent: Mozilla/5.0 (iPad; U; CPU OS 4_3_2 like Mac OS X; en-us) AppleWebKit/533.17.9 (KHTML, like Gecko) Mobile
                  

                  Mobile Safari 的用户代理示例:

                  Sample User Agent from Mobile Safari:

                  User-Agent: Mozilla/5.0 (iPad; U; CPU OS 4_3_2 like Mac OS X; en-us) AppleWebKit/533.17.9 (KHTML, like Gecko) Version/5.0.2 Mobile/8H7 Safari
                  

                  这篇关于UIWebView 是否在请求标头中发送与移动 Safari 相同的用户代理?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Getting an NSArray of a single attribute from an NSArray(从 NSArray 获取单个属性的 NSArray)
                  ImageIO: lt;ERRORgt; JPEG Corrupt JPEG data: premature end of data segment iphone - how to catch this?(ImageIO:lt;错误gt;JPEG 损坏的 JPEG 数据:iphone 数据段过早结束 - 如何捕捉到这个?)
                  Xcode iOS organizer submit to app store yields quot;The archive is invalidquot; error(Xcode iOS 管理器提交到应用商店产生“存档无效;错误)
                  MFMessageComposeViewController alloc returns nil(MFMessageComposeViewController alloc 返回 nil)
                  Mobile Device Management with iPhone(使用 iPhone 进行移动设备管理)
                  iPhone: How to allow multiple selection in tabelview for a custom cell?(iPhone:如何允许在自定义单元格的表格视图中进行多项选择?)
                  <legend id='Ku2tv'><style id='Ku2tv'><dir id='Ku2tv'><q id='Ku2tv'></q></dir></style></legend><tfoot id='Ku2tv'></tfoot>
                      <tbody id='Ku2tv'></tbody>

                      <small id='Ku2tv'></small><noframes id='Ku2tv'>

                        <bdo id='Ku2tv'></bdo><ul id='Ku2tv'></ul>
                        <i id='Ku2tv'><tr id='Ku2tv'><dt id='Ku2tv'><q id='Ku2tv'><span id='Ku2tv'><b id='Ku2tv'><form id='Ku2tv'><ins id='Ku2tv'></ins><ul id='Ku2tv'></ul><sub id='Ku2tv'></sub></form><legend id='Ku2tv'></legend><bdo id='Ku2tv'><pre id='Ku2tv'><center id='Ku2tv'></center></pre></bdo></b><th id='Ku2tv'></th></span></q></dt></tr></i><div id='Ku2tv'><tfoot id='Ku2tv'></tfoot><dl id='Ku2tv'><fieldset id='Ku2tv'></fieldset></dl></div>