Weird behaviour when downloading files (owb & sputnik)
  • Order of the Butterfly
    Order of the Butterfly
    _ThEcRoW
    Posts: 298 from 2008/10/27
    Hello, just noticed that when i go to download a file, especifically the demo from ada fluffy snowflakes(ppc demo), i get garbage like if i would opened the file with an editor, and can't download the file. Is this a problem on the browser, or is a problem with certain types of file. I have downloaded lha without probs. I'm using mos 2.4 on mac mini.
    Thanks!!!
    Mac Mini G4 1,4ghz 1gb ram & MorphOS 3.11
  • »24.10.09 - 13:34
    Profile
  • Fab
  • MorphOS Developer
    Fab
    Posts: 1331 from 2003/6/16
    First, you should give the actual link. :)
    Then, it's probably just because the server doesn't send proper mimetype header (for instance, it sends it as text/plain), so the client might display it instead of triggering download.
    In OWB you can override that in mimetype preferences by adding the extension and the action to perform, for instance.
  • »24.10.09 - 14:02
    Profile Visit Website
  • Moderator
    Kronos
    Posts: 2326 from 2003/2/24
    But why wait ?
    Select link
    Right mouse button
    Select "save linked file" (or whatever it is in your locale).
  • »24.10.09 - 17:33
    Profile
  • Paladin of the Pegasos
    Paladin of the Pegasos
    koszer
    Posts: 1250 from 2004/2/8
    From: Poland
    Yea, that works every time. Unless someone gives me a direct link to a file through e-mail, IRC or instant messenger. Then I need to write a simple html file with the given path as a link. Or maybe there's a better way to download such a file?
  • »24.10.09 - 17:52
    Profile
  • Order of the Butterfly
    Order of the Butterfly
    koan
    Posts: 303 from 2005/11/21
    From: UK
    Yes, it's called curl.

    I think it's just

    Code:
    $ curl url -o filename


    You can use the link above to get it from aminet but it is actually used by OWB too so maybe you can find a command line executable in the OWB directory.

    If you have the mime type set up for OWB then you can click on the link and via OpenURL you'll get the file. That's much easier.

    EDIT: According to OWB docs, OWB is using curl (libcurl ?) but if you look in OWB/datas you can find wget instead (try $wget -h) and no curl binary. - strange - I like curl more!

    [ Edited by koan on 2009/10/24 20:31 ]

    [ Edited by koan on 2009/10/25 10:16 ]
  • »24.10.09 - 19:31
    Profile
  • Order of the Butterfly
    Order of the Butterfly
    _ThEcRoW
    Posts: 298 from 2008/10/27
    I don't post the link because i thought people would figure out, as i said it was a demo from a.d.a. more specific one of the two ppc demos available.
    Link is this: http://www.scene.org/file.php?file=%2Fparties%2F2004%2Fbreakpoint04%2Famiga%2Fdemo%2Fmwi%2Bspd-fds_final.zip&fileinfo

    It displays the file as text(garbage) with either owb or sputnik.
    Mac Mini G4 1,4ghz 1gb ram & MorphOS 3.11
  • »25.10.09 - 00:37
    Profile
  • Fab
  • MorphOS Developer
    Fab
    Posts: 1331 from 2003/6/16
    Ok, so go to owb settings/mimetypes, and add application/zip mimetype with zip as extension, and set action to "save to disk" or "ask". Nothing more. :)
  • »25.10.09 - 02:37
    Profile Visit Website
  • Order of the Butterfly
    Order of the Butterfly
    _ThEcRoW
    Posts: 298 from 2008/10/27
    Ok thanks for the response!!!. Will try tomorrow if it does the trick.
    Thanks!!!
    Mac Mini G4 1,4ghz 1gb ram & MorphOS 3.11
  • »25.10.09 - 02:25
    Profile
  • Yokemate of Keyboards
    Yokemate of Keyboards
    Andreas_Wolf
    Posts: 12163 from 2003/5/22
    From: Germany
    > According to OWB docs, OWB is using curl (libcurl ?) but if you look in OWB/datas
    > you can find wget instead (try $wget -h) and no curl binary. - strange

    Nothing strange at all. (lib)curl is used by OWB internally for download, the wget binary is used by the font installation script.
  • »26.10.09 - 00:21
    Profile