Skip to content

Latest commit

 

History

History
32 lines (25 loc) · 1.13 KB

3-Verify-EN.md

File metadata and controls

32 lines (25 loc) · 1.13 KB

← Client | SSL Verify(中文) | Proxy →


SSL Verify

Summary

Describes the SSL certificate verification behavior of a request.

  • Set true to disable certificate validation, (This is not safe, please set certificates! )
  • Set to false to enable SSL certificate verification and use the default CA bundle provided by operating system.

Default

  • false

Setting

Setting on Request

// Set request HTTPSInsecure(Only the request is effected.)
request.SetHTTPSInsecure(true)                           // Set request HTTPSInsecure to true.
isInsecure := request.GetHTTPSInsecure()                 // Get request HTTPSInsecure.

Setting on Client

When the request is not set, the client settings are used.

// Set client HTTPSInsecure(For all requests which is sent by the client.)
client.SetHTTPSInsecure(true)                         // Set client HTTPSInsecure to true.
isInsecure := client.GetHTTPSInsecure()               // Get client HTTPSInsecure.

← Client | SSL Verify(中文) | Proxy →