Configuring proxy/PAC file for iPhone

As the iPhone utilizes the Safari 3 web browser albeit with a reduced feature set, the ability to use a proxy server (and a PAC file) remains.
There's little in the way of actual documentation regarding the functionality on the iPhone, and in particular the format for the automatic proxy URL.


Utilizing a PAC File

  • Click the 'Settings' icon
  • Click the arrow to view 'Wi-Fi' options
  • For the wireless connection you wish to configure, press the blue icon
  • Scroll to the bottom and choose 'Auto'
  • Enter the location of your PAC file in the format: http://domain.com/filename.pac

The format of the PAC file must follow the above syntax, not doing so will result in the below error when trying to access URLs in iPhone Safari:
"Operation could not be completed. (POSIX error 12 - Cannot allocation memory)" (NSPOSIXErrorDomain:12)

Utilizing a proxy server

  • Click the 'Settings' icon
  • Click the arrow to view 'Wi-Fi' options
  • For the wireless connection you wish to configure, press the blue icon
  • Scroll to the bottom and choose 'Manual'
  • Enter the proxy server and port, select authentication if your proxy server requires it