Try replacing the value passed into -u with a relative path instead of the full URL. In this example the hostname ( -H ) will be supplied by $HOSTADDRESS$ .