Re: How to specify FTP URL to fetch any file
Re: How to specify FTP URL to fetch any file
- Subject: Re: How to specify FTP URL to fetch any file
- From: daniel <email@hidden>
- Date: Wed, 23 Feb 2005 09:50:55 -0800
Since there hasn't been any response to this, I will throw out one solution: use curl.
It doesn't offer the kind of runloop integration that CFNetwork does, but its FTP implementation is well tested and contains a lot more functionality than the Apple one, probably by virtue of having been around a lot longer.
In general I use CFNetwork for everything FTP/HTTP related unless I run into some limitation that forces me to use curl.
Another nice thing about curl is if by some chance you run into a bug like this in curl, you would be able to fix it yourself as needed.
Daniel
On Feb 18, 2005, at 9:02 AM, Wells, Terry C wrote:
Ok, that's good information. I can stop beating my head.
However, the reality is that I'm stuck in 10.3 with a project deadline fast approaching. Any suggestions how I can get it working today?
Thanks,
Terry
-----Original Message-----
From: Jeremy Wyld [mailto:email@hidden]
Sent: Fri 2/18/2005 8:58 AM
To: Wells, Terry C
Cc: email@hidden
Subject: Re: How to specify FTP URL to fetch any file
It's a bug that this doesn't work. I've fixed it for Tiger.
jeremy
On Feb 18, 2005, at 8:10 AM, Wells, Terry C wrote:
> Hi,
>
> I finally got my code working to use FTP URLs to connect to other
> machines. But I still have a problem.
>
> Even if you add a username and password, an FTP URL appears to be
> restricted to referencing files that exist below the home directory
> of the logged in user. I need to be able to list directories and
> retrieve files from absolute paths relative to the root directory.
>
> I saw something mentioned in the Apple docs where you could specify
> an absolute FTP URL as:
> ftp://user:pass@host//dir1/dir2/file (Note the double slash
> between host and dir1)
>
> However, this doesn't work. It still attempts to find dir1 starting
> at the user's home directory.
>
> Am I using the right syntax? Do I need to set some special property
> in the URL stream? Is this supposed to work at all?
>
> The ability to FTP arbitrary files from the server is critical
> functionality for my application and if the URL approach isn't going
> to work, I need to know right away. I've wasted enough time getting
> here and really just need to get this working and move on.
>
> Thanks,
> Terry
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Macnetworkprog mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
> 40apple.com
>
> This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden