This repository was archived by the owner on Jan 23, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +28
-7
lines changed Expand file tree Collapse file tree 3 files changed +28
-7
lines changed Original file line number Diff line number Diff line change 285
285
<data name =" net_cookie_attribute" xml : space =" preserve" >
286
286
<value >The '{0}'='{1}' part of the cookie is invalid.</value >
287
287
</data >
288
- </root >
288
+ <data name =" net_http_unix_invalid_client_cert_option" xml : space =" preserve" >
289
+ <value >libcurl supports only manual client certificate selection</value >
290
+ </data >
291
+ </root >
Original file line number Diff line number Diff line change @@ -107,6 +107,22 @@ internal ICredentials Credentials
107
107
_serverCredentials = value ;
108
108
}
109
109
}
110
+
111
+ internal ClientCertificateOption ClientCertificateOptions
112
+ {
113
+ get
114
+ {
115
+ return ClientCertificateOption . Manual ;
116
+ }
117
+ set
118
+ {
119
+ if ( ClientCertificateOption . Manual != value )
120
+ {
121
+ throw new PlatformNotSupportedException ( SR . net_http_unix_invalid_client_cert_option ) ;
122
+ }
123
+ }
124
+ }
125
+
110
126
#endregion
111
127
112
128
protected override void Dispose ( bool disposing )
@@ -127,10 +143,6 @@ protected internal override Task<HttpResponseMessage> SendAsync(
127
143
{
128
144
throw new ArgumentNullException ( "request" , SR . net_http_handler_norequest ) ;
129
145
}
130
- if ( request . RequestUri . Scheme == UriSchemeHttps )
131
- {
132
- throw NotImplemented . ByDesignWithMessage ( "HTTPS stack is not yet implemented" ) ;
133
- }
134
146
if ( request . Content != null )
135
147
{
136
148
throw NotImplemented . ByDesignWithMessage ( "HTTP requests with a body are not yet supported" ) ;
Original file line number Diff line number Diff line change @@ -39,8 +39,14 @@ public CookieContainer CookieContainer
39
39
40
40
public ClientCertificateOption ClientCertificateOptions
41
41
{
42
- get { throw NotImplemented . ByDesignWithMessage ( "HTTP stack not implemented" ) ; }
43
- set { throw NotImplemented . ByDesignWithMessage ( "HTTP stack not implemented" ) ; }
42
+ get
43
+ {
44
+ return _curlHandler . ClientCertificateOptions ;
45
+ }
46
+ set
47
+ {
48
+ _curlHandler . ClientCertificateOptions = value ;
49
+ }
44
50
}
45
51
46
52
public DecompressionMethods AutomaticDecompression
You can’t perform that action at this time.
0 commit comments