如何测试ios App使用https与服务器进行通信?

时间:2017-06-15 09:16:57

标签: ios https

在我们的项目中,我们希望确保与服务器通信的数据始终通过https进行传输。 作为测试人员,我想按预期测试这项工作。我如何在客户端测试。 感谢

1 个答案:

答案 0 :(得分:0)

Just change the Info.plist temporarily.

Info.plist -> Open As -> Source Code: NSAppTransportSecurity, NSAllowsArbitraryLoads = NO.

So the client http is forbidden.

After the test, reset as before.