cavaliergopher / grab

A download manager package for Go
BSD 3-Clause "New" or "Revised" License
1.38k stars 151 forks source link

Insecure SSL Downloads #17

Closed AxelWal closed 6 years ago

AxelWal commented 6 years ago

Is there a possibility to download from an insecure SSL Link ?

Like in this Example:

    tr := &http.Transport{
        TLSClientConfig: &tls.Config{InsecureSkipVerify: true},
    }
    client := &http.Client{Transport: tr}
    _, err := client.Get("https://golang.org/")
cavaliercoder commented 6 years ago

You can configure the HTTP Client Transport as follows:

    client := grab.NewClient()
    client.HTTPClient.Transport = &http.Transport{
        TLSClientConfig: &tls.Config{InsecureSkipVerify: true},
    }

    req := grab.NewRequest("", "https://golang.org/")
    resp := client.Do(req)
    err := resp.Err()
AxelWal commented 6 years ago

Thxs