Send Basic HTTP authentication credential in the first HTTP request

Discussion in 'ASP .Net Web Services' started by Nacho Nachev, Sep 2, 2004.

  1. Nacho Nachev

    Nacho Nachev Guest


    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 Nachev, Sep 2, 2004
    1. Advertisements

  2. Feroze [msft], Sep 2, 2004
    1. Advertisements

  3. Nacho Nachev

    ktun46 Guest

    ktun46, Sep 5, 2012
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.