Skip to content

Fork of cclient with http/2 chrome connection setting mimicry, http/2 enable push, chrome header order & pseudo header order mimicry, proper timeout handling, and allowredirects

EmpowerZ/cclient

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CClient

Fixes TLS and stuff. Uses the yawning utls fork instead of the original refraction-networking one.

Example

package main

import (
    "log"

    tls "github.com/Titanium-ctrl/utls"
    "github.com/Titanium-ctrl/cclient"
)

func main() {
    client, err := cclient.NewClient(tls.HelloChrome_Auto,"",true,6)
    if err != nil {
        log.Fatal(err)
    }

    resp, err := client.Get("https://www.google.com/")
    if err != nil {
        log.Fatal(err)
    }
    resp.Body.Close()

    log.Println(resp.Status)
}

Notes

If you experience any issues with the gitlab.com/yawning/utls import during installation, please try: go get gitlab.com/yawning/utls. Some path issue with go and gitlab ¯\_(ツ)_/¯

The go.mod issue with git etc. was fixed by using my fork of the project with a change to the go.mod file instead of yawning's fork

About

Fork of cclient with http/2 chrome connection setting mimicry, http/2 enable push, chrome header order & pseudo header order mimicry, proper timeout handling, and allowredirects

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%