RE: [PHP-DEV] Re: Bug #14653 Updated: Internet Explorer for Macintosh receivesbad HTTP header info from PHP Header()

2001-12-22 Thread Fred B


This works properly on IE for Mac for redirecting users
to download a file:

Header(Refresh: 0;URL=http://www.mywebsite.com/junk.zip;);

HOWEVER, it clears the web page which is very confusing
to users. It's unsuitable for dynamic PHP sites.  sigh

The only other way to go, I think, is to write my own
custom version of PHP's Header() function.

Any other thoughts?

FB





From: Chris Newbill [EMAIL PROTECTED]
To: 'Fred B' [EMAIL PROTECTED], [EMAIL PROTECTED]
Subject: RE: [PHP-DEV] Re: Bug #14653 Updated: Internet Explorer for 
Macintosh receives bad HTTP header info from PHP Header()
Date: Sat, 22 Dec 2001 12:54:28 -0700

http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.14

This would be a good document to look over for possible workarounds.

You should also try http://support.microsoft.com/ and see if they have a
KB issue on it.

-Chris

-Original Message-
From: Fred B [mailto:[EMAIL PROTECTED]]
Sent: Saturday, December 22, 2001 7:26 AM
To: [EMAIL PROTECTED]
Subject: [PHP-DEV] Re: Bug #14653 Updated: Internet Explorer for
Macintosh receives bad HTTP header info from PHP Header()


Can you suggest a workaround since it appears that lots of
PHP code uses this PHP Header() redirect to setup files for
users to download from sites?

FB

 From: Bug Database [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: Bug #14653 Updated: Internet Explorer for Macintosh receives
bad
 HTTP header info from PHP Header()
 Date: 22 Dec 2001 09:16:21 -
 
 ATTENTION! Do NOT reply to this email!
 To reply, use the web interface found at
 http://bugs.php.net/?id=14653edit=2
 
 
 ID: 14653
 Updated by: sander
 Reported By: [EMAIL PROTECTED]
 Old Status: Open
 Status: Bogus
 Bug Type: HTTP related
 Operating System: Free-BSD 4.4
 PHP Version: 4.0.6
 New Comment:
 
 Not a bug in PHP. Microsoft is just not able to write proper software.
 
 Previous Comments:
 ---
-
 
 [2001-12-21 19:05:02] [EMAIL PROTECTED]
 
 The PHP Header() function isn't passing the correct HTTP redirect info
to
 Internet Explorer 5.x for Macintosh.
 
 program index.php:
 
 ?php
 
 Header(Location: http://www.mywebsite.com/junk.zip;);
 
 ?
 
 --
 
 When this program is executed from Internet Explorer 5.0 or 5.1 for
 Macintosh, the file junk.zip will download correctly but it will be
given
 the name index.php instead of junk.zip
 
 --Fredb
 
 
 
 
 ---
-
 
 




_
Chat with friends online, try MSN Messenger: http://messenger.msn.com


--
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]





_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP-DEV] Re: Bug #14653 Updated: Internet Explorer for Macintosh receivesbad HTTP header info from PHP Header()

2001-12-22 Thread Fred B


I can't find anything in the Microsoft database about
this problem, and since IE 5.1 for Macintosh (for MacOS 8 and 9) was just 
released three days ago (and this problem is still in it),
I think they're either ignoring it or are unaware.

FB

From: Chris Newbill [EMAIL PROTECTED]
To: 'Fred B' [EMAIL PROTECTED], [EMAIL PROTECTED]
Subject: RE: [PHP-DEV] Re: Bug #14653 Updated: Internet Explorer for 
Macintosh receives bad HTTP header info from PHP Header()
Date: Sat, 22 Dec 2001 12:54:28 -0700

http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.14

This would be a good document to look over for possible workarounds.

You should also try http://support.microsoft.com/ and see if they have a
KB issue on it.

-Chris

-Original Message-
From: Fred B [mailto:[EMAIL PROTECTED]]
Sent: Saturday, December 22, 2001 7:26 AM
To: [EMAIL PROTECTED]
Subject: [PHP-DEV] Re: Bug #14653 Updated: Internet Explorer for
Macintosh receives bad HTTP header info from PHP Header()


Can you suggest a workaround since it appears that lots of
PHP code uses this PHP Header() redirect to setup files for
users to download from sites?

FB

 From: Bug Database [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: Bug #14653 Updated: Internet Explorer for Macintosh receives
bad
 HTTP header info from PHP Header()
 Date: 22 Dec 2001 09:16:21 -
 
 ATTENTION! Do NOT reply to this email!
 To reply, use the web interface found at
 http://bugs.php.net/?id=14653edit=2
 
 
 ID: 14653
 Updated by: sander
 Reported By: [EMAIL PROTECTED]
 Old Status: Open
 Status: Bogus
 Bug Type: HTTP related
 Operating System: Free-BSD 4.4
 PHP Version: 4.0.6
 New Comment:
 
 Not a bug in PHP. Microsoft is just not able to write proper software.
 
 Previous Comments:
 ---
-
 
 [2001-12-21 19:05:02] [EMAIL PROTECTED]
 
 The PHP Header() function isn't passing the correct HTTP redirect info
to
 Internet Explorer 5.x for Macintosh.
 
 program index.php:
 
 ?php
 
 Header(Location: http://www.mywebsite.com/junk.zip;);
 
 ?
 
 --
 
 When this program is executed from Internet Explorer 5.0 or 5.1 for
 Macintosh, the file junk.zip will download correctly but it will be
given
 the name index.php instead of junk.zip
 
 --Fredb
 
 
 
 
 ---
-
 
 




_
Chat with friends online, try MSN Messenger: http://messenger.msn.com


--
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]





_
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DEV] Re: Bug #14653 Updated: Internet Explorer for Macintosh receivesbad HTTP header info from PHP Header()

2001-12-22 Thread Fred B


Is the PHP Header() function defined in
the file servlet.java that's part of the
PHP source code? The routine is listed below.
If so, it would appear that PHP is depending
on a Java servlet for the actual file redirection.

FB

public void header(String data) {

  // try to send the header using the most specific servlet API
  // as possible (some servlet engines will add a content type
  // header unless the setContentType method is called).
  try {
if (data.startsWith(Content-type: )) {
  response.setContentType(data.substring(data.indexOf( )+1));
} else if (data.startsWith(Location: )) {
  response.sendRedirect(data.substring(data.indexOf( )+1));
} else {
  int colon = data.indexOf(: );
  if (colon  0) {
try {
  addHeader.invoke(response, new Object[]
{ data.substring(0,colon), data.substring(colon+2) } );
} catch (Exception e) {
  e.printStackTrace(System.err);
}
  } else {
write(data);
  }
}
  } catch (IOException e) {
e.printStackTrace(System.err);
  }

}

_
Send and receive Hotmail on your mobile device: http://mobile.msn.com


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]