Passing requests through a proxy.

Discussion in 'iOS Programming' started by lawlessc, May 10, 2013.

  1. lawlessc, May 10, 2013
    Last edited: May 10, 2013

    lawlessc macrumors newbie

    Joined:
    May 10, 2013
    #1
    My first post, and not my last.


    I'm currently working on a simple application using a webview but i wish to pass the requests through a proxy (from within the app, setting a proxy for the whole device isn't an option, nor is a third party library).

    The only two ways i can see of doing this are adding the proxy somehow to initwithscheme for NSURL

    or

    Somehow doing it with CFURL which looks quite complex and may not work, and for which explanations are few and far between.


    Has anyone successfully done this before?
     
  2. ArtOfWarfare macrumors 604

    ArtOfWarfare

    Joined:
    Nov 26, 2007
    #2
    I'd just like to point out that CFURLRef and NSURL* are toll free bridged:

    http://developer.apple.com/library/ios/documentation/CoreFoundation/Conceptual/CFDesignConcepts/Articles/tollFreeBridgedTypes.html
     

Share This Page