Re: content type header for downloading files
| From: | Evan Nemerson | Date: | Thu, 30 Jan 2003 07:17:57 +0000 |
| Subject: | Re: content type header for downloading files | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-133603@lists.php.net to get a copy of this message | ||
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Manually connect and request a page using HTTP
echo -e "GET / HTTP/1.0\r\n\r\n" | nc server 80
works on many boxes... you may have to use telnet and actually type in the
request instead of piping
On Wednesday 29 January 2003 05:29 pm, Dara Dowd wrote:
> how do i examine the headers sent?
> ----- Original Message -----
> From: "John W. Holmes" <holmes072000@charter.net>
> Date: Wed, 29 Jan 2003 20:06:47 -0500
> To: "''Dara Dowd''" <daradowd@campus.ie>,
> <shiflett@php.net>,
> <php-general@lists.php.net> Subject: RE: [PHP] content type header for
> downloading files
>
> > > $fname is the name of the file i want to download. It works in IE, as
> >
> > in
> >
> > > the name of the file to be downloaded appears correctly in the dialog
> >
> > box.
> >
> > > I changed 'application/octet' to 'application/octet-stream' and
> > > this
> >
> > had
> >
> > > no effect.
> >
> > Maybe find a site that works correctly on the browser in question and
> > examine the headers it sends?
> >
> > ---John W. Holmes...
> >
> > PHP Architect - A monthly magazine for PHP Professionals. Get your copy
> > today. http://www.phparch.com/
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
- --
The greatest mistake is to imagine that the human being is an autonomous
individual. The secret freedom which you can supposedly enjoy under a
despotic government is nonsense, because your thoughts are never entirely
your own. Philosophers, writers, artists, even scientists, not only need
encouragement and an audience, they need constant stimulation from other
people. It is almost impossible to think without talking. If Defoe had really
lived on a desert island, he could not have written Robinson Crusoe, nor
would he have wanted to. Take away freedom of speech, and the creative
faculties dry up.
- -George Orwell
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
iD8DBQE+ONGu/rncFku1MdIRArmpAJ4uI/X4iTe8SsScdX35uYduYzgJEgCbB36d
cNfHRaY/3YMMliv4bqr53Zg=
=cwmo
-----END PGP SIGNATURE-----