http 407 proxy authentication although Proxy setup contains credentials #318

MarceloEmmerich opened this Issue Apr 22, 2012 · 1 comment


None yet

2 participants


My app does not currently work with proxies. Although the settings of the device's WiFi contain the proxy information, including credentials and no other app asks for proxy username/password, each request done with ASIHttpRequest ends up in a failure with a http 407. What could I be doing wrong?



That's expected behaviour and inherent in the design of ASIHTTPRequest / iOS.

ASIHTTPRequest builds up http requests itself rather than using the iOS NSURLConnection, so would need to manually add the proxy authentication headers. iOS does not allow the proxy username/password to be read queried by applications.

The only solutions are:

a. Use the built in dialogue to ask the user to provide the username/password


b. Stop using ASIHTTPRequest and switch to NSURLConnection or one of the frameworks built on top of it (eg. AFNetworking)

@jogu jogu closed this Apr 22, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment