I'm working in Ubuntu 14.04 and I've this curl invocation ...
curl 'http://www.webglobes.org/cesarefortelegram/Telegram/OpenProntoSoccorsi/API/getProntoSoccorsoDetailsByMunicipality.php?municipality=Torino&distance=0'
... that works fine from command line, but if I use it in a shell script
#!/bin/bash
set -x
.....
.....
/usr/bin/curl 'http://www.webglobes.org/cesarefortelegram/Telegram/OpenProntoSoccorsi/API/getProntoSoccorsoDetailsByMunicipality.php?municipality=Torino&distance=0'
.....
.....
I obtain this error
curl: (6) Could not resolve host: www.webglobles.org
How may I solve? Suggestions?