Update README.md

This commit is contained in:
Victor Westerlund 2025-02-09 10:28:40 +00:00
parent ee7f36e1c5
commit 782423141c

View file

@ -1,15 +1,18 @@
A simple curl wrapper written in bash that can be used to make HTTP requests to API endpoints.
![license](https://licensebuttons.net/p/zero/1.0/88x31.png)
# A simple curl wrapper written in bash that can be used to make HTTP requests to API endpoints.
![screenshot](https://href.vlw.se/0194ea19-faa6-77b5-8fe1-b1459a12ea84)
*This is how I use this script*
I use this script with windows set up like this in code-server.
# Files
This script uses separate files for various request options. Create these files in the same directory as `curl.sh`.
## `params.txt`
URL search parameters
URL search parameters.
## `paylod.json`
## `paylaod.json`
JSON request body that will be sent with all requests (except `GET`).
## `key.txt`
@ -19,7 +22,7 @@ JSON request body that will be sent with all requests (except `GET`).
Optional empty file that when present will disable SSL peer validation - for self-signed certificates etc.
# Make a request
Run the `curl.sh` file from your shell and pass it two parametes for URL and request method
Run the `curl.sh` file from your shell and pass it two parametes for URL and request method.
```sh
./curl.sh https://example.com GET