So here we are trying to test our super cool and light JSON Service from the command prompt and curl comes to our rescue:
$ curl http://my-app.com/default/login?ert=jsonWget will need a couple of switches to provide the same output (for more info: wget --help):
$ wget -q -O - http://my-app.com/default/login?ert=jsonLet's say you want to download a file. With wget you go this way:
wget -o http://google.com/images/srpr/logo4w.pngWith curl you go with the below. Note the -L switch to make sure curl follows redirections:
curl -L -o logo4w.png http://google.com/images/srpr/logo4w.png
No comments:
Post a Comment