• 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
CURLHandle and making directories on remote host
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: CURLHandle and making directories on remote host
      • From: m <email@hidden>
References: 
 >Re: Updating text fields in Cocoa. (From: Daniel Todd Currie <email@hidden>)

  • Prev by Date: Removing text container from layout manager stops delegate messages
  • Next by Date: isight picture window
  • Previous by thread: Re: Updating text fields in Cocoa.
  • Next by thread: Re: CURLHandle and making directories on remote host
  • Index(es):
    • Date
    • Thread