Re: CURLHandle trouble
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.