curl-users
Réf. : Re: no downloaded data over HTTPS with certificate
Date: Wed, 2 Aug 2000 14:29:49 +0200
Hi, thanks for your quick reply, here some interessting information:
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.
Below, see the out put of the truss command (interessting lines between the starred lines), the output of cURL -v -i and a simple ls of the file to
download:
Thanks for having a look!
Andreas
2974: getpid() = 2974 [2970]
2974: time() = 965217764
2974: getpid() = 2974 [2970]
2974: write(21, " [ 0 2 / A u g / 2 0 0 0".., 127) = 127
2974: stat("/usr/local/apache/clientfiles/client3/download/zapotte8", 0x002189D8) = 0
2974: open("/.htaccess", O_RDONLY) Err#2 ENOENT
2974: open("/usr/.htaccess", O_RDONLY) Err#2 ENOENT
2974: open("/usr/local/.htaccess", O_RDONLY) Err#2 ENOENT
2974: open("/usr/local/apache/.htaccess", O_RDONLY) Err#2 ENOENT
2974: open("/usr/local/apache/clientfiles/.htaccess", O_RDONLY) Err#2 ENOENT
2974: lstat("/usr/local/apache/clientfiles/client3", 0xEFFFF6C8) = 0
2974: open("/usr/local/apache/clientfiles/client3/.htaccess", O_RDONLY) Err#2 ENOENT
2974: open("/usr/local/apache/clientfiles/client3/download/.htaccess", O_RDONLY) Err#2 ENOENT
2974: lstat("/usr/local/apache/clientfiles/client3/download/zapotte8", 0xEFFFF6C8) = 0
2974: time() = 965217764
2974: getpid() = 2974 [2970]
2974: write(21, " [ 0 2 / A u g / 2 0 0 0".., 74) = 74
2974: time() = 965217764
2974: getpid() = 2974 [2970]
2974: write(10, "160301\0 9ED3ED '9C 412".., 37) = 37
2974: time() = 965217764
2974: getpid() = 2974 [2970]
2974: write(21, " [ 0 2 / A u g / 2 0 0 0".., 71) = 71
2974: time() = 965217764
2974: getpid() = 2974 [2970]
2974: read(10, "160301\0 pF01B96BEF2 K 3".., 18437) = 117
2974: time() = 965217764
2974: getpid() = 2974 [2970]
2974: time() = 965217764
2974: getpid() = 2974 [2970]
2974: write(10, "160301\0 ` }17C3B818 LBF".., 1024) = 1024
2974: write(10, " -07 +16CA99 3 N eF6 8D9".., 1066) = 1066
2974: time() = 965217764
2974: getpid() = 2974 [2970]
2974: write(10, "16030101A8F596 tC2\fD6 \".., 634) = 634
2970: poll(0xEFFFDA28, 0, 1000) = 0
2970: time() = 965217764
2970: waitid(P_ALL, 0, 0xEFFFF9A8, WEXITED|WTRAPPED|WNOHANG) = 0
2974: read(10, "16030104\0 w : g m ?E0E5".., 18437) = 1029
2974: time() = 965217764
2974: time() = 965217765
2974: time() = 965217765
2974: time() = 965217765
2974: read(10, "160301\0A010 1A7AC @ a97".., 18437) = 404
2974: write(10, "140301\018 &9CE5E4E5CE n".., 74) = 74
2974: time() = 965217765
2974: time() = 965217765
2974: time() = 965217765
2974: getpid() = 2974 [2970]
2974: write(21, " [ 0 2 / A u g / 2 0 0 0".., 134) = 134
*****************************************
2974: open("/usr/local/apache/clientfiles/client3/download/zapotte8", O_RDONLY) = 11
2974: mmap(0x00000000, 2557, PROT_READ, MAP_PRIVATE, 11, 0) = 0xEF770000
2974: lseek(11, 0, SEEK_CUR) = 0
2974: close(11) = 0
*****************************************
2974: poll(0xEFFFD790, 1, 0) = 0
2974: write(10, "170301\v (C6\0 ~ k f A ^".., 2861) = 2861
2974: time() = 965217765
2974: write(24, " 1 2 3 . 4 5 . 6 . 7 8 ".., 96) = 96
2974: write(10, "150301\018 lC1 f L14C48C".., 29) = 29
2970: poll(0xEFFFDA28, 0, 1000) = 0
2970: time() = 965217765
2970: waitid(P_ALL, 0, 0xEFFFF9A8, WEXITED|WTRAPPED|WNOHANG) = 0
# 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, */*
>
123.45.6.78 - - [02/Aug/2000:14:12:32 +0200] "GET /client3/download/zapotte8 HTTP/1.0" 200 2557
123.45.6.78 - - [02/Aug/2000:14:14:14 +0200] "GET /client3/download/zapotte8 HTTP/1.0" 200 2557
# ls -al /usr/local/apache/clientfiles/client3/files/zapotte8
-rw------- 1 nobody nobody 2557 Aug 2 10:22 /usr/local/apache/clientfiles/client3/files/zapotte8
_________________________
Andreas Meister
Unicible
tel: +41 (0)21/644 6041
fax: +41 (0)21/644 6300
mailto:andreas.meister_at_unicible.ch
Received on 2000-08-02