Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

FTP with URLSimpleDownload isn't working for me



Hi,
 
I'm developing a plugin for Adobe Acrobat 6.0 that needs to use FTP to fetch some data files from a server on the LAN.
 
Since Acrobat 6.0 plugins are based on Carbon, I have been trying to get URLSimpleDownload working, but keep getting errors.  In my testing, I have found that file: and http: URLs work fine, but ftp: URLs don't.  They typically return a result code of -30785 (Extension failed to load).
 
And to top it off, I'm not even sure if URLSimpleDownload would do what I need even if it was working.
 
Ultimately, what I need to work is this:
- Login to an FTP server on the LAN using a username and password (not anonymous).
- Get a listing of a specific directory relative to the server's root directory which is *not* below the logged in user's home directory. (can an ftp: URL even do this?)  The logged in user does have permission to list this directory.
- Download data files from that directory in ASCII or BIN mode, selectable by me.
 
Details about my environment:
Mac OS X 10.3.7
CodeWarrior 9.3
Adobe Acrobat 6.0 SDK
XCode 1.5 is loaded, but I'm not using it directly.
 
Other things I've tried:
- Apple provides sample code for doing FTP using CoreFoundation, but I can't use it because Acrobat 6.0 Plugins aren't Mach-O and thus can't use any of the .framework stuff.  (Unless I'm missing something here...)
- I found source code for a command line FTP client written in ANSI C using direct sockets calls, but it's such a mess that I'd have to rewrite the whole thing to do anything useful and I'd just as soon avoid that if at all possible.
 
If anyone has any thoughts or suggestions on how I can get something working that satisfies my project requirements, I'd really appreciate it.
 
Thanks,
Terry
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.