Troubleshooting of curl errors: Difference between revisions

Jump to navigation Jump to search
How to rseolve cURL returns binary data instead of html or json
Tags: Mobile edit Mobile web edit
(How to rseolve cURL returns binary data instead of html or json)
Line 51: Line 51:
curl -X POST --header "Content-Type: application/json" --data '{"user" : "your_user_name", "token" : "your_token"}' "https://example.com/"
curl -X POST --header "Content-Type: application/json" --data '{"user" : "your_user_name", "token" : "your_token"}' "https://example.com/"
</pre>
</pre>
== How to rseolve cURL returns binary data instead of html or json ==
* [https://stackoverflow.com/questions/28283822/curl-returns-binary-data-instead-of-html php - cURL returns binary data instead of html - Stack Overflow]
* [https://errerrors.blogspot.com/2020/06/resolve-curl-returns-binary-data-instead-of-html-or-json.html 解決 cUrl 下載的網頁或 JSON 看起來像是亂碼的問題]


== References ==
== References ==
Anonymous user

Navigation menu