开发者

WebPolicyDelegate::decidePolicyForNavigationAction How to get GET and POST data from a link clicked or form submitted?

I implemented a WebPolicyDelegate and the ...decidePolicyForNavigat开发者_如何学运维ionAction:... method.

It works fine, I get among other things the HTTP method [GET|POST] but what I can't find is the actual GET and POST data. Where or how should I get it?


How about:

NSString *queryString = [[request URL] query];
NSData *postData = [request HTTPBody];

GET data is just the query string of the URI.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜