Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions docs/settings.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,20 @@ surf.DefaultMetaRefreshHandling = false
surf.DefaultFollowRedirects = false
```

# Disabling TLS validation
For private websites with self-signed certificates, the client will need
to be configured to disable TLS validation. This can be done like so:

```go
import "crypto/tls"
import "net/http"
tr := &http.Transport{
TLSClientConfig: &tls.Config{InsecureSkipVerify: true},
}
bow := surf.NewBrowser()
bow.SetTransport(tr)
```

# Storage Jars
Override the build in cookie jar. Surf uses cookiejar.Jar by default.
```go
Expand Down