Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Services > Send Basic HTTP authentication credential in the first HTTP request

Reply
Thread Tools

Send Basic HTTP authentication credential in the first HTTP request

 
 
Nacho Nachev
Guest
Posts: n/a
 
      09-02-2004
Hello,

How can I make the web service proxy class send basic authentication
information in the HTTP header of the first request?

My authentication code is here:

NetworkCredential crd = new NetworkCredential("user1", "welcome1");
m_echostringsvc.Credentials = crd;
m_echostringsvc.PreAuthenticate = true;

Althoufh PreAuthenticate is set to true, no authentication information sent
in the header of the first HTTP request. The same result appears
with both the WSE toolkit and the HttpSoapClientProtocol class that comes
with the .NET FW itselts.

Thank you for your time!

Nacho




 
Reply With Quote
 
 
 
 
Feroze [msft]
Guest
Posts: n/a
 
      09-02-2004
For details on how to get this to work, look at
http://weblogs.asp.net/feroze_daud/a...12/180856.aspx

feroze
===============
this posting is provided as-is

"Nacho Nachev" <(E-Mail Removed)> wrote in message
news:#(E-Mail Removed)...
> Hello,
>
> How can I make the web service proxy class send basic authentication
> information in the HTTP header of the first request?
>
> My authentication code is here:
>
> NetworkCredential crd = new NetworkCredential("user1", "welcome1");
> m_echostringsvc.Credentials = crd;
> m_echostringsvc.PreAuthenticate = true;
>
> Althoufh PreAuthenticate is set to true, no authentication information

sent
> in the header of the first HTTP request. The same result appears
> with both the WSE toolkit and the HttpSoapClientProtocol class that comes
> with the .NET FW itselts.
>
> Thank you for your time!
>
> Nacho
>
>
>
>



 
Reply With Quote
 
 
 
 
ktun46@gmail.com
Guest
Posts: n/a
 
      09-05-2012
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
HTTP basic authentication with form-based authentication Max Python 2 08-08-2008 06:16 PM
LWP::UserAgent and HTTP::Request with basic authentication... scottny07 Perl Misc 1 03-30-2007 01:55 PM
How to Clear the Integrated Windows authentication credential in . Datagrid left-right scroll problem ASP .Net Security 3 01-27-2006 12:15 AM
Pre-Send Request Headers, Pre-Send Request Content =?Utf-8?B?S2V2aW4gQnVydG9u?= ASP .Net 0 12-31-2004 06:29 PM
Forms authentication - credential store Martin ASP .Net 3 01-10-2004 03:41 PM



Advertisments