curl-users
Re: Réf. : Re: no downloaded data over HTTPS with certificate
Date: Wed, 2 Aug 2000 14:49:59 +0200 (MET DST)
On Wed, 2 Aug 2000, Andreas Meister wrote:
> when doing a 'truss' on the apache server, I see the file opened but not
> read! So I thought of a problem with the ranges, specifying a range which
> covers the whole file, but still the same behviour.
As you poined out, it does read it. Besides, not specifying any ranges means
the entire file.
[ truss output ]
> 2974: write(21, " [ 0 2 / A u g / 2 0 0 0".., 74) = 74
So this is the access-log? No error-log or ssl-log entries?
> 2974: write(10, "160301\0 9ED3ED '9C 412".., 37) = 37
Is 10 the socket of the client? Is this SSL-encrypted data?
> 2974: open("/usr/local/apache/clientfiles/client3/download/zapotte8", O_RDONLY) = 11
> 2974: mmap(0x00000000, 2557, PROT_READ, MAP_PRIVATE, 11, 0) = 0xEF770000
It mapped the whole file...
> # src/curl -i -v -r 0-2557 -E /usr/local/ssl/file_downloader.pem https://zadmi017.cible.unicible.ch/client3/download/zapotte8
> Enter PEM pass phrase:
> * SSL connection using EDH-RSA-DES-CBC3-SHA
> * Server certificate:
> * subject: /C=CH/ST=Vaud/L=Prilly/O=Unicible SA/OU=IT-Security/CN=zadmi017.cible.unicible.ch/Email=andreas.meister_at_unicible.ch
> * issuer: /C=CH/ST=Vaud/L=Prilly/O=Unicible SA/OU=IT-Security/CN=Unicible-CA/Email=andreas.meister_at_unicible.ch
> * Connected to zadmi017.cible.unicible.ch (123.45.6.78)
> > GET /client3/download/zapotte8 HTTP/1.0
> Range: bytes=0-2557
> User-Agent: curl/7.0.11beta (sparc-sun-solaris2.5.1) libcurl 7.0.11beta (SSL 0.9.5)
> Host: zadmi017.cible.unicible.ch:443
> Pragma: no-cache
> Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*
> >
I'm quite suprised it doesn't say *anything*.
Does it every reply any data? What if you get the root page, a non-existing
page or anything? I trust it works if you get that document with your
browser?
I get a feeling there's something obvious we're overlook here...
> 123.45.6.78 - - [02/Aug/2000:14:12:32 +0200] "GET
> /client3/download/zapotte8 HTTP/1.0" 200 2557
... it looks ok.
-- Daniel Stenberg - http://daniel.haxx.se - +46-705-44 31 77 ech`echo xiun|tr nu oc|sed 'sx\([sx]\)\([xoi]\)xo un\2\1 is xg'`olReceived on 2000-08-02