0

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?

Cesare
  • 1,629
  • 9
  • 30
  • 72

1 Answers1

0

Its is working fine from My ubuntu 14.04 version from both command line and shell script. Something related to DNS, please refer below

curl: (6) Could not resolve host: google.com; Name or service not known