public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Glenn Spell <glenn@gs.fay.nc.us>
To: jonpryor@vt.edu (Jonathan Pryor)
Cc: cygwin@sourceware.cygnus.com
Subject: Re: Compiled executable differences between 9x and NT
Date: Fri, 12 Mar 1999 10:58:00 -0000	[thread overview]
Message-ID: <199903121857.KAA27039@shell4.ba.best.com> (raw)
In-Reply-To: < 0f3801be6c8a$9c41d7c0$e63d2509@jonpryor.raleigh.ibm.com > from Jonathan Pryor at "Mar 12, 99 08:16:24 am"

[This message is off topic but I believe it is of interest.]

Jonathan Pryor wrote:
> I suppose I wasn't too clear in my original message.
> It was the *application* that was crashing; not Windows.

I just wanted to make sure you know what I was seeing.

> As for the download issue...  I hadn't run into that before.
> Is "application/zip" close-enough for a tarball?  e.g.
> 
>     <a href="gecl.tgz" type="application/zip">source tarball</a>

Well, I tried again and Netscape 4.05 still corrupts the file on
download. I assume the problem is still the headers generated
by your webserver.

> (I didn't see anything referencing "tar" in the IANA database,
> but I saw "application/zip", which seems to fit...)

I saw that there also. Oddly, either Netscape or WinZip set me
up in Netscape with "application/x-zip-compressed    .ZIP". I
changed it to "application/zip" before I tried the download.

> Hopefully, this should fix the mime type problem -- if you're
> accessing from an html page, anyway.  I'm not sure how to set
> the mime-type on a file when _directly_ accessing the file,
> instead of through an href.  Thoughts?

I believe the following method will work regardless of how the
file is accessed. Since you're using Apache on FreeBSD, just
make a file named ".htaccess" in that directory with the
following content:

AddType    application/x-gzip    .gz .tgz
AddType    application/x-tar     .tar

File permissions must be correct and there may need to be
other directives in the file depending on how Apache is
configured. Check with the Head System Admin (Daniel Hagan)
there or the WWW Group <www@acm.vt.edu> if you need help.

Actually, those types are so common they should have been
set up in the global config files by the admin. (I searched
for examples of ".tgz" on the Net but didn't find any. I
don't think what follows "application/" is critical... only
that the server recognizes the extension ".tgz" and prints
a Content-Type header that results in a binary download.)

To check the headers sent by your server you can use DJ's
"HTTP Header Viewer" at:
    < http://www.delorie.com/web/headers.html >

-glenn

-- 
            Glenn Spell <glenn@gs.fay.nc.us>
         Fayetteville, North Carolina, U. S. A.
  ____________________________________________________
  ... blue skies ... happy trails ... sweet dreams ...

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

WARNING: multiple messages have this Message-ID
From: Glenn Spell <glenn@gs.fay.nc.us>
To: jonpryor@vt.edu (Jonathan Pryor)
Cc: cygwin@sourceware.cygnus.com
Subject: Re: Compiled executable differences between 9x and NT
Date: Wed, 31 Mar 1999 19:45:00 -0000	[thread overview]
Message-ID: <199903121857.KAA27039@shell4.ba.best.com> (raw)
Message-ID: <19990331194500.Lrp1lkl3NGaIVUaD0SwK1X_obkO6IXoC-9WWD28isLc@z> (raw)
In-Reply-To: <0f3801be6c8a$9c41d7c0$e63d2509@jonpryor.raleigh.ibm.com>

[This message is off topic but I believe it is of interest.]

Jonathan Pryor wrote:
> I suppose I wasn't too clear in my original message.
> It was the *application* that was crashing; not Windows.

I just wanted to make sure you know what I was seeing.

> As for the download issue...  I hadn't run into that before.
> Is "application/zip" close-enough for a tarball?  e.g.
> 
>     <a href="gecl.tgz" type="application/zip">source tarball</a>

Well, I tried again and Netscape 4.05 still corrupts the file on
download. I assume the problem is still the headers generated
by your webserver.

> (I didn't see anything referencing "tar" in the IANA database,
> but I saw "application/zip", which seems to fit...)

I saw that there also. Oddly, either Netscape or WinZip set me
up in Netscape with "application/x-zip-compressed    .ZIP". I
changed it to "application/zip" before I tried the download.

> Hopefully, this should fix the mime type problem -- if you're
> accessing from an html page, anyway.  I'm not sure how to set
> the mime-type on a file when _directly_ accessing the file,
> instead of through an href.  Thoughts?

I believe the following method will work regardless of how the
file is accessed. Since you're using Apache on FreeBSD, just
make a file named ".htaccess" in that directory with the
following content:

AddType    application/x-gzip    .gz .tgz
AddType    application/x-tar     .tar

File permissions must be correct and there may need to be
other directives in the file depending on how Apache is
configured. Check with the Head System Admin (Daniel Hagan)
there or the WWW Group <www@acm.vt.edu> if you need help.

Actually, those types are so common they should have been
set up in the global config files by the admin. (I searched
for examples of ".tgz" on the Net but didn't find any. I
don't think what follows "application/" is critical... only
that the server recognizes the extension ".tgz" and prints
a Content-Type header that results in a binary download.)

To check the headers sent by your server you can use DJ's
"HTTP Header Viewer" at:
    < http://www.delorie.com/web/headers.html >

-glenn

-- 
            Glenn Spell <glenn@gs.fay.nc.us>
         Fayetteville, North Carolina, U. S. A.
  ____________________________________________________
  ... blue skies ... happy trails ... sweet dreams ...

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


  parent reply	other threads:[~1999-03-12 10:58 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-03-12  5:17 Jonathan Pryor
     [not found] ` < 0f3801be6c8a$9c41d7c0$e63d2509@jonpryor.raleigh.ibm.com >
1999-03-12 10:58   ` Glenn Spell [this message]
1999-03-31 19:45     ` Glenn Spell
1999-03-31 19:45 ` Jonathan Pryor
  -- strict thread matches above, loose matches on Subject: below --
1999-03-12 11:57 Jonathan Pryor
1999-03-31 19:45 ` Jonathan Pryor
1999-03-12  6:06 Suhaib M. Siddiqi
1999-03-31 19:45 ` Suhaib M. Siddiqi
1999-03-11  7:37 Jonathan Pryor
1999-03-31 19:45 ` Jonathan Pryor
1999-03-10  4:59 Jonathan Pryor
1999-03-11  7:03 ` Anders Norlander
     [not found]   ` < 36E7DAFC.7D1AE3AC@hem2.passagen.se >
1999-03-11  7:08     ` Mumit Khan
1999-03-11  7:17       ` neud
1999-03-31 19:45         ` neud
     [not found]       ` < 199903111508.JAA27393@modi.xraylith.wisc.edu >
1999-03-11 19:14         ` Glenn Spell
1999-03-31 19:45           ` Glenn Spell
1999-03-31 19:45       ` Mumit Khan
1999-03-31 19:45   ` Anders Norlander
1999-03-31 19:45 ` Jonathan Pryor
1999-03-09 15:19 Jonathan Pryor
     [not found] ` < 0ac501be6a83$48632630$e63d2509@jonpryor.raleigh.ibm.com >
1999-03-09 17:07   ` Mumit Khan
1999-03-31 19:45     ` Mumit Khan
1999-03-31 19:45 ` Jonathan Pryor
1999-03-09  5:43 Jonathan Pryor
1999-03-31 19:45 ` Jonathan Pryor
1999-03-08 18:37 N8TM
1999-03-31 19:45 ` N8TM
1999-03-08  6:21 Jonathan Pryor
     [not found] ` < 088201be696e$f2867650$e63d2509@jonpryor.raleigh.ibm.com >
1999-03-09 12:20   ` Geoffrey Noer
1999-03-31 19:45     ` Geoffrey Noer
1999-03-09 12:27   ` Mumit Khan
1999-03-31 19:45     ` Mumit Khan
1999-03-31 19:45 ` Jonathan Pryor

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=199903121857.KAA27039@shell4.ba.best.com \
    --to=glenn@gs.fay.nc.us \
    --cc=cygwin@sourceware.cygnus.com \
    --cc=jonpryor@vt.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).