ID:               31065
 Comment by:       deb dot sites at sbcglobal dot net
 Reported By:      glideraerobatics at hotmail dot com
 Status:           No Feedback
 Bug Type:         HTTP related
 Operating System: Linux
 PHP Version:      5.0.2
 New Comment:

I have a similar situation. I am on a windows system, using a dell AXIM
running pc windows using the standard IE explorer with cookies on. I,
too, cannot seem to get the header:Location to work even though I
specify the full link (not relative link). It works fine on my
workstations (running windows xp pro - just not on the axim mobile
device.


Previous Comments:
------------------------------------------------------------------------

[2005-03-08 01:00:05] php-bugs at lists dot php dot net

No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".

------------------------------------------------------------------------

[2005-02-28 21:17:04] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php5-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5-win32-latest.zip



------------------------------------------------------------------------

[2004-12-12 21:24:24] glideraerobatics at hotmail dot com

I'm using php-cgi called from mod_suphp in Apache 2.

------------------------------------------------------------------------

[2004-12-12 16:35:29] [EMAIL PROTECTED]

What SAPI are you using?

------------------------------------------------------------------------

[2004-12-12 15:46:06] glideraerobatics at hotmail dot com

Description:
------------
I've noticed that the browsers in many mobile handsets fail to
understand HTTP responses that don't contain a description after the
status code.

This is often a problem when using the header('Location:
http://somewhere/') function in PHP scripts. This function sets the
HTTP status code to 302 so that the client can redirect to the given
location. Unfortunately the description "Found" is missing behind that
status header so many mobile clients just croak when they recieve the
response.

Adding a status description. Just rip them from here:
http://www.w3.org/Protocols/rfc2616/rfc2616-sec6.html#sec6



When it comes to what is not following the HTTP standards exactly in
this case, then I think it's PHP as I can't see anywhere that the
status description is something optional:
http://www.w3.org/Protocols/rfc2616/rfc2616-sec6.html#sec6



Reproduce code:
---------------
header('Location: http://www.php.net');


Expected result:
----------------
HTTP/1.1 302 Found
Location: http://www.php.net/


Actual result:
--------------
HTTP/1.1 302
Location: http://www.php.net/



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=31065&edit=1

Reply via email to