cURL / Mailing Lists / curl-users / Single Mail

curl-users

a question about -X

From: Daniel Stenberg <Daniel.Stenberg_at_haxx.nu>
Date: Mon, 29 May 2000 13:34:58 +0200 (MET DST)

This bounced to me because of the subjec, which majordomo suspected could be
a list-command to the public list... :-/

-- 
      Daniel Stenberg - http://daniel.haxx.nu - +46-705-44 31 77
   ech`echo xiun|tr nu oc|sed 'sx\([sx]\)\([xoi]\)xo un\2\1 is xg'`ol
---------- Forwarded message ----------
Date: Mon, 29 May 2000 13:25:26 +0200
From: Michael Grant <mgrant_at_grant.org>
To: curl_at_contactor.se
Subject: help with -X option
I'm setting a special get command using the -X option.
For example:
curl -o foo.mp3 -I -X 'GET / HTTP/1.0^MHost: 10.0.0.2^MUser-Agent: xmms/
1.0.1^MIcy-MetaData:1' http://10.0.0.2:8000/
But what I'm seeing in the network snoop is actually this:
GET / HTTP/1.0.Host: 10.0.0.2.User-Agent: xmms/1.0.1.Icy-MetaData:1 /
HTTP/1.0..User-Agent: curl/6.5 (sparc-sun-solaris2.7) libcurl 6.5..Host:
10.0.0.2..Pragma: no-cache..Accept: image/gif, image/x-xbitmap,
image/jpeg, image/pjpeg,
Perhaps I'm just not understanding the -X option, but it seems to be
appending stuff to the get command which seems wrong.  Is this the right
way to do this?
-Mike
Received on 2000-05-29