Danny-Dasilva / CycleTLS

Spoof TLS/JA3 fingerprints in GO and Javascript
GNU General Public License v3.0
893 stars 169 forks source link

FormData issoe #337

Open miawue opened 5 months ago

miawue commented 5 months ago

Description

FormData is not working when trying to do POST request

Issue Type

Bug

Operating System

Windows 10

Node Version

Node 16.x

Golang Version

Other

Relevant Log Output

Error Processing Request (please open an issue https://github.com/Danny-Dasilva/CycleTLS/issues/new/choose) -> 2024/04/11 00:57:30 Unmarshal Errorjson: cannot unmarshal object into Go struct field Options.options.body of type string
miawue commented 5 months ago

Im trying to pass the FormData like this:

const formData = new FormData
      formData.append('email', this.account.email)
      formData.append('consent', 'on')

And the request is:

await this.cycleTls.post(mailData.url, {
        //@ts-ignore
        body: formBody,
        headers: headers,
        ja3: this.ja3,
        userAgent: this.userAgent,
        proxy: this.proxy,
        disableRedirect: true
      })
3lang3 commented 1 month ago

same issue

I use the form-data lib then the error gone, and another came on

The request will always pending without any response or reject