I found the answer myself. I found that ASIHTTPRequest has what I need:
NSURL *url = [NSURL URLWithString:@"http://minip.no"]; ASIHTTPRequest *request = [ASIHTTPRequest requestWithURL:url]; [request setProxyHost:[chosenprox objectForKey:@"host"]]; [request setProxyPort:[[chosenprox objectForKey:@"port"] intValue]]; [request setDelegate:self]; [request startSynchronous]; if ([request error]) { [mainFrame loadHTMLString:[[request error] localizedDescription] baseURL:nil]; } else if ([request responseString]) { [mainFrame loadHTMLString:[request responseString] baseURL:nil]; }
And he has other nice uses.
source share