Hacker News new | ask | show | jobs
by jaygray0919 957 days ago
When testing the wework link i get this message: `<title>Worker threw exception | api.siteview.app | Cloudflare</title> (more ...)`. Does curl need additional information to escape this type of response? Do you use a curl alternative?
3 comments

Here is my string: curl -H 'Content-Type: application/json' -d POST https://api.siteview.app { "url": "https://wework.com" }. Do you see a problem with that request (because i am receiving the same Cloudflare message)
ChatGPT said this is the correct cURL syntax:

``` curl -X POST https://api.siteview.app -H 'Content-Type: application/json' -d '{ "url": "https://wework.com" }' ```

Got it. works well. a very useful tool.
are you passing the `content-type: application/json` header? I just now ran the wework and it worked as expected