Skip navigation.
 
mlRe: Cocoa: How do I send/receive XML within a HTTP connect?
FROM : Jens Alfke
DATE : Fri May 16 20:18:06 2008

On 16 May '08, at 10:59 AM, <email_removed> wrote:

> Do I use NSURLConnection to actually TRANSMIT & RECEIVE XML data to 
> the Server like this?
>
>      serverData = [NSURLConnection sendSynchronousRequest:theRequest
>                                    returningResponse:serverResponse
>                                    error:myError];


Yes, if you want to send it synchronously.

> 3) Then, how do I flush(), close() this connection?


You don't need to. It's all done for you.

—Jens

Related mailsAuthorDate
mlCocoa: How do I send/receive XML within a HTTP connect? fclee May 16, 19:59
mlRe: Cocoa: How do I send/receive XML within a HTTP connect? fclee May 16, 20:11
mlRe: Cocoa: How do I send/receive XML within a HTTP connect? Jens Alfke May 16, 20:18
mlRe: Cocoa: How do I send/receive XML within a HTTP connect? fclee May 16, 20:20
mlRe: Cocoa: How do I send/receive XML within a HTTP connect? stephen joseph but… May 16, 20:29
mlRe: Cocoa: How do I send/receive XML within a HTTP connect? fclee May 16, 20:53
mlRe: Cocoa: How do I send/receive XML within a HTTP connect? stephen joseph but… May 16, 21:13
mlRe: Cocoa: How do I send/receive XML within a HTTP connect? Jens Alfke May 16, 21:20
mlRe: Cocoa: How do I send/receive XML within a HTTP connect? Jens Alfke May 17, 22:50