• 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: CURLHandle trouble
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CURLHandle trouble


  • Subject: Re: CURLHandle trouble
  • From: Don Murta <email@hidden>
  • Date: Tue, 13 Jan 2004 15:02:28 -0700

Because your mURLHandle is just a NSURLHandle hidden by some typecasting not a CURLHandle as you expect. I don't know off hand but you may want to look at CURLHandle initWithURL:cached: method instead of the CURLHandle *mURLHandle = (CURLHandle *)[url URLHandleUsingCache:NO]; call your making.

Hope that helps.
don


On 13-Jan-04, at 1:07 PM, Michael Becker wrote:

Hi!

I chose CURLHandle to be my framework for dealing with HTTP POST requests. But I instantly ran into a problem I just cannot figure out myself:
This is my very basic code (Trying to perform a basic HTTP POST):

NSDictionary *dict = [ NSDictionary dictionaryWithObject:@"Value" forKey:@"Key"];

NSURL *url = [NSURL URLWithString:@"http://localhost/myPOST.php";];
CURLHandle *mURLHandle = (CURLHandle *)[url URLHandleUsingCache:NO];
NSLog(@"%@", mURLHandle);

[(CURLHandle*)mURLHandle setPostDictionary:dict];
[mURLHandle prepareAndPerformCurl];
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >CURLHandle trouble (From: Michael Becker <email@hidden>)

  • Prev by Date: Re: vImage
  • Next by Date: Re: How to completely release every object allocated when opening a NIB file ?
  • Previous by thread: CURLHandle trouble
  • Next by thread: Recent Documents / Trash Issue ...
  • Index(es):
    • Date
    • Thread