How to use proxy in objective-c when sending NSMutableURLRequest?

I want to use a proxy server as shown below to send a request. But I do not know how to use the proxy server in objective-c ? proxy server:

 72.64.146.136: 3128 

Can anyone tell me? Thank you sincerely!

+4
source share
1 answer

You can use a proxy server using CFURL , but it is much better to use a network library such as AFNetworking, which supports a proxy server in its API.

https://github.com/AFNetworking/AFNetworking

For more information on CFURL see Using Proxies for NSURLConnection

0
source

All Articles