CURLHandle and making directories on remote host
CURLHandle and making directories on remote host
- Subject: CURLHandle and making directories on remote host
- From: m <email@hidden>
- Date: Sun, 1 Feb 2004 04:49:48 -0600
I've been beating my head against the wall trying to figure out how to
properly create a directory on an FTP host using CURLHandle.
Basically, I want to emulate the following terminal command:
curl -Q "MKD somedirectory"
ftp://myusername:email@hidden
which when invoked in Terminal, results in a directory named
"somedirectory" on the FTP host.
Here's how I'm trying to do it using CURHandle:
NSString* urlString = @"
ftp://myusername:email@hidden";
NSURL* url = [NSURL URLWithString:urlString];
CURLHandle* urlHandle = (CURLHandle *)[url URLHandleUsingCache:NO];
[urlHandle setString:@"MKD somedirectory" forKey:CURLOPT_QUOTE];
[urlHandle prepareAndPerformCurl];
The result when running this code is that as soon as I execute the last
line, I get a EXC_BAD_ACCESS. Note that I am able to successfully
upload files using CURLHandle, so I'm pretty sure the
CURLHandle.framework is properly installed and initialized.
Any help appreciated.
Regards,
_murat
_______________________________________________
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.