simman
V2EX  ›  iOS

IOS 判断当前是否为代理情况

  •  
  •   simman · Mar 30, 2015 · 3623 views
    This topic created in 4087 days ago, the information mentioned may be changed or developed.

    请问怎么判断IOS当前是使用代理访问后台API呢? 要在客户端进行判断。

    使用 wireshark、charles 抓包可以看到都是加密的了,但是如果使用 paros 进行抓包,IOS会报错:

    2015-03-30 14:37:02.478 testsss[3935:652440] error: Error Domain=NSURLErrorDomain Code=-999 "cancelled" UserInfo=0x16571a10 {NSErrorFailingURLKey=https://xxxx.cc/, NSErrorFailingURLStringKey=https://xxxx.cc/, NSLocalizedDescription=cancelled}

    1 replies    2015-04-09 20:41:24 +08:00
    cattyhouse
        1
    cattyhouse  
       Apr 9, 2015 via iPhone
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2830 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 09:02 · PVG 17:02 · LAX 02:02 · JFK 05:02
    ♥ Do have faith in what you're doing.