Using NSURLRequest to pass key-value pairs to PHP script with POST

后端 未结 6 2076
灰色年华
灰色年华 2021-01-31 20:51

I\'m fairly new to objective-c, and am looking to pass a number of key-value pairs to a PHP script using POST. I\'m using the following code but the data just doesn\'t seem to b

6条回答
  •  借酒劲吻你
    2021-01-31 21:02

    If you are going to do a lot of form posting, I'd recommend skipping NSURLRequest and using ASIHTTPRequest instead. IMHO, it's well documented and offers an straightforward way to interact with webservices.

提交回复
热议问题