NYCPHP Meetup

NYPHP.org

[nycphp-talk] header() produces 403 Forbidden

Dan Horning dan at mx2pro.com
Thu Sep 4 19:33:22 EDT 2003


the answer is no...
 
but
http://us2.php.net/manual/en/function.header.php
 
at any rate... all this info ... the location header does not cause a
redirect to a specific target
you might just want to create a javascript page that says "in case your
browser does not redirect you Click Here"
 
although they turn javascript off .. those same people might be used to
seeing that kind of page
 
 
-dan

14.30 Location 


The Location response-header field is used to redirect the recipient to
a location other than the Request-URI for completion of the request or
identification of a new resource. For 201 (Created) responses, the
Location is that of the new resource which was created by the request.
For 3xx responses, the location SHOULD indicate the server's preferred
URI for automatic redirection to the resource. The field value consists
of a single absolute URI. 

       Location       = "Location" ":" absoluteURI



An example is: 

       Location: http://www.w3.org/pub/WWW/People.html


      Note: The Content-Location header field (section 14.14) differs

      from Location in that the Content-Location identifies the original

      location of the entity enclosed in the request. It is therefore

      possible for a response to contain header fields for both Location

      and Content-Location. Also see section 13.10
<http://www.w3.org/Protocols/rfc2616/rfc2616-sec13.html#sec13.10>  for
cache

      requirements of some methods.


 
 

- Dan Horning
------------------------------------------------------------------------
------------
AIM: mx2pro / dsoundmn    MSN: dan at mx2pro.com
Got an Emergency??
------------------------------------------------------------------------
------------
MX2 Productions, Media from concept to execution.
PO Box 160, Clifton Park, NY 12065-0160


-----Original Message-----
From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org]
On Behalf Of Phil Powell
Sent: Thursday, September 04, 2003 5:04 PM
To: NYPHP Talk
Subject: [nycphp-talk] header() produces 403 Forbidden


 header("Location: http://$SERVER_NAME/index.php; target=\"top\"");
 
I am getting a 403 Forbidden upon running this script, which is not what
I wanted.  Is there a way I can redirect, but at the same time redirect
out of the frame that the redirection script is located to _top?  I
don't want to have to rely on Javascript to do this as this is a foreign
site (European) where Javascript is often turned off.
 
Thanks
Phil

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nyphp.org/pipermail/talk/attachments/20030904/f3fa57d5/attachment.html>


More information about the talk mailing list