• 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: Jaime Magiera <email@hidden>
  • Date: Sun, 31 Aug 2008 16:31:36 -0400


On Aug 31, 2008, at 12:30 PM, Sam Schroeder wrote:

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.

Hello,

The easiest way for non-network programmers is probably NSMutableURLRequest. You simply instantiate an NSMutableURLRequest object, set it's URL, set it's HTTP method and away you go.

http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSMutableURLRequest_Class/Reference/Reference.html

- (void)setHTTPMethod:(NSString *)method

hope that helps,

Jaime Magiera

Sensory Research
http://www.sensoryresearch.net

_______________________________________________

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: Jaime Magiera <email@hidden>
References: 
 >Sending a GET or POST HTTP request with Cocoa (From: "Sam Schroeder" <email@hidden>)

  • Prev by Date: Re: Sending a GET or POST HTTP request with Cocoa
  • Next by Date: Re: Sending a GET or POST HTTP request with Cocoa
  • Previous by thread: Re: Sending a GET or POST HTTP request with Cocoa
  • Next by thread: Re: Sending a GET or POST HTTP request with Cocoa
  • Index(es):
    • Date
    • Thread