title: Authorization Header is missing in Http request using WCF
body: <p>I am accessing a web service using WCF. Using WSHttpBinding, Security mode is set Transport (https) and client credential type is Basic. When I try to access the service using the proxy, getting an 401 unauthorized exception. </p>
  
  <p>Here is the Binding</p>
  
  <pre><code>var binding = new WSHttpBinding()
          {
              UseDefaultWebProxy = true,
              Security =
              {
                  Mode = SecurityMode.Transport,
                  Transport =
                  {
                      ClientCredentialType = HttpClientCredentialType.Basic,
                  },
              }
          };
  </code></pre>
  
  <p>Here is the service call</p>
  
  <pre><code>var client = new InternetClient(binding, new EndpointAddress("httpsurl"));
  
          client.ClientCredentials.UserName.UserName = "username";
          client.ClientCredentials.UserName.Password = "password";
          client.ProcessMessage("somevalue");
  </code></pre>
  
  <p>When looked into Http headers using Http Analyzer
  CONNECT HEADER</p>
  
  <p>(Request-Line):CONNECT somehost.com:443 HTTP/1.1<br>
  Host:somehost.com<br>
  Proxy-Connection:Keep-Alive<br></p>
  
  <p>POST HEADER</p>
  
  <p>(Request-Line):POST /Company/1.0 HTTP/1.1<br>
  Content-Type:application/soap+xml; charset=utf-8<br>
  VsDebuggerCausalityData:uIDPo+voStemjalOv5LtRotFQ7UAAAAAUKLJpa755k6oRwto14BnuE2PDtYKxr9LhfqXFSOo8pEACQAA<br>
  Host:somehost.com<br>
  Content-Length:898<br>
  Expect:100-continue<br>
  Connection:Keep-Alive<br></p>
  
  <p>If you see the header Authorization header is missing </p>
  
  <p>Now my question is why WCF call missing the Authorization header? Am I missing something? . Please ask if you need more information</p>