Perfectly working curl command fails when executed in a groovy script Perfectly working curl command fails when executed in a groovy script curl curl