От: | lexile | ||
Дата: | 17.02.09 16:05 | ||
Оценка: |
HttpWebRequest request = (HttpWebRequest)WebRequest.Create("https://aaa.bbb.ccc/ddd/");
request.ClientCertificates.Add(x509Certificate);
IWebProxy webProxy = WebRequest.DefaultWebProxy;
webProxy.Credentials = CredentialCache.DefaultCredentials;
request.Proxy = webProxy;
request.GetResponse().Close();
"NTLM <кракозябры><user><domain>" - значение заголовка из запроса браузера
"NTLM <кракозябры>" - значение заголовка из запроса WebRequest
Попробовал собрать под .NET 1.1, и действительно все заработало — WebRequest успешно получил заветную страничку.Note This problem does not occur in the Microsoft .NET Framework 1.1.
От: | lexile | ||
Дата: | 17.02.09 16:22 | ||
Оценка: |
От: | lexile | ||
Дата: | 17.02.09 16:28 | ||
Оценка: |
в принципе, может быть причиной...The client closes the connection to the proxy even if the proxy sends back the "Proxy-Connection: Keep-Alive" header for a CONNECT request.
От: | dushchak | ||
Дата: | 17.02.09 21:41 | ||
Оценка: |
L>в принципе, может быть причиной...L>The client closes the connection to the proxy even if the proxy sends back the "Proxy-Connection: Keep-Alive" header for a CONNECT request.
To use a certificate contained in the collection, the application must have the same access rights
as the entity that issued the certificate
This command grants access to the private key of the "MyCertificate" certificate in the "My" certificate store for the TESTUSER account.
winhttpcertcfg -g -c LOCAL_MACHINE\My -s MyCertificate -a TESTUSER
От: | lexile | ||
Дата: | 18.02.09 04:32 | ||
Оценка: |
D>This command grants access to the private key of the "MyCertificate" certificate in the "My" certificate store for the TESTUSER account.
D>winhttpcertcfg -g -c LOCAL_MACHINE\My -s MyCertificate -a TESTUSER
От: | SergeyP | http://gadjievo.spb.ru | |
Дата: | 16.07.09 12:48 | ||
Оценка: |