• 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
How to specify FTP URL to fetch any file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to specify FTP URL to fetch any file


  • Subject: How to specify FTP URL to fetch any file
  • From: "Wells, Terry C" <email@hidden>
  • Date: Fri, 18 Feb 2005 08:10:56 -0800
  • Thread-topic: How to specify FTP URL to fetch any file

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:

This email sent to email@hidden

  • Follow-Ups:
    • Re: How to specify FTP URL to fetch any file
      • From: Jeremy Wyld <email@hidden>
    • Re: How to specify FTP URL to fetch any file
      • From: Miro Jurišić <email@hidden>
  • Prev by Date: Re: OTConnect() returns kOTOutStateErr
  • Next by Date: Re: How to specify FTP URL to fetch any file
  • Previous by thread: Re: Async HTTP stream never gets called on 10.2
  • Next by thread: Re: How to specify FTP URL to fetch any file
  • Index(es):
    • Date
    • Thread