https://github.com/gtsigner/gt-axios
golang axios http request libray . can custom tls fingerprint
https://github.com/gtsigner/gt-axios
custom-tls http tls
Last synced: 22 days ago
JSON representation
golang axios http request libray . can custom tls fingerprint
- Host: GitHub
- URL: https://github.com/gtsigner/gt-axios
- Owner: gtsigner
- Created: 2020-04-20T03:09:47.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-04-20T03:38:30.000Z (about 5 years ago)
- Last Synced: 2025-02-10T01:41:40.706Z (3 months ago)
- Topics: custom-tls, http, tls
- Language: Go
- Homepage:
- Size: 860 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## 使用utls 构造一套完整的http客户端
clone form golang src sdk 1.13.7- 支持http2
- 支持代理
- 支持utls指纹
- 支持utls自定义指纹
- 修改http2 header头排序## 使用方法
```shell script
go get github.com/godtoy/gt-common
go get github.com/godtoy/gt-axios```
axios 基础包装
```golang
func TestAxios(t *testing.T) {
var opt = axios.NewOptions()
opt.Proxy = &axios.Proxy{Host: "127.0.0.1", Port: 8888}
var client, _ = axios.NewHttpClient(opt)
var req = axios.NewConfig("https://baidu.com")
res, err := client.Request(req)
fmt.Println(res, err)
}
```fake tls fingerprint
```golang
func TestAxios(t *testing.T) {
var opt = axios.NewOptions()
opt.Proxy = &axios.Proxy{Host: "127.0.0.1", Port: 8888}
var client, _ = axios.NewHttpClient(opt)
var req = axios.NewConfig("https://baidu.com")
// 使用假指纹
req.HelloId = tls.HelloChrome_72
res, err := client.Request(req)
fmt.Println(res, err)
}
```## feature
- [x] request frame like tor browser
- [x] custom tls fingerprint
- [x] custom transport