• 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: NSTask & curl
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTask & curl


  • Subject: Re: NSTask & curl
  • From: Dave Camp <email@hidden>
  • Date: Sun, 7 Jun 2009 08:17:09 -0700

On Jun 6, 2009, at 3:18 PM, Ammar Ibrahim wrote:

On Sun, Jun 7, 2009 at 1:09 AM, Bill Bumgarner <email@hidden> wrote:

On Jun 6, 2009, at 3:05 PM, Ammar Ibrahim wrote:

Thanks that fixed it! Although when you call it directly from the command
line, it's fine to have the space there!



I'd argue that fixed a symptom, but not the problem.

As others have said, launching a task to execute curl is just about as
wasteful and inefficient as you can get.


What others haven't mentioned is that it is also a potential security hole
or source of confusion for your users. Namely, packing up command lines and
then executing sub shells is rife with fragility and security issues.

I do agree, but I really need to use curl, and this is not a product. It's
for a controlled environment. I will entirely replace curl later.

If you really need to use curl, you should probably link against libcurl and use the code directly. The API is quite easy to work with.


Dave
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >NSTask & curl (From: Ammar Ibrahim <email@hidden>)
 >Re: NSTask & curl (From: Andrew Farmer <email@hidden>)
 >Re: NSTask & curl (From: Ammar Ibrahim <email@hidden>)
 >Re: NSTask & curl (From: Bill Bumgarner <email@hidden>)
 >Re: NSTask & curl (From: Ammar Ibrahim <email@hidden>)

  • Prev by Date: Re: movable / dragable menu symbol
  • Next by Date: Using non-id sender in IBAction methods
  • Previous by thread: Re: NSTask & curl
  • Next by thread: Re: NSTask & curl
  • Index(es):
    • Date
    • Thread