Let me bring this back to mod_perl for a sec:
>If a CGI script sends out a Location: header that doesn't begin with a
>protocol (like http: or ftp:), then it's an *internal* redirect.
>
>For an internal redirect, the browser never sees the transaction. The
>web server just does a "goto", picking
Hi guys,
Do you think you could take this off-list now?
73,
Ged.
> "Robert" == Robert Landrum <[EMAIL PROTECTED]> writes:
Robert> That's what the RFC says... But that's not the way that a browser
Robert> handles it. I don't know why browsers don't support the "standards,"
Robert> but that's not exactly the topic.
Robert> Every browser I've ever tested wi
We only use absolute URLs /images/some.gif. When dealing with
apache, it's often neccesary to see the previous requests environment
(error pages, etc.) so that you can show that information to the user
and email it to the webmaster. That's only possible with an internal
redirect. As in
Err
___cliff rayman___ wrote:
> you are supposed to be able to use:
>
make that:
http://host.mydomain.net/foo/bar/fred.html">
>
>
> which changes the base of the document. if u really wanted to use internal
> redirects, you would have to insure that all documents contained this tag,
> or filter t
you are supposed to be able to use:
which changes the base of the document. if u really wanted to use internal
redirects, you would have to insure that all documents contained this tag,
or filter the page and include it yourself.
of course this is just a spec, determining which browsers proper
At 18:19 08/02/2001 -0500, Robert Landrum wrote:
>Every browser I've ever tested with, including LWP, lynx and AOL,
>have supported relative Location headers.
Lynx will likely give you a warning on that (though admittedly it'll work).
A good number of Netscape servers will react to it in an inte
Robert Landrum writes:
>
> Every browser I've ever tested with, including LWP, lynx and AOL,
> have supported relative Location headers.
I've made the mistake of using relative (i.e. without the scheme) URLs
in Location headers, and although it worked most of the time there
were situations w
> "Robert" == Robert Landrum <[EMAIL PROTECTED]> writes:
Robert> By using relative *URLs* such as /some/location, you avoid changing
Robert> the location field in the browser window, which is often desired. If
Robert> you use an absolute *URL*, the location field changes to the absolute
Robe
That's what the RFC says... But that's not the way that a browser
handles it. I don't know why browsers don't support the "standards,"
but that's not exactly the topic.
Every browser I've ever tested with, including LWP, lynx and AOL,
have supported relative Location headers.
If the W3 wants
On Thu, 8 Feb 2001, Robert Landrum wrote:
> If all browsers followed the W3 standards the world would be a better
> place...
>
> They say "...field value consists of a single absolute URL."
> ^^^ I think
> they mean URI because the example s
If all browsers followed the W3 standards the world would be a better place...
They say "...field value consists of a single absolute URL."
^^^
I think they mean URI because the example says "absoluteURI", not URL.
An absolute URI is
/some
Using err_header_out worked :)
$r->content_type('text/html');
$r->err_header_out('Set-Cookie' => $cookie);
$r->err_header_out('Location' => $the_url);
return REDIRECT;
The problem is that Apache does not put the "Set-Cookie" before the
"Location" when generating headers. To fix this, you need to build
the header yourself. I've found that this works with Netscape and
IE, but with IE, the place where you redirect to does not have access
to the cookie that yo
On Thu, 8 Feb 2001, Harrison wrote:
> Date: Thu, 8 Feb 2001 12:30:31 -
> From: Harrison <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: Send a cookie, AND a redirect ?
>
> Dear All.
>
> I can set a cooke fine using:
>
> $r->content_type(
Read the POD docs for Apache under the heading 'Setting up the response';
--Jeff
On Thu, 8 Feb 2001, Harrison wrote:
> Dear All.
>
> I can set a cooke fine using:
>
> $r->content_type('text/html');
> $r->header_out('Set-Cookie' =>$cookie);
> $r->send_http_header;
>
> And i can also send a redi
en
> --
> Von: Harrison[SMTP:[EMAIL PROTECTED]]
> Gesendet: Donnerstag, 8. Februar 2001 13:30
> An: [EMAIL PROTECTED]
> Betreff: Send a cookie, AND a redirect ?
>
> Dear All.
>
> I can set a cooke fine using:
>
> $r->content_type('text
I believe you want to use 'err_header_out' rather than 'header_out' if
you're returning a status other than OK.
HTH,
On Thu, 8 Feb 2001, Harrison wrote:
> Dear All.
>
> I can set a cooke fine using:
>
> $r->content_type('text/html');
> $r->header_out('Set-Cookie' =>$cookie);
> $r->send_http
Dear All.
I can set a cooke fine using:
$r->content_type('text/html');
$r->header_out('Set-Cookie'
=>$cookie);
$r->send_http_header;
And i can also send a redirect fine
using:
$r->content_type('text/html');
$r->header_out('Location'=>$the_url);
return REDIRECT;
BUT!
how do i do b
19 matches
Mail list logo