Skip to content

Latest commit

 

History

History
25 lines (16 loc) · 1023 Bytes

File metadata and controls

25 lines (16 loc) · 1023 Bytes

LLHTTPProxyURLProtocol

This is a NSURLProtocol subclass that allows NSURLRequests to be sent over a specified proxy. Because it is a NSURLProtocol, regular libraries that make use of NSURLConnection for URL loading should be able to transparently use it.

It will take over URL loading for any NSURLRequest that has set the proxy server address property.

Proxy Support

Currently it supports the following types of proxies (that are available in CFNetwork)

  • Socks 4
  • Socks 5
  • HTTP
  • HTTPS

Proxy auto configuration via a URL will also be eventually supported.

Design Goals

  • Allow transparent usage of NSURLConnection
  • Support http and https URL loading
  • Full support for NSURLAuthenticationChallenge type events

Todo