Resources
Answers
Examples
Sign in
Get Started
What do you want to save?
Add Code snippet
New code examples
Shell/Bash
2022-03-02 20:15:17
testing cors
curl -I -X OPTIONS \ -H "Origin: ${MY_URL}" \ -H 'Access-Control-Request-Method: GET' \ "${MY_URL}/SOMETHING" 2>&1 | grep -i 'Access-Control-Allow-Origin'
Add solution
Other
2022-03-01 10:15:14
check availability http
$ curl -Is -K HEAD http://www.shellhacks.com/en/Bash-Colors | head -n 1
Add solution
Shell/Bash
2022-02-19 23:05:11
linux curl get request
curl -i -H "Accept: application/json" -H "Content-Type: application/json" -X GET http://hostname/resource
Add solution
Other
2021-11-06 08:46:09
what is curl
curl -i -H "Accept: application/json" -H "Content-Type: application/json" -X GET http://hostname/resource
Add solution
C
2021-11-02 17:23:13
curl s flag
User -I flag to only retrieve headers of a curl request: curl -I [url]
Add solution
Shell/Bash
2021-10-28 15:11:11
curl I flag
User -I flag to only retrieve headers of a curl request: curl -I [url]
Add solution
Other
2021-09-10 13:52:01
security headers - server/client
berner07@htb[/htb]$ curl -I -X GET https://www.inlanefreight.com <SNIP> Content-Security-Policy: script-src 'self' Strict-Transport-Security: max-age=31536000 Referrer-Policy: origin
Add solution
Other
2021-09-03 06:40:01
how to hit rest api using curl
curl -I https://www.bookmarks.dev/api/public/bookmarks Copy
Add solution
Shell/Bash
2021-08-29 06:18:02
get last modified date pdf online
curl -I https://www.cca.edu/sites/default/files/pdf/08/word-to-pdf.pdf 2>/dev/null | grep Last-Modified # Last-Modified: Thu, 13 Jul 2017 09:37:07 GMT
Add solution
Shell/Bash
2021-08-26 10:57:03
curl headers
# -i to include response headers in the output. # -H to specify a header # -X to specify the request method curl -i -H "Accept: application/json" -H "Content-Type: application/json" -X GET http://hostname/resource
Add solution
Best helpers
daily
weekly
monthly
for 3 months
Little Girl
+5
Pratyush Das
+5
show more
This website uses cookies to make IQCode work for you. By using this site, you agree to our
cookie policy
Welcome Back!
Sign up to unlock all of IQCode features:
Test your skills and track progress
Engage in comprehensive interactive courses
Commit to daily skill-enhancing challenges
Solve practical, real-world issues
Share your insights and learnings
Sign in
E-mail
Password
Recover lost password
Log in
Or log in with
Not registered?
Sign up takes less than a minute
Create a Free Account
Sign up to unlock all of IQCode features:
Test your skills and track progress
Engage in comprehensive interactive courses
Commit to daily skill-enhancing challenges
Solve practical, real-world issues
Share your insights and learnings
Sign up
Email
Password
Sign up for free
Or sign up with
By signing up, you agree to the
Terms and Conditions
and
Privacy Policy
. You also agree to receive product-related marketing emails from IQCode, which you can unsubscribe from at any time.