we should add the parameter "--fail" to curl to insure that there is no output if curl fails to connect to the server