Re: "So I want to connect to the internet in 2008..."
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