Using cURL to view contents of file Using cURL to view contents of file curl curl

Using cURL to view contents of file


I use ...

curl http://example.com/file

Or eventually

 curl http://example.com:8888/file


On Windows, using Git Bash, to print out the contents of a local file using cURL:

curl file://C:/Projects/hello-curl/doc.json