Send Basic HTTP authentication credential in the first HTTP request

Ask a Question related to ASP.NET, Design and Development.

  1. #1

    Default Send Basic HTTP authentication credential in the first HTTP request

    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




    Nacho Nachev Guest

  2. Similar Questions and Discussions

    1. request failed with HTTP status 407: Proxy Authentication Required
      Hi all. I have been strugling with trying to get access to a web reference in my web project that is outside my firewall (ISA 2000 server running...
    2. Automate HTTP Basic authentication from PHP script?
      Hello, i am trying to automate Basic HTTP authentication from within a PHP script. Does anyone know if this is possible? I was looking into...
    3. HTTP 400 BAD REQUEST
      Hi, I am trying to upload a file to the Server using the System.net.Webclient and the uploadfile method. The Upload consistenly happens for file...
    4. HTTP::Request failed on HTTP/1.1 and Connection: Keep-Alive
      Hi Abigail, I know that the error comes from the Java program, the nullpointer error. But what it confused me is: if I'm using an Internet Explorer...
    5. Web Service- Basic HTTP Authentication
      Hi, Does anyone have a sample of Basic Http Authentication for a Web Service. Any help appreciated!! Thanks Ted
  3. #2

    Default Re: Send Basic HTTP authentication credential in the first HTTP request

    For details on how to get this to work, look at
    [url]http://weblogs.asp.net/feroze_daud/archive/2004/07/12/180856.aspx[/url]

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

    "Nacho Nachev" <no@spam.now> wrote in message
    news:#zTKciOkEHA.3872@TK2MSFTNGP11.phx.gbl...
    > 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
    >
    >
    >
    >

    Feroze [msft] Guest

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139