On Tue, Jun 29, 2010 at 3:48 AM, Gilbert Leung
<[email protected]> wrote:
> If not, is it as simple as setting the response code to 301 and providing a
> URL for redirection?

Yes,  specifically you want to set a Location header:

   Location:  http://url.to/location

This is documented on page 61 of RFC 2616

   http://www.ietf.org/rfc/rfc2616.txt

I admit,  an RFC is not the easiest introduction to a protocol,  but
it's great for answering specific questions.   Be thankful the IETF
did HTTP and not the W3C.  Finally,  you can get some idea how it's
done by finding out how other people do it.   Firefox has a plugin
that lets you see responses and requests,  though I highly recommend
getting familiar with Wireshark.   I could be a lot more effective at
using Wireshark myself,  but it's easy to get started and works well
on HTTP.

   http://www.wireshark.org/


Best,
Leon
_______________________________________________
Snap mailing list
[email protected]
http://mailman-mail5.webfaction.com/listinfo/snap

Reply via email to