How do I insert a POST request into a UIWebView

前端 未结 7 1505
故里飘歌
故里飘歌 2021-02-01 08:50

For a GET request I\'ve tried this simple method:

NSString *urlAddress = @"http://example.com/";
NSURL *url = [NSURL URLWithString:urlAddress];
NSURLReq         


        
相关标签:
7条回答
  • 2021-02-01 09:32

    You can use something like ASIHTTPRequest to make the POST request (With the option of doing it asynchronously) and then load the response string/data into the UIWebView. Look at this page under the section titled Sending data with POST or PUT requests and then look at the Creating an asynchronous request section at the top for information on how to handle the response string/data.

    Hope that helps, sorry if I misunderstood your question.

    0 讨论(0)
提交回复
热议问题