This content is part of a third party extension that is not supported by the Cake project.
For more information about this extension see Cake.Http.
Summary
Configure the settings to ignore SSL server certificate validation errors.
Use with caution - disabling validation exposes you to man-in-the-middle attacks.
- Assembly
- Cake
.Http .dll - Namespace
- Cake
.Http - Containing Type
- Http
Settings Extensions
Syntax
public static HttpSettings IgnoreServerCertificateErrors(this HttpSettings settings, bool ignore = true)
Parameters
Name | Type | Description |
---|---|---|
settings | HttpSettings | The settings. |
ignore | bool | Whether to ignore server certificate validation errors. |
Return Value
Type | Description |
---|---|
HttpSettings | The same HttpSettings instance so that multiple calls can be chained. |