Click here to Skip to main content
15,891,248 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a RESTful web service
While consuminig the web service, in the POST method I am passing the user credential as given below.

C#
httpRequest.Credentials = new NetworkCredential("username", "password");


How can I retrieve this username and password in the CRUD operations of the RESTful web service( httphandler class) to compare them with the database. I have the following function for READ operation.

C#
private void READ(HttpContext context)
{


}
Posted
Updated 7-Feb-12 13:50pm
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900