0

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.

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?

2
  • 1
    How is this related to Xcode? Commented Aug 29, 2011 at 19:43
  • I think he wants to HTTP post to an IIS site from xcode (i think this should be clarified, can you change the tags on a question? Needs to specify iphone or whatever he's using (i never posted a question, only answered) Commented Aug 30, 2011 at 1:17

1 Answer 1

1

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

Sign up to request clarification or add additional context in comments.

2 Comments

Thanks, do i need to change any IIS settings to write inside a file?
No IIS Changes, i think NTFS permission need to be applied to the directory you are storing the file (you need to give the "Internet Guest Account" full control (or at least write of that path) Also, when you say "write inside a file" you usually are posting a new one from the iOS device and replacing what's there (depending on the file name of course).. You need to make the actual webpage accept the HTTP post (there's numerous examples of this in php or asp.net etc)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.