title: How to do a log in authentication using Jquery and Json
body: <p>i have  a server that if i make a call to it will return json files.
  Basically i have multiple users that can be called.</p>
  
  <pre><code>ex: http://server.insource.local/users/145
  ex: http://server.insource.local/users/146
  ex: http://server.insource.local/users/147
  </code></pre>
  
  <p>What i want to do it to, somehow, send a username and password to the server, if correct send back one of those links that match that username and password.</p>
  
  <p>The idea is not to use any php.</p>
  
  <p>i will grab anything, any idea, any example.</p>
  
  <p>a serve-side script example?
  thanks</p>
  
  <p>edit:
  what i find out was that the link path is what is returning my info, and that the server asks for authentication anyway, so ill just check them one against each other</p>
  
  <p>thanks guys</p>