Ask a Question related to ASP.NET Security, Design and Development.
-
Raj #1
Passing security credentials to ASP from .net
Hi All
Here's my situation. I have a ASP page which requires windows authentication. The page works fine when I access it from IE and I am able to login succesfully.
Now I am writing some .NET code to access the page. I pass in some data for the form. I always get a 401 error. I am looking for some pointers/sample code that tells me how I can pass windows login credentials to my ASP page. I did try NetworkCredentials but that fails. Below Is my code
WebClient wc = new WebClient()
NameValueCollection nvc = new NameValueCollection()
nvc.Add("cmdSubmit","send")
nvc.Add("txtMsgText","Test Message")
byte[] buffer
buffer = wc.UploadValues(uri,"POST",nvc)
string streamReader
streamReader = System.Text.Encoding.Default.GetString(buffer)
Help will be appreciate
Thank
Raj
Raj Guest
-
Passing credentials across 2 webservice
I've 2 webservice. (webservice1, webservice2). and one winform.. The winform calls the webservice1 as follows and sends teh currentLogon BY USING... -
Passing credentials problem
I am at a loss. I have a web service which uses Windows Integrated Security. If I use the following code to call my web service: WServ wserv... -
Passing user credentials from ASP.NET to Web Service
We have an ASP.NET application which needs to call Web Service on another machine using end user's account. The configuration is as follows: *... -
Passing Credentials to a Web Service
Hi Al We have a web service (developed in C#). This web service is hosted in the Partners domain of Microsoft. A Windows Forms application is the... -
Network Credentials not passing in Authentication mode
All -- I've set up a directory where I simply want to know the person's name when he comes into the directory. I've set up the following: *... -
Andrea D'Onofrio [MSFT] #2
Re: Passing security credentials to ASP from .net
You can pass the credential (user name and password) in the HTTP request.
Check this article:
314404 HOWTO: Use Kerberos with the ServerXMLHTTP Component in MSXML
[url]http://support.microsoft.com/?id=314404[/url]
HtH,
Andrea
--
This posting is provided "AS IS" with no warranties, and confers no rights.z
"Raj" <anonymous@discussions.microsoft.com> wrote in message
news:D81C40BD-0130-4DA7-8A88-1B48638285E3@microsoft.com...authentication. The page works fine when I access it from IE and I am able> Hi All,
> Here's my situation. I have a ASP page which requires windows
to login succesfully.for the form. I always get a 401 error. I am looking for some> Now I am writing some .NET code to access the page. I pass in some data
pointers/sample code that tells me how I can pass windows login credentials
to my ASP page. I did try NetworkCredentials but that fails. Below Is my
code.>
> WebClient wc = new WebClient();
> NameValueCollection nvc = new NameValueCollection();
> nvc.Add("cmdSubmit","send");
> nvc.Add("txtMsgText","Test Message");
>
> byte[] buffer;
> buffer = wc.UploadValues(uri,"POST",nvc);
> string streamReader;
> streamReader = System.Text.Encoding.Default.GetString(buffer);
>
>
> Help will be appreciated
>
> Thanks
>
> Raj
Andrea D'Onofrio [MSFT] Guest



Reply With Quote

