[webkit-help] How do I add a proxy redirection in my WebView?
Rémy Saissy
remy.saissy at gmail.com
Fri Feb 11 10:18:36 PST 2011
Hi,
On MacOSX, I have an application with a WebView and a reverse proxy. I
want all requests from the WebView to go through the reverse proxy so
I implemented a WebResourceLoadDelegate with the following method:
- (NSURLRequest *)webView:(WebView *)sender resource:(id)identifier
willSendRequest:(NSURLRequest *)request
redirectResponse:(NSURLResponse *)redirectResponse
fromDataSource:(WebDataSource *)dataSource;
In this method, I create an NSURLProtectionSpace instance with
initWithProxyHost:port:type:realm:authenticationMethod:.
The problem is that I haven't found a way to insert this
protectionspace into the modified NSURLRequest that I return.
Am I doing something wrong?
Thanks.
--
Rémy Saissy
Web: http://picasaweb.google.fr/remy.saissy
"J'aime les belles plantes car cela me donne envie de devenir jardinier."
More information about the webkit-help
mailing list