how can i set proxy to my url request in ios -
i have been trying set proxy request loaded in uiwebview, using asihttprequest not able find solution nothing happens , times out.
the code this:
asihttprequest *request = [[asihttprequest alloc ] initwithurl:url]; [request setvalue:@"user-agent: mozilla/5.0 (ipad; u; cpu os 4_3_2 mac os x; en-us) applewebkit/533.17.9 (khtml, gecko) mobile" forkey:@"useragent"]; [request setproxyhost:@"proxyaddress"]; [request setproxyport:@"myportvalue"]; [request setdelegate:self]; [request startasynchronous];
please me find wrong
Comments
Post a Comment