[smokeping-users] Curl extraargs

Warrick FitzGerald lists.smokeping.wfitzgerald at crtman.com
Tue Jul 26 15:15:56 MEST 2005


Hi Guys,

When calling curl from the command line, if you don't put the Host:
domain combination in quotes, it does not work.

/usr/bin/curl --header "Host: www.domain.com" http://172.16.64.51/   (works)

/usr/bin/curl --header Host: www.domain.com http://172.16.64.51/  (does
not work)

1. I'm trying to use
extraargs = --header Host: www.livetechnology.com

2. Then I tried quoting it (the below was the debug output)
extraargs = --header "Host: www.livetechnology.com"

Curl: executing command list
'/usr/bin/curl','-m','10','-o','/dev/null','-w','Time: %{time_total} DNS
time:
%{time_namelookup}\n','--header','"Host:','www.livetechnology.com"','http://172.16.64.51/'
curl: (6) Couldn't resolve host 'www.livetechnology.com"'

3. Then I tried single quotes (the below was the debug output)
extraargs = --header 'Host: www.livetechnology.com'

Curl: executing command list
'/usr/bin/curl','-m','10','-o','/dev/null','-w','Time: %{time_total} DNS
time:
%{time_namelookup}\n','--header',''Host:','www.livetechnology.com'','http://172.16.64.51/'
curl: (6) Couldn't resolve host 'www.livetechnology.com''

My config looks as follows:
++ Test1

probe = Curl
menu = Test1
title = My Test server
host = 172.16.64.51
urlformat = http://%host%/
extraargs = --header "Host: www.domain.com"

Can someone please help my understand how I should format the config in
order to be able to use the --header in Curl?

Thanks
Warrick FitzGerald





--
Unsubscribe mailto:smokeping-users-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:smokeping-users-request at list.ee.ethz.ch?subject=help
Archive     http://lists.ee.ethz.ch/smokeping-users
WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi



More information about the smokeping-users mailing list