mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-01-27 08:39:25 +01:00
remove -X POST
from curl commands
Daniel, author of curl, explains why `-X POST` is not necessary and considered bad behavior: https://daniel.haxx.se/blog/2015/09/11/unnecessary-use-of-curl-x/ for
This commit is contained in:
parent
634d4f408f
commit
c4bb66f64c
@ -8,7 +8,6 @@ We need to register a new application, which we can then use to request an OAuth
|
||||
|
||||
```bash
|
||||
curl \
|
||||
-X POST \
|
||||
-H 'Content-Type:application/json' \
|
||||
-d '{
|
||||
"client_name": "your_app_name",
|
||||
@ -89,7 +88,6 @@ You can do this with another `POST` request that looks like the following:
|
||||
|
||||
```bash
|
||||
curl \
|
||||
-X POST \
|
||||
-H 'Content-Type: application/json' \
|
||||
-d '{
|
||||
"redirect_uri": "urn:ietf:wg:oauth:2.0:oob",
|
||||
|
@ -8,7 +8,6 @@
|
||||
|
||||
```bash
|
||||
curl \
|
||||
-X POST \
|
||||
-H 'Content-Type:application/json' \
|
||||
-d '{
|
||||
"client_name": "your_app_name",
|
||||
@ -89,7 +88,6 @@ YOUR_AUTHORIZATION_TOKEN
|
||||
|
||||
```bash
|
||||
curl \
|
||||
-X POST \
|
||||
-H 'Content-Type: application/json' \
|
||||
-d '{
|
||||
"redirect_uri": "urn:ietf:wg:oauth:2.0:oob",
|
||||
|
Loading…
Reference in New Issue
Block a user