Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is LIST method in http request?

Tags:

http

curl

vault

There is a code snippet in vault api doc:

$ curl \
    --header "X-Vault-Token: ..." \
    --request LIST \
    http://127.0.0.1:8200/v1/ssh/roles

What is LIST method in http request? I have never heard about this http method before.

like image 918
Ren Avatar asked Jun 28 '26 02:06

Ren


1 Answers

You've never heard of LIST before because it's a custom method.

curl's --request flag sets a custom request method but in name only.

--request

Specifies a custom request method to use when communicating with the HTTP server. ... Normally you don't need this option... [it] only changes the actual word used in the HTTP request...

https://man7.org/linux/man-pages/man1/curl.1.html

like image 64
rhinosforhire Avatar answered Jun 30 '26 20:06

rhinosforhire



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!