• 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: Send/receive data to a server using Cocoa
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Send/receive data to a server using Cocoa


  • Subject: Re: Send/receive data to a server using Cocoa
  • From: Nir Soffer <email@hidden>
  • Date: Wed, 30 Aug 2006 14:37:29 +0300


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:
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden
References: 
 >Send/receive data to a server using Cocoa (From: Athahar <email@hidden>)

  • Prev by Date: Send/receive data to a server using Cocoa
  • Next by Date: Re: Something fishy going on PLEASE HELP
  • Previous by thread: Send/receive data to a server using Cocoa
  • Next by thread: [SOLVED] Something fishy going on PLEASE HELP
  • Index(es):
    • Date
    • Thread