-
Notifications
You must be signed in to change notification settings - Fork 173
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added parse FinalUrl on the JS side & Updated README.md (#283)
Co-authored-by: Kadi Gasanguseynov <[email protected]>
- Loading branch information
Showing
3 changed files
with
60 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -92,7 +92,8 @@ const initCycleTLS = require('cycletls'); | |
body: '', | ||
ja3: '771,4865-4867-4866-49195-49199-52393-52392-49196-49200-49162-49161-49171-49172-51-57-47-53-10,0-23-65281-10-11-35-16-5-51-43-13-45-28-21,29-23-24-25-256-257,0', | ||
userAgent: 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:87.0) Gecko/20100101 Firefox/87.0', | ||
proxy: 'http://username:[email protected]:443' | ||
proxy: 'http://username:[email protected]:443', | ||
insecureSkipVerify: true | ||
}, 'get'); | ||
|
||
console.log(response); | ||
|
@@ -122,6 +123,7 @@ func main() { | |
Body : "", | ||
Ja3: "771,4865-4867-4866-49195-49199-52393-52392-49196-49200-49162-49161-49171-49172-51-57-47-53-10,0-23-65281-10-11-35-16-5-51-43-13-45-28-21,29-23-24-25-256-257,0", | ||
UserAgent: "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:87.0) Gecko/20100101 Firefox/87.0", | ||
InsecureSkipVerify: true, | ||
}, "GET"); | ||
if err != nil { | ||
log.Print("Request Failed: " + err.Error()) | ||
|
@@ -215,11 +217,12 @@ Url is not optional, config is optional | |
// Amount of seconds before request timeout (default: 7) | ||
timeout: 2, | ||
// Toggle if CycleTLS should follow redirects | ||
disableRedirect: true | ||
disableRedirect: true, | ||
// Custom header order to send with request (This value will overwrite default header order) | ||
headerOrder: ["cache-control", "connection", "host"] | ||
headerOrder: ["cache-control", "connection", "host"], | ||
// Toggle if CycleTLS should skip verify certificate (If InsecureSkipVerify is true, TLS accepts any certificate presented by the server and any host name in that certificate.) | ||
insecureSkipVerify: true | ||
} | ||
); | ||
|
||
``` | ||
|
||
|
@@ -235,9 +238,10 @@ Url is not optional, config is optional | |
headers: { | ||
"some": "header", | ||
... | ||
} | ||
}, | ||
// FinalUrl returned from the server (String). This field is useful when redirection is active. | ||
finalUrl: "https://final.url/" | ||
} | ||
); | ||
|
||
``` | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters