Skip navigation.
 
mlRe: Send/receive data to a server using Cocoa
FROM : Nir Soffer
DATE : Wed Aug 30 13:37:29 2006

On 30/08/2006, at 14:24, Athahar wrote:

> NSURLRequest *theRequest=[NSURLRequest requestWithURL:[NSURL
> URLWithString:@"http://145.36.149.31:8080/CBuild/servlet/
> HelloAddition?input1=4&input2=6"]
>                                                 cachePolicy:NSURLRequestUseProtocolCachePolicy
> timeoutInterval:60.0];
>                                                     // create the connection with the request
>     // and start loading the data
>     NSURLConnection *theConnection=[[NSURLConnection alloc]
> initWithRequest:theRequest delegate:self];
>     if (theConnection) {
>         // Create the NSMutableData that will hold
>         // the received data
>         receivedData=[[NSMutableData data] retain];
>
> Though we are not getting any error message we cannot get any data in
> the variable receivedData.
>
> Am I missing anything here?


Yes, the NSURLConnection delegate methods e.g. 
connection:didReceiveData:

Related mailsAuthorDate
mlSend/receive data to a server using Cocoa Athahar Aug 30, 13:24
mlRe: Send/receive data to a server using Cocoa Nir Soffer Aug 30, 13:37