• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How do you append the data to the URL while POSTING?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How do you append the data to the URL while POSTING?


  • Subject: Re: How do you append the data to the URL while POSTING?
  • From: "Lukhnos D. Liu" <email@hidden>
  • Date: Sat, 4 Nov 2006 20:56:16 +0800

On Nov 4, 2006, at 20:00 , dee gee wrote:
 1) How do you append the data to the URL while POSTING?
 2)How do you receive a response Data from the server?

Cocoa comes with two classes, NSURLRequest (and its mutable counterpart NSMutableURLRequest) and NSURLConnection, with which you can do POST requests. You have to roll your own POST data though (separators etc.)

3) I have seen a code to parse an XML.
But I don't see any to create an XML. I need to know how to create an XML file .

NSXMLDocument class comes with an instance method XMLData (or XMLDataWithOptions: which gives you more control over output formats) that helps you do it.

My problem is: there are not enough examples for Internet & Web applications in cocoa.

There are lots of code snippets (or pointers to them) that can be found in the mailing list archive. They have enabled me to piece together a Flickr API framework. Risking self-promotion, it actually contains some code snippets that might help you. It's called ObjectiveFlickr. Look for its OFHTTPRequest class to creating POST requests and receiving response, and prepareRESTPOSTData: in OFFlickrContext class for rolling POST data.

d.




_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >How do you append the data to the URL while POSTING? (From: dee gee <email@hidden>)

  • Prev by Date: Re: Spell Checking Text Views
  • Next by Date: NSDate scope question
  • Previous by thread: How do you append the data to the URL while POSTING?
  • Next by thread: Re: How do you append the data to the URL while POSTING?
  • Index(es):
    • Date
    • Thread