0

有没有办法使用 ASIHTTPRequest 或 iOS 中的任何其他网络库在 GET 请求中发送 POST 数据?

4

1 回答 1

1

Adding POST data to a GET request doesn't really make that much sense - some proxies won't like it and some webservers won't accept it or will mangle the data on the way in. however, I guess there's a few places to start if you're confident it will work with your server :

Searching for the word POST in the ASI docs will show you how using the ASIHTTPRequest object. However, ASI is deprecated and other solutions should be used.

Searching stack overflow gives you this question which shows you how to add POST data to NSURLRequest

于 2012-10-22T11:37:47.047 回答