Well, I'll be damned...don't know why, but suddenly everything seems to work! Guess some little gnome inside my computer finally decided it was time for me to get some sleep...

Many thanx for for your help, Timothy!

/Lars ([EMAIL PROTECTED])



Lars Olsson wrote:
It doesn't matter whether I choose 'inline' or 'attachment', browser doesn't seem to care...but at least I found out why wget -S got me text/html instead of image/bmp. I had some session variables that messed things up, but I hacked it a bit and now wget -S is giving me the following headers:

C:\WINDOWS\Profiles\Lasso\Skrivbordet>wget -S --spider http://localhost/webmail/
attachment.php?mailbox=INBOX&msguid=279&part=2
--00:19:19-- http://localhost/webmail/attachment.php?mailbox=INBOX&msguid=279&p
art=2
=> `attachment.php@mailbox=INBOX&msguid=279&part=2'
Resolving localhost... done.
Connecting to localhost[127.0.0.1]:80... connected.
HTTP request sent, awaiting response...
1 HTTP/1.1 200 OK
2 Date: Mon, 13 Jan 2003 23:19:27 GMT
3 Server: Apache/1.3.27 (Win32) PHP/4.2.3
4 X-Powered-By: PHP/4.2.3
5 Set-Cookie: PHPSESSID=e4025c8fb31d0de0b04c7aa0e3afc676; path=/
6 Expires: Thu, 19 Nov 1981 08:52:00 GMT
7 Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0

8 Pragma: no-cache
9 Content-Disposition: inline; filename=tomtefan.bmp
10 Keep-Alive: timeout=15, max=100
11 Connection: Keep-Alive
12 Content-Type: image/bmp
200 OK

The Content-Type seems ok, and so does the Content-Disposition. Browser still suggests 'attachment.php' whenever I choose File->Save As...

Strange happenings indeed...

/Lars ([EMAIL PROTECTED])



Timothy Hitchens (HiTCHO) wrote:

What happens when you change the "inline" to attachment??

Also does this page have any errors in it... eg parsing ones that are
causing PHP to take over the headers and error out??



Timothy Hitchens (HiTCHO)
Open Platform Consulting
e-mail: [EMAIL PROTECTED]



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to