imroc / req

Simple Go HTTP client with Black Magic
https://req.cool
MIT License
4.12k stars 334 forks source link

ImpersonateChrome - tls: user canceled #334

Open powellnorma opened 3 months ago

powellnorma commented 3 months ago

Using ImpersonateFirefox instead works fine

package main

import (
    "fmt"
    "log"

    "github.com/imroc/req/v3"
)

func main(){
    client := req.C().ImpersonateChrome()

    resp, err := client.R().Get("https://tuta.com/")

    if err != nil {
        log.Fatal(err)
    }

    fmt.Println(resp.String())
}
imroc commented 3 months ago

This is true, but it may be difficult to troubleshoot, and who can volunteer for this?

powellnorma commented 3 months ago

Is this likely to be an upstream bug of uTLS? How would one go about troubleshooting it?