|
|
|
|
|
by runxiyu
247 days ago
|
|
Using -X POST is often wrong as it "changes the actual method string in the HTTP request [... and] does not change behavior accordingly" (Stenberg, 2015). Although, it is correct for the article's mention of "Send POST requests"... just that typically people don't send POST requests out of the blue with no data. |
|
-X POST is not wrong, it's just superfluous when using other flags like -d where the method can be inferred.
POST requests are often sent with no data (anything that is not idempotent should, unless there's another verb that could fit better).