title: How to handle a REST request?
body: <p>I found this site by searching some arguments about REST. I use to write PHP pages and represent data in JSON. I am a newbie about REST so there are a few things a don't understand. For example, i want to make a <code>GET www.mysite.com/people/1</code>request to shwo info about people "1". But i don't know how my server has to handle with this HTTP request. I thought a solution like that: make a <code>GET www.mysite.com/profile.php?action=get_user&amp;id=1</code>and this PHP page, write <code>Location: www.mysite.com/people/1</code> to show the information required. But i am not sure about that. Could you help me please? Thanks in advance and sorry for my bad english.</p>