|
Posted by dougerz on 10/21/66 11:40
I was able to use Ethor's suggestion to fix a problem I'm having. My
original problem was that I was missing the quotes around the
filename in the CD header. I've read the ensuing dialog between Ethor
and JD and have a question/comment driven by the fact that things
don't seem to work for me the way they're "supposed to" and I wonder
why.
I use a content type application/zip, and a content disposition with
the file name (test.zip) just like JD suggests. But it only works if
the HTTP request ends with ".zip".
My request is
http://a.b.c.net/cc/production.php?file=123&zip=.zip
I get a valid zip file downloaded, but the filename isn't the filename
in the CD header - its cc.zip.
Furthermore, if I make the request
http://a.b.c.net/cc/production.php?file=123&zip=
(no .zip on the end, which is what I wanted it to be), it doesn't work
at all. The dialog box that pops up is making the filename
?file=123&zip=
(Note: I'm using IE as the browser. My server is remote from where I
am, and I go through all kinds of route point and a VPN to get to the
server. Also note that this works when I browse to my local machine.)
I've tried various combinations of application/zip, octet-stream,
lower/upper case, quotes/no quotes, order, etc. All have the same
result described above. The only two headers I specify in PHP are the
CT and the CD.
I making a SWAG that some device between my browser and the remote
server is monkeying around with the request and/or response headers.
Otherwise why would the response headers that my PHP application has
correctly applied? Is there something in the Apache or PHP
configuration I need to look at?
http://eye.cc php newsgroups
Navigation:
[Reply to this message]
|