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