1

I have made URL Request including some parameter in body and http method is set to POST which load in webView successfully. Now i want to do same process in default browser i.e safari but safari accept only URL not URL Request. I want to know how to typecast/convert this request(NSMutableURLRequest) so that i can accommodate it in the [[UIApplication sharedApplication] openURL ....

i checked below link but nothing is giving clear idea...

Open Url hosted using POST method in Safari using sharedApplication openURL method

Saif
  • 61
  • 5

1 Answers1

2

The short answer is that you can't do that. The UIApplication openURL command takes a URL, not a URLRequest. Period.

Furthermore, Safari is not set up to accept URL requests.

As someone pointed out in the other thread, you can pass an URLRequest to a web view.

Duncan C
  • 128,072
  • 22
  • 173
  • 272