You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using -d arg doesn't automatically make the request method POST and sends a GET request which is unexpected behaviour since curl automatically makes the method POST when using -d arg (Refer curl -d manpage & curl tutorial example for post).
Reproducible Example
Here, we are using Neptune Statistics API which uses the same endpoint for getting status, disabling/enabling autoCompute, manually triggering stats generation etc.
Using
-d
arg doesn't automatically make the request method POST and sends a GET request which is unexpected behaviour sincecurl
automatically makes the method POST when using-d
arg (Refer curl -d manpage & curl tutorial example for post).Reproducible Example
Here, we are using Neptune Statistics API which uses the same endpoint for getting status, disabling/enabling autoCompute, manually triggering stats generation etc.
-d
is specified so it should automatically become a POST request but a GET request is sent which can be verified by adding-v
)-X POST
)The text was updated successfully, but these errors were encountered: