24 May
2005
24 May
'05
9:16 p.m.
The easiest way it to perform a redirect.
Unfortunately, HTTP allows automatic redirects only for "GET" requests. But, if you can live with "GET", then it is very easy.
Fortunately, most web browsers are lax and let you do this. Safari is not, but the warnings are a bit obscure to most users, as a 302 response technically means to repost the data to a new URL - hence Safari's 'do you want to resend this data' question. A 303 response should be used to redirect a POST request. The user is still supposed to be asked if they want to follow the redirect, but I bet most browsers won't, as the specs are ambiguous. -- Phillip Hutchings http://www.sitharus.com/ sitharus@gmail.com / sitharus@sitharus.com