- wget request with headers
–no-check-certificate : to ignore SSL validation errors (use with caution)
-O : to print output on console
1
$ wget --no-check-certificate -O - "https://www.site.com/bla/bla" --header="accept: application/json" --header="authToken: bla_bla_token"
- curl request with headers
–insecure : to ignore SSL validation errors (use with caution)
1
$ curl --insecure -H "accept: application/json" -H "authToken: bla_bla_token" https://www.site.com/bla/bla
- curl POST request with headers and data file to be posted
–insecure : to ignore SSL validation errors (use with caution)
–data @: add file name after @ that will contain the request to be sent
1
$ curl --insecure -H "Content-Type:application/xml" -X POST https://blabla.com --data @file_name.txt