Daniel,
A few things:
1. try this on a tcl page, not an adp.
2. this is not a relative redirect, this is a full url redirect
(not sure what distinction you were making with this, didn't you say one
was a problem?)
3. what is the $conn argument for?
just 'ns_return 302 text/html "something here"'
tom jackson
On Wednesday 06 September 2006 09:02, Daniel P. Stasinski wrote:
> > What version, etc? I'm using 4.5.0a and I don't seem to have problem with
> > ns_returnredirect.
>
> This is on 4.5a on CentOs 4.4 server.
>
> I tried this snippet:
>
> <%
> ### x.adp
> set headerSet [ns_conn outputheaders]
> ns_set put $headerSet "Location" "http://beta.blahblah.com/headers.adp"
> ns_return $conn 302 text/html "Nada\n"
> %>
>
> Upon telnetting in and making the request, it replied and then
> crashed. The server log showed:
>
> [06/Sep/2006:08:51:28][2828.3082869680][-conn:0-] Fatal: received
> fatal signal 11
>
> Here is the session:
>
> [EMAIL PROTECTED] ~]$ telnet 192.168.0.89 80
> Trying 192.168.0.89...
> Connected to 192.168.0.89 (192.168.0.89).
> Escape character is '^]'.
> GET /x.adp HTTP/1.0
> Host: beta.blahblah.com:80
>
> HTTP/1.0 302 Found
> Location: http://beta.blahblah.com/headers.adp
> MIME-Version: 1.0
> Date: Wed, 06 Sep 2006 15:51:28 GMT
> Server: AOLserver/4.5.0
> Content-Type: text/html; charset=utf-8
> Content-Length: 5
> Connection: close
>
> Nada
> Connection closed by foreign host.
> [EMAIL PROTECTED] ~]$
> (server dead at this point)
--
AOLserver - http://www.aolserver.com/
To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]>
with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject:
field of your email blank.