NoahCardoza / CloudProxy

Proxy server to bypass Cloudflare protection.
MIT License
537 stars 62 forks source link

POST application/json #71

Open Denisphuket opened 1 year ago

Denisphuket commented 1 year ago

how to send application/json ?

my Request Body: { "cmd": "request.post", "url": "https://jsonplaceholder.typicode.com/posts", "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.0 Safari/537.36", "postData": { "title": "foo", "body": "bar", "userId": 1 }, "headers": { "content-type": "application/json" } }

my Response: { "status": "error", "message": "Unable to process browser request", "startTimestamp": 1668098616053, "endTimestamp": 1668098646678, "version": "2.1.1" }

CURL: curl --location --request POST 'http://localhost:8191/v1' \ --header 'Content-Type: application/json' \ --data-raw '{ "cmd": "request.post", "url": "https://jsonplaceholder.typicode.com/posts", "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.0 Safari/537.36", "postData": { "title": "foo", "body": "bar", "userId": 1 }, "headers": { "content-type": "application/json" } }'

ERROR in Console ERROR REQ-15 TimeoutError: Navigation timeout of 30000 ms exceeded

malafk commented 1 year ago

same

MaiSan9999 commented 1 year ago
Address: http://localhost:8191/v1
Response code: 500 (InternalServerError)
Received headers:
Content-Type: application/json
Date: Sun, 30 Apr 2023 17:50:05 GMT
Connection: keep-alive
Keep-Alive: timeout=5
Transfer-Encoding: chunked
Received cookies:
Response Source:
{"status":"error","message":"Unable to process browser request","startTimestamp":1682877004677,"endTimestamp":1682877005340,"version":"2.1.1"}

BUMP