• 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: "So I want to connect to the internet in 2008..."
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: "So I want to connect to the internet in 2008..."


  • Subject: Re: "So I want to connect to the internet in 2008..."
  • From: Mike Cohen <email@hidden>
  • Date: Mon, 23 Jun 2008 09:45:17 -0400


On Jun 23, 2008, at 9:35 AM, JP May wrote:


The cocoa url loading system is at a slightly higher level (http://developer.apple.com/documentation/Cocoa/Conceptual/URLLoadingSystem/Tasks/UsingNSURLConnection.html#//apple_ref/doc/uid/20001836) which may be more appropriate.

I see, I had no idea, thanks.

To be clear, the whole NSURL system does NOT seem to be set up to handle typical method=post forms ... it's more just for reading a straight http or https web page....

Is that correct?

Or is there a whole "And here's how to do forms ........." section I'm too stupid to see in the documentation??

Use a NSMutableURLRequest, change the method to POST using setHTTPMethod, add the form content with setHTTPBody, and finally send the request using a NSURLConnection.
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: "So I want to connect to the internet in 2008..."
      • From: JP May <email@hidden>
References: 
 >"So I want to connect to the internet in 2008..." (From: JP May <email@hidden>)
 >Re: "So I want to connect to the internet in 2008..." (From: JP May <email@hidden>)

  • Prev by Date: Re: "So I want to connect to the internet in 2008..."
  • Next by Date: Re: "So I want to connect to the internet in 2008..."
  • Previous by thread: Re: "So I want to connect to the internet in 2008..."
  • Next by thread: Re: "So I want to connect to the internet in 2008..."
  • Index(es):
    • Date
    • Thread