• 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: Sending a GET or POST HTTP request with Cocoa
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Sending a GET or POST HTTP request with Cocoa


  • Subject: Re: Sending a GET or POST HTTP request with Cocoa
  • From: Brad Gibbs <email@hidden>
  • Date: Mon, 01 Sep 2008 09:02:06 -0700

You might find the discussion here helpful:

http://deusty.blogspot.com/search/label/NSURLRequest

After getting NSURL's to work, I decided I'd be better off with TCP sockets. If you find yourself in the same position, you might try AsyncSockets (also available at the link above). It's non-blocking, fast, easy and reliable.

Todd Ditchendorf also created some very useful tools for working with XMLRPC and SOAP servers, available here:

http://scan.dalo.us/


Brad


On Aug 31, 2008, at 9:30 AM, Sam Schroeder wrote:

Hi all,

I'm new to Cocoa development and I'm trying to learn the basics of
sending HTTP GETs and POSTs from Cocoa.  I've been reading up on NSURL
and searching for decent sample code.  However, I've been unable to
find something simple that _just_ explains how to send a GET and
capture the returned results.  My google_fu is weak.  My ultimate goal
is to send and receive XML (or maybe JSON) requests over HTTP, but
first I want to understand simple GETs and POSTs.

Any links or sample code would be greatly appreciated.

--
Thanks,

Sam
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Sending a GET or POST HTTP request with Cocoa
      • From: Tito Ciuro <email@hidden>
  • Prev by Date: Re: array segment
  • Next by Date: Re: Newbie question: What does "no-op" mean?
  • Previous by thread: Re: array segment
  • Next by thread: Re: Sending a GET or POST HTTP request with Cocoa
  • Index(es):
    • Date
    • Thread