curl-users
-X Bug?!
From: Alexander Lazic <al-curlusers_at_none.at>
Date: Thu, 25 Aug 2005 11:11:38 +0200
Date: Thu, 25 Aug 2005 11:11:38 +0200
Hi,
i have try to make a custom request:
--- al ~ $ curl -vX 'GET /laber HTTP/1.0' http://curl.haxx.se/ * About to connect() to curl.haxx.se port 80 * Trying 193.15.23.28... connected * Connected to curl.haxx.se (193.15.23.28) port 80 > GET /laber HTTP/1.0 / HTTP/1.1 > User-Agent: curl/7.14.0 (i686-pc-linux-gnu) libcurl/7.14.0 OpenSSL/0.9.7g zlib/1.2.3 c-ares/1.2.0 libidn/0.5.18 > Host: curl.haxx.se > Accept: */* > < HTTP/1.1 400 Bad Request --- i get the error because of: > GET /laber HTTP/1.0 / HTTP/1.1 as i Understood the description right i think this can be a bug. --- -X/--request <command> (HTTP) Specifies a custom request to use when communicating with the HTTP server. The specified request will be used instead of the standard GET. Read the HTTP 1.1 specification for details and explanations. (FTP) Specifies a custom FTP command to use instead of LIST when doing file lists with ftp. If this option is used several times, the last one will be used. --- Have you mean a custom methode instead of a request? Greetings al ;-)Received on 2005-08-25