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 ...


Javeed M ShaikhRank #839 · 2.7K reputationPosted Oct 6, 2011, 7:08 AM EDT
Suthish NairRank #92 · 22.8K reputationPosted Oct 6, 2011, 10:03 AM EDT
asaf ok3 reputationPosted Oct 7, 2011, 4:06 AM EDT
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