开发者

Getting a 405 HTTP error when POSTing in Objective-C

In xcode, I use doHTTPPOST method to write a data to a XML file residing in the server (IIS 6.0).

I get http 405 method not found error, enable GET,POST, PUT method in the server.开发者_StackOverflow

Do I need to do something in order to write contents to a file from xcode?

I can use doHTTPGET to read the contents of the same file? Any thoughts?


I'd look into ASIHTTP, there is great documentation on how to upload files.

http://allseeing-i.com/ASIHTTPRequest/How-to-use

To build xml files to a file or to a variable, the best framework i have found is:

XSWI library - https://github.com/skjolber/xswi

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜