title: How to use Basic HTTP Auth with REST webservice (Java+Jersey)?
body: <p>I am a newbie to REST webservice and have just created my first webservice.<br>
  In my service the user can create profile via simple form giving his desired Username and password.  </p>
  
  <p>Now how to check user credentials when the user logs-in ??<br>
  I mean i have a simple form which validates user has logged in but how to validate user when he is to perform various profile operation of add/update/delete ??</p>
  
  <p>For example:<br>
  In FB you sign-in and it stores a cookie which has your credentials and when you perform operations like "Post Status",message a friend...etc... it doesn't ask for your credentials anymore because it has a cookie in which your credentials are there and it just uses that cookie...  </p>
  
  <p>But in REST we dont use cookie ,so the next option is HTTP headers.
  And i want to know how to send and recieve user credentials via HTTP header .i.e<br>
  <code>Basic HTTP Auth</code></p>