Safari and FTP

Discussion in 'Current Events' started by Tim Flynn, Nov 28, 2003.

  1. Tim Flynn macrumors regular

    Joined:
    Jan 9, 2003
    Location:
    Alberta
    #1
    What options are there out there for ftp'ing when clicking on a ftp link on a html page viewed with Safari.
    I am trying a simple link : "ftp://192.168.1.200/cflash/data.log"
    When I do it in IE, I get a popup window for username and password, then it downloads the file. Just what I'd like.
    Doesn't work in Safari.
    Do I have Options ?
     
  2. MoparShaha macrumors 68000

    MoparShaha

    Joined:
    May 15, 2003
    Location:
    San Francisco
    #2
    I don't think Safari directly handles ftp like IE does. Safari redirects ftp to the Finder. You would normally get an authentication dialog in the finder, and the FTP would mount as a network disk in the Finder. Unfortunaltly, the Finder still doesn't handle FTP very well, so if it doesn't work, your stuck with IE.
     
  3. Flynnstone macrumors 65816

    Flynnstone

    Joined:
    Feb 25, 2003
    Location:
    Cold beer land
    #3
    But I can't get Safari to use Finder.
    I'm not sure what its doing.
     
  4. Doctor Q Administrator

    Doctor Q

    Staff Member

    Joined:
    Sep 19, 2002
    Location:
    Los Angeles
    #4
    You could try using the Finder directly. To do that, use the Go -> Connect to Server... menu choice and type the address, e.g., ftp://192.168.1.200/cflash/data.log, as the Server Address.
     
  5. bennetsaysargh macrumors 68020

    bennetsaysargh

    Joined:
    Jan 20, 2003
    Location:
    New York
    #5
    i think safari 2.0 should have a built in FTP client.

    i think it would be a great idea, although it might make it a bit more bloated like IE.:rolleyes:
     
  6. MoparShaha macrumors 68000

    MoparShaha

    Joined:
    May 15, 2003
    Location:
    San Francisco
    #6
    I don't think this is the answer. I think Apple needs to finally resolve the ftp issues with the Finder. We're on our 5th revision of Mac OS X, and we still can't do something as simple as ftp with reliability and consistency.
     
  7. MrMacMan macrumors 604

    MrMacMan

    Joined:
    Jul 4, 2001
    Location:
    1 Block away from NYC.
    #7
    Yeah Apple has 'Finder Issues' w/ FTP

    :(

    I use an Application other then Safari.

    Check versiontracker.com see what you need.
     
  8. Flynnstone macrumors 65816

    Flynnstone

    Joined:
    Feb 25, 2003
    Location:
    Cold beer land
    #8
    I started using HTTP instead, but presently my data loads into a window. I need it to download into the download directory. I should put in the header that its not plain text. Perhaps if I package it as a Mac file of sorts, the Mac will automatically open the correct App.

    Anyone with experience send a Mac file from a Linux server?
     
  9. Doctor Q Administrator

    Doctor Q

    Staff Member

    Joined:
    Sep 19, 2002
    Location:
    Los Angeles
    #9
    I think the issue is not which operating system (e.g., Linux), but which web server software (e.g., Apache). You probably just need to set up your web server software so the proper MIME type is associated with your file extension. What web server software are you using?

    By the way, does Tim Flynn = Flynnstone or are there two people asking about this?
     
  10. Flynnstone macrumors 65816

    Flynnstone

    Joined:
    Feb 25, 2003
    Location:
    Cold beer land
    #10
    Same person, work & home. I should figure out how to combine the two.

    I am using an embedded PowerPC running Hardhat Linux. It's IBM 405GP , the web server is GoAhead Web server. I am limited by memory (to a certain extent).
    I can make my headers "say" what ever I want via cgi-bin. I generally do everything via perlscripts. If its simple, then just html.

    Since I have this control and I'm like a bull in a china shop. I don't know what to use for the header and hence how to form the body.

    Did I mention I generally write in "C" :D

    So if my header is "plain/text" , Safari will load and display the page. Ok but the view is not all the useful.
    If I set the header to something Safari won't "render", that better because it will just download. Best is to download and open up the corresponding App.

    FTP works well with IE (Windows & Mac), but not Safari. Perhaps I should use IE until Safari catches up to properly support FTP?

    P.S. I'm a switcher, do you know anything about fonts?
     
  11. Doctor Q Administrator

    Doctor Q

    Staff Member

    Joined:
    Sep 19, 2002
    Location:
    Los Angeles
    #11
    I believe that you want to replace "plain/text" (actually I think you mean "text/plain") with a type/subtype that represents the true type of the file being delivered. I've written C programs like this too.

    For example, an MS Word document should use "application/msword" while an image might use "image/jpeg". A text file (data.log?), if it is really text, can be "text/plain" to view it in the web browser.

    You can use MIME type "application/octet-stream" for a file to be treated as binary data (never displayed in the web browser, even if it's really just text).

    For a big list of MIME types, see http://www.iana.org/assignments/media-types/ or look in file /etc/httpd/mime.types on your Mac.

    Does your program deal with many types of files, in which case it needs a way to decide the proper MIME type, or would it be hardcoded in?

    And what do you want to know about fonts? I may not know, but SOMEBODY surely will.
     

Share This Page