set up a 302 Location in ap_hook_translate_name

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dear all

i'm using a ap_hook_translate_name custom module to process some custom logic and decide the final name of the request.

in some situation i'm putting a Location: http://foo.com/mypage header with 

apr_table_add(r->headers_out, "Location", "http://foo.com/mypage");

but the HTTP_STATUS returned is  200, so the client doesn't handle correcty the request.

So, i've got 3 question:

- is possible to set-up in this hook a REDIRECT_STATUS 302
- if yes, how ?
- if no, what is the hook to use and how can i set the http status?

Thanks to all in advance

--
/*************/
nik600
http://www.kumbe.it

[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux