cURL / Mailing Lists / curl-users / Single Mail

curl-users

HTTP/1.0 protocol

From: Frédéric Mangeant <frederic.mangeant_at_gmail.com>
Date: Wed, 26 Jan 2005 09:56:08 +0000 (UTC)

Hi

I'm trying to connect to an old HTTP server which supports only HTTP/1.0, but
the option "--http1.0" doesn't seem to be working (the request is made using
HTTP/1.1) :

$ curl -I --http1.0 http://127.0.0.1
HTTP/1.1 200 OK
Date: Wed, 26 Jan 2005 09:17:16 GMT
Server: Apache/2.0.52 (Gentoo/Linux) PHP/4.3.10
Content-Location: index.html.en
Vary: negotiate,accept-language,accept-charset
TCN: choice
Last-Modified: Thu, 18 Nov 2004 10:28:45 GMT
ETag: "72a09-5b0-dadb5140"
Accept-Ranges: bytes
Content-Length: 1456
Connection: close
Content-Type: text/html; charset=ISO-8859-1
Content-Language: en

The system on which curl is running is Gentoo Linux x86, kernel 2.4.28, GCC
3.3.4, glibc 2.3.4

And for curl :

$ curl -V
curl 7.12.0 (i686-pc-linux-gnu) libcurl/7.12.0 OpenSSL/0.9.7d zlib/1.2.1
Protocols: ftp gopher telnet dict ldap http file https ftps
Features: Largefile NTLM SSL libz

I've tried with curl 7.12.3, but without success :-(
Do you know what could be wrong ?

Many thanks in advance

Regards,

Frédéric
Received on 2005-01-26