mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-10-31 15:42:26 -05:00 
			
		
		
		
	[docs] remove -X POST from curl commands (#3665)
		
	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
					
						
							
								91cef3495d
							
						
					
				
			
			
				commit
				
					
						b3ecfe1e0a
					
				
			
		
					 2 changed files with 0 additions and 4 deletions
				
			
		|  | @ -8,7 +8,6 @@ We need to register a new application, which we can then use to request an OAuth | ||||||
| 
 | 
 | ||||||
| ```bash | ```bash | ||||||
| curl \ | curl \ | ||||||
|   -X POST \ |  | ||||||
|   -H 'Content-Type:application/json' \ |   -H 'Content-Type:application/json' \ | ||||||
|   -d '{ |   -d '{ | ||||||
|         "client_name": "your_app_name", |         "client_name": "your_app_name", | ||||||
|  | @ -89,7 +88,6 @@ You can do this with another `POST` request that looks like the following: | ||||||
| 
 | 
 | ||||||
| ```bash | ```bash | ||||||
| curl \ | curl \ | ||||||
|   -X POST \ |  | ||||||
|   -H 'Content-Type: application/json' \ |   -H 'Content-Type: application/json' \ | ||||||
|   -d '{ |   -d '{ | ||||||
|         "redirect_uri": "urn:ietf:wg:oauth:2.0:oob", |         "redirect_uri": "urn:ietf:wg:oauth:2.0:oob", | ||||||
|  |  | ||||||
|  | @ -8,7 +8,6 @@ | ||||||
| 
 | 
 | ||||||
| ```bash | ```bash | ||||||
| curl \ | curl \ | ||||||
|   -X POST \ |  | ||||||
|   -H 'Content-Type:application/json' \ |   -H 'Content-Type:application/json' \ | ||||||
|   -d '{ |   -d '{ | ||||||
|         "client_name": "your_app_name", |         "client_name": "your_app_name", | ||||||
|  | @ -89,7 +88,6 @@ YOUR_AUTHORIZATION_TOKEN | ||||||
| 
 | 
 | ||||||
| ```bash | ```bash | ||||||
| curl \ | curl \ | ||||||
|   -X POST \ |  | ||||||
|   -H 'Content-Type: application/json' \ |   -H 'Content-Type: application/json' \ | ||||||
|   -d '{ |   -d '{ | ||||||
|         "redirect_uri": "urn:ietf:wg:oauth:2.0:oob", |         "redirect_uri": "urn:ietf:wg:oauth:2.0:oob", | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue