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
精彩评论