I tried the following code:
string url = "http://localhost";
/ / Create a 'HttpWebRequest' object with the specified url.
HttpWebRequest myHttpWebRequest = (HttpWebRequest) WebRequest.Create (url);
/ / Assign the credentials of the logged in user or the user being impersonated.
myHttpWebRequest.Credentials = System.Net.CredentialCache.DefaultCredentials;
But any attempt to get user data is always obtained as STRING empty and no values.
How do I use the class for the desired values ??or alternatively I'd like to receive other offers on how to resolve the problem ...

asaf okPosted Oct 7, 2011, 8:06 AM
i need the Credential in order to send them throw an http request to a remote server.
the CredentialCache was supposed to get me the details i need
Suthish NairPosted Oct 6, 2011, 2:03 PM
Javeed M ShaikhPosted Oct 6, 2011, 11:08 AM