Skip to main content

Posts

Showing posts from May, 2024

My Curl crash course

Curl is a command line tool for transferring data. To fetch a webpage: curl https://example.com To save output to file: curl -o index.html https://example.com To make a POST request: curl -X POST -d "name=John" https://example.com/api To add header: curl -H "Authorization: Bearer token" https://example.com/api To see headers: curl -I https://example.com Curl is simple and powerful for testing APIs. Disclaimer: If you follow the information here, there is no warranty , I am not liable if it deletes your data, gets you hacked, burns your house down or anything else. If you follow the information contained here you do so entirely at your own risk . My views and opinions are my own and not necessarily represent the views of my employer. © Raheel Hameed and www.raheelhameed.com, 2017. Unauthorized use and/or duplication of this material without express and written permission from this site’s author and/or owner is strictly prohibited. Excerpts an...