Comparing version 1.0.23 to 1.0.24
{ | ||
"name": "cycletls", | ||
"version": "1.0.23", | ||
"version": "1.0.24", | ||
"description": "Spoof TLS/JA3 fingerprint in JS with help from Go", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -446,14 +446,22 @@ # CycleTLS | ||
### To recompile Golang files in the golang folder | ||
All | ||
`npm run build:go` | ||
Windows | ||
`npm run build:windows` | ||
`npm run build:go:windows:amd64` | ||
Linux | ||
`npm run build:linux` | ||
`npm run build:go:linux:amd64` | ||
Mac | ||
`npm run build:mac:` | ||
`npm run build:go:mac:arm64` | ||
You can view the available compile options within the `package.json` | ||
## Questions | ||
@@ -676,5 +684,5 @@ | ||
jar, err := cookiejar.New(nil) | ||
if err != nil { | ||
log.Fatal(err) | ||
} | ||
if err != nil { | ||
log.Fatal(err) | ||
} | ||
// First request to set cookie | ||
@@ -692,3 +700,3 @@ firstResponse, err := client.Do("https://httpbin.org/cookies/set?a=1&b=2&c=3", cycletls.Options{ | ||
firstURL, _ := url.Parse(firstResponse.FinalUrl) | ||
jar.SetCookies( firstURL, firstResponse.Cookies) | ||
jar.SetCookies( firstURL, firstResponse.Cookies) | ||
@@ -698,8 +706,8 @@ | ||
secondResponse, err := client.Do("https://httpbin.org/cookies", cycletls.Options{ | ||
Body: "", | ||
Ja3: "771,4865-4866-4867-49195-49199-49196-49200-52393-52392-49171-49172-156-157-47-53,0-23-65281-10-11-35-16-5-13-18-51-45-43-27-17513,29-23-24,0", | ||
UserAgent: "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.54 Safari/537.36", | ||
Headers: map[string]string{ | ||
"Cookie": getHeadersFromJar(jar, firstURL), | ||
}, | ||
Body: "", | ||
Ja3: "771,4865-4866-4867-49195-49199-49196-49200-52393-52392-49171-49172-156-157-47-53,0-23-65281-10-11-35-16-5-13-18-51-45-43-27-17513,29-23-24,0", | ||
UserAgent: "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.54 Safari/537.36", | ||
Headers: map[string]string{ | ||
"Cookie": getHeadersFromJar(jar, firstURL), | ||
}, | ||
}, "GET") | ||
@@ -706,0 +714,0 @@ if err != nil { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
80678744
1087