Coder Social home page Coder Social logo

lnstchtped / cclient Goto Github PK

View Code? Open in Web Editor NEW

This project forked from carcraftz/cclient

0.0 0.0 0.0 77 KB

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

Go 100.00%

cclient's Introduction

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/Carcraftz/utls"
    "github.com/Carcraftz/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

cclient's People

Contributors

carcraftz avatar titanium-ctrl avatar x04 avatar delivey avatar fyko avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.