Compare commits
2515 Commits
curl-7_37_
...
curl-7_48_
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9819cec61b | ||
|
|
b733c9cb0b | ||
|
|
949c388ffb | ||
|
|
d5e7f50e63 | ||
|
|
1d7df9ed7a | ||
|
|
22b21bc40e | ||
|
|
4574bde908 | ||
|
|
a136cdeaf1 | ||
|
|
f7bb1fc1d7 | ||
|
|
f974ffdd4b | ||
|
|
2716350d1f | ||
|
|
9351383745 | ||
|
|
89f397d7eb | ||
|
|
eba1b3099f | ||
|
|
f046ac48d6 | ||
|
|
100f991251 | ||
|
|
80851028ef | ||
|
|
4ff5cfd5fa | ||
|
|
c5744340db | ||
|
|
e66109c1e3 | ||
|
|
c142e73142 | ||
|
|
4ff2fbd1d5 | ||
|
|
97c9d2ae8c | ||
|
|
2107a952e8 | ||
|
|
997a95bbc8 | ||
|
|
ecf953432d | ||
|
|
7e312bdfdd | ||
|
|
9c2cbc104d | ||
|
|
d816e8cf52 | ||
|
|
8d9d03a157 | ||
|
|
5f5b626357 | ||
|
|
80015cdd52 | ||
|
|
0e18b8b107 | ||
|
|
cd869cf1c1 | ||
|
|
732983eb41 | ||
|
|
3ccc2621a1 | ||
|
|
42a93d4364 | ||
|
|
b51f04bf23 | ||
|
|
6a353b105a | ||
|
|
0fc73d364e | ||
|
|
4ef6d6b1bc | ||
|
|
2ad3cf2fba | ||
|
|
c5c7a3e40f | ||
|
|
519835c4b0 | ||
|
|
1b3d736ae3 | ||
|
|
303bf719ff | ||
|
|
3c6238b3eb | ||
|
|
c3aca6ed47 | ||
|
|
8eaf884417 | ||
|
|
c0717a7059 | ||
|
|
5dc43b975b | ||
|
|
0e16de870f | ||
|
|
9eb158821f | ||
|
|
d7e3942814 | ||
|
|
d807fbd66d | ||
|
|
a8c7f0fcbf | ||
|
|
e4a0a9ef18 | ||
|
|
a7a653fd58 | ||
|
|
f0fbd099b4 | ||
|
|
dbb90e7e9f | ||
|
|
06ccaa0c68 | ||
|
|
58e4a06743 | ||
|
|
b084173989 | ||
|
|
28477fd67a | ||
|
|
eab769518e | ||
|
|
53e2ca6896 | ||
|
|
863c5766dd | ||
|
|
7f7fcd0d75 | ||
|
|
4d4ce84bb3 | ||
|
|
549b1a433a | ||
|
|
77e1726719 | ||
|
|
b6665c7a44 | ||
|
|
b7f3fe125a | ||
|
|
a5aec58726 | ||
|
|
307f3cf3b3 | ||
|
|
c140bd7891 | ||
|
|
cb222bcfef | ||
|
|
a7ec58a89f | ||
|
|
f0a6929553 | ||
|
|
46bf7ff78d | ||
|
|
7e8b65c00b | ||
|
|
52a0b934ef | ||
|
|
d42dbe6423 | ||
|
|
01ccac8773 | ||
|
|
1e58922f1e | ||
|
|
b90f9fa5ee | ||
|
|
4da5e65dee | ||
|
|
c13a54a2fb | ||
|
|
4ce153c62c | ||
|
|
8f9be011b1 | ||
|
|
66fa069f1b | ||
|
|
ad90a9d9d1 | ||
|
|
aed91f3a7c | ||
|
|
530234b325 | ||
|
|
e6293cf876 | ||
|
|
6c7a5b9603 | ||
|
|
81bdd85318 | ||
|
|
b188fe407d | ||
|
|
1eae114065 | ||
|
|
0ad6c72227 | ||
|
|
05401b9a3b | ||
|
|
20de9b4f09 | ||
|
|
33a0a926c5 | ||
|
|
3c2ef2a610 | ||
|
|
d678bd6f60 | ||
|
|
c2a809cd26 | ||
|
|
ae7d6b7154 | ||
|
|
2e0a3b935c | ||
|
|
6f1735926f | ||
|
|
1e486db9c2 | ||
|
|
3ae77f079a | ||
|
|
46bf7996f4 | ||
|
|
cac8c3206f | ||
|
|
332414a30e | ||
|
|
3438ce7f46 | ||
|
|
effa575fc7 | ||
|
|
186546f1c5 | ||
|
|
9dc3eaee29 | ||
|
|
527e86b054 | ||
|
|
2ac3f427f7 | ||
|
|
91cfcc5d6f | ||
|
|
e50674ad28 | ||
|
|
3fa220a6a5 | ||
|
|
fe37695aa9 | ||
|
|
bdaaba5315 | ||
|
|
a11c5f329f | ||
|
|
be2db60650 | ||
|
|
414055dc6d | ||
|
|
b7cd7aabd4 | ||
|
|
4c6ca527b0 | ||
|
|
091dee8631 | ||
|
|
435f6bcc86 | ||
|
|
e8748bc1d7 | ||
|
|
e624714cad | ||
|
|
32e38b8f42 | ||
|
|
0c671a1501 | ||
|
|
9ae7030cef | ||
|
|
eb083e0d39 | ||
|
|
b080a7cd06 | ||
|
|
71398487e7 | ||
|
|
ae01698ea4 | ||
|
|
569a37efe0 | ||
|
|
ede0bfc079 | ||
|
|
a87cb257b4 | ||
|
|
cae21ffc16 | ||
|
|
078753c40d | ||
|
|
0443187611 | ||
|
|
464a1d03bd | ||
|
|
4ef6b2d6c6 | ||
|
|
50525f4f40 | ||
|
|
d6b37d83f9 | ||
|
|
d202fbcc00 | ||
|
|
888e4b6821 | ||
|
|
3a6563d668 | ||
|
|
936d8f07df | ||
|
|
64fa3b8d64 | ||
|
|
6390e65664 | ||
|
|
5f835fb266 | ||
|
|
3a47657648 | ||
|
|
c276aefee3 | ||
|
|
c62d7944cf | ||
|
|
716302c2cd | ||
|
|
50cd9c8aa1 | ||
|
|
d9128de617 | ||
|
|
4fc80f3e75 | ||
|
|
6b64d735cd | ||
|
|
39c803cba2 | ||
|
|
674b57e76b | ||
|
|
c3aac48919 | ||
|
|
18c735e790 | ||
|
|
c4303fd5bb | ||
|
|
8893a45e76 | ||
|
|
e49ab0a3b8 | ||
|
|
7b55279d1d | ||
|
|
113f04e664 | ||
|
|
7f97fd5a83 | ||
|
|
c18e86cb4f | ||
|
|
108bc5d860 | ||
|
|
8f995e2e00 | ||
|
|
d572d2664d | ||
|
|
b97307047c | ||
|
|
d6a8869ea3 | ||
|
|
1ca54daf3e | ||
|
|
9e7fcd4291 | ||
|
|
c71b6a2795 | ||
|
|
6f702ebaa2 | ||
|
|
86d3d62f5a | ||
|
|
a6208704e7 | ||
|
|
9b6598ed08 | ||
|
|
4520534e6d | ||
|
|
d49881cb19 | ||
|
|
742deff4dd | ||
|
|
20dcd19501 | ||
|
|
0515e49b6b | ||
|
|
42f725fb9b | ||
|
|
b4f595bde4 | ||
|
|
093f9cd38d | ||
|
|
493f54c6c0 | ||
|
|
4af40b3646 | ||
|
|
d33dd0b195 | ||
|
|
41ae9f717a | ||
|
|
6b485c7407 | ||
|
|
7a8a7ca7b0 | ||
|
|
2b6dadc52d | ||
|
|
96596334c8 | ||
|
|
bdb465274f | ||
|
|
300718382f | ||
|
|
a8135f0768 | ||
|
|
91460b2b8a | ||
|
|
1597af51b1 | ||
|
|
e400a89b18 | ||
|
|
06bf874bbc | ||
|
|
87a5d3d13e | ||
|
|
d41dcba4e9 | ||
|
|
3017d8a8d8 | ||
|
|
cea1fd7a94 | ||
|
|
14f92f2d2c | ||
|
|
53d1e42c41 | ||
|
|
b9da2cfed1 | ||
|
|
5a28126b22 | ||
|
|
1783070801 | ||
|
|
b03f01742d | ||
|
|
d58ba66eec | ||
|
|
d566371130 | ||
|
|
1074cca8cd | ||
|
|
be538e0766 | ||
|
|
be79d83b00 | ||
|
|
35083ca60e | ||
|
|
fdcc4d6daa | ||
|
|
133cd19244 | ||
|
|
4bed87f8fa | ||
|
|
3ea77f6add | ||
|
|
13b6d3b7dd | ||
|
|
3d209b5fb0 | ||
|
|
ebfe00c050 | ||
|
|
fb7cbf75a5 | ||
|
|
92a20413ac | ||
|
|
5d7c9379ef | ||
|
|
036c465e88 | ||
|
|
bf93a1217c | ||
|
|
5da7461a55 | ||
|
|
b019af41e7 | ||
|
|
325686ef9e | ||
|
|
c338d8cf9c | ||
|
|
984d1e9e23 | ||
|
|
d9b4d1ce20 | ||
|
|
336e8feec4 | ||
|
|
89a1eb7b1c | ||
|
|
973ee6bdd3 | ||
|
|
3de2d48d4c | ||
|
|
a2cae9aafd | ||
|
|
46cb70e9fa | ||
|
|
19ca40100b | ||
|
|
b82359643d | ||
|
|
1d15a509dd | ||
|
|
a3b8a9e036 | ||
|
|
2e503441ed | ||
|
|
e45059214c | ||
|
|
1c9298ff1b | ||
|
|
ddfa0d850b | ||
|
|
752171f016 | ||
|
|
2aec4359db | ||
|
|
38b055446a | ||
|
|
4ca246c3a8 | ||
|
|
a9ebd1bddc | ||
|
|
90c2d215d7 | ||
|
|
8fb8e16ea4 | ||
|
|
2eb933e8aa | ||
|
|
08554dff65 | ||
|
|
7bf5f6e054 | ||
|
|
520bd9e49f | ||
|
|
24cf20ec68 | ||
|
|
7cbe4d8d79 | ||
|
|
fcabed6cd8 | ||
|
|
18c95d4bc0 | ||
|
|
328771981a | ||
|
|
b064ff0c35 | ||
|
|
bfe6f1f788 | ||
|
|
a464f33843 | ||
|
|
04cb90948e | ||
|
|
c208c783f5 | ||
|
|
bd431eef04 | ||
|
|
5e0e81a9c4 | ||
|
|
9e093f0e74 | ||
|
|
58ac23dd16 | ||
|
|
28533d3277 | ||
|
|
c3eeb526ae | ||
|
|
234abd9013 | ||
|
|
f4646b9069 | ||
|
|
151da51404 | ||
|
|
1ff3a07be9 | ||
|
|
15cb03ad84 | ||
|
|
871ad2a0f2 | ||
|
|
6c2c019654 | ||
|
|
b4a39491ca | ||
|
|
afcab2c2b6 | ||
|
|
18ecdd0430 | ||
|
|
8fbaf6749a | ||
|
|
63a5a756a8 | ||
|
|
15cf5a98b7 | ||
|
|
727f775e59 | ||
|
|
536f5f442e | ||
|
|
4bcc532de5 | ||
|
|
7f683b0ea8 | ||
|
|
dd1b44c612 | ||
|
|
fa9332d3ca | ||
|
|
3b51652328 | ||
|
|
f08fea7169 | ||
|
|
034317d2af | ||
|
|
12f6bf5e58 | ||
|
|
b6d5cb40d7 | ||
|
|
6c2a10e963 | ||
|
|
df40b20e44 | ||
|
|
e1b6b2219d | ||
|
|
ec26399bf9 | ||
|
|
b1f9424fa7 | ||
|
|
738b0ba09e | ||
|
|
a62000ecc9 | ||
|
|
f606435419 | ||
|
|
5eba895b4c | ||
|
|
e643c5c908 | ||
|
|
e7d8d8e257 | ||
|
|
e2ae32ff5f | ||
|
|
6623a485d3 | ||
|
|
940c2f51aa | ||
|
|
a47137c4a5 | ||
|
|
5648f0a32c | ||
|
|
2fddc4e3e1 | ||
|
|
e55f15454e | ||
|
|
fe7c39d353 | ||
|
|
8f281fb76d | ||
|
|
8cbd80686e | ||
|
|
a14fa8f8ff | ||
|
|
81ae6d01fa | ||
|
|
19a8afb3c0 | ||
|
|
78c25c854a | ||
|
|
db05d7a731 | ||
|
|
cd2b73b3ed | ||
|
|
5b96b5e79e | ||
|
|
99d17a5e2b | ||
|
|
facf2925c7 | ||
|
|
be0d4141af | ||
|
|
40c349ada9 | ||
|
|
bb9ec5ebb2 | ||
|
|
c341311a0e | ||
|
|
fc5d783589 | ||
|
|
98acebb526 | ||
|
|
06b288a72d | ||
|
|
d55f9071fb | ||
|
|
b7f3f1b68f | ||
|
|
c2f1730e17 | ||
|
|
8d17117683 | ||
|
|
c90e348579 | ||
|
|
f024ece8c7 | ||
|
|
ad6f6e17d3 | ||
|
|
0ddc59be0a | ||
|
|
bbb34b6f15 | ||
|
|
41efdadf09 | ||
|
|
6af80afe49 | ||
|
|
80562083da | ||
|
|
ff8d352ae9 | ||
|
|
250d786bd2 | ||
|
|
0cf80c05ea | ||
|
|
b27893d15c | ||
|
|
05cd55f229 | ||
|
|
b4c39010b5 | ||
|
|
a72207ecf0 | ||
|
|
6c5f4303fe | ||
|
|
39904d6f7d | ||
|
|
88f585c3a1 | ||
|
|
051485d9e0 | ||
|
|
3c4065f402 | ||
|
|
d0ddfe2216 | ||
|
|
ca770d87e2 | ||
|
|
ee04bee82b | ||
|
|
6cfd646f58 | ||
|
|
808a17ee67 | ||
|
|
ba4d8f7eba | ||
|
|
febda2f305 | ||
|
|
ceb396c54a | ||
|
|
796c6ef02b | ||
|
|
60cf8157c7 | ||
|
|
ad2d517545 | ||
|
|
1ee0aded89 | ||
|
|
f322ca7765 | ||
|
|
fd0c678e21 | ||
|
|
aba281e762 | ||
|
|
64e959ffe3 | ||
|
|
86e2197337 | ||
|
|
6c20a87105 | ||
|
|
b430d94fb2 | ||
|
|
0755308a6a | ||
|
|
53b13d0c71 | ||
|
|
431ba85829 | ||
|
|
eb3703f052 | ||
|
|
d7e352402c | ||
|
|
278ea24a7a | ||
|
|
1f82df9146 | ||
|
|
077fd8f1fa | ||
|
|
b6baa108fa | ||
|
|
88702ebb31 | ||
|
|
d6d58dd558 | ||
|
|
a7c4bcd971 | ||
|
|
3c24400636 | ||
|
|
dcf5b614ca | ||
|
|
6479f5a076 | ||
|
|
d64add3c71 | ||
|
|
a215381c94 | ||
|
|
3e0d64d075 | ||
|
|
01b7d8274c | ||
|
|
7023d8aa37 | ||
|
|
eaa98cef8d | ||
|
|
4e3d396900 | ||
|
|
f54a4aa9a3 | ||
|
|
6225c48a03 | ||
|
|
9b7f8ab21b | ||
|
|
2200bf6205 | ||
|
|
729b92afbe | ||
|
|
23b8fc15c8 | ||
|
|
e3c85405d0 | ||
|
|
2581585961 | ||
|
|
007f3e0971 | ||
|
|
23c4090fd3 | ||
|
|
50bff12ac8 | ||
|
|
1a614c6c37 | ||
|
|
505d966850 | ||
|
|
748ffc77c6 | ||
|
|
60c86297bf | ||
|
|
cd3aba1a5c | ||
|
|
f6fbbd6dc3 | ||
|
|
210fc95c0f | ||
|
|
3bd7f28000 | ||
|
|
3f7b1bb89f | ||
|
|
1ea3a7d5e4 | ||
|
|
cba5bc5854 | ||
|
|
ca5f9341ef | ||
|
|
49a991346e | ||
|
|
fbf09b7775 | ||
|
|
f6ce8c9abb | ||
|
|
4c62066cec | ||
|
|
9b87078d55 | ||
|
|
370ee919b3 | ||
|
|
e2f430c74a | ||
|
|
ea2c959db4 | ||
|
|
ca20ca54b2 | ||
|
|
d9a1776b32 | ||
|
|
72d99f2e7b | ||
|
|
2f4f4108d6 | ||
|
|
03b6e07816 | ||
|
|
6288cb9304 | ||
|
|
eefd5a95af | ||
|
|
b1fc8c0e97 | ||
|
|
529f9310b1 | ||
|
|
b1199def8c | ||
|
|
b7d894d808 | ||
|
|
d31ed6ac71 | ||
|
|
419d410ca0 | ||
|
|
3042cb5043 | ||
|
|
23cc0c00d4 | ||
|
|
ace68fdc0c | ||
|
|
9744ef2289 | ||
|
|
c238d4da1b | ||
|
|
5fecdc26f7 | ||
|
|
257a1c0d14 | ||
|
|
fe7590f729 | ||
|
|
72646c2e48 | ||
|
|
4201e4a9ac | ||
|
|
4c773bcb47 | ||
|
|
cb922d47d6 | ||
|
|
06b5fd8fde | ||
|
|
5cf0166636 | ||
|
|
19cb0c4a88 | ||
|
|
e77b5b7453 | ||
|
|
684816cd9b | ||
|
|
2b98cb57c4 | ||
|
|
3fde8a4971 | ||
|
|
443e81ea47 | ||
|
|
c6aedf680f | ||
|
|
854976ad7b | ||
|
|
14d5a86b3e | ||
|
|
db532eff1e | ||
|
|
3ad83bc3a6 | ||
|
|
13ddb9e54a | ||
|
|
7715a70ba2 | ||
|
|
6f8ecea059 | ||
|
|
048f84637f | ||
|
|
d30ad55c59 | ||
|
|
08e5fb4465 | ||
|
|
2e373f4a6f | ||
|
|
bce689605d | ||
|
|
8256b44e5a | ||
|
|
da2d3b5805 | ||
|
|
3771da335b | ||
|
|
8bb43ecd05 | ||
|
|
645fc44764 | ||
|
|
2c000d91f3 | ||
|
|
aed57fdc95 | ||
|
|
69ea579700 | ||
|
|
b1d55997e5 | ||
|
|
2eb4f5efe9 | ||
|
|
5bf36ea30d | ||
|
|
c6ff538ebd | ||
|
|
8fd190c04f | ||
|
|
ec9cbb1757 | ||
|
|
69b89050d4 | ||
|
|
963b7bd4f7 | ||
|
|
af90becf4b | ||
|
|
46ad4f7f93 | ||
|
|
790d6de485 | ||
|
|
4f037367ed | ||
|
|
32fc638ddf | ||
|
|
119037325d | ||
|
|
710bb89cf3 | ||
|
|
095fe60e27 | ||
|
|
4d60e125de | ||
|
|
7c478cad57 | ||
|
|
0110cced2a | ||
|
|
5f87906e0e | ||
|
|
684bf30802 | ||
|
|
6b56901b56 | ||
|
|
7362008c1c | ||
|
|
1467dec147 | ||
|
|
0583ed3e48 | ||
|
|
67ae07c2e0 | ||
|
|
3f8d4e264d | ||
|
|
bb72b9453d | ||
|
|
5fde69cdc3 | ||
|
|
443014e905 | ||
|
|
37af1766e9 | ||
|
|
67dbf8aa9c | ||
|
|
4d95491636 | ||
|
|
47b7d658b4 | ||
|
|
f65e07ca59 | ||
|
|
30c131f51f | ||
|
|
c979a3d0c4 | ||
|
|
c184a5c6bc | ||
|
|
c00cec9864 | ||
|
|
958d2ffb19 | ||
|
|
a9fd53887b | ||
|
|
65ca3b083c | ||
|
|
82e3e8e31f | ||
|
|
887a4a19aa | ||
|
|
b550a1c067 | ||
|
|
202162daeb | ||
|
|
a7cb6a28e2 | ||
|
|
3d4ffa71f7 | ||
|
|
cdba82e1c2 | ||
|
|
68c620fdc7 | ||
|
|
fad9604613 | ||
|
|
0e17369f5b | ||
|
|
481e0de00a | ||
|
|
df6a4d3519 | ||
|
|
e30763c72e | ||
|
|
6a0bd6ce8b | ||
|
|
4e6f7aee64 | ||
|
|
1b8a5afe78 | ||
|
|
87e533ace0 | ||
|
|
27620171ff | ||
|
|
664398e43b | ||
|
|
3a4f42dd0c | ||
|
|
5ea0004438 | ||
|
|
f1ccf68e8c | ||
|
|
d36d83ba4b | ||
|
|
5dc556031b | ||
|
|
0e91737615 | ||
|
|
7380433d6a | ||
|
|
a60bde79f9 | ||
|
|
82db076d9f | ||
|
|
25a2e8ebaf | ||
|
|
1869164293 | ||
|
|
4ceddcf8ca | ||
|
|
e1a4bab86a | ||
|
|
8a0ff1e529 | ||
|
|
668231c309 | ||
|
|
cb6a07fed0 | ||
|
|
b604b7f040 | ||
|
|
9bb198026e | ||
|
|
749c0ca05b | ||
|
|
c764cb4add | ||
|
|
6099f5fcac | ||
|
|
4963948089 | ||
|
|
b850437991 | ||
|
|
eb8283bb1a | ||
|
|
415f0370ea | ||
|
|
347a6ee597 | ||
|
|
2a59fb25cc | ||
|
|
fb0825cb0a | ||
|
|
dfeb85a187 | ||
|
|
96a3488eae | ||
|
|
45e918564a | ||
|
|
1abb218fe0 | ||
|
|
ac7be02e69 | ||
|
|
37f173cfd0 | ||
|
|
2132708ac2 | ||
|
|
4a889441d3 | ||
|
|
ce034356d2 | ||
|
|
f21408132a | ||
|
|
aec249f89f | ||
|
|
e7d171da6b | ||
|
|
874413b3e1 | ||
|
|
62f306ff34 | ||
|
|
36f6f6f4f2 | ||
|
|
a78534794e | ||
|
|
110d99c661 | ||
|
|
6d91b70d8b | ||
|
|
2acaf3c804 | ||
|
|
9756d1da76 | ||
|
|
22cb631198 | ||
|
|
613e5022fe | ||
|
|
2c12ac8de2 | ||
|
|
30aa38c818 | ||
|
|
8363656cb4 | ||
|
|
38ef1b3e7f | ||
|
|
1d89fd983a | ||
|
|
b3c7f5159a | ||
|
|
1cea72bfde | ||
|
|
14ff86256b | ||
|
|
e4fb5f2f61 | ||
|
|
e67e71d62b | ||
|
|
618dfd65e4 | ||
|
|
1f1f131e09 | ||
|
|
9518139c73 | ||
|
|
5a136398ed | ||
|
|
7166d91a03 | ||
|
|
31673ff517 | ||
|
|
bedf0a588e | ||
|
|
6ba9a1b952 | ||
|
|
bc66c21c23 | ||
|
|
a9c97fba81 | ||
|
|
1a85c8ef15 | ||
|
|
9e1b1ca606 | ||
|
|
15da07d2f2 | ||
|
|
5be0c88297 | ||
|
|
052a9dfdad | ||
|
|
7332ac565c | ||
|
|
105828a309 | ||
|
|
2bcd3ef7b2 | ||
|
|
1a7f66a3de | ||
|
|
c75a1e7750 | ||
|
|
daf7f98c11 | ||
|
|
bb0acba67d | ||
|
|
5778e6f526 | ||
|
|
c8a656d3c7 | ||
|
|
9ee40ce2ab | ||
|
|
0b8e9c8522 | ||
|
|
9a5574ca7b | ||
|
|
ade6682f8d | ||
|
|
002d58f1e8 | ||
|
|
cde447217f | ||
|
|
9d29afdfe3 | ||
|
|
0cc0b7e268 | ||
|
|
aa9ead36a4 | ||
|
|
ecece2cfb5 | ||
|
|
4d13b78aec | ||
|
|
39dcf352d2 | ||
|
|
55a255ee9c | ||
|
|
4c47cbf533 | ||
|
|
c22fae7ccc | ||
|
|
d712da787e | ||
|
|
2b743dcf8e | ||
|
|
333c36b276 | ||
|
|
1ab763acce | ||
|
|
a8e9e0c205 | ||
|
|
4a21346ef3 | ||
|
|
4aee1f9cf5 | ||
|
|
b9b7ccd04a | ||
|
|
84d122a8d6 | ||
|
|
5b9151231d | ||
|
|
cf8975387f | ||
|
|
0342ada31f | ||
|
|
3f5f042e5d | ||
|
|
bb6b521f69 | ||
|
|
8279dd7d39 | ||
|
|
fe6049f04b | ||
|
|
7f11259eb7 | ||
|
|
473807b95f | ||
|
|
f08e30d7bc | ||
|
|
6428b8de42 | ||
|
|
97c9d31884 | ||
|
|
9947f259bf | ||
|
|
33de75ed63 | ||
|
|
df5965ebf4 | ||
|
|
6e566451ce | ||
|
|
07f7cdc309 | ||
|
|
3725748599 | ||
|
|
1e67bc5eaf | ||
|
|
12f915ca2a | ||
|
|
4b96240d3f | ||
|
|
1b3d3f9237 | ||
|
|
c4eb10e2f0 | ||
|
|
3b4ee0d432 | ||
|
|
c092b0f0f3 | ||
|
|
f75b6065db | ||
|
|
11ab3f8918 | ||
|
|
a1b2a6bd93 | ||
|
|
c8331f515e | ||
|
|
23b84e448f | ||
|
|
0da1f5dc5c | ||
|
|
909f0a82b0 | ||
|
|
8b1d00ac1a | ||
|
|
f7dcc7c118 | ||
|
|
ecf7618e12 | ||
|
|
5b9a006b8f | ||
|
|
fc69e2f7ec | ||
|
|
bdd8cf4777 | ||
|
|
dda81c1d5f | ||
|
|
2d7e165761 | ||
|
|
8356022d17 | ||
|
|
467309406e | ||
|
|
b656715da3 | ||
|
|
9b95306d4c | ||
|
|
98e8b050ef | ||
|
|
d9efd36907 | ||
|
|
1627930177 | ||
|
|
299b74fcfc | ||
|
|
279965c923 | ||
|
|
7db03e5c21 | ||
|
|
a728225a92 | ||
|
|
29e5cf2a2d | ||
|
|
0f645adc95 | ||
|
|
373b77bca2 | ||
|
|
6d62d2c55d | ||
|
|
14b9e780d4 | ||
|
|
8204844f47 | ||
|
|
b46a7744bc | ||
|
|
a284b0ebc4 | ||
|
|
c5d060cab4 | ||
|
|
98835eed29 | ||
|
|
cee21eb6a7 | ||
|
|
da650c1e54 | ||
|
|
40c921f8b8 | ||
|
|
7a8e861a56 | ||
|
|
ad32457623 | ||
|
|
32d4260c2d | ||
|
|
1df8d28381 | ||
|
|
fa0eeedf35 | ||
|
|
68d17643f5 | ||
|
|
aab76af1fa | ||
|
|
172b2beba6 | ||
|
|
606b29fe0d | ||
|
|
60b19630b0 | ||
|
|
de74e856e6 | ||
|
|
cd20e81e89 | ||
|
|
79416fb2d6 | ||
|
|
8f0178a56b | ||
|
|
845b011614 | ||
|
|
ce1bf87a04 | ||
|
|
5602ad721b | ||
|
|
55b78c5ae9 | ||
|
|
c00b18d540 | ||
|
|
4ed8537be6 | ||
|
|
66a5f76583 | ||
|
|
616cecfdb6 | ||
|
|
b59f296bf6 | ||
|
|
e6749055d6 | ||
|
|
8208dd3b22 | ||
|
|
0c46abd79a | ||
|
|
1f70cdef98 | ||
|
|
e3e06e1aee | ||
|
|
37402b5eb8 | ||
|
|
69c77f69a5 | ||
|
|
dc2cbfda89 | ||
|
|
1b5eba8324 | ||
|
|
ddb106d7f6 | ||
|
|
77044b53f7 | ||
|
|
c712aa0ebe | ||
|
|
a384f28ca6 | ||
|
|
bf445b6e12 | ||
|
|
a3a55d80ec | ||
|
|
e9f0dd43bc | ||
|
|
f65ab8864e | ||
|
|
feea9263e9 | ||
|
|
ea7134ac87 | ||
|
|
70191958b5 | ||
|
|
5156982377 | ||
|
|
903b6e0556 | ||
|
|
f44b803f16 | ||
|
|
6842afbf44 | ||
|
|
ea1eec8ea8 | ||
|
|
570076e82c | ||
|
|
ef0fdb83b8 | ||
|
|
1c3811f4fd | ||
|
|
afbee791d5 | ||
|
|
2546134b97 | ||
|
|
93aacc3050 | ||
|
|
307f212379 | ||
|
|
26ddc536b0 | ||
|
|
0e7d76d6a8 | ||
|
|
26583a62ab | ||
|
|
cf6ef2dc92 | ||
|
|
3b93f1a3ec | ||
|
|
46d0eba2e9 | ||
|
|
4a2398627c | ||
|
|
b88f980a74 | ||
|
|
85739723ba | ||
|
|
f72b30e6fb | ||
|
|
52d83cb0c6 | ||
|
|
38e07886ed | ||
|
|
bdf89d80ca | ||
|
|
24a8359b25 | ||
|
|
24f0b6ebf7 | ||
|
|
50c7f17e50 | ||
|
|
3e7ec1e849 | ||
|
|
28f4fc5272 | ||
|
|
45f21e0f37 | ||
|
|
f93da27756 | ||
|
|
f29f2cbd00 | ||
|
|
4fd187c677 | ||
|
|
496e96c242 | ||
|
|
bb5b29ec14 | ||
|
|
75ba107767 | ||
|
|
b430cb2a58 | ||
|
|
99eafc49bb | ||
|
|
45bad4ac97 | ||
|
|
f3288196ff | ||
|
|
ff7097f72c | ||
|
|
55fc47a401 | ||
|
|
d186be9510 | ||
|
|
878c5757c0 | ||
|
|
dd39a67101 | ||
|
|
da08a204c2 | ||
|
|
a9ed0fd6cb | ||
|
|
a3e5a4371b | ||
|
|
4a7feea31a | ||
|
|
8d0d688296 | ||
|
|
a5fb9151ee | ||
|
|
f348b2d3bc | ||
|
|
1514f3506b | ||
|
|
55f3eb588d | ||
|
|
cbf2920d02 | ||
|
|
0fcfe4d7ac | ||
|
|
20ac345806 | ||
|
|
eaeeed2e8f | ||
|
|
56b7663f73 | ||
|
|
025dbe46df | ||
|
|
1a8926d12f | ||
|
|
b8673bb9f0 | ||
|
|
8f4791440a | ||
|
|
6befade68f | ||
|
|
3587da9e7c | ||
|
|
1ce14037c0 | ||
|
|
30bd59ba6e | ||
|
|
ccfdd5986c | ||
|
|
fc16d9cec8 | ||
|
|
7c17b58eec | ||
|
|
3013bb6b1c | ||
|
|
001ab7d860 | ||
|
|
59432503c0 | ||
|
|
f6af9aef7e | ||
|
|
46a050e9f5 | ||
|
|
3cac8c9049 | ||
|
|
33ee411848 | ||
|
|
3bbcb4b036 | ||
|
|
e8423f9ce1 | ||
|
|
9f5dcab83d | ||
|
|
41db5aed7a | ||
|
|
4bb815a32e | ||
|
|
4e7c3c12d3 | ||
|
|
9a0a16a61c | ||
|
|
2f1eae0f27 | ||
|
|
3628a90852 | ||
|
|
a8904b39f3 | ||
|
|
8a7c1c76b3 | ||
|
|
f348a6b4ab | ||
|
|
d1b1d782f5 | ||
|
|
e57f08863a | ||
|
|
44fe4b9029 | ||
|
|
9972666b47 | ||
|
|
c005790ff1 | ||
|
|
49a6642f01 | ||
|
|
f81d356c21 | ||
|
|
b18a1654c1 | ||
|
|
02dfc930b5 | ||
|
|
96c0164b88 | ||
|
|
4bef1c7bf4 | ||
|
|
4a79475b13 | ||
|
|
b6e3da5f08 | ||
|
|
28cdc0d82c | ||
|
|
3a973517a9 | ||
|
|
f9f22b0d63 | ||
|
|
ef02da3156 | ||
|
|
e582cd16ff | ||
|
|
1514977bcd | ||
|
|
fda0e74c22 | ||
|
|
03e2a9b023 | ||
|
|
817323ed82 | ||
|
|
42ed88e70a | ||
|
|
84d811f6af | ||
|
|
d04bab8873 | ||
|
|
640f283bbb | ||
|
|
995c6006fe | ||
|
|
78ac944dc2 | ||
|
|
ee04c20b74 | ||
|
|
126e7f7253 | ||
|
|
b0143a2a33 | ||
|
|
6a688976f0 | ||
|
|
c175d184a2 | ||
|
|
d5aab55b33 | ||
|
|
0f6f7c100a | ||
|
|
db979fea73 | ||
|
|
a393d64456 | ||
|
|
265f83a9f0 | ||
|
|
301ba7772c | ||
|
|
00a770b3f5 | ||
|
|
dd23c49546 | ||
|
|
3d38a38012 | ||
|
|
d4313b1f01 | ||
|
|
7da064fdd2 | ||
|
|
897a7b3a13 | ||
|
|
155b1f5df9 | ||
|
|
979670988a | ||
|
|
0b26b94bdc | ||
|
|
4883f7019d | ||
|
|
39b9bf60d1 | ||
|
|
d69eee0964 | ||
|
|
7ff7e45405 | ||
|
|
4ac6cc3ebd | ||
|
|
077f12b0ae | ||
|
|
d6f1c74330 | ||
|
|
7d0df07e48 | ||
|
|
811443754a | ||
|
|
df3a970cb4 | ||
|
|
193251794a | ||
|
|
8b38fcf2f6 | ||
|
|
5871affc7a | ||
|
|
3e8a5d88a5 | ||
|
|
522ca8c035 | ||
|
|
a66ed407d2 | ||
|
|
61a94d6f77 | ||
|
|
56c362b1a7 | ||
|
|
72105ebf05 | ||
|
|
38bd6bf0bb | ||
|
|
be4c8fd1ef | ||
|
|
783b3c7b42 | ||
|
|
02ec1ced9b | ||
|
|
2ce2f03007 | ||
|
|
d722138f29 | ||
|
|
0dc0de0351 | ||
|
|
d261652d42 | ||
|
|
74a4bd5ecd | ||
|
|
591a6933da | ||
|
|
e91aedd840 | ||
|
|
ee3ad233a2 | ||
|
|
70b5b698b0 | ||
|
|
a28734be09 | ||
|
|
5252f13dfa | ||
|
|
153f940198 | ||
|
|
f4b8b39881 | ||
|
|
01e1bdb10c | ||
|
|
7bbac214f5 | ||
|
|
84c6b6561f | ||
|
|
2c238ea1fc | ||
|
|
5fe71975e4 | ||
|
|
77f1029ecd | ||
|
|
7957d2eb92 | ||
|
|
47caff7bdf | ||
|
|
d6440d7366 | ||
|
|
f858624052 | ||
|
|
6e6b02f398 | ||
|
|
5fa82ca56f | ||
|
|
1c01cee601 | ||
|
|
750d678c0e | ||
|
|
a6af3df660 | ||
|
|
2a746f6c28 | ||
|
|
fd137786e5 | ||
|
|
b419e7ae0c | ||
|
|
d37e0160c2 | ||
|
|
640296c95d | ||
|
|
c4d6f9163a | ||
|
|
c720cd6356 | ||
|
|
3377e692ee | ||
|
|
5bf472fd39 | ||
|
|
8936a23f51 | ||
|
|
f010f3e3ca | ||
|
|
33058a1dc3 | ||
|
|
9fcc297ff3 | ||
|
|
8a35211f3e | ||
|
|
fa08362a5f | ||
|
|
a5e09e9eea | ||
|
|
86bc654532 | ||
|
|
690317aae2 | ||
|
|
3c104448d6 | ||
|
|
ae8387b91c | ||
|
|
d93619ca5d | ||
|
|
aa99a63f03 | ||
|
|
4bb8bad964 | ||
|
|
b6c9f5b7ae | ||
|
|
4335b86a10 | ||
|
|
3f88d92e92 | ||
|
|
32606e4f0b | ||
|
|
693422b79b | ||
|
|
6a61285909 | ||
|
|
4271695122 | ||
|
|
b23fda76c1 | ||
|
|
926cb9ff65 | ||
|
|
55db5bdff7 | ||
|
|
790d1a4816 | ||
|
|
1c0f70f534 | ||
|
|
cd39b944af | ||
|
|
6ba2e88a64 | ||
|
|
1f8a337e41 | ||
|
|
b2ea1bfcd6 | ||
|
|
0741271198 | ||
|
|
97c272e5d1 | ||
|
|
54c394699d | ||
|
|
09a31fabe4 | ||
|
|
d4f62f6c5d | ||
|
|
1945f99d59 | ||
|
|
b55cb2eef2 | ||
|
|
c0700e3c7f | ||
|
|
92e754de78 | ||
|
|
9a91e8059b | ||
|
|
3447c973d0 | ||
|
|
cae43a10cb | ||
|
|
aa8f613e98 | ||
|
|
aff153f83a | ||
|
|
59f3f92ba6 | ||
|
|
6a7261359b | ||
|
|
f1e0a0aae7 | ||
|
|
047e6aa05c | ||
|
|
48be87e5f0 | ||
|
|
49726926c6 | ||
|
|
710a2e99b5 | ||
|
|
79478fdb68 | ||
|
|
81e25b0e25 | ||
|
|
0675abbc75 | ||
|
|
26cbd7a1d9 | ||
|
|
ba4741842e | ||
|
|
27ace9893c | ||
|
|
85c45d153b | ||
|
|
fd9d3a1ef1 | ||
|
|
d409f094a5 | ||
|
|
b47c17d67c | ||
|
|
1fd33e3ec8 | ||
|
|
22691f849a | ||
|
|
00e01fc0a7 | ||
|
|
aadda65f5e | ||
|
|
7166fd8a60 | ||
|
|
79b9d5f1a4 | ||
|
|
0583e87ada | ||
|
|
b5f947b8ac | ||
|
|
31be461c6b | ||
|
|
6088fbce06 | ||
|
|
cf2d21d86f | ||
|
|
875a6d9324 | ||
|
|
1b8f9c95b6 | ||
|
|
9d704b3df9 | ||
|
|
cc0e7ebc3b | ||
|
|
3a87bdebd1 | ||
|
|
63c64e05a4 | ||
|
|
1e6d0e06f7 | ||
|
|
b6e477890f | ||
|
|
2eb02480ef | ||
|
|
f70112522f | ||
|
|
8dc3bbf0f8 | ||
|
|
67a8bbb51a | ||
|
|
691a07dac6 | ||
|
|
05e4137d31 | ||
|
|
82805b56b9 | ||
|
|
1ba6e4c88e | ||
|
|
8f78794fd5 | ||
|
|
0cbbbbdc31 | ||
|
|
78843afb9f | ||
|
|
ad48b177c3 | ||
|
|
9430dd583e | ||
|
|
8df4b5af3f | ||
|
|
a471a9f3b6 | ||
|
|
27ac643455 | ||
|
|
b3175a767d | ||
|
|
58b0a8b059 | ||
|
|
9e7125a1db | ||
|
|
7fe172d3b2 | ||
|
|
72bea7cc65 | ||
|
|
139141f8d7 | ||
|
|
e44155156a | ||
|
|
992a731116 | ||
|
|
261a0fedcf | ||
|
|
f251417d85 | ||
|
|
a9e46749b2 | ||
|
|
c3101ae287 | ||
|
|
d363c07912 | ||
|
|
a30be951d6 | ||
|
|
f2a0b2164a | ||
|
|
81ee1e69fe | ||
|
|
846f492053 | ||
|
|
b4be97fb67 | ||
|
|
0db831976e | ||
|
|
369430cd17 | ||
|
|
abf6bddc14 | ||
|
|
f203edc544 | ||
|
|
e2a9ebb321 | ||
|
|
0b5efa57ad | ||
|
|
21e82bd635 | ||
|
|
2685041a5c | ||
|
|
b121633402 | ||
|
|
c84f0250e3 | ||
|
|
049fe7fb53 | ||
|
|
6419aee248 | ||
|
|
5b66860652 | ||
|
|
787c2ae91b | ||
|
|
31987c340e | ||
|
|
fcdc597b1a | ||
|
|
623d24f3ee | ||
|
|
ae3c985060 | ||
|
|
9a743bc5fc | ||
|
|
d2feb71752 | ||
|
|
211f1e3c6b | ||
|
|
dab4ff179f | ||
|
|
e7a289ebb9 | ||
|
|
488102fc17 | ||
|
|
559e2cc921 | ||
|
|
318ad8d767 | ||
|
|
83835f7185 | ||
|
|
eb2a6180fb | ||
|
|
7b223a3a21 | ||
|
|
5b58bface3 | ||
|
|
83b29e43cd | ||
|
|
24908c12d7 | ||
|
|
4e299192ed | ||
|
|
e35f2e61ec | ||
|
|
d29f8b460c | ||
|
|
ec31962640 | ||
|
|
aa5808b504 | ||
|
|
a45146868b | ||
|
|
35648f2e79 | ||
|
|
ac2827ac09 | ||
|
|
bd9ac3cff2 | ||
|
|
7e6ca87a72 | ||
|
|
9edf28e12d | ||
|
|
bbd0dd3fe2 | ||
|
|
e438a9e2f0 | ||
|
|
56ae66d518 | ||
|
|
ff4a4dd92e | ||
|
|
ab6e6edb9e | ||
|
|
f687860936 | ||
|
|
5d23279299 | ||
|
|
ecc4940df2 | ||
|
|
4b02b84897 | ||
|
|
145c4692ff | ||
|
|
430006c5e2 | ||
|
|
148207e2d7 | ||
|
|
7f5a170442 | ||
|
|
ed429b72d7 | ||
|
|
fea13a17d8 | ||
|
|
5f6f9e8b59 | ||
|
|
f9251a5c86 | ||
|
|
38c304a58f | ||
|
|
9cd4d6518f | ||
|
|
e6917d3b77 | ||
|
|
57dc2f7e40 | ||
|
|
b734518371 | ||
|
|
61ff197a27 | ||
|
|
6779c50e26 | ||
|
|
1f651d1d4d | ||
|
|
185914fd31 | ||
|
|
4dcd25e138 | ||
|
|
a332922a52 | ||
|
|
8854f8d45a | ||
|
|
9e8f9dbdd3 | ||
|
|
620e0b23c8 | ||
|
|
2b7ac4e710 | ||
|
|
7868dc7103 | ||
|
|
abfab1786e | ||
|
|
9e66d3f4d3 | ||
|
|
1977ff811d | ||
|
|
8ecfaad2cc | ||
|
|
431c5261d2 | ||
|
|
d260a0aeeb | ||
|
|
e3fbdc7c8a | ||
|
|
28de58504e | ||
|
|
7e16aa936f | ||
|
|
e539f01567 | ||
|
|
252e9acd50 | ||
|
|
4d6e079dd2 | ||
|
|
ef1c3b4648 | ||
|
|
2dc1a5ce93 | ||
|
|
0037eb5805 | ||
|
|
9395999543 | ||
|
|
a6b8fe2a5f | ||
|
|
3dbe12a1e9 | ||
|
|
40914fd544 | ||
|
|
8c41f368f5 | ||
|
|
6105029b23 | ||
|
|
9c518a7d95 | ||
|
|
8644a88202 | ||
|
|
76afe14584 | ||
|
|
fe02d132e2 | ||
|
|
0f4a03cbb6 | ||
|
|
9e661601fe | ||
|
|
29c655c0a6 | ||
|
|
059b3a5770 | ||
|
|
918e040953 | ||
|
|
9063a7f853 | ||
|
|
851c29269b | ||
|
|
0cf649d9cc | ||
|
|
0911b96399 | ||
|
|
983ccdcead | ||
|
|
186e46d88d | ||
|
|
0d1060f21e | ||
|
|
6d3260af64 | ||
|
|
1d3f1a80d0 | ||
|
|
a5d994941c | ||
|
|
143acd6222 | ||
|
|
852d35b6ea | ||
|
|
f39b1c0801 | ||
|
|
e424a1b3e7 | ||
|
|
fa895f2aa2 | ||
|
|
a6a264ef2c | ||
|
|
3a757fddbb | ||
|
|
d9973eaeb8 | ||
|
|
5a1614cecd | ||
|
|
0f24df6e54 | ||
|
|
e662ddff49 | ||
|
|
c19349951d | ||
|
|
9da14a96ab | ||
|
|
00ea0e7db0 | ||
|
|
df28af8f39 | ||
|
|
44ffe27056 | ||
|
|
adb4e41a1a | ||
|
|
42bc45be8e | ||
|
|
870a67e01f | ||
|
|
2e9494b15d | ||
|
|
3ac3331e14 | ||
|
|
163d29826d | ||
|
|
042526c19f | ||
|
|
9fa1abe9fe | ||
|
|
492dfca65d | ||
|
|
64736dd1be | ||
|
|
709cf76f6b | ||
|
|
1a62b6e68c | ||
|
|
ae8235571f | ||
|
|
ac4d08b5e2 | ||
|
|
6bba85d500 | ||
|
|
8aabbf5f8c | ||
|
|
dcf23b0cfe | ||
|
|
af838b7d7b | ||
|
|
43eb8b2874 | ||
|
|
df5578a7a3 | ||
|
|
f2108ec34c | ||
|
|
a318e04419 | ||
|
|
1cb227c1f1 | ||
|
|
f3f7d37c1d | ||
|
|
ca04681c3b | ||
|
|
e349a1bf74 | ||
|
|
70523c690b | ||
|
|
17abfd5a4b | ||
|
|
f6864697c3 | ||
|
|
921d195187 | ||
|
|
48b5374e65 | ||
|
|
c715fa0b60 | ||
|
|
adf27bf60f | ||
|
|
e71bcb659c | ||
|
|
0d04e859e1 | ||
|
|
bc3a44aebc | ||
|
|
1514b718e3 | ||
|
|
b9c190ba77 | ||
|
|
e47b8306db | ||
|
|
4909f7c795 | ||
|
|
7a1538d9cc | ||
|
|
0409a7d969 | ||
|
|
becff7da56 | ||
|
|
4aa9bb6b13 | ||
|
|
ff837422ee | ||
|
|
2e880e29bf | ||
|
|
ffc2aeec6e | ||
|
|
b3bcdaf01a | ||
|
|
03fa576833 | ||
|
|
0c050662b7 | ||
|
|
da39f380a4 | ||
|
|
e08a12dab1 | ||
|
|
92835ca5d8 | ||
|
|
5d87b1f22c | ||
|
|
5e4395eab8 | ||
|
|
689061e3f2 | ||
|
|
90314100e0 | ||
|
|
20112ed846 | ||
|
|
63b4b8c7bd | ||
|
|
633b3895d7 | ||
|
|
b723ec9905 | ||
|
|
ec80b1f414 | ||
|
|
676ac46ff5 | ||
|
|
31c8f8ac11 | ||
|
|
b1c7fc050b | ||
|
|
fce3f8f487 | ||
|
|
6f89f86c3d | ||
|
|
49655a6822 | ||
|
|
1385199e80 | ||
|
|
aba2c4dca2 | ||
|
|
c1878e8f52 | ||
|
|
ab85ac5eda | ||
|
|
d771b44e53 | ||
|
|
7eebf9a3fb | ||
|
|
20c727ec4c | ||
|
|
9956ef2d33 | ||
|
|
0daf1ef729 | ||
|
|
499024d208 | ||
|
|
761d5166af | ||
|
|
05792d6936 | ||
|
|
2a15e594ef | ||
|
|
d557da5d79 | ||
|
|
600ccb2237 | ||
|
|
45b9b62de4 | ||
|
|
d37b58274d | ||
|
|
0d41c3e46b | ||
|
|
57d6d253a1 | ||
|
|
7f1d76f7ee | ||
|
|
211d5329f4 | ||
|
|
cfc6d460cb | ||
|
|
0ebe2c15d1 | ||
|
|
28c9e1edf4 | ||
|
|
b3cbf4500d | ||
|
|
83bb07027d | ||
|
|
6b68aa989c | ||
|
|
8f027aa0bf | ||
|
|
ac100f1624 | ||
|
|
f91a7bc992 | ||
|
|
859a82a85c | ||
|
|
8f369c53cf | ||
|
|
6f494c5e34 | ||
|
|
0a7182f6ad | ||
|
|
ae9963776a | ||
|
|
7b5348415f | ||
|
|
c49e228916 | ||
|
|
957fcd9049 | ||
|
|
f826bf37ea | ||
|
|
564b7b6dd0 | ||
|
|
ca51ac4017 | ||
|
|
4161624e94 | ||
|
|
04f246f8c7 | ||
|
|
8ca3b05624 | ||
|
|
6fdc8651bd | ||
|
|
8cc70db2db | ||
|
|
c469369b86 | ||
|
|
58e39b4da5 | ||
|
|
300876a7a6 | ||
|
|
ef782d726e | ||
|
|
26d4e0ad4e | ||
|
|
e3558a551b | ||
|
|
595a66ce0f | ||
|
|
3cc9e9383b | ||
|
|
9d964e5477 | ||
|
|
153e9c0278 | ||
|
|
980ba2202c | ||
|
|
7b2012f262 | ||
|
|
ed9a4b9fc4 | ||
|
|
fe79f20957 | ||
|
|
0d24f64473 | ||
|
|
e1bb13c09f | ||
|
|
a268a804b7 | ||
|
|
5691325440 | ||
|
|
db6bcbd83f | ||
|
|
37824498a3 | ||
|
|
23c6f0a344 | ||
|
|
d1cf5d5706 | ||
|
|
e888e30476 | ||
|
|
3d5648f9ee | ||
|
|
12e45b8462 | ||
|
|
c260c9fad3 | ||
|
|
731e6a6662 | ||
|
|
eb748f159a | ||
|
|
d6c4695dcd | ||
|
|
261208d432 | ||
|
|
795f013006 | ||
|
|
71f8fdee81 | ||
|
|
6005b0d99c | ||
|
|
7a8b2885e2 | ||
|
|
79543caf90 | ||
|
|
e1ea18f90e | ||
|
|
5f09cbcdbd | ||
|
|
960b04e137 | ||
|
|
089783c838 | ||
|
|
be57f689b0 | ||
|
|
fca58f6212 | ||
|
|
2cc571f9e3 | ||
|
|
1cbc8fd3d1 | ||
|
|
9c4fa400cf | ||
|
|
b9fd757d03 | ||
|
|
3a9419f65a | ||
|
|
1d25acb038 | ||
|
|
5d5c78b47f | ||
|
|
8bb3443a21 | ||
|
|
30ef1a0779 | ||
|
|
81b98dafa1 | ||
|
|
47438daa60 | ||
|
|
36e6404228 | ||
|
|
930be07067 | ||
|
|
30eb6bbdc9 | ||
|
|
a2f8887b79 | ||
|
|
b2c01f02d5 | ||
|
|
c807ce73ed | ||
|
|
af8928a23b | ||
|
|
14a6cfaddb | ||
|
|
0b1f37e77c | ||
|
|
a4065ebf1c | ||
|
|
bd0c3b3c66 | ||
|
|
f46c6fbee0 | ||
|
|
f13669a375 | ||
|
|
3af90a6e19 | ||
|
|
5e113a18c5 | ||
|
|
5940e06f01 | ||
|
|
5c73cdef62 | ||
|
|
251a349055 | ||
|
|
5f09947d28 | ||
|
|
224cf1c274 | ||
|
|
bb12d44471 | ||
|
|
bcf07f8a4b | ||
|
|
cc28bc472e | ||
|
|
e9834808e9 | ||
|
|
710c38d7a4 | ||
|
|
d21b66835f | ||
|
|
4e58589b0e | ||
|
|
e6b4b4b66d | ||
|
|
355bf01c82 | ||
|
|
b4f13a4952 | ||
|
|
99e71e6a84 | ||
|
|
9a452ba3a1 | ||
|
|
659d252b6f | ||
|
|
c712fe01a9 | ||
|
|
5c0e66d632 | ||
|
|
acc8089bc2 | ||
|
|
34636fa47e | ||
|
|
003076e17c | ||
|
|
9ce2d70019 | ||
|
|
4ce22c607b | ||
|
|
3df8e78860 | ||
|
|
178bd7db34 | ||
|
|
f7d5ecec9c | ||
|
|
4e420600c1 | ||
|
|
9547954978 | ||
|
|
4626f31d0e | ||
|
|
c07857e063 | ||
|
|
39217edb12 | ||
|
|
241a67f73b | ||
|
|
ea93252ef1 | ||
|
|
f6b168de4c | ||
|
|
4113ad50e4 | ||
|
|
c37dcf0edb | ||
|
|
5359936d07 | ||
|
|
ea4f98dca6 | ||
|
|
f9b50910e0 | ||
|
|
84143dc57d | ||
|
|
747bad7c09 | ||
|
|
3a805c5cc1 | ||
|
|
7241527956 | ||
|
|
825b0c7968 | ||
|
|
2948954535 | ||
|
|
efb64fdf80 | ||
|
|
6416dc998b | ||
|
|
0f26148423 | ||
|
|
f460f12c9d | ||
|
|
23bb054129 | ||
|
|
d4b540f85a | ||
|
|
4967109ffc | ||
|
|
a68aa81320 | ||
|
|
0ea9381b7d | ||
|
|
1cb17b2a5d | ||
|
|
1dd57bd783 | ||
|
|
34f0bd110f | ||
|
|
a75ede4b9b | ||
|
|
a3daf542ad | ||
|
|
4bb5a351b2 | ||
|
|
43792592ca | ||
|
|
5fbcb9a1fa | ||
|
|
6e3af5424b | ||
|
|
7635577ad7 | ||
|
|
0df2ed85fd | ||
|
|
5eae12fc80 | ||
|
|
b40e37f93d | ||
|
|
ee0941a0b7 | ||
|
|
e86a6151f4 | ||
|
|
f4413ca65a | ||
|
|
7873f9bdbd | ||
|
|
920e684d40 | ||
|
|
81951d9874 | ||
|
|
4c8a053855 | ||
|
|
8a3c0fbed1 | ||
|
|
e9d0c7a6f3 | ||
|
|
56603e2770 | ||
|
|
89cce1e458 | ||
|
|
b4433a8ba6 | ||
|
|
1933f9d33c | ||
|
|
cfa0ac7aff | ||
|
|
cfc863869f | ||
|
|
4088721726 | ||
|
|
d8273e198c | ||
|
|
8f40145384 | ||
|
|
6e7904f9aa | ||
|
|
037cd0d991 | ||
|
|
6d79722d78 | ||
|
|
0d037cfdce | ||
|
|
9459ee99ae | ||
|
|
29726951b0 | ||
|
|
097fc121e6 | ||
|
|
325a64d8a2 | ||
|
|
e9e48a6ff2 | ||
|
|
2728caa613 | ||
|
|
0943045108 | ||
|
|
b235c29366 | ||
|
|
f0a9221897 | ||
|
|
fd281e9c4b | ||
|
|
e0d265d3eb | ||
|
|
98d37c5a0c | ||
|
|
e5a8a26bcb | ||
|
|
a9eadc9f91 | ||
|
|
193ba7b46e | ||
|
|
151ae59436 | ||
|
|
bde08d216c | ||
|
|
1abe65d928 | ||
|
|
b7f740f2fc | ||
|
|
cdc1cc22e7 | ||
|
|
fe43a662a2 | ||
|
|
1ac4db23f7 | ||
|
|
7f99e12e98 | ||
|
|
62a018762e | ||
|
|
6dd9c3909c | ||
|
|
6cb7b0c0ac | ||
|
|
38aaf6c380 | ||
|
|
ed4c0b53cc | ||
|
|
95f78b2b56 | ||
|
|
4ff5d32a6b | ||
|
|
ed16a1695f | ||
|
|
7c66ab5029 | ||
|
|
8830df8b66 | ||
|
|
a89ec793d0 | ||
|
|
ce2a80b482 | ||
|
|
93e6273b68 | ||
|
|
68cc1e0c77 | ||
|
|
2568928070 | ||
|
|
383a4d0990 | ||
|
|
0beccdf580 | ||
|
|
a4d9158509 | ||
|
|
8627618540 | ||
|
|
d9166028e5 | ||
|
|
6dae798824 | ||
|
|
577286e0e2 | ||
|
|
003dd2e7de | ||
|
|
03e206d18a | ||
|
|
2c5f346d3a | ||
|
|
f9cf3de70b | ||
|
|
6f1f5a7506 | ||
|
|
ed68159d19 | ||
|
|
0114889456 | ||
|
|
2c7f099253 | ||
|
|
ee9de01665 | ||
|
|
f2a5283cbc | ||
|
|
3e1625c787 | ||
|
|
e96d7f1df4 | ||
|
|
6a76d3eb53 | ||
|
|
3b7bf29385 | ||
|
|
a390329f60 | ||
|
|
14c3601583 | ||
|
|
9081014c2c | ||
|
|
759d049ae8 | ||
|
|
1befebc950 | ||
|
|
ae56df82c1 | ||
|
|
088b9b2a97 | ||
|
|
b0670ff12b | ||
|
|
9b61060ffc | ||
|
|
5590a3f179 | ||
|
|
7b3afc952f | ||
|
|
93227ddca5 | ||
|
|
cedf996073 | ||
|
|
dc19789444 | ||
|
|
64854c0364 | ||
|
|
d8efde07e5 | ||
|
|
2ffbd7afac | ||
|
|
8676ce68e3 | ||
|
|
91669584cf | ||
|
|
7fc1cbb640 | ||
|
|
b9950e3b33 | ||
|
|
b13923f0f7 | ||
|
|
212e3e26bc | ||
|
|
125f655131 | ||
|
|
c98b50753f | ||
|
|
96d3c9363f | ||
|
|
4d2c539b6c | ||
|
|
35fae251dd | ||
|
|
52a4d6b8ae | ||
|
|
18f58c437f | ||
|
|
2924dd6703 | ||
|
|
c0fc9066a9 | ||
|
|
bd7d7f4523 | ||
|
|
172963005a | ||
|
|
834608c39d | ||
|
|
157c9752d5 | ||
|
|
e98b7b1cb3 | ||
|
|
5f5814ca5e | ||
|
|
2ecce667a6 | ||
|
|
783b5c3b11 | ||
|
|
7dfbbae3d4 | ||
|
|
6291a16b20 | ||
|
|
24b30d259c | ||
|
|
82fdb87b27 | ||
|
|
97e90d7b89 | ||
|
|
10be4ec2c3 | ||
|
|
bd2231104b | ||
|
|
8a4ce7d0f5 | ||
|
|
f0ecdd04d3 | ||
|
|
2f5c70b2b0 | ||
|
|
f4b5f8cdf0 | ||
|
|
8ff3bb5000 | ||
|
|
1cc5194337 | ||
|
|
0da4524a22 | ||
|
|
664b9baf67 | ||
|
|
cd6c13c2b3 | ||
|
|
086ad79970 | ||
|
|
0e8158eabc | ||
|
|
f768be0a25 | ||
|
|
41f1f6e830 | ||
|
|
c3b85c12a9 | ||
|
|
fc32b81382 | ||
|
|
6ea4ee94f9 | ||
|
|
e63d18fbd1 | ||
|
|
145c263a4b | ||
|
|
680d5fd041 | ||
|
|
65d141e6da | ||
|
|
0d99cdbeed | ||
|
|
dca257f27e | ||
|
|
dcd484a238 | ||
|
|
090232ea19 | ||
|
|
526603ff05 | ||
|
|
eb88d778e7 | ||
|
|
2adf294602 | ||
|
|
e05de4f46d | ||
|
|
f5e9c636e8 | ||
|
|
ef91f04927 | ||
|
|
befe9a10b9 | ||
|
|
36d45eabc0 | ||
|
|
864f17d894 | ||
|
|
58b317c9da | ||
|
|
4bdb1ca8d6 | ||
|
|
d89285e8d6 | ||
|
|
e17220ffcb | ||
|
|
9b0b9f209e | ||
|
|
adbee7ecf5 | ||
|
|
ccfa139c71 | ||
|
|
aa0e2ac451 | ||
|
|
f4ca16058e | ||
|
|
af937c441b | ||
|
|
45229fae8e | ||
|
|
ef5b98742f | ||
|
|
697592b3dd | ||
|
|
ee1d729ce0 | ||
|
|
7b29c2803f | ||
|
|
576ac00eb3 | ||
|
|
87c4abb611 | ||
|
|
5dc68dd609 | ||
|
|
557ca620e4 | ||
|
|
0b311834eb | ||
|
|
7b5ca30917 | ||
|
|
d3cca934ee | ||
|
|
750203bde4 | ||
|
|
0fcd74b836 | ||
|
|
1b3a398ec1 | ||
|
|
2e557de094 | ||
|
|
4fd0add1cd | ||
|
|
4ce87e33ee | ||
|
|
86fe7e502b | ||
|
|
b216427e73 | ||
|
|
9730c9fb70 | ||
|
|
7853c1cfe6 | ||
|
|
c8644d1f63 | ||
|
|
970c22f970 | ||
|
|
479abdd32e | ||
|
|
f1cc2a2c0c | ||
|
|
99fb36797a | ||
|
|
e9c7a86220 | ||
|
|
fb7d7e0022 | ||
|
|
8ef77547d0 | ||
|
|
fa437e14a4 | ||
|
|
61e71a8bc8 | ||
|
|
71dd581127 | ||
|
|
26b57832fe | ||
|
|
884df3a51f | ||
|
|
86b889485d | ||
|
|
d784000a14 | ||
|
|
2b604eada5 | ||
|
|
018b9d421a | ||
|
|
f9b7132175 | ||
|
|
bbccbfe9d1 | ||
|
|
2ad1df7327 | ||
|
|
228f1ee9f2 | ||
|
|
cf6c5c222d | ||
|
|
aba5888f6b | ||
|
|
397a634ebd | ||
|
|
b14ebbcb17 | ||
|
|
96c3b1a1bb | ||
|
|
c8996bab1c | ||
|
|
b359badd49 | ||
|
|
6b8e5c0e8a | ||
|
|
ce2d84b3bb | ||
|
|
6f2419342f | ||
|
|
d95cb3edc8 | ||
|
|
99c2bad222 | ||
|
|
069f63c893 | ||
|
|
676f79f8d2 | ||
|
|
cef28131f7 | ||
|
|
02d2c0a08d | ||
|
|
aec2e865f0 | ||
|
|
56120ca04b | ||
|
|
785d76d681 | ||
|
|
9afd97022e | ||
|
|
5409f32984 | ||
|
|
733686e430 | ||
|
|
557658776f | ||
|
|
0627c48dde | ||
|
|
7c00ba10da | ||
|
|
e80d9d5902 | ||
|
|
3529903afb | ||
|
|
86981ac9f5 | ||
|
|
bb6047cd64 | ||
|
|
93e080cbaa | ||
|
|
72703aa9f3 | ||
|
|
c5399c827d | ||
|
|
982a649aa5 | ||
|
|
854049f962 | ||
|
|
4bd860a001 | ||
|
|
aa3e8dd3da | ||
|
|
0beda1a388 | ||
|
|
7eb7f7c32d | ||
|
|
b486d1ce05 | ||
|
|
29aa9a37cc | ||
|
|
bc860548c2 | ||
|
|
9cfa822fea | ||
|
|
c1e8744177 | ||
|
|
700843d69f | ||
|
|
be1a505189 | ||
|
|
2008c92513 | ||
|
|
53e2e4c721 | ||
|
|
dcc01123f2 | ||
|
|
1450712e76 | ||
|
|
bfdef6301c | ||
|
|
33be9e29be | ||
|
|
8ed2420dbb | ||
|
|
409265a571 | ||
|
|
885119bf50 | ||
|
|
85070e46cc | ||
|
|
9ce5e89fcc | ||
|
|
2e2f981bcc | ||
|
|
8cc7e74a8f | ||
|
|
5b437c7637 | ||
|
|
84d752d1ad | ||
|
|
10cbc33a4c | ||
|
|
d62706ec6d | ||
|
|
4c3cfc7558 | ||
|
|
ac5eb7fdfb | ||
|
|
52655b4c90 | ||
|
|
07e0957e1f | ||
|
|
7d1f2ac769 | ||
|
|
416cd9ac11 | ||
|
|
804e462305 | ||
|
|
34cb17b930 | ||
|
|
64291e989e | ||
|
|
c5b225c8ca | ||
|
|
831312febe | ||
|
|
cb13fad733 | ||
|
|
9406ab91a2 | ||
|
|
2933698677 | ||
|
|
cf510ad781 | ||
|
|
140ca2dcc2 | ||
|
|
a08decdfed | ||
|
|
fba9f41b84 | ||
|
|
54fc885efd | ||
|
|
013d5c18c3 | ||
|
|
b77ff4d589 | ||
|
|
36f7b399de | ||
|
|
c068284882 | ||
|
|
e05f801271 | ||
|
|
e04ccbd506 | ||
|
|
1342a96ecf | ||
|
|
4bc47bec57 | ||
|
|
e126ec4fc4 | ||
|
|
46ae340f24 | ||
|
|
6cc79dc79d | ||
|
|
62a6230e1c | ||
|
|
43da5b2066 | ||
|
|
591d5ca41b | ||
|
|
4be80d5109 | ||
|
|
23e70e1cc6 | ||
|
|
800094802e | ||
|
|
9669794e7a | ||
|
|
30892709d7 | ||
|
|
a3fead9706 | ||
|
|
201d0df50b | ||
|
|
9f10e45e42 | ||
|
|
a607f8a20c | ||
|
|
ed77fdf389 | ||
|
|
08f9c90981 | ||
|
|
532efa9ce9 | ||
|
|
a4b7f716d3 | ||
|
|
2e16100609 | ||
|
|
d54b551f6c | ||
|
|
2e05db347e | ||
|
|
cca12abf6e | ||
|
|
18e53fa91a | ||
|
|
8c58dea899 | ||
|
|
9dfbcef272 | ||
|
|
7faaca7118 | ||
|
|
5f3824a5aa | ||
|
|
1ae06e002d | ||
|
|
8bdecd3617 | ||
|
|
c4a7eedc16 | ||
|
|
2ee3c63b13 | ||
|
|
7b7f0da4a7 | ||
|
|
676d62fa0e | ||
|
|
f64dbb08c2 | ||
|
|
dd469eec40 | ||
|
|
17d27805f9 | ||
|
|
767aaf587c | ||
|
|
10286f45e7 | ||
|
|
7bdfdd09e4 | ||
|
|
a5ad43afe8 | ||
|
|
fe0f8967bf | ||
|
|
bfc63bfb19 | ||
|
|
95c7cfb025 | ||
|
|
2fbf23875f | ||
|
|
48d19acb7c | ||
|
|
9dbbba9976 | ||
|
|
18e1a3022d | ||
|
|
5d427004c6 | ||
|
|
0106575728 | ||
|
|
f0d860d35f | ||
|
|
520dc64369 | ||
|
|
8145f92dcc | ||
|
|
40ee1ba0dc | ||
|
|
474442dd56 | ||
|
|
79931c5aeb | ||
|
|
dc867bbf3a | ||
|
|
71d66f3678 | ||
|
|
ba82e1ef54 | ||
|
|
612ecf934f | ||
|
|
66e60c6553 | ||
|
|
e7bcfb368c | ||
|
|
eda919f4dc | ||
|
|
7599143dcc | ||
|
|
f28c856e33 | ||
|
|
b7daa665ba | ||
|
|
dcad09e125 | ||
|
|
338b641370 | ||
|
|
0a925d7834 | ||
|
|
70100d5509 | ||
|
|
e2828af607 | ||
|
|
b5c496f109 | ||
|
|
9f59fb6d33 | ||
|
|
cfe4252744 | ||
|
|
500d2db302 | ||
|
|
6d45f952e6 | ||
|
|
3aa0e57ce6 | ||
|
|
a10976b961 | ||
|
|
93859e2c9a | ||
|
|
2d2a62e3d9 | ||
|
|
f0d3be29f2 | ||
|
|
21fa0d86b1 | ||
|
|
3d6b865654 | ||
|
|
1033acd92d | ||
|
|
36bf141333 | ||
|
|
49559c04f6 | ||
|
|
68542e72a9 | ||
|
|
3aa51450c4 | ||
|
|
8a2dda312c | ||
|
|
e5a4d1d9e5 | ||
|
|
14de67fc77 | ||
|
|
783c7f97ba | ||
|
|
f4af38120a | ||
|
|
259f4f3d01 | ||
|
|
f697d7fdd5 | ||
|
|
6f8d8131b1 | ||
|
|
7e6d51a73c | ||
|
|
25264131e2 | ||
|
|
d7bfce3951 | ||
|
|
3cfe3bc001 | ||
|
|
92e7e346f3 | ||
|
|
e8cea8d70f | ||
|
|
efe4bab29b | ||
|
|
54c8728cd7 | ||
|
|
08f10fcd02 | ||
|
|
5babaf7491 | ||
|
|
d62cb0f5d0 | ||
|
|
1c05b9359d | ||
|
|
ad63f8a53c | ||
|
|
f4781fc3cb | ||
|
|
f222778489 | ||
|
|
303bfc1024 | ||
|
|
b387560692 | ||
|
|
d997c8b2f6 | ||
|
|
445aab4b73 | ||
|
|
c3df44389b | ||
|
|
5e873952b0 | ||
|
|
98dcde4ec3 | ||
|
|
34f7a3a229 | ||
|
|
13989be71b | ||
|
|
777c6e3c94 | ||
|
|
0a33c971aa | ||
|
|
dda59c5db5 | ||
|
|
e819c3a4ca | ||
|
|
fb24990211 | ||
|
|
0320f6930d | ||
|
|
1b8977ff7c | ||
|
|
721fbf63f4 | ||
|
|
a14ccfffb8 | ||
|
|
15c4d51d39 | ||
|
|
5565d0ab07 | ||
|
|
8cb0101449 | ||
|
|
aebfd4cfbf | ||
|
|
b2bb51f339 | ||
|
|
c5d25b22e4 | ||
|
|
d71ea7c01e | ||
|
|
ab4b49262a | ||
|
|
850346cbaf | ||
|
|
9029297dcb | ||
|
|
80c5ae1d0e | ||
|
|
e7497c0c99 | ||
|
|
a419802c71 | ||
|
|
2b535b3947 | ||
|
|
7ba8e0bd01 | ||
|
|
49ae8f8144 | ||
|
|
4bef109689 | ||
|
|
f6c6ee5663 | ||
|
|
e7da67f5d3 | ||
|
|
569288b3bf | ||
|
|
b6821dbb91 | ||
|
|
b04eef1318 | ||
|
|
9bc2582c31 | ||
|
|
f0b4bc12f8 | ||
|
|
14b4707d9a | ||
|
|
beb478a24b | ||
|
|
795885f454 | ||
|
|
7d9c1ebd66 | ||
|
|
3af962a993 | ||
|
|
211ca5ff77 | ||
|
|
befbc8f56b | ||
|
|
a9db36d1fd | ||
|
|
acd90fcdc6 | ||
|
|
f29b88c246 | ||
|
|
006556713e | ||
|
|
b274dedf1b | ||
|
|
89cc9988c9 | ||
|
|
697aa67d18 | ||
|
|
e62e77426f | ||
|
|
e102478b3d | ||
|
|
79a97a9d36 | ||
|
|
32913182dc | ||
|
|
f3fc3d021d | ||
|
|
f7e24683c4 | ||
|
|
276741af4d | ||
|
|
3f430c9c3a | ||
|
|
07048941a4 | ||
|
|
b5ed5843a4 | ||
|
|
357a15a649 | ||
|
|
e42e3a4fac | ||
|
|
2e121fda35 | ||
|
|
085081fc6e | ||
|
|
b790bdf46b | ||
|
|
76b2f53707 | ||
|
|
95765567d0 | ||
|
|
ad88a4bbba | ||
|
|
0811742488 | ||
|
|
7be56906d6 | ||
|
|
a9c0cd4ab3 | ||
|
|
07ac29a058 | ||
|
|
64814739d5 | ||
|
|
c1c16bea94 | ||
|
|
d91d21f05b | ||
|
|
c2c6805797 | ||
|
|
9c613ade7a | ||
|
|
382cee0a77 | ||
|
|
980f2b7078 | ||
|
|
3b738a16eb | ||
|
|
9c5f851ec9 | ||
|
|
3fe5b462f7 | ||
|
|
28ff8babad | ||
|
|
f9f212fb93 | ||
|
|
df97ab3e5f | ||
|
|
c18329cef6 | ||
|
|
0fd714d2c3 | ||
|
|
bd87aec5a7 | ||
|
|
3ca560439c | ||
|
|
897ef500e5 | ||
|
|
ec783dc142 | ||
|
|
2b04257491 | ||
|
|
e9bbe425d4 | ||
|
|
019c95f566 | ||
|
|
40be9a1c1d | ||
|
|
bf769d09ec | ||
|
|
fb6e8a5aa4 | ||
|
|
0eb3d15ccb | ||
|
|
1752e9c088 | ||
|
|
65db980106 | ||
|
|
8e34d3f9ef | ||
|
|
5b73f35761 | ||
|
|
ede9884c59 | ||
|
|
226e614378 | ||
|
|
4b7d499e64 | ||
|
|
2be6941f42 | ||
|
|
c4f240de14 | ||
|
|
e116d0a625 | ||
|
|
9f5744a72f | ||
|
|
e36115d688 | ||
|
|
4cb7aa067c | ||
|
|
4111032511 | ||
|
|
50313059fc | ||
|
|
1de0823953 | ||
|
|
9069794e5e | ||
|
|
7b82b07fba | ||
|
|
c857bb68ec | ||
|
|
005f2adaaa | ||
|
|
0aecdf6828 | ||
|
|
8ed66f98a9 | ||
|
|
8478b4035e | ||
|
|
2a2bb78cce | ||
|
|
18b82345dc | ||
|
|
d938d5e6f8 | ||
|
|
fa9f5ed982 | ||
|
|
72147c62f7 | ||
|
|
7a91296f1d | ||
|
|
c927c92086 | ||
|
|
d4ea51734e | ||
|
|
2ae142e663 | ||
|
|
3621045631 | ||
|
|
e64bc7cde6 | ||
|
|
473322ec66 | ||
|
|
89e543f383 | ||
|
|
628290b5e6 | ||
|
|
c2d5f2ef98 | ||
|
|
9d64ab7d5a | ||
|
|
357ff4d1dc | ||
|
|
265b9a2e49 | ||
|
|
ec8330b21d | ||
|
|
8fdf832e5f | ||
|
|
476499c75c | ||
|
|
aec7c5a87c | ||
|
|
b55502cdae | ||
|
|
87a3a924ce | ||
|
|
c6c22aeb44 | ||
|
|
4f3ba55ed1 | ||
|
|
734fdb0842 | ||
|
|
6637b237e6 | ||
|
|
bf7023d165 | ||
|
|
b546c7c926 | ||
|
|
199b3e46f9 | ||
|
|
558814e16d | ||
|
|
a3154295c5 | ||
|
|
2257deb502 | ||
|
|
fc61870a1c | ||
|
|
cb2438ae52 | ||
|
|
51f6702fe1 | ||
|
|
93b268ade0 | ||
|
|
9e37a7f9a5 | ||
|
|
548811cb19 | ||
|
|
b74205d022 | ||
|
|
eb1e3a3985 | ||
|
|
87c8e00b7a | ||
|
|
b90f6e87cf | ||
|
|
987a4a7367 | ||
|
|
e0d269c0d8 | ||
|
|
e644866caf | ||
|
|
93e450793c | ||
|
|
d1b56d0043 | ||
|
|
6352df87b1 | ||
|
|
dddb2aab8d | ||
|
|
b7d3338df2 | ||
|
|
061cea1cf3 | ||
|
|
4bc31df3e4 | ||
|
|
330346d51c | ||
|
|
8128db9ec1 | ||
|
|
55678c6951 | ||
|
|
793ac8035c | ||
|
|
c2791caf53 | ||
|
|
d94717e099 | ||
|
|
a60825fa96 | ||
|
|
3aa899929d | ||
|
|
b0bfae1963 | ||
|
|
b9a34e818e | ||
|
|
d57f7d586b | ||
|
|
fa7d04fed4 | ||
|
|
b1c4c39c58 | ||
|
|
b85c625d83 | ||
|
|
0d357155cc | ||
|
|
ea6c5f03a5 | ||
|
|
a9beeeeeea | ||
|
|
a8ec986981 | ||
|
|
69ce8a72f5 | ||
|
|
ee0958cb4d | ||
|
|
0e1590b3dd | ||
|
|
53cbea2231 | ||
|
|
46d71e7fd2 | ||
|
|
b10a838a7a | ||
|
|
9ee8efc63b | ||
|
|
d9762a7cdb | ||
|
|
3ef73d9a88 | ||
|
|
7b85b332cb | ||
|
|
9d49e4706e | ||
|
|
17932a8f7b | ||
|
|
841c9884b2 | ||
|
|
30fc601e6c | ||
|
|
d1638fe08b | ||
|
|
fb4726d571 | ||
|
|
d57d041d67 | ||
|
|
4c2e40a488 | ||
|
|
7494f0f498 | ||
|
|
4da70dea28 | ||
|
|
8250f93d41 | ||
|
|
7d9bef9286 | ||
|
|
1d2ffb4712 | ||
|
|
88e925f3f5 | ||
|
|
bd3df5ec6d | ||
|
|
06b27ea24c | ||
|
|
1b314a85db | ||
|
|
8ee182288a | ||
|
|
006b61eb0b | ||
|
|
82b8b6865c | ||
|
|
748644b72d | ||
|
|
110cf8bc9e | ||
|
|
376f3c10de | ||
|
|
ae975713c2 | ||
|
|
ca2c12d353 | ||
|
|
785395b07e | ||
|
|
df0a480058 | ||
|
|
e3be3e69c0 | ||
|
|
9c89133a1f | ||
|
|
f213c0db09 | ||
|
|
202aa9f775 | ||
|
|
9636fc2588 | ||
|
|
a76825a5ef | ||
|
|
8a75dbeb23 | ||
|
|
1ccfabb66d | ||
|
|
40bcd5447c | ||
|
|
4455f1f599 | ||
|
|
9e6c3638e6 | ||
|
|
fa50d9d96d | ||
|
|
38ced24ad1 | ||
|
|
921a0c22a6 | ||
|
|
af45542cfe | ||
|
|
55f8b03948 | ||
|
|
55d6cba5e1 | ||
|
|
3963adca3d | ||
|
|
6beb0eeea1 | ||
|
|
8acbb074f8 | ||
|
|
be83356e5e | ||
|
|
797d56cbd8 | ||
|
|
9ee502ac6b | ||
|
|
ed285ae5c9 | ||
|
|
436a841354 | ||
|
|
4a6fa4c204 | ||
|
|
c25cd9094b | ||
|
|
21db158722 | ||
|
|
e40197315d | ||
|
|
fd1ce3856a | ||
|
|
c6ee182bd4 | ||
|
|
4989695ec3 | ||
|
|
0b48d1c821 | ||
|
|
9e50d8f8bc | ||
|
|
a6c48c8be7 | ||
|
|
3c8c873252 | ||
|
|
4901ec2324 | ||
|
|
e608324f9f | ||
|
|
0c14b31df4 | ||
|
|
0426670f0a | ||
|
|
cacdc27f52 | ||
|
|
09b5a99816 | ||
|
|
4c134bcfce | ||
|
|
2434a4e88d | ||
|
|
c9a981778d | ||
|
|
367b784738 | ||
|
|
7bff23b166 | ||
|
|
accbbd7dc3 | ||
|
|
889de6b285 | ||
|
|
1d30f40950 | ||
|
|
1cd5008bba | ||
|
|
da933ee29d | ||
|
|
d4a4a42cb3 | ||
|
|
11bb05ba48 | ||
|
|
0072422576 | ||
|
|
dfd821c738 | ||
|
|
ee40b6882d | ||
|
|
36a7638073 | ||
|
|
2603618831 | ||
|
|
b17b4b4a4a | ||
|
|
f646e9075f | ||
|
|
ba8795083f | ||
|
|
06de7d6936 | ||
|
|
febcfab23d | ||
|
|
1269df2e3b | ||
|
|
dda86f386d | ||
|
|
7320e53d9e | ||
|
|
118977f19d | ||
|
|
88c17d5587 | ||
|
|
73a1a639a7 | ||
|
|
8f4da2965e | ||
|
|
14aa8f0c11 | ||
|
|
898808fa8c | ||
|
|
a20da5523e | ||
|
|
5be48639b1 | ||
|
|
1a073a20db | ||
|
|
63a0bd4270 | ||
|
|
98633c2a19 | ||
|
|
bdfc75e751 | ||
|
|
da23624b57 | ||
|
|
30f2d0c0b3 | ||
|
|
f854130b7b | ||
|
|
2f2d84033b | ||
|
|
b1341b3068 | ||
|
|
23d52ca4a7 | ||
|
|
437b9ba46f | ||
|
|
f6e15d25a3 | ||
|
|
75be5a6681 | ||
|
|
c4410c85ab | ||
|
|
97f6049bc2 | ||
|
|
29240cb5c1 | ||
|
|
7679cb3fa8 | ||
|
|
0574196acb | ||
|
|
14b3a2e4c3 | ||
|
|
5663272435 | ||
|
|
03f368d94c | ||
|
|
96034c4a51 | ||
|
|
078d1fbf2b | ||
|
|
9eba83c156 | ||
|
|
0187c9e11d | ||
|
|
472d1d8e05 | ||
|
|
629f52843f | ||
|
|
c126bac153 | ||
|
|
cff0757c31 | ||
|
|
b5c56190b2 | ||
|
|
4b491c675f | ||
|
|
3ec253532e | ||
|
|
215f932e49 | ||
|
|
076c0ab683 | ||
|
|
57b53918d1 | ||
|
|
fc5a5a4f07 | ||
|
|
01368d395c | ||
|
|
cb1f18661a | ||
|
|
97d2e4bd75 | ||
|
|
33a95659e2 | ||
|
|
35b078b29a | ||
|
|
2384c11ff1 | ||
|
|
4c4a188a22 | ||
|
|
cd6ecf6a89 | ||
|
|
d804ff0d6b | ||
|
|
343befa44b | ||
|
|
72945b856e | ||
|
|
d01e30431c | ||
|
|
ff5dcb8df2 | ||
|
|
f187372f0a | ||
|
|
1b69122810 | ||
|
|
e9b4a96975 | ||
|
|
37f0e8a32c | ||
|
|
b91e97eabd | ||
|
|
cda4aaba4d | ||
|
|
ea864fb24d | ||
|
|
5908ce5115 | ||
|
|
159c3aafd8 | ||
|
|
df739784e5 | ||
|
|
03d34b683d | ||
|
|
dc61480c54 | ||
|
|
f05e1a991a | ||
|
|
7ceada43af | ||
|
|
26393a97b2 | ||
|
|
7d2f61f66a | ||
|
|
40e13829af | ||
|
|
f719a97e12 | ||
|
|
6c6983f477 | ||
|
|
c399f6eeb2 | ||
|
|
f8a8ed73fe | ||
|
|
f8af8606a5 | ||
|
|
524833e155 | ||
|
|
5b37db44a3 | ||
|
|
0e452a02f1 | ||
|
|
ea6d371e7c | ||
|
|
7efff86639 | ||
|
|
67920e1516 | ||
|
|
4d4dd7aea0 | ||
|
|
cac1dd58a8 | ||
|
|
595f5f0e43 | ||
|
|
e4f6adb023 | ||
|
|
8da2124060 | ||
|
|
b9f6ca1d32 | ||
|
|
05e81222d4 | ||
|
|
7bb4c8cadb | ||
|
|
f8f2188888 | ||
|
|
0c23ec232b | ||
|
|
a439e438f3 | ||
|
|
028a408d57 | ||
|
|
3d5be801b9 | ||
|
|
1aa6418af9 | ||
|
|
524bb823c9 | ||
|
|
2c1db913f7 | ||
|
|
01a0168806 | ||
|
|
0e811d8c59 | ||
|
|
df52f3500c | ||
|
|
f0369223cd | ||
|
|
16cb818a74 | ||
|
|
8dfd22089c | ||
|
|
37faf55e17 | ||
|
|
30b093f6fc | ||
|
|
f3bd3deddd | ||
|
|
6543f6e36c | ||
|
|
2fab0d45a9 | ||
|
|
dc7a598126 | ||
|
|
5828e886e6 | ||
|
|
c56aa6f121 | ||
|
|
e1b13eba75 | ||
|
|
aae4e4bf70 | ||
|
|
9c1cf96664 | ||
|
|
821d4a1e55 | ||
|
|
4e11bd156e | ||
|
|
64010d603c | ||
|
|
c31dec7f98 | ||
|
|
5b22c47ca9 | ||
|
|
8efc11a0c1 | ||
|
|
2cd0c2d244 | ||
|
|
05a887ebfa | ||
|
|
81cd24adb8 | ||
|
|
713f96ee0c | ||
|
|
cc52d776dd | ||
|
|
a8206adcad | ||
|
|
3cad5ab77a | ||
|
|
eed1c63c70 | ||
|
|
e38ba43014 | ||
|
|
46750c39bd | ||
|
|
5128672731 | ||
|
|
eda12bcff8 | ||
|
|
a4cece3d47 | ||
|
|
d242839af8 | ||
|
|
6f8046f7a4 | ||
|
|
c6e7cbb94e | ||
|
|
12bf451ca4 | ||
|
|
af46c96d65 | ||
|
|
2856027e59 | ||
|
|
fb93fa9216 | ||
|
|
da172b0dde | ||
|
|
6ffc113ceb | ||
|
|
1abc42b26c | ||
|
|
d19dfa974c | ||
|
|
3de576efda | ||
|
|
6bc76194e8 | ||
|
|
f78ae415d2 | ||
|
|
59431c242b | ||
|
|
9ad282b1ae | ||
|
|
223612afa2 | ||
|
|
9008f3d564 | ||
|
|
df5169fa35 | ||
|
|
4cb2521595 | ||
|
|
aa68848451 | ||
|
|
f069b40f9d | ||
|
|
4da6e0c966 | ||
|
|
9087b7e8f5 | ||
|
|
08b27e0892 | ||
|
|
98866008a9 | ||
|
|
08c8d5b89a | ||
|
|
eb3e383390 | ||
|
|
425459b8ae | ||
|
|
763c51780c | ||
|
|
6c6ba59e6b | ||
|
|
135c2dc14f | ||
|
|
4a67b3e650 | ||
|
|
aaaf9e50ec | ||
|
|
8a120710cc | ||
|
|
816979e3b8 | ||
|
|
45c93dad1d | ||
|
|
efc71583e7 | ||
|
|
3d2e1724cb | ||
|
|
447c31ce9d | ||
|
|
d582c272a6 | ||
|
|
4dc3a57718 | ||
|
|
d033fc8323 | ||
|
|
baf8b57b1d | ||
|
|
f9b80cded7 | ||
|
|
6273b23a05 | ||
|
|
1cef8f0bc3 | ||
|
|
3ae2b6cd7f | ||
|
|
8ffe6f5b57 | ||
|
|
ca2aa61b66 | ||
|
|
52cd5ac21c | ||
|
|
caa4db8a51 | ||
|
|
2968f957aa | ||
|
|
0cd368c2ef | ||
|
|
d343033f3d | ||
|
|
22eb00f937 | ||
|
|
afbd5f978e | ||
|
|
7441c6d7af | ||
|
|
3e0443239a | ||
|
|
8b8cc85d8d | ||
|
|
97db9fb653 | ||
|
|
907520c4b9 | ||
|
|
1c1d9a3a86 | ||
|
|
24c3cdce88 | ||
|
|
7581dee10a | ||
|
|
7c21558503 | ||
|
|
46a886cd48 | ||
|
|
1b6bc02fb9 | ||
|
|
057cc2e915 | ||
|
|
d8287ca8bc | ||
|
|
cf1f8d4528 | ||
|
|
c66c2dd755 | ||
|
|
c7e491f9c2 | ||
|
|
7d618c477f | ||
|
|
0ab9e0c9d9 | ||
|
|
ac5b6f8082 | ||
|
|
ecacdb3430 | ||
|
|
d4cc9db64d | ||
|
|
31b28a0942 | ||
|
|
25a975408e | ||
|
|
c088f29b98 | ||
|
|
59d5b4ce06 | ||
|
|
68d1bea5fc | ||
|
|
662f749cec | ||
|
|
290e1bbe0d | ||
|
|
a6cd174b2e | ||
|
|
fede49532d | ||
|
|
49078ae363 | ||
|
|
42d199b1f1 | ||
|
|
00d84a2f3e | ||
|
|
c31e6d223a | ||
|
|
47311e4c7e | ||
|
|
ba1d831cf1 | ||
|
|
ae353b0b20 | ||
|
|
efbffa2fb7 | ||
|
|
479675f23e | ||
|
|
ce656065ba | ||
|
|
fdee523452 | ||
|
|
ade380a7aa | ||
|
|
8fab76e8f3 | ||
|
|
c3954ffb25 | ||
|
|
38bf85fd61 | ||
|
|
de6b89262e | ||
|
|
e34bdc3187 | ||
|
|
1a876a37cf | ||
|
|
082d5300db | ||
|
|
a6d666e1a6 | ||
|
|
455bfedc84 | ||
|
|
38d517fcd4 | ||
|
|
b46f295900 | ||
|
|
0890bb6a51 | ||
|
|
0042557598 | ||
|
|
d865376c1d | ||
|
|
0219d4e04e | ||
|
|
c522c7ba88 | ||
|
|
5fcef972b2 | ||
|
|
89a2178bc9 | ||
|
|
5d746fc98c | ||
|
|
d8aa360058 | ||
|
|
a6882a3a49 | ||
|
|
4a2da38bed | ||
|
|
c3c4fd2671 | ||
|
|
b56dff79ad | ||
|
|
e029243727 | ||
|
|
bb71f1aa25 | ||
|
|
b203377df7 | ||
|
|
28b698858c | ||
|
|
7ad9cb12b2 | ||
|
|
a5e498b543 | ||
|
|
93ec89042e | ||
|
|
e810ddbb70 | ||
|
|
0761f17560 | ||
|
|
0795e5c8b9 | ||
|
|
49b3c145ee | ||
|
|
801a683007 | ||
|
|
7e109995fd | ||
|
|
34d02aff71 | ||
|
|
ce6c691da1 | ||
|
|
740ebcd86e | ||
|
|
c06e76f6fe | ||
|
|
964e43c5e2 | ||
|
|
d5d98c1297 | ||
|
|
1b478d6ac3 | ||
|
|
3aa1329e0a | ||
|
|
e95ca7cec9 | ||
|
|
ceacbacd14 | ||
|
|
51bb067a42 | ||
|
|
bde0d89c3d | ||
|
|
e9344390ee | ||
|
|
8223972af2 | ||
|
|
2b2e8e0e4b | ||
|
|
99303bcde5 | ||
|
|
f997787d89 | ||
|
|
65467cf9cb | ||
|
|
5468a2122c | ||
|
|
c50ce85918 | ||
|
|
bbd3dc611e | ||
|
|
62a26ec696 | ||
|
|
1b59ef6990 | ||
|
|
d603ed6753 | ||
|
|
1eb308275a | ||
|
|
e8c1bf8840 | ||
|
|
eefeb73af4 | ||
|
|
aa6be2ef13 | ||
|
|
9597b0ebcb | ||
|
|
bcbaed8165 | ||
|
|
2a615a2b64 | ||
|
|
11397eb6dd | ||
|
|
b99f8e8b4e | ||
|
|
345bfab518 | ||
|
|
fb4937a311 | ||
|
|
1b89456509 | ||
|
|
9d85d4746b | ||
|
|
1439dfb576 | ||
|
|
ac6da721a3 | ||
|
|
b3d0e4e243 | ||
|
|
2ddd69ef9a | ||
|
|
c7638d93b0 | ||
|
|
3b65aeda52 | ||
|
|
290d615b46 | ||
|
|
a9388b73b1 | ||
|
|
a7999da39e | ||
|
|
415c982afb | ||
|
|
f634355868 | ||
|
|
461d45ea7a | ||
|
|
32e9275edb | ||
|
|
cd2cedf002 | ||
|
|
c6d5f80d8b | ||
|
|
691985ceb0 | ||
|
|
df13f8e8c2 | ||
|
|
491767418b | ||
|
|
e8b7431305 | ||
|
|
ddf4719694 |
10
.dir-locals.el
Normal file
10
.dir-locals.el
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
;;; Directory Local Variables
|
||||||
|
;;; See Info node `(emacs) Directory Variables' for more information.
|
||||||
|
|
||||||
|
((nil . ((indent-tabs-mode . nil)
|
||||||
|
(show-trailing-whitespace . t)))
|
||||||
|
(c-mode . ((c-basic-offset . 2)
|
||||||
|
))
|
||||||
|
(c++-mode . ((c-basic-offset . 2)
|
||||||
|
))
|
||||||
|
)
|
||||||
23
.github/CONTRIBUTING.md
vendored
Normal file
23
.github/CONTRIBUTING.md
vendored
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
How to contribute to curl
|
||||||
|
=========================
|
||||||
|
|
||||||
|
Join the community
|
||||||
|
------------------
|
||||||
|
|
||||||
|
1. Click 'watch' on the github repo
|
||||||
|
|
||||||
|
2. Subscribe to the suitable [mailing lists](https://curl.haxx.se/mail/)
|
||||||
|
|
||||||
|
Read [CONTRIBUTE](../docs/CONTRIBUTE)
|
||||||
|
---------------------------------------
|
||||||
|
|
||||||
|
Send your suggestions using one of these methods:
|
||||||
|
-------------------------------------------------
|
||||||
|
|
||||||
|
1. in a mail to the mailing list
|
||||||
|
|
||||||
|
2. as a [pull request](https://github.com/curl/curl/pulls)
|
||||||
|
|
||||||
|
3. as an [issue](https://github.com/curl/curl/issues)
|
||||||
|
|
||||||
|
/ The cURL team!
|
||||||
9
.github/ISSUE_TEMPLATE
vendored
Normal file
9
.github/ISSUE_TEMPLATE
vendored
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
### I did this
|
||||||
|
|
||||||
|
### I expected the following
|
||||||
|
|
||||||
|
### curl/libcurl version
|
||||||
|
|
||||||
|
[curl -V output perhaps?]
|
||||||
|
|
||||||
|
### operating system
|
||||||
63
.gitignore
vendored
63
.gitignore
vendored
@@ -1,49 +1,52 @@
|
|||||||
.deps
|
*.asc
|
||||||
.libs
|
|
||||||
*.lib
|
|
||||||
*.pdb
|
|
||||||
*.dll
|
*.dll
|
||||||
*.exe
|
*.exe
|
||||||
*.obj
|
|
||||||
*.asc
|
|
||||||
.*.swp
|
|
||||||
Debug
|
|
||||||
Release
|
|
||||||
*.exp
|
*.exp
|
||||||
|
*.la
|
||||||
|
*.lib
|
||||||
|
*.lo
|
||||||
|
*.o
|
||||||
|
*.obj
|
||||||
|
*.pdb
|
||||||
|
*~
|
||||||
|
.*.swp
|
||||||
|
.cproject
|
||||||
|
.deps
|
||||||
|
.dirstamp
|
||||||
|
.libs
|
||||||
|
.project
|
||||||
|
.settings
|
||||||
|
/build/
|
||||||
|
/builds/
|
||||||
|
CHANGES.dist
|
||||||
|
Debug
|
||||||
|
INSTALL
|
||||||
Makefile
|
Makefile
|
||||||
Makefile.in
|
Makefile.in
|
||||||
|
Release
|
||||||
|
TAGS
|
||||||
aclocal.m4
|
aclocal.m4
|
||||||
|
aclocal.m4.bak
|
||||||
autom4te.cache
|
autom4te.cache
|
||||||
|
compile
|
||||||
config.cache
|
config.cache
|
||||||
config.guess
|
config.guess
|
||||||
config.log
|
config.log
|
||||||
config.status
|
config.status
|
||||||
config.sub
|
config.sub
|
||||||
configure
|
configure
|
||||||
depcomp
|
|
||||||
libtool
|
|
||||||
ltmain.sh
|
|
||||||
compile
|
|
||||||
curl-config
|
|
||||||
libcurl.pc
|
|
||||||
missing
|
|
||||||
curl-*.tar.gz
|
|
||||||
curl-*.tar.bz2
|
curl-*.tar.bz2
|
||||||
|
curl-*.tar.gz
|
||||||
curl-*.tar.lzma
|
curl-*.tar.lzma
|
||||||
curl-*.zip
|
curl-*.zip
|
||||||
INSTALL
|
curl-config
|
||||||
|
depcomp
|
||||||
install-sh
|
install-sh
|
||||||
*.o
|
libcurl.pc
|
||||||
*.lo
|
libtool
|
||||||
*.la
|
ltmain.sh
|
||||||
|
missing
|
||||||
mkinstalldirs
|
mkinstalldirs
|
||||||
tags
|
tags
|
||||||
TAGS
|
test-driver
|
||||||
*~
|
scripts/_curl
|
||||||
aclocal.m4.bak
|
|
||||||
CHANGES.dist
|
|
||||||
.project
|
|
||||||
.cproject
|
|
||||||
.settings
|
|
||||||
/[0-9]*.patch
|
|
||||||
.dirstamp
|
|
||||||
|
|||||||
12
.travis.yml
12
.travis.yml
@@ -1,8 +1,20 @@
|
|||||||
|
os:
|
||||||
|
- linux
|
||||||
|
- osx
|
||||||
|
|
||||||
|
sudo: false
|
||||||
|
|
||||||
language: c
|
language: c
|
||||||
|
|
||||||
|
install:
|
||||||
|
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew update > /dev/null; fi
|
||||||
|
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew install openssl libidn rtmpdump libssh2 c-ares libmetalink libressl nghttp2; fi
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- ./buildconf
|
- ./buildconf
|
||||||
|
|
||||||
|
script: ./configure --enable-debug && make && make test-full
|
||||||
|
|
||||||
compiler:
|
compiler:
|
||||||
- clang
|
- clang
|
||||||
- gcc
|
- gcc
|
||||||
|
|||||||
14
CHANGES
14
CHANGES
@@ -1,15 +1,7 @@
|
|||||||
_ _ ____ _
|
See https://curl.haxx.se/changes.html for the edited and human readable online
|
||||||
___| | | | _ \| |
|
version of what has changed over the years in different curl releases.
|
||||||
/ __| | | | |_) | |
|
|
||||||
| (__| |_| | _ <| |___
|
|
||||||
\___|\___/|_| \_\_____|
|
|
||||||
|
|
||||||
Changelog
|
Generate a CHANGES file like the one present in evey release like this:
|
||||||
|
|
||||||
This file no longer holds the changelog. Now you can generate it yourself
|
|
||||||
like this:
|
|
||||||
|
|
||||||
$ git log --pretty=fuller --no-color --date=short --decorate=full | \
|
$ git log --pretty=fuller --no-color --date=short --decorate=full | \
|
||||||
./log2changes.pl
|
./log2changes.pl
|
||||||
|
|
||||||
The older, manually edited, changelog is found in git named CHANGES.0
|
|
||||||
|
|||||||
@@ -1,75 +0,0 @@
|
|||||||
# - Check if the source code provided in the SOURCE argument compiles.
|
|
||||||
# CURL_CHECK_C_SOURCE_COMPILES(SOURCE VAR)
|
|
||||||
# - macro which checks if the source code compiles
|
|
||||||
# SOURCE - source code to try to compile
|
|
||||||
# VAR - variable to store whether the source code compiled
|
|
||||||
#
|
|
||||||
# The following variables may be set before calling this macro to
|
|
||||||
# modify the way the check is run:
|
|
||||||
#
|
|
||||||
# CMAKE_REQUIRED_FLAGS = string of compile command line flags
|
|
||||||
# CMAKE_REQUIRED_DEFINITIONS = list of macros to define (-DFOO=bar)
|
|
||||||
# CMAKE_REQUIRED_INCLUDES = list of include directories
|
|
||||||
# CMAKE_REQUIRED_LIBRARIES = list of libraries to link
|
|
||||||
|
|
||||||
macro(CURL_CHECK_C_SOURCE_COMPILES SOURCE VAR)
|
|
||||||
if("${VAR}" MATCHES "^${VAR}$" OR "${VAR}" MATCHES "UNKNOWN")
|
|
||||||
set(message "${VAR}")
|
|
||||||
# If the number of arguments is greater than 2 (SOURCE VAR)
|
|
||||||
if(${ARGC} GREATER 2)
|
|
||||||
# then add the third argument as a message
|
|
||||||
set(message "${ARGV2} (${VAR})")
|
|
||||||
endif(${ARGC} GREATER 2)
|
|
||||||
set(MACRO_CHECK_FUNCTION_DEFINITIONS
|
|
||||||
"-D${VAR} ${CMAKE_REQUIRED_FLAGS}")
|
|
||||||
if(CMAKE_REQUIRED_LIBRARIES)
|
|
||||||
set(CURL_CHECK_C_SOURCE_COMPILES_ADD_LIBRARIES
|
|
||||||
"-DLINK_LIBRARIES:STRING=${CMAKE_REQUIRED_LIBRARIES}")
|
|
||||||
else(CMAKE_REQUIRED_LIBRARIES)
|
|
||||||
set(CURL_CHECK_C_SOURCE_COMPILES_ADD_LIBRARIES)
|
|
||||||
endif(CMAKE_REQUIRED_LIBRARIES)
|
|
||||||
if(CMAKE_REQUIRED_INCLUDES)
|
|
||||||
set(CURL_CHECK_C_SOURCE_COMPILES_ADD_INCLUDES
|
|
||||||
"-DINCLUDE_DIRECTORIES:STRING=${CMAKE_REQUIRED_INCLUDES}")
|
|
||||||
else(CMAKE_REQUIRED_INCLUDES)
|
|
||||||
set(CURL_CHECK_C_SOURCE_COMPILES_ADD_INCLUDES)
|
|
||||||
endif(CMAKE_REQUIRED_INCLUDES)
|
|
||||||
set(src "")
|
|
||||||
foreach(def ${EXTRA_DEFINES})
|
|
||||||
set(src "${src}#define ${def} 1\n")
|
|
||||||
endforeach(def)
|
|
||||||
foreach(inc ${HEADER_INCLUDES})
|
|
||||||
set(src "${src}#include <${inc}>\n")
|
|
||||||
endforeach(inc)
|
|
||||||
|
|
||||||
set(src "${src}\nint main() { ${SOURCE} ; return 0; }")
|
|
||||||
set(CMAKE_CONFIGURABLE_FILE_CONTENT "${src}")
|
|
||||||
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/CMake/CMakeConfigurableFile.in
|
|
||||||
"${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeTmp/src.c"
|
|
||||||
IMMEDIATE)
|
|
||||||
message(STATUS "Performing Test ${message}")
|
|
||||||
try_compile(${VAR}
|
|
||||||
${CMAKE_BINARY_DIR}
|
|
||||||
${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeTmp/src.c
|
|
||||||
COMPILE_DEFINITIONS ${CMAKE_REQUIRED_DEFINITIONS}
|
|
||||||
CMAKE_FLAGS -DCOMPILE_DEFINITIONS:STRING=${MACRO_CHECK_FUNCTION_DEFINITIONS}
|
|
||||||
"${CURL_CHECK_C_SOURCE_COMPILES_ADD_LIBRARIES}"
|
|
||||||
"${CURL_CHECK_C_SOURCE_COMPILES_ADD_INCLUDES}"
|
|
||||||
OUTPUT_VARIABLE OUTPUT)
|
|
||||||
if(${VAR})
|
|
||||||
set(${VAR} 1 CACHE INTERNAL "Test ${message}")
|
|
||||||
message(STATUS "Performing Test ${message} - Success")
|
|
||||||
file(APPEND ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeOutput.log
|
|
||||||
"Performing C SOURCE FILE Test ${message} succeded with the following output:\n"
|
|
||||||
"${OUTPUT}\n"
|
|
||||||
"Source file was:\n${src}\n")
|
|
||||||
else(${VAR})
|
|
||||||
message(STATUS "Performing Test ${message} - Failed")
|
|
||||||
set(${VAR} "" CACHE INTERNAL "Test ${message}")
|
|
||||||
file(APPEND ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeError.log
|
|
||||||
"Performing C SOURCE FILE Test ${message} failed with the following output:\n"
|
|
||||||
"${OUTPUT}\n"
|
|
||||||
"Source file was:\n${src}\n")
|
|
||||||
endif(${VAR})
|
|
||||||
endif("${VAR}" MATCHES "^${VAR}$" OR "${VAR}" MATCHES "UNKNOWN")
|
|
||||||
endmacro(CURL_CHECK_C_SOURCE_COMPILES)
|
|
||||||
@@ -1,83 +0,0 @@
|
|||||||
# - Check if the source code provided in the SOURCE argument compiles and runs.
|
|
||||||
# CURL_CHECK_C_SOURCE_RUNS(SOURCE VAR)
|
|
||||||
# - macro which checks if the source code runs
|
|
||||||
# SOURCE - source code to try to compile
|
|
||||||
# VAR - variable to store size if the type exists.
|
|
||||||
#
|
|
||||||
# The following variables may be set before calling this macro to
|
|
||||||
# modify the way the check is run:
|
|
||||||
#
|
|
||||||
# CMAKE_REQUIRED_FLAGS = string of compile command line flags
|
|
||||||
# CMAKE_REQUIRED_DEFINITIONS = list of macros to define (-DFOO=bar)
|
|
||||||
# CMAKE_REQUIRED_INCLUDES = list of include directories
|
|
||||||
# CMAKE_REQUIRED_LIBRARIES = list of libraries to link
|
|
||||||
|
|
||||||
macro(CURL_CHECK_C_SOURCE_RUNS SOURCE VAR)
|
|
||||||
if("${VAR}" MATCHES "^${VAR}$" OR "${VAR}" MATCHES "UNKNOWN")
|
|
||||||
set(message "${VAR}")
|
|
||||||
# If the number of arguments is greater than 2 (SOURCE VAR)
|
|
||||||
if(${ARGC} GREATER 2)
|
|
||||||
# then add the third argument as a message
|
|
||||||
set(message "${ARGV2} (${VAR})")
|
|
||||||
endif(${ARGC} GREATER 2)
|
|
||||||
set(MACRO_CHECK_FUNCTION_DEFINITIONS
|
|
||||||
"-D${VAR} ${CMAKE_REQUIRED_FLAGS}")
|
|
||||||
if(CMAKE_REQUIRED_LIBRARIES)
|
|
||||||
set(CURL_CHECK_C_SOURCE_COMPILES_ADD_LIBRARIES
|
|
||||||
"-DLINK_LIBRARIES:STRING=${CMAKE_REQUIRED_LIBRARIES}")
|
|
||||||
else(CMAKE_REQUIRED_LIBRARIES)
|
|
||||||
set(CURL_CHECK_C_SOURCE_COMPILES_ADD_LIBRARIES)
|
|
||||||
endif(CMAKE_REQUIRED_LIBRARIES)
|
|
||||||
if(CMAKE_REQUIRED_INCLUDES)
|
|
||||||
set(CURL_CHECK_C_SOURCE_COMPILES_ADD_INCLUDES
|
|
||||||
"-DINCLUDE_DIRECTORIES:STRING=${CMAKE_REQUIRED_INCLUDES}")
|
|
||||||
else(CMAKE_REQUIRED_INCLUDES)
|
|
||||||
set(CURL_CHECK_C_SOURCE_COMPILES_ADD_INCLUDES)
|
|
||||||
endif(CMAKE_REQUIRED_INCLUDES)
|
|
||||||
set(src "")
|
|
||||||
foreach(def ${EXTRA_DEFINES})
|
|
||||||
set(src "${src}#define ${def} 1\n")
|
|
||||||
endforeach(def)
|
|
||||||
foreach(inc ${HEADER_INCLUDES})
|
|
||||||
set(src "${src}#include <${inc}>\n")
|
|
||||||
endforeach(inc)
|
|
||||||
|
|
||||||
set(src "${src}\nint main() { ${SOURCE} ; return 0; }")
|
|
||||||
set(CMAKE_CONFIGURABLE_FILE_CONTENT "${src}")
|
|
||||||
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/CMake/CMakeConfigurableFile.in
|
|
||||||
"${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeTmp/src.c"
|
|
||||||
IMMEDIATE)
|
|
||||||
message(STATUS "Performing Test ${message}")
|
|
||||||
try_run(${VAR} ${VAR}_COMPILED
|
|
||||||
${CMAKE_BINARY_DIR}
|
|
||||||
${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeTmp/src.c
|
|
||||||
COMPILE_DEFINITIONS ${CMAKE_REQUIRED_DEFINITIONS}
|
|
||||||
CMAKE_FLAGS -DCOMPILE_DEFINITIONS:STRING=${MACRO_CHECK_FUNCTION_DEFINITIONS}
|
|
||||||
"${CURL_CHECK_C_SOURCE_COMPILES_ADD_LIBRARIES}"
|
|
||||||
"${CURL_CHECK_C_SOURCE_COMPILES_ADD_INCLUDES}"
|
|
||||||
OUTPUT_VARIABLE OUTPUT)
|
|
||||||
# if it did not compile make the return value fail code of 1
|
|
||||||
if(NOT ${VAR}_COMPILED)
|
|
||||||
set(${VAR} 1)
|
|
||||||
endif(NOT ${VAR}_COMPILED)
|
|
||||||
# if the return value was 0 then it worked
|
|
||||||
set(result_var ${${VAR}})
|
|
||||||
if("${result_var}" EQUAL 0)
|
|
||||||
set(${VAR} 1 CACHE INTERNAL "Test ${message}")
|
|
||||||
message(STATUS "Performing Test ${message} - Success")
|
|
||||||
file(APPEND ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeOutput.log
|
|
||||||
"Performing C SOURCE FILE Test ${message} succeded with the following output:\n"
|
|
||||||
"${OUTPUT}\n"
|
|
||||||
"Return value: ${${VAR}}\n"
|
|
||||||
"Source file was:\n${src}\n")
|
|
||||||
else("${result_var}" EQUAL 0)
|
|
||||||
message(STATUS "Performing Test ${message} - Failed")
|
|
||||||
set(${VAR} "" CACHE INTERNAL "Test ${message}")
|
|
||||||
file(APPEND ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeError.log
|
|
||||||
"Performing C SOURCE FILE Test ${message} failed with the following output:\n"
|
|
||||||
"${OUTPUT}\n"
|
|
||||||
"Return value: ${result_var}\n"
|
|
||||||
"Source file was:\n${src}\n")
|
|
||||||
endif("${result_var}" EQUAL 0)
|
|
||||||
endif("${VAR}" MATCHES "^${VAR}$" OR "${VAR}" MATCHES "UNKNOWN")
|
|
||||||
endmacro(CURL_CHECK_C_SOURCE_RUNS)
|
|
||||||
@@ -5,11 +5,11 @@
|
|||||||
* | (__| |_| | _ <| |___
|
* | (__| |_| | _ <| |___
|
||||||
* \___|\___/|_| \_\_____|
|
* \___|\___/|_| \_\_____|
|
||||||
*
|
*
|
||||||
* Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al.
|
* Copyright (C) 1998 - 2014, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
*
|
*
|
||||||
* This software is licensed as described in the file COPYING, which
|
* This software is licensed as described in the file COPYING, which
|
||||||
* you should have received as part of this distribution. The terms
|
* you should have received as part of this distribution. The terms
|
||||||
* are also available at http://curl.haxx.se/docs/copyright.html.
|
* are also available at https://curl.haxx.se/docs/copyright.html.
|
||||||
*
|
*
|
||||||
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
||||||
* copies of the Software, and permit persons to whom the Software is
|
* copies of the Software, and permit persons to whom the Software is
|
||||||
@@ -71,264 +71,88 @@ main ()
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_GETHOSTBYADDR_R_5
|
/* tests for gethostbyaddr_r or gethostbyname_r */
|
||||||
|
#if defined(HAVE_GETHOSTBYADDR_R_5_REENTRANT) || \
|
||||||
|
defined(HAVE_GETHOSTBYADDR_R_7_REENTRANT) || \
|
||||||
|
defined(HAVE_GETHOSTBYADDR_R_8_REENTRANT) || \
|
||||||
|
defined(HAVE_GETHOSTBYNAME_R_3_REENTRANT) || \
|
||||||
|
defined(HAVE_GETHOSTBYNAME_R_5_REENTRANT) || \
|
||||||
|
defined(HAVE_GETHOSTBYNAME_R_6_REENTRANT)
|
||||||
|
# define _REENTRANT
|
||||||
|
/* no idea whether _REENTRANT is always set, just invent a new flag */
|
||||||
|
# define TEST_GETHOSTBYFOO_REENTRANT
|
||||||
|
#endif
|
||||||
|
#if defined(HAVE_GETHOSTBYADDR_R_5) || \
|
||||||
|
defined(HAVE_GETHOSTBYADDR_R_7) || \
|
||||||
|
defined(HAVE_GETHOSTBYADDR_R_8) || \
|
||||||
|
defined(HAVE_GETHOSTBYNAME_R_3) || \
|
||||||
|
defined(HAVE_GETHOSTBYNAME_R_5) || \
|
||||||
|
defined(HAVE_GETHOSTBYNAME_R_6) || \
|
||||||
|
defined(TEST_GETHOSTBYFOO_REENTRANT)
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <netdb.h>
|
#include <netdb.h>
|
||||||
int
|
int main(void)
|
||||||
main ()
|
|
||||||
{
|
{
|
||||||
|
char *address = "example.com";
|
||||||
char * address;
|
int length = 0;
|
||||||
int length;
|
int type = 0;
|
||||||
int type;
|
struct hostent h;
|
||||||
struct hostent h;
|
int rc = 0;
|
||||||
struct hostent_data hdata;
|
#if defined(HAVE_GETHOSTBYADDR_R_5) || \
|
||||||
int rc;
|
defined(HAVE_GETHOSTBYADDR_R_5_REENTRANT) || \
|
||||||
#ifndef gethostbyaddr_r
|
\
|
||||||
(void)gethostbyaddr_r;
|
defined(HAVE_GETHOSTBYNAME_R_3) || \
|
||||||
|
defined(HAVE_GETHOSTBYNAME_R_3_REENTRANT)
|
||||||
|
struct hostent_data hdata;
|
||||||
|
#elif defined(HAVE_GETHOSTBYADDR_R_7) || \
|
||||||
|
defined(HAVE_GETHOSTBYADDR_R_7_REENTRANT) || \
|
||||||
|
defined(HAVE_GETHOSTBYADDR_R_8) || \
|
||||||
|
defined(HAVE_GETHOSTBYADDR_R_8_REENTRANT) || \
|
||||||
|
\
|
||||||
|
defined(HAVE_GETHOSTBYNAME_R_5) || \
|
||||||
|
defined(HAVE_GETHOSTBYNAME_R_5_REENTRANT) || \
|
||||||
|
defined(HAVE_GETHOSTBYNAME_R_6) || \
|
||||||
|
defined(HAVE_GETHOSTBYNAME_R_6_REENTRANT)
|
||||||
|
char buffer[8192];
|
||||||
|
int h_errnop;
|
||||||
|
struct hostent *hp;
|
||||||
#endif
|
#endif
|
||||||
rc = gethostbyaddr_r(address, length, type, &h, &hdata);
|
|
||||||
;
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
#ifdef HAVE_GETHOSTBYADDR_R_5_REENTRANT
|
|
||||||
#define _REENTRANT
|
|
||||||
#include <sys/types.h>
|
|
||||||
#include <netdb.h>
|
|
||||||
int
|
|
||||||
main ()
|
|
||||||
{
|
|
||||||
|
|
||||||
char * address;
|
|
||||||
int length;q
|
|
||||||
int type;
|
|
||||||
struct hostent h;
|
|
||||||
struct hostent_data hdata;
|
|
||||||
int rc;
|
|
||||||
#ifndef gethostbyaddr_r
|
|
||||||
(void)gethostbyaddr_r;
|
|
||||||
#endif
|
|
||||||
rc = gethostbyaddr_r(address, length, type, &h, &hdata);
|
|
||||||
;
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
#ifdef HAVE_GETHOSTBYADDR_R_7
|
|
||||||
#include <sys/types.h>
|
|
||||||
#include <netdb.h>
|
|
||||||
int
|
|
||||||
main ()
|
|
||||||
{
|
|
||||||
|
|
||||||
char * address;
|
|
||||||
int length;
|
|
||||||
int type;
|
|
||||||
struct hostent h;
|
|
||||||
char buffer[8192];
|
|
||||||
int h_errnop;
|
|
||||||
struct hostent * hp;
|
|
||||||
|
|
||||||
#ifndef gethostbyaddr_r
|
#ifndef gethostbyaddr_r
|
||||||
(void)gethostbyaddr_r;
|
(void)gethostbyaddr_r;
|
||||||
#endif
|
#endif
|
||||||
hp = gethostbyaddr_r(address, length, type, &h,
|
|
||||||
buffer, 8192, &h_errnop);
|
#if defined(HAVE_GETHOSTBYADDR_R_5) || \
|
||||||
;
|
defined(HAVE_GETHOSTBYADDR_R_5_REENTRANT)
|
||||||
|
rc = gethostbyaddr_r(address, length, type, &h, &hdata);
|
||||||
|
#elif defined(HAVE_GETHOSTBYADDR_R_7) || \
|
||||||
|
defined(HAVE_GETHOSTBYADDR_R_7_REENTRANT)
|
||||||
|
hp = gethostbyaddr_r(address, length, type, &h, buffer, 8192, &h_errnop);
|
||||||
|
(void)hp;
|
||||||
|
#elif defined(HAVE_GETHOSTBYADDR_R_8) || \
|
||||||
|
defined(HAVE_GETHOSTBYADDR_R_8_REENTRANT)
|
||||||
|
rc = gethostbyaddr_r(address, length, type, &h, buffer, 8192, &hp, &h_errnop);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(HAVE_GETHOSTBYNAME_R_3) || \
|
||||||
|
defined(HAVE_GETHOSTBYNAME_R_3_REENTRANT)
|
||||||
|
rc = gethostbyname_r(address, &h, &hdata);
|
||||||
|
#elif defined(HAVE_GETHOSTBYNAME_R_5) || \
|
||||||
|
defined(HAVE_GETHOSTBYNAME_R_5_REENTRANT)
|
||||||
|
rc = gethostbyname_r(address, &h, buffer, 8192, &h_errnop);
|
||||||
|
(void)hp; /* not used for test */
|
||||||
|
#elif defined(HAVE_GETHOSTBYNAME_R_6) || \
|
||||||
|
defined(HAVE_GETHOSTBYNAME_R_6_REENTRANT)
|
||||||
|
rc = gethostbyname_r(address, &h, buffer, 8192, &hp, &h_errnop);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
(void)length;
|
||||||
|
(void)type;
|
||||||
|
(void)rc;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
#ifdef HAVE_GETHOSTBYADDR_R_7_REENTRANT
|
|
||||||
#define _REENTRANT
|
|
||||||
#include <sys/types.h>
|
|
||||||
#include <netdb.h>
|
|
||||||
int
|
|
||||||
main ()
|
|
||||||
{
|
|
||||||
|
|
||||||
char * address;
|
|
||||||
int length;
|
|
||||||
int type;
|
|
||||||
struct hostent h;
|
|
||||||
char buffer[8192];
|
|
||||||
int h_errnop;
|
|
||||||
struct hostent * hp;
|
|
||||||
|
|
||||||
#ifndef gethostbyaddr_r
|
|
||||||
(void)gethostbyaddr_r;
|
|
||||||
#endif
|
|
||||||
hp = gethostbyaddr_r(address, length, type, &h,
|
|
||||||
buffer, 8192, &h_errnop);
|
|
||||||
;
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
#ifdef HAVE_GETHOSTBYADDR_R_8
|
|
||||||
#include <sys/types.h>
|
|
||||||
#include <netdb.h>
|
|
||||||
int
|
|
||||||
main ()
|
|
||||||
{
|
|
||||||
|
|
||||||
char * address;
|
|
||||||
int length;
|
|
||||||
int type;
|
|
||||||
struct hostent h;
|
|
||||||
char buffer[8192];
|
|
||||||
int h_errnop;
|
|
||||||
struct hostent * hp;
|
|
||||||
int rc;
|
|
||||||
|
|
||||||
#ifndef gethostbyaddr_r
|
|
||||||
(void)gethostbyaddr_r;
|
|
||||||
#endif
|
|
||||||
rc = gethostbyaddr_r(address, length, type, &h,
|
|
||||||
buffer, 8192, &hp, &h_errnop);
|
|
||||||
;
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
#ifdef HAVE_GETHOSTBYADDR_R_8_REENTRANT
|
|
||||||
#define _REENTRANT
|
|
||||||
#include <sys/types.h>
|
|
||||||
#include <netdb.h>
|
|
||||||
int
|
|
||||||
main ()
|
|
||||||
{
|
|
||||||
|
|
||||||
char * address;
|
|
||||||
int length;
|
|
||||||
int type;
|
|
||||||
struct hostent h;
|
|
||||||
char buffer[8192];
|
|
||||||
int h_errnop;
|
|
||||||
struct hostent * hp;
|
|
||||||
int rc;
|
|
||||||
|
|
||||||
#ifndef gethostbyaddr_r
|
|
||||||
(void)gethostbyaddr_r;
|
|
||||||
#endif
|
|
||||||
rc = gethostbyaddr_r(address, length, type, &h,
|
|
||||||
buffer, 8192, &hp, &h_errnop);
|
|
||||||
;
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
#ifdef HAVE_GETHOSTBYNAME_R_3
|
|
||||||
#include <string.h>
|
|
||||||
#include <sys/types.h>
|
|
||||||
#include <netdb.h>
|
|
||||||
#undef NULL
|
|
||||||
#define NULL (void *)0
|
|
||||||
|
|
||||||
int
|
|
||||||
main ()
|
|
||||||
{
|
|
||||||
|
|
||||||
struct hostent_data data;
|
|
||||||
#ifndef gethostbyname_r
|
|
||||||
(void)gethostbyname_r;
|
|
||||||
#endif
|
|
||||||
gethostbyname_r(NULL, NULL, NULL);
|
|
||||||
;
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
#ifdef HAVE_GETHOSTBYNAME_R_3_REENTRANT
|
|
||||||
#define _REENTRANT
|
|
||||||
#include <string.h>
|
|
||||||
#include <sys/types.h>
|
|
||||||
#include <netdb.h>
|
|
||||||
#undef NULL
|
|
||||||
#define NULL (void *)0
|
|
||||||
|
|
||||||
int
|
|
||||||
main ()
|
|
||||||
{
|
|
||||||
|
|
||||||
struct hostent_data data;
|
|
||||||
#ifndef gethostbyname_r
|
|
||||||
(void)gethostbyname_r;
|
|
||||||
#endif
|
|
||||||
gethostbyname_r(NULL, NULL, NULL);
|
|
||||||
;
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
#ifdef HAVE_GETHOSTBYNAME_R_5
|
|
||||||
#include <sys/types.h>
|
|
||||||
#include <netinet/in.h>
|
|
||||||
#include <netdb.h>
|
|
||||||
#undef NULL
|
|
||||||
#define NULL (void *)0
|
|
||||||
|
|
||||||
int
|
|
||||||
main ()
|
|
||||||
{
|
|
||||||
#ifndef gethostbyname_r
|
|
||||||
(void)gethostbyname_r;
|
|
||||||
#endif
|
|
||||||
gethostbyname_r(NULL, NULL, NULL, 0, NULL);
|
|
||||||
;
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
#ifdef HAVE_GETHOSTBYNAME_R_5_REENTRANT
|
|
||||||
#define _REENTRANT
|
|
||||||
#include <sys/types.h>
|
|
||||||
#include <netdb.h>
|
|
||||||
#undef NULL
|
|
||||||
#define NULL (void *)0
|
|
||||||
|
|
||||||
int
|
|
||||||
main ()
|
|
||||||
{
|
|
||||||
|
|
||||||
#ifndef gethostbyname_r
|
|
||||||
(void)gethostbyname_r;
|
|
||||||
#endif
|
|
||||||
gethostbyname_r(NULL, NULL, NULL, 0, NULL);
|
|
||||||
;
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
#ifdef HAVE_GETHOSTBYNAME_R_6
|
|
||||||
#include <sys/types.h>
|
|
||||||
#include <netdb.h>
|
|
||||||
#undef NULL
|
|
||||||
#define NULL (void *)0
|
|
||||||
|
|
||||||
int
|
|
||||||
main ()
|
|
||||||
{
|
|
||||||
|
|
||||||
#ifndef gethostbyname_r
|
|
||||||
(void)gethostbyname_r;
|
|
||||||
#endif
|
|
||||||
gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL);
|
|
||||||
;
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
#ifdef HAVE_GETHOSTBYNAME_R_6_REENTRANT
|
|
||||||
#define _REENTRANT
|
|
||||||
#include <sys/types.h>
|
|
||||||
#include <netdb.h>
|
|
||||||
#undef NULL
|
|
||||||
#define NULL (void *)0
|
|
||||||
|
|
||||||
int
|
|
||||||
main ()
|
|
||||||
{
|
|
||||||
|
|
||||||
#ifndef gethostbyname_r
|
|
||||||
(void)gethostbyname_r;
|
|
||||||
#endif
|
|
||||||
gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL);
|
|
||||||
;
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
#ifdef HAVE_SOCKLEN_T
|
#ifdef HAVE_SOCKLEN_T
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
#include <ws2tcpip.h>
|
#include <ws2tcpip.h>
|
||||||
|
|||||||
289
CMake/FindGSS.cmake
Normal file
289
CMake/FindGSS.cmake
Normal file
@@ -0,0 +1,289 @@
|
|||||||
|
# - Try to find the GSS Kerberos library
|
||||||
|
# Once done this will define
|
||||||
|
#
|
||||||
|
# GSS_ROOT_DIR - Set this variable to the root installation of GSS
|
||||||
|
#
|
||||||
|
# Read-Only variables:
|
||||||
|
# GSS_FOUND - system has the Heimdal library
|
||||||
|
# GSS_FLAVOUR - "MIT" or "Heimdal" if anything found.
|
||||||
|
# GSS_INCLUDE_DIR - the Heimdal include directory
|
||||||
|
# GSS_LIBRARIES - The libraries needed to use GSS
|
||||||
|
# GSS_LINK_DIRECTORIES - Directories to add to linker search path
|
||||||
|
# GSS_LINKER_FLAGS - Additional linker flags
|
||||||
|
# GSS_COMPILER_FLAGS - Additional compiler flags
|
||||||
|
# GSS_VERSION - This is set to version advertised by pkg-config or read from manifest.
|
||||||
|
# In case the library is found but no version info availabe it'll be set to "unknown"
|
||||||
|
|
||||||
|
set(_MIT_MODNAME mit-krb5-gssapi)
|
||||||
|
set(_HEIMDAL_MODNAME heimdal-gssapi)
|
||||||
|
|
||||||
|
include(CheckIncludeFile)
|
||||||
|
include(CheckIncludeFiles)
|
||||||
|
include(CheckTypeSize)
|
||||||
|
|
||||||
|
set(_GSS_ROOT_HINTS
|
||||||
|
"${GSS_ROOT_DIR}"
|
||||||
|
"$ENV{GSS_ROOT_DIR}"
|
||||||
|
)
|
||||||
|
|
||||||
|
# try to find library using system pkg-config if user didn't specify root dir
|
||||||
|
if(NOT GSS_ROOT_DIR AND NOT "$ENV{GSS_ROOT_DIR}")
|
||||||
|
if(UNIX)
|
||||||
|
find_package(PkgConfig QUIET)
|
||||||
|
pkg_search_module(_GSS_PKG ${_MIT_MODNAME} ${_HEIMDAL_MODNAME})
|
||||||
|
list(APPEND _GSS_ROOT_HINTS "${_GSS_PKG_PREFIX}")
|
||||||
|
elseif(WIN32)
|
||||||
|
list(APPEND _GSS_ROOT_HINTS "[HKEY_LOCAL_MACHINE\\SOFTWARE\\MIT\\Kerberos;InstallDir]")
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
|
||||||
|
if(NOT _GSS_FOUND) #not found by pkg-config. Let's take more traditional approach.
|
||||||
|
find_file(_GSS_CONFIGURE_SCRIPT
|
||||||
|
NAMES
|
||||||
|
"krb5-config"
|
||||||
|
HINTS
|
||||||
|
${_GSS_ROOT_HINTS}
|
||||||
|
PATH_SUFFIXES
|
||||||
|
bin
|
||||||
|
NO_CMAKE_PATH
|
||||||
|
NO_CMAKE_ENVIRONMENT_PATH
|
||||||
|
)
|
||||||
|
|
||||||
|
# if not found in user-supplied directories, maybe system knows better
|
||||||
|
find_file(_GSS_CONFIGURE_SCRIPT
|
||||||
|
NAMES
|
||||||
|
"krb5-config"
|
||||||
|
PATH_SUFFIXES
|
||||||
|
bin
|
||||||
|
)
|
||||||
|
|
||||||
|
if(_GSS_CONFIGURE_SCRIPT)
|
||||||
|
execute_process(
|
||||||
|
COMMAND ${_GSS_CONFIGURE_SCRIPT} "--cflags" "gssapi"
|
||||||
|
OUTPUT_VARIABLE _GSS_CFLAGS
|
||||||
|
RESULT_VARIABLE _GSS_CONFIGURE_FAILED
|
||||||
|
)
|
||||||
|
message(STATUS "CFLAGS: ${_GSS_CFLAGS}")
|
||||||
|
if(NOT _GSS_CONFIGURE_FAILED) # 0 means success
|
||||||
|
# should also work in an odd case when multiple directories are given
|
||||||
|
string(STRIP "${_GSS_CFLAGS}" _GSS_CFLAGS)
|
||||||
|
string(REGEX REPLACE " +-I" ";" _GSS_CFLAGS "${_GSS_CFLAGS}")
|
||||||
|
string(REGEX REPLACE " +-([^I][^ \\t;]*)" ";-\\1"_GSS_CFLAGS "${_GSS_CFLAGS}")
|
||||||
|
|
||||||
|
foreach(_flag ${_GSS_CFLAGS})
|
||||||
|
if(_flag MATCHES "^-I.*")
|
||||||
|
string(REGEX REPLACE "^-I" "" _val "${_flag}")
|
||||||
|
list(APPEND _GSS_INCLUDE_DIR "${_val}")
|
||||||
|
else()
|
||||||
|
list(APPEND _GSS_COMPILER_FLAGS "${_flag}")
|
||||||
|
endif()
|
||||||
|
endforeach()
|
||||||
|
endif()
|
||||||
|
|
||||||
|
execute_process(
|
||||||
|
COMMAND ${_GSS_CONFIGURE_SCRIPT} "--libs" "gssapi"
|
||||||
|
OUTPUT_VARIABLE _GSS_LIB_FLAGS
|
||||||
|
RESULT_VARIABLE _GSS_CONFIGURE_FAILED
|
||||||
|
)
|
||||||
|
message(STATUS "LDFLAGS: ${_GSS_LIB_FLAGS}")
|
||||||
|
if(NOT _GSS_CONFIGURE_FAILED) # 0 means success
|
||||||
|
# this script gives us libraries and link directories. Blah. We have to deal with it.
|
||||||
|
string(STRIP "${_GSS_LIB_FLAGS}" _GSS_LIB_FLAGS)
|
||||||
|
string(REGEX REPLACE " +-(L|l)" ";-\\1" _GSS_LIB_FLAGS "${_GSS_LIB_FLAGS}")
|
||||||
|
string(REGEX REPLACE " +-([^Ll][^ \\t;]*)" ";-\\1"_GSS_LIB_FLAGS "${_GSS_LIB_FLAGS}")
|
||||||
|
|
||||||
|
foreach(_flag ${_GSS_LIB_FLAGS})
|
||||||
|
if(_flag MATCHES "^-l.*")
|
||||||
|
string(REGEX REPLACE "^-l" "" _val "${_flag}")
|
||||||
|
list(APPEND _GSS_LIBRARIES "${_val}")
|
||||||
|
elseif(_flag MATCHES "^-L.*")
|
||||||
|
string(REGEX REPLACE "^-L" "" _val "${_flag}")
|
||||||
|
list(APPEND _GSS_LINK_DIRECTORIES "${_val}")
|
||||||
|
else()
|
||||||
|
list(APPEND _GSS_LINKER_FLAGS "${_flag}")
|
||||||
|
endif()
|
||||||
|
endforeach()
|
||||||
|
endif()
|
||||||
|
|
||||||
|
|
||||||
|
execute_process(
|
||||||
|
COMMAND ${_GSS_CONFIGURE_SCRIPT} "--version"
|
||||||
|
OUTPUT_VARIABLE _GSS_VERSION
|
||||||
|
RESULT_VARIABLE _GSS_CONFIGURE_FAILED
|
||||||
|
)
|
||||||
|
|
||||||
|
# older versions may not have the "--version" parameter. In this case we just don't care.
|
||||||
|
if(_GSS_CONFIGURE_FAILED)
|
||||||
|
set(_GSS_VERSION 0)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
|
||||||
|
execute_process(
|
||||||
|
COMMAND ${_GSS_CONFIGURE_SCRIPT} "--vendor"
|
||||||
|
OUTPUT_VARIABLE _GSS_VENDOR
|
||||||
|
RESULT_VARIABLE _GSS_CONFIGURE_FAILED
|
||||||
|
)
|
||||||
|
|
||||||
|
# older versions may not have the "--vendor" parameter. In this case we just don't care.
|
||||||
|
if(_GSS_CONFIGURE_FAILED)
|
||||||
|
set(GSS_FLAVOUR "Heimdal") # most probably, shouldn't really matter
|
||||||
|
else()
|
||||||
|
if(_GSS_VENDOR MATCHES ".*H|heimdal.*")
|
||||||
|
set(GSS_FLAVOUR "Heimdal")
|
||||||
|
else()
|
||||||
|
set(GSS_FLAVOUR "MIT")
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
|
||||||
|
else() # either there is no config script or we are on platform that doesn't provide one (Windows?)
|
||||||
|
|
||||||
|
find_path(_GSS_INCLUDE_DIR
|
||||||
|
NAMES
|
||||||
|
"gssapi/gssapi.h"
|
||||||
|
HINTS
|
||||||
|
${_GSS_ROOT_HINTS}
|
||||||
|
PATH_SUFFIXES
|
||||||
|
include
|
||||||
|
inc
|
||||||
|
)
|
||||||
|
|
||||||
|
if(_GSS_INCLUDE_DIR) #jay, we've found something
|
||||||
|
set(CMAKE_REQUIRED_INCLUDES "${_GSS_INCLUDE_DIR}")
|
||||||
|
check_include_files( "gssapi/gssapi_generic.h;gssapi/gssapi_krb5.h" _GSS_HAVE_MIT_HEADERS)
|
||||||
|
|
||||||
|
if(_GSS_HAVE_MIT_HEADERS)
|
||||||
|
set(GSS_FLAVOUR "MIT")
|
||||||
|
else()
|
||||||
|
# prevent compiling the header - just check if we can include it
|
||||||
|
set(CMAKE_REQUIRED_DEFINITIONS "${CMAKE_REQUIRED_DEFINITIONS} -D__ROKEN_H__")
|
||||||
|
check_include_file( "roken.h" _GSS_HAVE_ROKEN_H)
|
||||||
|
|
||||||
|
check_include_file( "heimdal/roken.h" _GSS_HAVE_HEIMDAL_ROKEN_H)
|
||||||
|
if(_GSS_HAVE_ROKEN_H OR _GSS_HAVE_HEIMDAL_ROKEN_H)
|
||||||
|
set(GSS_FLAVOUR "Heimdal")
|
||||||
|
endif()
|
||||||
|
set(CMAKE_REQUIRED_DEFINITIONS "")
|
||||||
|
endif()
|
||||||
|
else()
|
||||||
|
# I'm not convienced if this is the right way but this is what autotools do at the moment
|
||||||
|
find_path(_GSS_INCLUDE_DIR
|
||||||
|
NAMES
|
||||||
|
"gssapi.h"
|
||||||
|
HINTS
|
||||||
|
${_GSS_ROOT_HINTS}
|
||||||
|
PATH_SUFFIXES
|
||||||
|
include
|
||||||
|
inc
|
||||||
|
)
|
||||||
|
|
||||||
|
if(_GSS_INCLUDE_DIR)
|
||||||
|
set(GSS_FLAVOUR "Heimdal")
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
|
||||||
|
# if we have headers, check if we can link libraries
|
||||||
|
if(GSS_FLAVOUR)
|
||||||
|
set(_GSS_LIBDIR_SUFFIXES "")
|
||||||
|
set(_GSS_LIBDIR_HINTS ${_GSS_ROOT_HINTS})
|
||||||
|
get_filename_component(_GSS_CALCULATED_POTENTIAL_ROOT "${_GSS_INCLUDE_DIR}" PATH)
|
||||||
|
list(APPEND _GSS_LIBDIR_HINTS ${_GSS_CALCULATED_POTENTIAL_ROOT})
|
||||||
|
|
||||||
|
if(WIN32)
|
||||||
|
if(CMAKE_SIZEOF_VOID_P EQUAL 8)
|
||||||
|
list(APPEND _GSS_LIBDIR_SUFFIXES "lib/AMD64")
|
||||||
|
if(GSS_FLAVOUR STREQUAL "MIT")
|
||||||
|
set(_GSS_LIBNAME "gssapi64")
|
||||||
|
else()
|
||||||
|
set(_GSS_LIBNAME "libgssapi")
|
||||||
|
endif()
|
||||||
|
else()
|
||||||
|
list(APPEND _GSS_LIBDIR_SUFFIXES "lib/i386")
|
||||||
|
if(GSS_FLAVOUR STREQUAL "MIT")
|
||||||
|
set(_GSS_LIBNAME "gssapi32")
|
||||||
|
else()
|
||||||
|
set(_GSS_LIBNAME "libgssapi")
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
else()
|
||||||
|
list(APPEND _GSS_LIBDIR_SUFFIXES "lib;lib64") # those suffixes are not checked for HINTS
|
||||||
|
if(GSS_FLAVOUR STREQUAL "MIT")
|
||||||
|
set(_GSS_LIBNAME "gssapi_krb5")
|
||||||
|
else()
|
||||||
|
set(_GSS_LIBNAME "gssapi")
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
|
||||||
|
find_library(_GSS_LIBRARIES
|
||||||
|
NAMES
|
||||||
|
${_GSS_LIBNAME}
|
||||||
|
HINTS
|
||||||
|
${_GSS_LIBDIR_HINTS}
|
||||||
|
PATH_SUFFIXES
|
||||||
|
${_GSS_LIBDIR_SUFFIXES}
|
||||||
|
)
|
||||||
|
|
||||||
|
endif()
|
||||||
|
|
||||||
|
endif()
|
||||||
|
else()
|
||||||
|
if(_GSS_PKG_${_MIT_MODNAME}_VERSION)
|
||||||
|
set(GSS_FLAVOUR "MIT")
|
||||||
|
set(_GSS_VERSION _GSS_PKG_${_MIT_MODNAME}_VERSION)
|
||||||
|
else()
|
||||||
|
set(GSS_FLAVOUR "Heimdal")
|
||||||
|
set(_GSS_VERSION _GSS_PKG_${_MIT_HEIMDAL}_VERSION)
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
|
||||||
|
set(GSS_INCLUDE_DIR ${_GSS_INCLUDE_DIR})
|
||||||
|
set(GSS_LIBRARIES ${_GSS_LIBRARIES})
|
||||||
|
set(GSS_LINK_DIRECTORIES ${_GSS_LINK_DIRECTORIES})
|
||||||
|
set(GSS_LINKER_FLAGS ${_GSS_LINKER_FLAGS})
|
||||||
|
set(GSS_COMPILER_FLAGS ${_GSS_COMPILER_FLAGS})
|
||||||
|
set(GSS_VERSION ${_GSS_VERSION})
|
||||||
|
|
||||||
|
if(GSS_FLAVOUR)
|
||||||
|
|
||||||
|
if(NOT GSS_VERSION AND GSS_FLAVOUR STREQUAL "Heimdal")
|
||||||
|
if(CMAKE_SIZEOF_VOID_P EQUAL 8)
|
||||||
|
set(HEIMDAL_MANIFEST_FILE "Heimdal.Application.amd64.manifest")
|
||||||
|
else()
|
||||||
|
set(HEIMDAL_MANIFEST_FILE "Heimdal.Application.x86.manifest")
|
||||||
|
endif()
|
||||||
|
|
||||||
|
if(EXISTS "${GSS_INCLUDE_DIR}/${HEIMDAL_MANIFEST_FILE}")
|
||||||
|
file(STRINGS "${GSS_INCLUDE_DIR}/${HEIMDAL_MANIFEST_FILE}" heimdal_version_str
|
||||||
|
REGEX "^.*version=\"[0-9]\\.[^\"]+\".*$")
|
||||||
|
|
||||||
|
string(REGEX MATCH "[0-9]\\.[^\"]+"
|
||||||
|
GSS_VERSION "${heimdal_version_str}")
|
||||||
|
endif()
|
||||||
|
|
||||||
|
if(NOT GSS_VERSION)
|
||||||
|
set(GSS_VERSION "Heimdal Unknown")
|
||||||
|
endif()
|
||||||
|
elseif(NOT GSS_VERSION AND GSS_FLAVOUR STREQUAL "MIT")
|
||||||
|
get_filename_component(_MIT_VERSION "[HKEY_LOCAL_MACHINE\\SOFTWARE\\MIT\\Kerberos\\SDK\\CurrentVersion;VersionString]" NAME CACHE)
|
||||||
|
if(WIN32 AND _MIT_VERSION)
|
||||||
|
set(GSS_VERSION "${_MIT_VERSION}")
|
||||||
|
else()
|
||||||
|
set(GSS_VERSION "MIT Unknown")
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
|
||||||
|
|
||||||
|
include(FindPackageHandleStandardArgs)
|
||||||
|
|
||||||
|
set(_GSS_REQUIRED_VARS GSS_LIBRARIES GSS_FLAVOUR)
|
||||||
|
|
||||||
|
find_package_handle_standard_args(GSS
|
||||||
|
REQUIRED_VARS
|
||||||
|
${_GSS_REQUIRED_VARS}
|
||||||
|
VERSION_VAR
|
||||||
|
GSS_VERSION
|
||||||
|
FAIL_MESSAGE
|
||||||
|
"Could NOT find GSS, try to set the path to GSS root folder in the system variable GSS_ROOT_DIR"
|
||||||
|
)
|
||||||
|
|
||||||
|
mark_as_advanced(GSS_INCLUDE_DIR GSS_LIBRARIES)
|
||||||
35
CMake/FindLibSSH2.cmake
Normal file
35
CMake/FindLibSSH2.cmake
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
# - Try to find the libssh2 library
|
||||||
|
# Once done this will define
|
||||||
|
#
|
||||||
|
# LIBSSH2_FOUND - system has the libssh2 library
|
||||||
|
# LIBSSH2_INCLUDE_DIR - the libssh2 include directory
|
||||||
|
# LIBSSH2_LIBRARY - the libssh2 library name
|
||||||
|
|
||||||
|
if (LIBSSH2_INCLUDE_DIR AND LIBSSH2_LIBRARY)
|
||||||
|
set(LibSSH2_FIND_QUIETLY TRUE)
|
||||||
|
endif (LIBSSH2_INCLUDE_DIR AND LIBSSH2_LIBRARY)
|
||||||
|
|
||||||
|
FIND_PATH(LIBSSH2_INCLUDE_DIR libssh2.h
|
||||||
|
)
|
||||||
|
|
||||||
|
FIND_LIBRARY(LIBSSH2_LIBRARY NAMES ssh2
|
||||||
|
)
|
||||||
|
|
||||||
|
if(LIBSSH2_INCLUDE_DIR)
|
||||||
|
file(STRINGS "${LIBSSH2_INCLUDE_DIR}/libssh2.h" libssh2_version_str REGEX "^#define[\t ]+LIBSSH2_VERSION_NUM[\t ]+0x[0-9][0-9][0-9][0-9][0-9][0-9].*")
|
||||||
|
|
||||||
|
string(REGEX REPLACE "^.*LIBSSH2_VERSION_NUM[\t ]+0x([0-9][0-9]).*$" "\\1" LIBSSH2_VERSION_MAJOR "${libssh2_version_str}")
|
||||||
|
string(REGEX REPLACE "^.*LIBSSH2_VERSION_NUM[\t ]+0x[0-9][0-9]([0-9][0-9]).*$" "\\1" LIBSSH2_VERSION_MINOR "${libssh2_version_str}")
|
||||||
|
string(REGEX REPLACE "^.*LIBSSH2_VERSION_NUM[\t ]+0x[0-9][0-9][0-9][0-9]([0-9][0-9]).*$" "\\1" LIBSSH2_VERSION_PATCH "${libssh2_version_str}")
|
||||||
|
|
||||||
|
string(REGEX REPLACE "^0(.+)" "\\1" LIBSSH2_VERSION_MAJOR "${LIBSSH2_VERSION_MAJOR}")
|
||||||
|
string(REGEX REPLACE "^0(.+)" "\\1" LIBSSH2_VERSION_MINOR "${LIBSSH2_VERSION_MINOR}")
|
||||||
|
string(REGEX REPLACE "^0(.+)" "\\1" LIBSSH2_VERSION_PATCH "${LIBSSH2_VERSION_PATCH}")
|
||||||
|
|
||||||
|
set(LIBSSH2_VERSION "${LIBSSH2_VERSION_MAJOR}.${LIBSSH2_VERSION_MINOR}.${LIBSSH2_VERSION_PATCH}")
|
||||||
|
endif(LIBSSH2_INCLUDE_DIR)
|
||||||
|
|
||||||
|
include(FindPackageHandleStandardArgs)
|
||||||
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(LibSSH2 DEFAULT_MSG LIBSSH2_INCLUDE_DIR LIBSSH2_LIBRARY )
|
||||||
|
|
||||||
|
MARK_AS_ADVANCED(LIBSSH2_INCLUDE_DIR LIBSSH2_LIBRARY LIBSSH2_VERSION_MAJOR LIBSSH2_VERSION_MINOR LIBSSH2_VERSION_PATCH LIBSSH2_VERSION)
|
||||||
@@ -1,21 +0,0 @@
|
|||||||
# Extension of the standard FindOpenSSL.cmake
|
|
||||||
# Adds OPENSSL_INCLUDE_DIRS and libeay32
|
|
||||||
include("${CMAKE_ROOT}/Modules/FindOpenSSL.cmake")
|
|
||||||
|
|
||||||
# starting 2.8 it is better to use standard modules
|
|
||||||
if(CMAKE_MAJOR_VERSION EQUAL "2" AND CMAKE_MINOR_VERSION LESS "8")
|
|
||||||
# Bill Hoffman told that libeay32 is necessary for him:
|
|
||||||
find_library(SSL_LIBEAY NAMES libeay32)
|
|
||||||
|
|
||||||
if(OPENSSL_FOUND)
|
|
||||||
if(SSL_LIBEAY)
|
|
||||||
list(APPEND OPENSSL_LIBRARIES ${SSL_LIBEAY})
|
|
||||||
else()
|
|
||||||
set(OPENSSL_FOUND FALSE)
|
|
||||||
endif()
|
|
||||||
endif()
|
|
||||||
endif() # if (CMAKE_MAJOR_VERSION EQUAL "2" AND CMAKE_MINOR_VERSION LESS "8")
|
|
||||||
|
|
||||||
if(OPENSSL_FOUND)
|
|
||||||
set(OPENSSL_INCLUDE_DIRS ${OPENSSL_INCLUDE_DIR})
|
|
||||||
endif()
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
# Locate zlib
|
|
||||||
include("${CMAKE_ROOT}/Modules/FindZLIB.cmake")
|
|
||||||
|
|
||||||
# starting 2.8 it is better to use standard modules
|
|
||||||
if(CMAKE_MAJOR_VERSION EQUAL "2" AND CMAKE_MINOR_VERSION LESS "8")
|
|
||||||
find_library(ZLIB_LIBRARY_DEBUG NAMES zd zlibd zdlld zlib1d )
|
|
||||||
if(ZLIB_FOUND AND ZLIB_LIBRARY_DEBUG)
|
|
||||||
set( ZLIB_LIBRARIES optimized "${ZLIB_LIBRARY}" debug ${ZLIB_LIBRARY_DEBUG})
|
|
||||||
endif()
|
|
||||||
endif()
|
|
||||||
95
CMake/Macros.cmake
Normal file
95
CMake/Macros.cmake
Normal file
@@ -0,0 +1,95 @@
|
|||||||
|
#File defines convenience macros for available feature testing
|
||||||
|
|
||||||
|
# This macro checks if the symbol exists in the library and if it
|
||||||
|
# does, it prepends library to the list. It is intended to be called
|
||||||
|
# multiple times with a sequence of possibly dependent libraries in
|
||||||
|
# order of least-to-most-dependent. Some libraries depend on others
|
||||||
|
# to link correctly.
|
||||||
|
macro(CHECK_LIBRARY_EXISTS_CONCAT LIBRARY SYMBOL VARIABLE)
|
||||||
|
check_library_exists("${LIBRARY};${CURL_LIBS}" ${SYMBOL} "${CMAKE_LIBRARY_PATH}"
|
||||||
|
${VARIABLE})
|
||||||
|
if(${VARIABLE})
|
||||||
|
set(CURL_LIBS ${LIBRARY} ${CURL_LIBS})
|
||||||
|
endif(${VARIABLE})
|
||||||
|
endmacro(CHECK_LIBRARY_EXISTS_CONCAT)
|
||||||
|
|
||||||
|
# Check if header file exists and add it to the list.
|
||||||
|
# This macro is intended to be called multiple times with a sequence of
|
||||||
|
# possibly dependent header files. Some headers depend on others to be
|
||||||
|
# compiled correctly.
|
||||||
|
macro(CHECK_INCLUDE_FILE_CONCAT FILE VARIABLE)
|
||||||
|
check_include_files("${CURL_INCLUDES};${FILE}" ${VARIABLE})
|
||||||
|
if(${VARIABLE})
|
||||||
|
set(CURL_INCLUDES ${CURL_INCLUDES} ${FILE})
|
||||||
|
set(CURL_TEST_DEFINES "${CURL_TEST_DEFINES} -D${VARIABLE}")
|
||||||
|
endif(${VARIABLE})
|
||||||
|
endmacro(CHECK_INCLUDE_FILE_CONCAT)
|
||||||
|
|
||||||
|
# For other curl specific tests, use this macro.
|
||||||
|
macro(CURL_INTERNAL_TEST CURL_TEST)
|
||||||
|
if(NOT DEFINED "${CURL_TEST}")
|
||||||
|
set(MACRO_CHECK_FUNCTION_DEFINITIONS
|
||||||
|
"-D${CURL_TEST} ${CURL_TEST_DEFINES} ${CMAKE_REQUIRED_FLAGS}")
|
||||||
|
if(CMAKE_REQUIRED_LIBRARIES)
|
||||||
|
set(CURL_TEST_ADD_LIBRARIES
|
||||||
|
"-DLINK_LIBRARIES:STRING=${CMAKE_REQUIRED_LIBRARIES}")
|
||||||
|
endif(CMAKE_REQUIRED_LIBRARIES)
|
||||||
|
|
||||||
|
message(STATUS "Performing Curl Test ${CURL_TEST}")
|
||||||
|
try_compile(${CURL_TEST}
|
||||||
|
${CMAKE_BINARY_DIR}
|
||||||
|
${CMAKE_CURRENT_SOURCE_DIR}/CMake/CurlTests.c
|
||||||
|
CMAKE_FLAGS -DCOMPILE_DEFINITIONS:STRING=${MACRO_CHECK_FUNCTION_DEFINITIONS}
|
||||||
|
"${CURL_TEST_ADD_LIBRARIES}"
|
||||||
|
OUTPUT_VARIABLE OUTPUT)
|
||||||
|
if(${CURL_TEST})
|
||||||
|
set(${CURL_TEST} 1 CACHE INTERNAL "Curl test ${FUNCTION}")
|
||||||
|
message(STATUS "Performing Curl Test ${CURL_TEST} - Success")
|
||||||
|
file(APPEND ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeOutput.log
|
||||||
|
"Performing Curl Test ${CURL_TEST} passed with the following output:\n"
|
||||||
|
"${OUTPUT}\n")
|
||||||
|
else(${CURL_TEST})
|
||||||
|
message(STATUS "Performing Curl Test ${CURL_TEST} - Failed")
|
||||||
|
set(${CURL_TEST} "" CACHE INTERNAL "Curl test ${FUNCTION}")
|
||||||
|
file(APPEND ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeError.log
|
||||||
|
"Performing Curl Test ${CURL_TEST} failed with the following output:\n"
|
||||||
|
"${OUTPUT}\n")
|
||||||
|
endif(${CURL_TEST})
|
||||||
|
endif()
|
||||||
|
endmacro(CURL_INTERNAL_TEST)
|
||||||
|
|
||||||
|
macro(CURL_INTERNAL_TEST_RUN CURL_TEST)
|
||||||
|
if(NOT DEFINED "${CURL_TEST}_COMPILE")
|
||||||
|
set(MACRO_CHECK_FUNCTION_DEFINITIONS
|
||||||
|
"-D${CURL_TEST} ${CMAKE_REQUIRED_FLAGS}")
|
||||||
|
if(CMAKE_REQUIRED_LIBRARIES)
|
||||||
|
set(CURL_TEST_ADD_LIBRARIES
|
||||||
|
"-DLINK_LIBRARIES:STRING=${CMAKE_REQUIRED_LIBRARIES}")
|
||||||
|
endif(CMAKE_REQUIRED_LIBRARIES)
|
||||||
|
|
||||||
|
message(STATUS "Performing Curl Test ${CURL_TEST}")
|
||||||
|
try_run(${CURL_TEST} ${CURL_TEST}_COMPILE
|
||||||
|
${CMAKE_BINARY_DIR}
|
||||||
|
${CMAKE_CURRENT_SOURCE_DIR}/CMake/CurlTests.c
|
||||||
|
CMAKE_FLAGS -DCOMPILE_DEFINITIONS:STRING=${MACRO_CHECK_FUNCTION_DEFINITIONS}
|
||||||
|
"${CURL_TEST_ADD_LIBRARIES}"
|
||||||
|
OUTPUT_VARIABLE OUTPUT)
|
||||||
|
if(${CURL_TEST}_COMPILE AND NOT ${CURL_TEST})
|
||||||
|
set(${CURL_TEST} 1 CACHE INTERNAL "Curl test ${FUNCTION}")
|
||||||
|
message(STATUS "Performing Curl Test ${CURL_TEST} - Success")
|
||||||
|
else(${CURL_TEST}_COMPILE AND NOT ${CURL_TEST})
|
||||||
|
message(STATUS "Performing Curl Test ${CURL_TEST} - Failed")
|
||||||
|
set(${CURL_TEST} "" CACHE INTERNAL "Curl test ${FUNCTION}")
|
||||||
|
file(APPEND "${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeError.log"
|
||||||
|
"Performing Curl Test ${CURL_TEST} failed with the following output:\n"
|
||||||
|
"${OUTPUT}")
|
||||||
|
if(${CURL_TEST}_COMPILE)
|
||||||
|
file(APPEND
|
||||||
|
"${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeError.log"
|
||||||
|
"There was a problem running this test\n")
|
||||||
|
endif(${CURL_TEST}_COMPILE)
|
||||||
|
file(APPEND "${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeError.log"
|
||||||
|
"\n\n")
|
||||||
|
endif(${CURL_TEST}_COMPILE AND NOT ${CURL_TEST})
|
||||||
|
endif()
|
||||||
|
endmacro(CURL_INTERNAL_TEST_RUN)
|
||||||
@@ -1,39 +1,35 @@
|
|||||||
include(CurlCheckCSourceCompiles)
|
include(CheckCSourceCompiles)
|
||||||
set(EXTRA_DEFINES "__unused1\n#undef inline\n#define __unused2")
|
# The begin of the sources (macros and includes)
|
||||||
set(HEADER_INCLUDES)
|
set(_source_epilogue "#undef inline")
|
||||||
set(headers_hack)
|
|
||||||
|
|
||||||
macro(add_header_include check header)
|
macro(add_header_include check header)
|
||||||
if(${check})
|
if(${check})
|
||||||
set(headers_hack
|
set(_source_epilogue "${_source_epilogue}\n#include <${header}>")
|
||||||
"${headers_hack}\n#include <${header}>")
|
|
||||||
#SET(HEADER_INCLUDES
|
|
||||||
# ${HEADER_INCLUDES}
|
|
||||||
# "${header}")
|
|
||||||
endif(${check})
|
endif(${check})
|
||||||
endmacro(add_header_include)
|
endmacro(add_header_include)
|
||||||
|
|
||||||
set(signature_call_conv)
|
set(signature_call_conv)
|
||||||
if(HAVE_WINDOWS_H)
|
if(HAVE_WINDOWS_H)
|
||||||
add_header_include(HAVE_WINDOWS_H "windows.h")
|
|
||||||
add_header_include(HAVE_WINSOCK2_H "winsock2.h")
|
add_header_include(HAVE_WINSOCK2_H "winsock2.h")
|
||||||
|
add_header_include(HAVE_WINDOWS_H "windows.h")
|
||||||
add_header_include(HAVE_WINSOCK_H "winsock.h")
|
add_header_include(HAVE_WINSOCK_H "winsock.h")
|
||||||
set(EXTRA_DEFINES ${EXTRA_DEFINES}
|
set(_source_epilogue
|
||||||
"__unused7\n#ifndef WIN32_LEAN_AND_MEAN\n#define WIN32_LEAN_AND_MEAN\n#endif\n#define __unused3")
|
"${_source_epilogue}\n#ifndef WIN32_LEAN_AND_MEAN\n#define WIN32_LEAN_AND_MEAN\n#endif")
|
||||||
set(signature_call_conv "PASCAL")
|
set(signature_call_conv "PASCAL")
|
||||||
|
if(HAVE_LIBWS2_32)
|
||||||
|
set(CMAKE_REQUIRED_LIBRARIES ws2_32)
|
||||||
|
endif()
|
||||||
else(HAVE_WINDOWS_H)
|
else(HAVE_WINDOWS_H)
|
||||||
add_header_include(HAVE_SYS_TYPES_H "sys/types.h")
|
add_header_include(HAVE_SYS_TYPES_H "sys/types.h")
|
||||||
add_header_include(HAVE_SYS_SOCKET_H "sys/socket.h")
|
add_header_include(HAVE_SYS_SOCKET_H "sys/socket.h")
|
||||||
endif(HAVE_WINDOWS_H)
|
endif(HAVE_WINDOWS_H)
|
||||||
|
|
||||||
set(EXTRA_DEFINES_BACKUP "${EXTRA_DEFINES}")
|
check_c_source_compiles("${_source_epilogue}
|
||||||
set(EXTRA_DEFINES "${EXTRA_DEFINES_BACKUP}\n${headers_hack}\n${extern_line}\n#define __unused5")
|
int main(void) {
|
||||||
curl_check_c_source_compiles("recv(0, 0, 0, 0)" curl_cv_recv)
|
recv(0, 0, 0, 0);
|
||||||
|
return 0;
|
||||||
|
}" curl_cv_recv)
|
||||||
if(curl_cv_recv)
|
if(curl_cv_recv)
|
||||||
# AC_CACHE_CHECK([types of arguments and return type for recv],
|
|
||||||
#[curl_cv_func_recv_args], [
|
|
||||||
#SET(curl_cv_func_recv_args "unknown")
|
|
||||||
#for recv_retv in 'int' 'ssize_t'; do
|
|
||||||
if(NOT DEFINED curl_cv_func_recv_args OR "${curl_cv_func_recv_args}" STREQUAL "unknown")
|
if(NOT DEFINED curl_cv_func_recv_args OR "${curl_cv_func_recv_args}" STREQUAL "unknown")
|
||||||
foreach(recv_retv "int" "ssize_t" )
|
foreach(recv_retv "int" "ssize_t" )
|
||||||
foreach(recv_arg1 "int" "ssize_t" "SOCKET")
|
foreach(recv_arg1 "int" "ssize_t" "SOCKET")
|
||||||
@@ -41,17 +37,23 @@ if(curl_cv_recv)
|
|||||||
foreach(recv_arg3 "size_t" "int" "socklen_t" "unsigned int")
|
foreach(recv_arg3 "size_t" "int" "socklen_t" "unsigned int")
|
||||||
foreach(recv_arg4 "int" "unsigned int")
|
foreach(recv_arg4 "int" "unsigned int")
|
||||||
if(NOT curl_cv_func_recv_done)
|
if(NOT curl_cv_func_recv_done)
|
||||||
set(curl_cv_func_recv_test "UNKNOWN")
|
unset(curl_cv_func_recv_test CACHE)
|
||||||
set(extern_line "extern ${recv_retv} ${signature_call_conv} recv(${recv_arg1}, ${recv_arg2}, ${recv_arg3}, ${recv_arg4})\;")
|
check_c_source_compiles("
|
||||||
set(EXTRA_DEFINES "${EXTRA_DEFINES_BACKUP}\n${headers_hack}\n${extern_line}\n#define __unused5")
|
${_source_epilogue}
|
||||||
curl_check_c_source_compiles("
|
extern ${recv_retv} ${signature_call_conv}
|
||||||
|
recv(${recv_arg1}, ${recv_arg2}, ${recv_arg3}, ${recv_arg4});
|
||||||
|
int main(void) {
|
||||||
${recv_arg1} s=0;
|
${recv_arg1} s=0;
|
||||||
${recv_arg2} buf=0;
|
${recv_arg2} buf=0;
|
||||||
${recv_arg3} len=0;
|
${recv_arg3} len=0;
|
||||||
${recv_arg4} flags=0;
|
${recv_arg4} flags=0;
|
||||||
${recv_retv} res = recv(s, buf, len, flags)"
|
${recv_retv} res = recv(s, buf, len, flags);
|
||||||
curl_cv_func_recv_test
|
(void) res;
|
||||||
"${recv_retv} recv(${recv_arg1}, ${recv_arg2}, ${recv_arg3}, ${recv_arg4})")
|
return 0;
|
||||||
|
}"
|
||||||
|
curl_cv_func_recv_test)
|
||||||
|
message(STATUS
|
||||||
|
"Tested: ${recv_retv} recv(${recv_arg1}, ${recv_arg2}, ${recv_arg3}, ${recv_arg4})")
|
||||||
if(curl_cv_func_recv_test)
|
if(curl_cv_func_recv_test)
|
||||||
set(curl_cv_func_recv_args
|
set(curl_cv_func_recv_args
|
||||||
"${recv_arg1},${recv_arg2},${recv_arg3},${recv_arg4},${recv_retv}")
|
"${recv_arg1},${recv_arg2},${recv_arg3},${recv_arg4},${recv_retv}")
|
||||||
@@ -69,18 +71,13 @@ if(curl_cv_recv)
|
|||||||
endforeach(recv_arg2)
|
endforeach(recv_arg2)
|
||||||
endforeach(recv_arg1)
|
endforeach(recv_arg1)
|
||||||
endforeach(recv_retv)
|
endforeach(recv_retv)
|
||||||
else(NOT DEFINED curl_cv_func_recv_args OR "${curl_cv_func_recv_args}" STREQUAL "unknown")
|
else()
|
||||||
string(REGEX REPLACE "^([^,]*),[^,]*,[^,]*,[^,]*,[^,]*$" "\\1" RECV_TYPE_ARG1 "${curl_cv_func_recv_args}")
|
string(REGEX REPLACE "^([^,]*),[^,]*,[^,]*,[^,]*,[^,]*$" "\\1" RECV_TYPE_ARG1 "${curl_cv_func_recv_args}")
|
||||||
string(REGEX REPLACE "^[^,]*,([^,]*),[^,]*,[^,]*,[^,]*$" "\\1" RECV_TYPE_ARG2 "${curl_cv_func_recv_args}")
|
string(REGEX REPLACE "^[^,]*,([^,]*),[^,]*,[^,]*,[^,]*$" "\\1" RECV_TYPE_ARG2 "${curl_cv_func_recv_args}")
|
||||||
string(REGEX REPLACE "^[^,]*,[^,]*,([^,]*),[^,]*,[^,]*$" "\\1" RECV_TYPE_ARG3 "${curl_cv_func_recv_args}")
|
string(REGEX REPLACE "^[^,]*,[^,]*,([^,]*),[^,]*,[^,]*$" "\\1" RECV_TYPE_ARG3 "${curl_cv_func_recv_args}")
|
||||||
string(REGEX REPLACE "^[^,]*,[^,]*,[^,]*,([^,]*),[^,]*$" "\\1" RECV_TYPE_ARG4 "${curl_cv_func_recv_args}")
|
string(REGEX REPLACE "^[^,]*,[^,]*,[^,]*,([^,]*),[^,]*$" "\\1" RECV_TYPE_ARG4 "${curl_cv_func_recv_args}")
|
||||||
string(REGEX REPLACE "^[^,]*,[^,]*,[^,]*,[^,]*,([^,]*)$" "\\1" RECV_TYPE_RETV "${curl_cv_func_recv_args}")
|
string(REGEX REPLACE "^[^,]*,[^,]*,[^,]*,[^,]*,([^,]*)$" "\\1" RECV_TYPE_RETV "${curl_cv_func_recv_args}")
|
||||||
#MESSAGE("RECV_TYPE_ARG1 ${RECV_TYPE_ARG1}")
|
endif()
|
||||||
#MESSAGE("RECV_TYPE_ARG2 ${RECV_TYPE_ARG2}")
|
|
||||||
#MESSAGE("RECV_TYPE_ARG3 ${RECV_TYPE_ARG3}")
|
|
||||||
#MESSAGE("RECV_TYPE_ARG4 ${RECV_TYPE_ARG4}")
|
|
||||||
#MESSAGE("RECV_TYPE_RETV ${RECV_TYPE_RETV}")
|
|
||||||
endif(NOT DEFINED curl_cv_func_recv_args OR "${curl_cv_func_recv_args}" STREQUAL "unknown")
|
|
||||||
|
|
||||||
if("${curl_cv_func_recv_args}" STREQUAL "unknown")
|
if("${curl_cv_func_recv_args}" STREQUAL "unknown")
|
||||||
message(FATAL_ERROR "Cannot find proper types to use for recv args")
|
message(FATAL_ERROR "Cannot find proper types to use for recv args")
|
||||||
@@ -91,12 +88,12 @@ endif(curl_cv_recv)
|
|||||||
set(curl_cv_func_recv_args "${curl_cv_func_recv_args}" CACHE INTERNAL "Arguments for recv")
|
set(curl_cv_func_recv_args "${curl_cv_func_recv_args}" CACHE INTERNAL "Arguments for recv")
|
||||||
set(HAVE_RECV 1)
|
set(HAVE_RECV 1)
|
||||||
|
|
||||||
curl_check_c_source_compiles("send(0, 0, 0, 0)" curl_cv_send)
|
check_c_source_compiles("${_source_epilogue}
|
||||||
|
int main(void) {
|
||||||
|
send(0, 0, 0, 0);
|
||||||
|
return 0;
|
||||||
|
}" curl_cv_send)
|
||||||
if(curl_cv_send)
|
if(curl_cv_send)
|
||||||
# AC_CACHE_CHECK([types of arguments and return type for send],
|
|
||||||
#[curl_cv_func_send_args], [
|
|
||||||
#SET(curl_cv_func_send_args "unknown")
|
|
||||||
#for send_retv in 'int' 'ssize_t'; do
|
|
||||||
if(NOT DEFINED curl_cv_func_send_args OR "${curl_cv_func_send_args}" STREQUAL "unknown")
|
if(NOT DEFINED curl_cv_func_send_args OR "${curl_cv_func_send_args}" STREQUAL "unknown")
|
||||||
foreach(send_retv "int" "ssize_t" )
|
foreach(send_retv "int" "ssize_t" )
|
||||||
foreach(send_arg1 "int" "ssize_t" "SOCKET")
|
foreach(send_arg1 "int" "ssize_t" "SOCKET")
|
||||||
@@ -104,19 +101,24 @@ if(curl_cv_send)
|
|||||||
foreach(send_arg3 "size_t" "int" "socklen_t" "unsigned int")
|
foreach(send_arg3 "size_t" "int" "socklen_t" "unsigned int")
|
||||||
foreach(send_arg4 "int" "unsigned int")
|
foreach(send_arg4 "int" "unsigned int")
|
||||||
if(NOT curl_cv_func_send_done)
|
if(NOT curl_cv_func_send_done)
|
||||||
set(curl_cv_func_send_test "UNKNOWN")
|
unset(curl_cv_func_send_test CACHE)
|
||||||
set(extern_line "extern ${send_retv} ${signature_call_conv} send(${send_arg1}, ${send_arg2}, ${send_arg3}, ${send_arg4})\;")
|
check_c_source_compiles("
|
||||||
set(EXTRA_DEFINES "${EXTRA_DEFINES_BACKUP}\n${headers_hack}\n${extern_line}\n#define __unused5")
|
${_source_epilogue}
|
||||||
curl_check_c_source_compiles("
|
extern ${send_retv} ${signature_call_conv}
|
||||||
|
send(${send_arg1}, ${send_arg2}, ${send_arg3}, ${send_arg4});
|
||||||
|
int main(void) {
|
||||||
${send_arg1} s=0;
|
${send_arg1} s=0;
|
||||||
${send_arg2} buf=0;
|
${send_arg2} buf=0;
|
||||||
${send_arg3} len=0;
|
${send_arg3} len=0;
|
||||||
${send_arg4} flags=0;
|
${send_arg4} flags=0;
|
||||||
${send_retv} res = send(s, buf, len, flags)"
|
${send_retv} res = send(s, buf, len, flags);
|
||||||
curl_cv_func_send_test
|
(void) res;
|
||||||
"${send_retv} send(${send_arg1}, ${send_arg2}, ${send_arg3}, ${send_arg4})")
|
return 0;
|
||||||
|
}"
|
||||||
|
curl_cv_func_send_test)
|
||||||
|
message(STATUS
|
||||||
|
"Tested: ${send_retv} send(${send_arg1}, ${send_arg2}, ${send_arg3}, ${send_arg4})")
|
||||||
if(curl_cv_func_send_test)
|
if(curl_cv_func_send_test)
|
||||||
#MESSAGE("Found arguments: ${curl_cv_func_send_test}")
|
|
||||||
string(REGEX REPLACE "(const) .*" "\\1" send_qual_arg2 "${send_arg2}")
|
string(REGEX REPLACE "(const) .*" "\\1" send_qual_arg2 "${send_arg2}")
|
||||||
string(REGEX REPLACE "const (.*)" "\\1" send_arg2 "${send_arg2}")
|
string(REGEX REPLACE "const (.*)" "\\1" send_arg2 "${send_arg2}")
|
||||||
set(curl_cv_func_send_args
|
set(curl_cv_func_send_args
|
||||||
@@ -135,20 +137,14 @@ if(curl_cv_send)
|
|||||||
endforeach(send_arg2)
|
endforeach(send_arg2)
|
||||||
endforeach(send_arg1)
|
endforeach(send_arg1)
|
||||||
endforeach(send_retv)
|
endforeach(send_retv)
|
||||||
else(NOT DEFINED curl_cv_func_send_args OR "${curl_cv_func_send_args}" STREQUAL "unknown")
|
else()
|
||||||
string(REGEX REPLACE "^([^,]*),[^,]*,[^,]*,[^,]*,[^,]*,[^,]*$" "\\1" SEND_TYPE_ARG1 "${curl_cv_func_send_args}")
|
string(REGEX REPLACE "^([^,]*),[^,]*,[^,]*,[^,]*,[^,]*,[^,]*$" "\\1" SEND_TYPE_ARG1 "${curl_cv_func_send_args}")
|
||||||
string(REGEX REPLACE "^[^,]*,([^,]*),[^,]*,[^,]*,[^,]*,[^,]*$" "\\1" SEND_TYPE_ARG2 "${curl_cv_func_send_args}")
|
string(REGEX REPLACE "^[^,]*,([^,]*),[^,]*,[^,]*,[^,]*,[^,]*$" "\\1" SEND_TYPE_ARG2 "${curl_cv_func_send_args}")
|
||||||
string(REGEX REPLACE "^[^,]*,[^,]*,([^,]*),[^,]*,[^,]*,[^,]*$" "\\1" SEND_TYPE_ARG3 "${curl_cv_func_send_args}")
|
string(REGEX REPLACE "^[^,]*,[^,]*,([^,]*),[^,]*,[^,]*,[^,]*$" "\\1" SEND_TYPE_ARG3 "${curl_cv_func_send_args}")
|
||||||
string(REGEX REPLACE "^[^,]*,[^,]*,[^,]*,([^,]*),[^,]*,[^,]*$" "\\1" SEND_TYPE_ARG4 "${curl_cv_func_send_args}")
|
string(REGEX REPLACE "^[^,]*,[^,]*,[^,]*,([^,]*),[^,]*,[^,]*$" "\\1" SEND_TYPE_ARG4 "${curl_cv_func_send_args}")
|
||||||
string(REGEX REPLACE "^[^,]*,[^,]*,[^,]*,[^,]*,([^,]*),[^,]*$" "\\1" SEND_TYPE_RETV "${curl_cv_func_send_args}")
|
string(REGEX REPLACE "^[^,]*,[^,]*,[^,]*,[^,]*,([^,]*),[^,]*$" "\\1" SEND_TYPE_RETV "${curl_cv_func_send_args}")
|
||||||
string(REGEX REPLACE "^[^,]*,[^,]*,[^,]*,[^,]*,[^,]*,([^,]*)$" "\\1" SEND_QUAL_ARG2 "${curl_cv_func_send_args}")
|
string(REGEX REPLACE "^[^,]*,[^,]*,[^,]*,[^,]*,[^,]*,([^,]*)$" "\\1" SEND_QUAL_ARG2 "${curl_cv_func_send_args}")
|
||||||
#MESSAGE("SEND_TYPE_ARG1 ${SEND_TYPE_ARG1}")
|
endif()
|
||||||
#MESSAGE("SEND_TYPE_ARG2 ${SEND_TYPE_ARG2}")
|
|
||||||
#MESSAGE("SEND_TYPE_ARG3 ${SEND_TYPE_ARG3}")
|
|
||||||
#MESSAGE("SEND_TYPE_ARG4 ${SEND_TYPE_ARG4}")
|
|
||||||
#MESSAGE("SEND_TYPE_RETV ${SEND_TYPE_RETV}")
|
|
||||||
#MESSAGE("SEND_QUAL_ARG2 ${SEND_QUAL_ARG2}")
|
|
||||||
endif(NOT DEFINED curl_cv_func_send_args OR "${curl_cv_func_send_args}" STREQUAL "unknown")
|
|
||||||
|
|
||||||
if("${curl_cv_func_send_args}" STREQUAL "unknown")
|
if("${curl_cv_func_send_args}" STREQUAL "unknown")
|
||||||
message(FATAL_ERROR "Cannot find proper types to use for send args")
|
message(FATAL_ERROR "Cannot find proper types to use for send args")
|
||||||
@@ -160,88 +156,71 @@ endif(curl_cv_send)
|
|||||||
set(curl_cv_func_send_args "${curl_cv_func_send_args}" CACHE INTERNAL "Arguments for send")
|
set(curl_cv_func_send_args "${curl_cv_func_send_args}" CACHE INTERNAL "Arguments for send")
|
||||||
set(HAVE_SEND 1)
|
set(HAVE_SEND 1)
|
||||||
|
|
||||||
set(EXTRA_DEFINES "${EXTRA_DEFINES}\n${headers_hack}\n#define __unused5")
|
check_c_source_compiles("${_source_epilogue}
|
||||||
curl_check_c_source_compiles("int flag = MSG_NOSIGNAL" HAVE_MSG_NOSIGNAL)
|
int main(void) {
|
||||||
|
int flag = MSG_NOSIGNAL;
|
||||||
|
(void)flag;
|
||||||
|
return 0;
|
||||||
|
}" HAVE_MSG_NOSIGNAL)
|
||||||
|
|
||||||
set(EXTRA_DEFINES "__unused1\n#undef inline\n#define __unused2")
|
if(NOT HAVE_WINDOWS_H)
|
||||||
set(HEADER_INCLUDES)
|
|
||||||
set(headers_hack)
|
|
||||||
|
|
||||||
macro(add_header_include check header)
|
|
||||||
if(${check})
|
|
||||||
set(headers_hack
|
|
||||||
"${headers_hack}\n#include <${header}>")
|
|
||||||
#SET(HEADER_INCLUDES
|
|
||||||
# ${HEADER_INCLUDES}
|
|
||||||
# "${header}")
|
|
||||||
endif(${check})
|
|
||||||
endmacro(add_header_include header)
|
|
||||||
|
|
||||||
if(HAVE_WINDOWS_H)
|
|
||||||
set(EXTRA_DEFINES ${EXTRA_DEFINES}
|
|
||||||
"__unused7\n#ifndef WIN32_LEAN_AND_MEAN\n#define WIN32_LEAN_AND_MEAN\n#endif\n#define __unused3")
|
|
||||||
add_header_include(HAVE_WINDOWS_H "windows.h")
|
|
||||||
add_header_include(HAVE_WINSOCK2_H "winsock2.h")
|
|
||||||
add_header_include(HAVE_WINSOCK_H "winsock.h")
|
|
||||||
else(HAVE_WINDOWS_H)
|
|
||||||
add_header_include(HAVE_SYS_TYPES_H "sys/types.h")
|
|
||||||
add_header_include(HAVE_SYS_TIME_H "sys/time.h")
|
add_header_include(HAVE_SYS_TIME_H "sys/time.h")
|
||||||
add_header_include(TIME_WITH_SYS_TIME "time.h")
|
add_header_include(TIME_WITH_SYS_TIME "time.h")
|
||||||
add_header_include(HAVE_TIME_H "time.h")
|
add_header_include(HAVE_TIME_H "time.h")
|
||||||
endif(HAVE_WINDOWS_H)
|
endif()
|
||||||
set(EXTRA_DEFINES "${EXTRA_DEFINES}\n${headers_hack}\n#define __unused5")
|
check_c_source_compiles("${_source_epilogue}
|
||||||
curl_check_c_source_compiles("struct timeval ts;\nts.tv_sec = 0;\nts.tv_usec = 0" HAVE_STRUCT_TIMEVAL)
|
int main(void) {
|
||||||
|
struct timeval ts;
|
||||||
|
ts.tv_sec = 0;
|
||||||
|
ts.tv_usec = 0;
|
||||||
|
(void)ts;
|
||||||
|
return 0;
|
||||||
|
}" HAVE_STRUCT_TIMEVAL)
|
||||||
|
|
||||||
|
|
||||||
include(CurlCheckCSourceRuns)
|
include(CheckCSourceRuns)
|
||||||
set(EXTRA_DEFINES)
|
set(CMAKE_REQUIRED_FLAGS)
|
||||||
set(HEADER_INCLUDES)
|
|
||||||
if(HAVE_SYS_POLL_H)
|
if(HAVE_SYS_POLL_H)
|
||||||
set(HEADER_INCLUDES "sys/poll.h")
|
set(CMAKE_REQUIRED_FLAGS "-DHAVE_SYS_POLL_H")
|
||||||
endif(HAVE_SYS_POLL_H)
|
endif(HAVE_SYS_POLL_H)
|
||||||
curl_check_c_source_runs("return poll((void *)0, 0, 10 /*ms*/)" HAVE_POLL_FINE)
|
check_c_source_runs("
|
||||||
|
#ifdef HAVE_SYS_POLL_H
|
||||||
|
# include <sys/poll.h>
|
||||||
|
#endif
|
||||||
|
int main(void) {
|
||||||
|
return poll((void *)0, 0, 10 /*ms*/);
|
||||||
|
}" HAVE_POLL_FINE)
|
||||||
|
|
||||||
set(HAVE_SIG_ATOMIC_T 1)
|
set(HAVE_SIG_ATOMIC_T 1)
|
||||||
set(EXTRA_DEFINES)
|
set(CMAKE_REQUIRED_FLAGS)
|
||||||
set(HEADER_INCLUDES)
|
|
||||||
if(HAVE_SIGNAL_H)
|
if(HAVE_SIGNAL_H)
|
||||||
set(HEADER_INCLUDES "signal.h")
|
set(CMAKE_REQUIRED_FLAGS "-DHAVE_SIGNAL_H")
|
||||||
set(CMAKE_EXTRA_INCLUDE_FILES "signal.h")
|
set(CMAKE_EXTRA_INCLUDE_FILES "signal.h")
|
||||||
endif(HAVE_SIGNAL_H)
|
endif(HAVE_SIGNAL_H)
|
||||||
check_type_size("sig_atomic_t" SIZEOF_SIG_ATOMIC_T)
|
check_type_size("sig_atomic_t" SIZEOF_SIG_ATOMIC_T)
|
||||||
if(HAVE_SIZEOF_SIG_ATOMIC_T)
|
if(HAVE_SIZEOF_SIG_ATOMIC_T)
|
||||||
curl_check_c_source_compiles("static volatile sig_atomic_t dummy = 0" HAVE_SIG_ATOMIC_T_NOT_VOLATILE)
|
check_c_source_compiles("
|
||||||
|
#ifdef HAVE_SIGNAL_H
|
||||||
|
# include <signal.h>
|
||||||
|
#endif
|
||||||
|
int main(void) {
|
||||||
|
static volatile sig_atomic_t dummy = 0;
|
||||||
|
(void)dummy;
|
||||||
|
return 0;
|
||||||
|
}" HAVE_SIG_ATOMIC_T_NOT_VOLATILE)
|
||||||
if(NOT HAVE_SIG_ATOMIC_T_NOT_VOLATILE)
|
if(NOT HAVE_SIG_ATOMIC_T_NOT_VOLATILE)
|
||||||
set(HAVE_SIG_ATOMIC_T_VOLATILE 1)
|
set(HAVE_SIG_ATOMIC_T_VOLATILE 1)
|
||||||
endif(NOT HAVE_SIG_ATOMIC_T_NOT_VOLATILE)
|
endif(NOT HAVE_SIG_ATOMIC_T_NOT_VOLATILE)
|
||||||
endif(HAVE_SIZEOF_SIG_ATOMIC_T)
|
endif(HAVE_SIZEOF_SIG_ATOMIC_T)
|
||||||
|
|
||||||
set(CHECK_TYPE_SIZE_PREINCLUDE
|
|
||||||
"#undef inline")
|
|
||||||
|
|
||||||
if(HAVE_WINDOWS_H)
|
if(HAVE_WINDOWS_H)
|
||||||
set(CHECK_TYPE_SIZE_PREINCLUDE "${CHECK_TYPE_SIZE_PREINCLUDE}
|
set(CMAKE_EXTRA_INCLUDE_FILES winsock2.h)
|
||||||
#ifndef WIN32_LEAN_AND_MEAN
|
else()
|
||||||
#define WIN32_LEAN_AND_MEAN
|
set(CMAKE_EXTRA_INCLUDE_FILES)
|
||||||
#endif
|
|
||||||
#include <windows.h>")
|
|
||||||
if(HAVE_WINSOCK2_H)
|
|
||||||
set(CHECK_TYPE_SIZE_PREINCLUDE "${CHECK_TYPE_SIZE_PREINCLUDE}\n#include <winsock2.h>")
|
|
||||||
endif(HAVE_WINSOCK2_H)
|
|
||||||
else(HAVE_WINDOWS_H)
|
|
||||||
if(HAVE_SYS_SOCKET_H)
|
if(HAVE_SYS_SOCKET_H)
|
||||||
set(CMAKE_EXTRA_INCLUDE_FILES ${CMAKE_EXTRA_INCLUDE_FILES}
|
set(CMAKE_EXTRA_INCLUDE_FILES sys/socket.h)
|
||||||
"sys/socket.h")
|
|
||||||
endif(HAVE_SYS_SOCKET_H)
|
endif(HAVE_SYS_SOCKET_H)
|
||||||
if(HAVE_NETINET_IN_H)
|
endif()
|
||||||
set(CMAKE_EXTRA_INCLUDE_FILES ${CMAKE_EXTRA_INCLUDE_FILES}
|
|
||||||
"netinet/in.h")
|
|
||||||
endif(HAVE_NETINET_IN_H)
|
|
||||||
if(HAVE_ARPA_INET_H)
|
|
||||||
set(CMAKE_EXTRA_INCLUDE_FILES ${CMAKE_EXTRA_INCLUDE_FILES}
|
|
||||||
"arpa/inet.h")
|
|
||||||
endif(HAVE_ARPA_INET_H)
|
|
||||||
endif(HAVE_WINDOWS_H)
|
|
||||||
|
|
||||||
check_type_size("struct sockaddr_storage" SIZEOF_STRUCT_SOCKADDR_STORAGE)
|
check_type_size("struct sockaddr_storage" SIZEOF_STRUCT_SOCKADDR_STORAGE)
|
||||||
if(HAVE_SIZEOF_STRUCT_SOCKADDR_STORAGE)
|
if(HAVE_SIZEOF_STRUCT_SOCKADDR_STORAGE)
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ if(NOT UNIX)
|
|||||||
set(HAVE_LIBSOCKET 0)
|
set(HAVE_LIBSOCKET 0)
|
||||||
set(NOT_NEED_LIBNSL 0)
|
set(NOT_NEED_LIBNSL 0)
|
||||||
set(HAVE_LIBNSL 0)
|
set(HAVE_LIBNSL 0)
|
||||||
|
set(HAVE_GETHOSTNAME 1)
|
||||||
set(HAVE_LIBZ 0)
|
set(HAVE_LIBZ 0)
|
||||||
set(HAVE_LIBCRYPTO 0)
|
set(HAVE_LIBCRYPTO 0)
|
||||||
|
|
||||||
@@ -14,7 +15,6 @@ if(NOT UNIX)
|
|||||||
set(HAVE_ARPA_INET_H 0)
|
set(HAVE_ARPA_INET_H 0)
|
||||||
set(HAVE_DLFCN_H 0)
|
set(HAVE_DLFCN_H 0)
|
||||||
set(HAVE_FCNTL_H 1)
|
set(HAVE_FCNTL_H 1)
|
||||||
set(HAVE_FEATURES_H 0)
|
|
||||||
set(HAVE_INTTYPES_H 0)
|
set(HAVE_INTTYPES_H 0)
|
||||||
set(HAVE_IO_H 1)
|
set(HAVE_IO_H 1)
|
||||||
set(HAVE_MALLOC_H 1)
|
set(HAVE_MALLOC_H 1)
|
||||||
|
|||||||
723
CMakeLists.txt
723
CMakeLists.txt
@@ -5,11 +5,11 @@
|
|||||||
# | (__| |_| | _ <| |___
|
# | (__| |_| | _ <| |___
|
||||||
# \___|\___/|_| \_\_____|
|
# \___|\___/|_| \_\_____|
|
||||||
#
|
#
|
||||||
# Copyright (C) 1998 - 2014, Daniel Stenberg, <daniel@haxx.se>, et al.
|
# Copyright (C) 1998 - 2015, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
#
|
#
|
||||||
# This software is licensed as described in the file COPYING, which
|
# This software is licensed as described in the file COPYING, which
|
||||||
# you should have received as part of this distribution. The terms
|
# you should have received as part of this distribution. The terms
|
||||||
# are also available at http://curl.haxx.se/docs/copyright.html.
|
# are also available at https://curl.haxx.se/docs/copyright.html.
|
||||||
#
|
#
|
||||||
# You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
# You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
||||||
# copies of the Software, and permit persons to whom the Software is
|
# copies of the Software, and permit persons to whom the Software is
|
||||||
@@ -38,42 +38,33 @@
|
|||||||
# To check:
|
# To check:
|
||||||
# (From Daniel Stenberg) The cmake build selected to run gcc with -fPIC on my box while the plain configure script did not.
|
# (From Daniel Stenberg) The cmake build selected to run gcc with -fPIC on my box while the plain configure script did not.
|
||||||
# (From Daniel Stenberg) The gcc command line use neither -g nor any -O options. As a developer, I also treasure our configure scripts's --enable-debug option that sets a long range of "picky" compiler options.
|
# (From Daniel Stenberg) The gcc command line use neither -g nor any -O options. As a developer, I also treasure our configure scripts's --enable-debug option that sets a long range of "picky" compiler options.
|
||||||
cmake_minimum_required(VERSION 2.6.2 FATAL_ERROR)
|
cmake_minimum_required(VERSION 2.8 FATAL_ERROR)
|
||||||
set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/CMake;${CMAKE_MODULE_PATH}")
|
set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/CMake;${CMAKE_MODULE_PATH}")
|
||||||
include(Utilities)
|
include(Utilities)
|
||||||
|
include(Macros)
|
||||||
|
|
||||||
project( CURL C )
|
project( CURL C )
|
||||||
|
|
||||||
message(WARNING "the curl cmake build system is poorly maintained. Be aware")
|
message(WARNING "the curl cmake build system is poorly maintained. Be aware")
|
||||||
|
|
||||||
file (READ ${CURL_SOURCE_DIR}/include/curl/curlver.h CURL_VERSION_H_CONTENTS)
|
file (READ ${CURL_SOURCE_DIR}/include/curl/curlver.h CURL_VERSION_H_CONTENTS)
|
||||||
string (REGEX MATCH "LIBCURL_VERSION_MAJOR[ \t]+([0-9]+)"
|
string (REGEX MATCH "#define LIBCURL_VERSION \"[^\"]*"
|
||||||
LIBCURL_VERSION_MJ ${CURL_VERSION_H_CONTENTS})
|
CURL_VERSION ${CURL_VERSION_H_CONTENTS})
|
||||||
string (REGEX MATCH "([0-9]+)"
|
string (REGEX REPLACE "[^\"]+\"" "" CURL_VERSION ${CURL_VERSION})
|
||||||
LIBCURL_VERSION_MJ ${LIBCURL_VERSION_MJ})
|
string (REGEX MATCH "#define LIBCURL_VERSION_NUM 0x[0-9a-fA-F]+"
|
||||||
string (REGEX MATCH
|
CURL_VERSION_NUM ${CURL_VERSION_H_CONTENTS})
|
||||||
"LIBCURL_VERSION_MINOR[ \t]+([0-9]+)"
|
string (REGEX REPLACE "[^0]+0x" "" CURL_VERSION_NUM ${CURL_VERSION_NUM})
|
||||||
LIBCURL_VERSION_MI ${CURL_VERSION_H_CONTENTS})
|
|
||||||
string (REGEX MATCH "([0-9]+)" LIBCURL_VERSION_MI ${LIBCURL_VERSION_MI})
|
|
||||||
string (REGEX MATCH
|
|
||||||
"LIBCURL_VERSION_PATCH[ \t]+([0-9]+)"
|
|
||||||
LIBCURL_VERSION_PT ${CURL_VERSION_H_CONTENTS})
|
|
||||||
string (REGEX MATCH "([0-9]+)" LIBCURL_VERSION_PT ${LIBCURL_VERSION_PT})
|
|
||||||
set (CURL_MAJOR_VERSION ${LIBCURL_VERSION_MJ})
|
|
||||||
set (CURL_MINOR_VERSION ${LIBCURL_VERSION_MI})
|
|
||||||
set (CURL_PATCH_VERSION ${LIBCURL_VERSION_PT})
|
|
||||||
|
|
||||||
include_regular_expression("^.*$") # Sukender: Is it necessary?
|
include_regular_expression("^.*$") # Sukender: Is it necessary?
|
||||||
|
|
||||||
# Setup package meta-data
|
# Setup package meta-data
|
||||||
# SET(PACKAGE "curl")
|
# SET(PACKAGE "curl")
|
||||||
set(CURL_VERSION ${CURL_MAJOR_VERSION}.${CURL_MINOR_VERSION}.${CURL_PATCH_VERSION})
|
|
||||||
message(STATUS "curl version=[${CURL_VERSION}]")
|
message(STATUS "curl version=[${CURL_VERSION}]")
|
||||||
# SET(PACKAGE_TARNAME "curl")
|
# SET(PACKAGE_TARNAME "curl")
|
||||||
# SET(PACKAGE_NAME "curl")
|
# SET(PACKAGE_NAME "curl")
|
||||||
# SET(PACKAGE_VERSION "-")
|
# SET(PACKAGE_VERSION "-")
|
||||||
# SET(PACKAGE_STRING "curl-")
|
# SET(PACKAGE_STRING "curl-")
|
||||||
# SET(PACKAGE_BUGREPORT "a suitable curl mailing list => http://curl.haxx.se/mail/")
|
# SET(PACKAGE_BUGREPORT "a suitable curl mailing list => https://curl.haxx.se/mail/")
|
||||||
set(OPERATING_SYSTEM "${CMAKE_SYSTEM_NAME}")
|
set(OPERATING_SYSTEM "${CMAKE_SYSTEM_NAME}")
|
||||||
set(OS "\"${CMAKE_SYSTEM_NAME}\"")
|
set(OS "\"${CMAKE_SYSTEM_NAME}\"")
|
||||||
|
|
||||||
@@ -83,12 +74,35 @@ include_directories( ${CURL_SOURCE_DIR}/include )
|
|||||||
option(BUILD_CURL_EXE "Set to ON to build cURL executable." ON)
|
option(BUILD_CURL_EXE "Set to ON to build cURL executable." ON)
|
||||||
option(BUILD_CURL_TESTS "Set to ON to build cURL tests." ON)
|
option(BUILD_CURL_TESTS "Set to ON to build cURL tests." ON)
|
||||||
option(CURL_STATICLIB "Set to ON to build libcurl with static linking." OFF)
|
option(CURL_STATICLIB "Set to ON to build libcurl with static linking." OFF)
|
||||||
option(CURL_USE_ARES "Set to ON to enable c-ares support" OFF)
|
option(ENABLE_ARES "Set to ON to enable c-ares support" OFF)
|
||||||
|
option(ENABLE_THREADED_RESOLVER "Set to ON to enable POSIX threaded DNS lookup" OFF)
|
||||||
|
|
||||||
|
option(ENABLE_DEBUG "Set to ON to enable curl debug features" OFF)
|
||||||
|
option(ENABLE_CURLDEBUG "Set to ON to build with TrackMemory feature enabled" OFF)
|
||||||
|
|
||||||
|
if (ENABLE_DEBUG)
|
||||||
|
# DEBUGBUILD will be defined only for Debug builds
|
||||||
|
if(NOT CMAKE_VERSION VERSION_LESS 3.0)
|
||||||
|
set_property(DIRECTORY APPEND PROPERTY COMPILE_DEFINITIONS $<$<CONFIG:Debug>:DEBUGBUILD>)
|
||||||
|
else()
|
||||||
|
set_property(DIRECTORY APPEND PROPERTY COMPILE_DEFINITIONS_DEBUG DEBUGBUILD)
|
||||||
|
endif()
|
||||||
|
set(ENABLE_CURLDEBUG ON)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
if (ENABLE_CURLDEBUG)
|
||||||
|
set_property(DIRECTORY APPEND PROPERTY COMPILE_DEFINITIONS CURLDEBUG)
|
||||||
|
endif()
|
||||||
|
|
||||||
# initialize CURL_LIBS
|
# initialize CURL_LIBS
|
||||||
set(CURL_LIBS "")
|
set(CURL_LIBS "")
|
||||||
|
|
||||||
if(CURL_USE_ARES)
|
if(ENABLE_THREADED_RESOLVER AND ENABLE_ARES)
|
||||||
set(USE_ARES ${CURL_USE_ARES})
|
message(FATAL_ERROR "Options ENABLE_THREADED_RESOLVER and ENABLE_ARES are mutually exclusive")
|
||||||
|
endif()
|
||||||
|
|
||||||
|
if(ENABLE_ARES)
|
||||||
|
set(USE_ARES 1)
|
||||||
find_package(CARES REQUIRED)
|
find_package(CARES REQUIRED)
|
||||||
list(APPEND CURL_LIBS ${CARES_LIBRARY} )
|
list(APPEND CURL_LIBS ${CARES_LIBRARY} )
|
||||||
set(CURL_LIBS ${CURL_LIBS} ${CARES_LIBRARY})
|
set(CURL_LIBS ${CURL_LIBS} ${CARES_LIBRARY})
|
||||||
@@ -108,11 +122,6 @@ endif()
|
|||||||
option(CURL_HIDDEN_SYMBOLS "Set to ON to hide libcurl internal symbols (=hide all symbols that aren't officially external)." ON)
|
option(CURL_HIDDEN_SYMBOLS "Set to ON to hide libcurl internal symbols (=hide all symbols that aren't officially external)." ON)
|
||||||
mark_as_advanced(CURL_HIDDEN_SYMBOLS)
|
mark_as_advanced(CURL_HIDDEN_SYMBOLS)
|
||||||
|
|
||||||
# IF(WIN32)
|
|
||||||
# OPTION(CURL_WINDOWS_SSPI "Use windows libraries to allow NTLM authentication without openssl" ON)
|
|
||||||
# MARK_AS_ADVANCED(CURL_WINDOWS_SSPI)
|
|
||||||
# ENDIF()
|
|
||||||
|
|
||||||
option(HTTP_ONLY "disables all protocols except HTTP (This overrides all CURL_DISABLE_* options)" OFF)
|
option(HTTP_ONLY "disables all protocols except HTTP (This overrides all CURL_DISABLE_* options)" OFF)
|
||||||
mark_as_advanced(HTTP_ONLY)
|
mark_as_advanced(HTTP_ONLY)
|
||||||
option(CURL_DISABLE_FTP "disables FTP" OFF)
|
option(CURL_DISABLE_FTP "disables FTP" OFF)
|
||||||
@@ -133,6 +142,19 @@ mark_as_advanced(CURL_DISABLE_HTTP)
|
|||||||
option(CURL_DISABLE_LDAPS "to disable LDAPS" OFF)
|
option(CURL_DISABLE_LDAPS "to disable LDAPS" OFF)
|
||||||
mark_as_advanced(CURL_DISABLE_LDAPS)
|
mark_as_advanced(CURL_DISABLE_LDAPS)
|
||||||
|
|
||||||
|
option(CURL_DISABLE_RTSP "to disable RTSP" OFF)
|
||||||
|
mark_as_advanced(CURL_DISABLE_RTSP)
|
||||||
|
option(CURL_DISABLE_PROXY "to disable proxy" OFF)
|
||||||
|
mark_as_advanced(CURL_DISABLE_PROXY)
|
||||||
|
option(CURL_DISABLE_POP3 "to disable POP3" OFF)
|
||||||
|
mark_as_advanced(CURL_DISABLE_POP3)
|
||||||
|
option(CURL_DISABLE_IMAP "to disable IMAP" OFF)
|
||||||
|
mark_as_advanced(CURL_DISABLE_IMAP)
|
||||||
|
option(CURL_DISABLE_SMTP "to disable SMTP" OFF)
|
||||||
|
mark_as_advanced(CURL_DISABLE_SMTP)
|
||||||
|
option(CURL_DISABLE_GOPHER "to disable Gopher" OFF)
|
||||||
|
mark_as_advanced(CURL_DISABLE_GOPHER)
|
||||||
|
|
||||||
if(HTTP_ONLY)
|
if(HTTP_ONLY)
|
||||||
set(CURL_DISABLE_FTP ON)
|
set(CURL_DISABLE_FTP ON)
|
||||||
set(CURL_DISABLE_LDAP ON)
|
set(CURL_DISABLE_LDAP ON)
|
||||||
@@ -141,6 +163,11 @@ if(HTTP_ONLY)
|
|||||||
set(CURL_DISABLE_DICT ON)
|
set(CURL_DISABLE_DICT ON)
|
||||||
set(CURL_DISABLE_FILE ON)
|
set(CURL_DISABLE_FILE ON)
|
||||||
set(CURL_DISABLE_TFTP ON)
|
set(CURL_DISABLE_TFTP ON)
|
||||||
|
set(CURL_DISABLE_RTSP ON)
|
||||||
|
set(CURL_DISABLE_POP3 ON)
|
||||||
|
set(CURL_DISABLE_IMAP ON)
|
||||||
|
set(CURL_DISABLE_SMTP ON)
|
||||||
|
set(CURL_DISABLE_GOPHER ON)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
option(CURL_DISABLE_COOKIES "to disable cookies support" OFF)
|
option(CURL_DISABLE_COOKIES "to disable cookies support" OFF)
|
||||||
@@ -152,9 +179,52 @@ option(CURL_DISABLE_VERBOSE_STRINGS "to disable verbose strings" OFF)
|
|||||||
mark_as_advanced(CURL_DISABLE_VERBOSE_STRINGS)
|
mark_as_advanced(CURL_DISABLE_VERBOSE_STRINGS)
|
||||||
option(DISABLED_THREADSAFE "Set to explicitly specify we don't want to use thread-safe functions" OFF)
|
option(DISABLED_THREADSAFE "Set to explicitly specify we don't want to use thread-safe functions" OFF)
|
||||||
mark_as_advanced(DISABLED_THREADSAFE)
|
mark_as_advanced(DISABLED_THREADSAFE)
|
||||||
option(ENABLE_IPV6 "Define if you want to enable IPv6 support" OFF)
|
option(ENABLE_IPV6 "Define if you want to enable IPv6 support" ON)
|
||||||
mark_as_advanced(ENABLE_IPV6)
|
mark_as_advanced(ENABLE_IPV6)
|
||||||
|
if(ENABLE_IPV6 AND NOT WIN32)
|
||||||
|
include(CheckStructHasMember)
|
||||||
|
check_struct_has_member("struct sockaddr_in6" sin6_addr "netinet/in.h"
|
||||||
|
HAVE_SOCKADDR_IN6_SIN6_ADDR)
|
||||||
|
check_struct_has_member("struct sockaddr_in6" sin6_scope_id "netinet/in.h"
|
||||||
|
HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID)
|
||||||
|
if(NOT HAVE_SOCKADDR_IN6_SIN6_ADDR)
|
||||||
|
message(WARNING "struct sockaddr_in6 not available, disabling IPv6 support")
|
||||||
|
# Force the feature off as this name is used as guard macro...
|
||||||
|
set(ENABLE_IPV6 OFF
|
||||||
|
CACHE BOOL "Define if you want to enable IPv6 support" FORCE)
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
|
||||||
|
option(ENABLE_MANUAL "to provide the built-in manual" ON)
|
||||||
|
unset(USE_MANUAL CACHE) # TODO: cache NROFF/NROFF_MANOPT/USE_MANUAL vars?
|
||||||
|
if(ENABLE_MANUAL)
|
||||||
|
find_program(NROFF NAMES gnroff nroff)
|
||||||
|
if(NROFF)
|
||||||
|
# Need a way to write to stdin, this will do
|
||||||
|
file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/nroff-input.txt" "test")
|
||||||
|
# Tests for a valid nroff option to generate a manpage
|
||||||
|
foreach(_MANOPT "-man" "-mandoc")
|
||||||
|
execute_process(COMMAND "${NROFF}" ${_MANOPT}
|
||||||
|
OUTPUT_VARIABLE NROFF_MANOPT_OUTPUT
|
||||||
|
INPUT_FILE "${CMAKE_CURRENT_BINARY_DIR}/nroff-input.txt"
|
||||||
|
ERROR_QUIET)
|
||||||
|
# Save the option if it was valid
|
||||||
|
if(NROFF_MANOPT_OUTPUT)
|
||||||
|
message("Found *nroff option: -- ${_MANOPT}")
|
||||||
|
set(NROFF_MANOPT ${_MANOPT})
|
||||||
|
set(USE_MANUAL 1)
|
||||||
|
break()
|
||||||
|
endif()
|
||||||
|
endforeach()
|
||||||
|
# No need for the temporary file
|
||||||
|
file(REMOVE "${CMAKE_CURRENT_BINARY_DIR}/nroff-input.txt")
|
||||||
|
if(NOT USE_MANUAL)
|
||||||
|
message(WARNING "Found no *nroff option to get plaintext from man pages")
|
||||||
|
endif()
|
||||||
|
else()
|
||||||
|
message(WARNING "Found no *nroff program")
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
|
||||||
# We need ansi c-flags, especially on HP
|
# We need ansi c-flags, especially on HP
|
||||||
set(CMAKE_C_FLAGS "${CMAKE_ANSI_CFLAGS} ${CMAKE_C_FLAGS}")
|
set(CMAKE_C_FLAGS "${CMAKE_ANSI_CFLAGS} ${CMAKE_C_FLAGS}")
|
||||||
@@ -177,21 +247,26 @@ include (CheckIncludeFiles)
|
|||||||
include (CheckLibraryExists)
|
include (CheckLibraryExists)
|
||||||
include (CheckSymbolExists)
|
include (CheckSymbolExists)
|
||||||
include (CheckTypeSize)
|
include (CheckTypeSize)
|
||||||
|
include (CheckCSourceCompiles)
|
||||||
|
include (CMakeDependentOption)
|
||||||
|
|
||||||
# On windows preload settings
|
# On windows preload settings
|
||||||
if(WIN32)
|
if(WIN32)
|
||||||
|
set(CMAKE_REQUIRED_DEFINITIONS "${CMAKE_REQUIRED_DEFINITIONS} -D_WINSOCKAPI_")
|
||||||
include(${CMAKE_CURRENT_SOURCE_DIR}/CMake/Platforms/WindowsCache.cmake)
|
include(${CMAKE_CURRENT_SOURCE_DIR}/CMake/Platforms/WindowsCache.cmake)
|
||||||
endif(WIN32)
|
endif(WIN32)
|
||||||
|
|
||||||
# This macro checks if the symbol exists in the library and if it
|
if(ENABLE_THREADED_RESOLVER)
|
||||||
# does, it prepends library to the list.
|
check_include_file_concat("pthread.h" HAVE_PTHREAD_H)
|
||||||
macro(CHECK_LIBRARY_EXISTS_CONCAT LIBRARY SYMBOL VARIABLE)
|
if(HAVE_PTHREAD_H)
|
||||||
check_library_exists("${LIBRARY};${CURL_LIBS}" ${SYMBOL} "${CMAKE_LIBRARY_PATH}"
|
set(CMAKE_THREAD_PREFER_PTHREAD 1)
|
||||||
${VARIABLE})
|
find_package(Threads)
|
||||||
if(${VARIABLE})
|
if(CMAKE_USE_PTHREADS_INIT)
|
||||||
set(CURL_LIBS ${LIBRARY} ${CURL_LIBS})
|
set(CURL_LIBS ${CURL_LIBS} ${CMAKE_THREAD_LIBS_INIT})
|
||||||
endif(${VARIABLE})
|
set(USE_THREADS_POSIX 1)
|
||||||
endmacro(CHECK_LIBRARY_EXISTS_CONCAT)
|
endif()
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
|
||||||
# Check for all needed libraries
|
# Check for all needed libraries
|
||||||
check_library_exists_concat("dl" dlopen HAVE_LIBDL)
|
check_library_exists_concat("dl" dlopen HAVE_LIBDL)
|
||||||
@@ -209,101 +284,306 @@ if(NOT NOT_NEED_LIBNSL)
|
|||||||
check_library_exists_concat("nsl" gethostbyname HAVE_LIBNSL)
|
check_library_exists_concat("nsl" gethostbyname HAVE_LIBNSL)
|
||||||
endif(NOT NOT_NEED_LIBNSL)
|
endif(NOT NOT_NEED_LIBNSL)
|
||||||
|
|
||||||
check_library_exists_concat("ws2_32" getch HAVE_LIBWS2_32)
|
check_function_exists(gethostname HAVE_GETHOSTNAME)
|
||||||
check_library_exists_concat("winmm" getch HAVE_LIBWINMM)
|
|
||||||
check_library_exists("wldap32" cldap_open "" HAVE_WLDAP32)
|
|
||||||
|
|
||||||
|
set(OPENSSL_DEFAULT ON)
|
||||||
if(WIN32)
|
if(WIN32)
|
||||||
set(CURL_DEFAULT_DISABLE_LDAP OFF)
|
set(OPENSSL_DEFAULT OFF)
|
||||||
# some windows compilers do not have wldap32
|
check_library_exists_concat("ws2_32" getch HAVE_LIBWS2_32)
|
||||||
if(NOT HAVE_WLDAP32)
|
check_library_exists_concat("winmm" getch HAVE_LIBWINMM)
|
||||||
set(CURL_DISABLE_LDAP ON CACHE BOOL "" FORCE)
|
|
||||||
message(STATUS "wldap32 not found CURL_DISABLE_LDAP set ON")
|
|
||||||
option(CURL_LDAP_WIN "Use Windows LDAP implementation" OFF)
|
|
||||||
else()
|
|
||||||
option(CURL_LDAP_WIN "Use Windows LDAP implementation" ON)
|
|
||||||
endif()
|
|
||||||
mark_as_advanced(CURL_LDAP_WIN)
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
option(CMAKE_USE_OPENSSL "Use OpenSSL code. Experimental" ${OPENSSL_DEFAULT})
|
||||||
|
mark_as_advanced(CMAKE_USE_OPENSSL)
|
||||||
|
|
||||||
# IF(NOT CURL_SPECIAL_LIBZ)
|
if(WIN32)
|
||||||
# CHECK_LIBRARY_EXISTS_CONCAT("z" inflateEnd HAVE_LIBZ)
|
CMAKE_DEPENDENT_OPTION(CURL_WINDOWS_SSPI "Use windows libraries to allow NTLM authentication without openssl" ON
|
||||||
# ENDIF(NOT CURL_SPECIAL_LIBZ)
|
"NOT CMAKE_USE_OPENSSL" OFF)
|
||||||
|
mark_as_advanced(CURL_WINDOWS_SSPI)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
set(USE_OPENSSL OFF)
|
||||||
|
set(HAVE_LIBCRYPTO OFF)
|
||||||
|
set(HAVE_LIBSSL OFF)
|
||||||
|
|
||||||
|
if(CMAKE_USE_OPENSSL)
|
||||||
|
find_package(OpenSSL)
|
||||||
|
if(OPENSSL_FOUND)
|
||||||
|
list(APPEND CURL_LIBS ${OPENSSL_LIBRARIES})
|
||||||
|
set(USE_OPENSSL ON)
|
||||||
|
set(HAVE_LIBCRYPTO ON)
|
||||||
|
set(HAVE_LIBSSL ON)
|
||||||
|
include_directories(${OPENSSL_INCLUDE_DIR})
|
||||||
|
set(CMAKE_REQUIRED_INCLUDES ${OPENSSL_INCLUDE_DIR})
|
||||||
|
check_include_file("openssl/crypto.h" HAVE_OPENSSL_CRYPTO_H)
|
||||||
|
check_include_file("openssl/engine.h" HAVE_OPENSSL_ENGINE_H)
|
||||||
|
check_include_file("openssl/err.h" HAVE_OPENSSL_ERR_H)
|
||||||
|
check_include_file("openssl/pem.h" HAVE_OPENSSL_PEM_H)
|
||||||
|
check_include_file("openssl/pkcs12.h" HAVE_OPENSSL_PKCS12_H)
|
||||||
|
check_include_file("openssl/rsa.h" HAVE_OPENSSL_RSA_H)
|
||||||
|
check_include_file("openssl/ssl.h" HAVE_OPENSSL_SSL_H)
|
||||||
|
check_include_file("openssl/x509.h" HAVE_OPENSSL_X509_H)
|
||||||
|
check_include_file("openssl/rand.h" HAVE_OPENSSL_RAND_H)
|
||||||
|
elseif(WIN32)
|
||||||
|
set(CURL_WINDOWS_SSPI ON)
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
|
||||||
|
if(NOT CURL_DISABLE_LDAP)
|
||||||
|
|
||||||
|
if(WIN32)
|
||||||
|
option(USE_WIN32_LDAP "Use Windows LDAP implementation" ON)
|
||||||
|
if(USE_WIN32_LDAP)
|
||||||
|
check_library_exists("wldap32" cldap_open "" HAVE_WLDAP32)
|
||||||
|
if(NOT HAVE_WLDAP32)
|
||||||
|
set(USE_WIN32_LDAP OFF)
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
|
||||||
|
option(CMAKE_USE_OPENLDAP "Use OpenLDAP code." OFF)
|
||||||
|
mark_as_advanced(CMAKE_USE_OPENLDAP)
|
||||||
|
set(CMAKE_LDAP_LIB "ldap" CACHE STRING "Name or full path to ldap library")
|
||||||
|
set(CMAKE_LBER_LIB "lber" CACHE STRING "Name or full path to lber library")
|
||||||
|
|
||||||
|
if(CMAKE_USE_OPENLDAP AND USE_WIN32_LDAP)
|
||||||
|
message(FATAL_ERROR "Cannot use USE_WIN32_LDAP and CMAKE_USE_OPENLDAP at the same time")
|
||||||
|
endif()
|
||||||
|
|
||||||
|
# Now that we know, we're not using windows LDAP...
|
||||||
|
if(NOT USE_WIN32_LDAP)
|
||||||
|
# Check for LDAP
|
||||||
|
set(CMAKE_REQUIRED_LIBRARIES ${OPENSSL_LIBRARIES})
|
||||||
|
check_library_exists_concat(${CMAKE_LDAP_LIB} ldap_init HAVE_LIBLDAP)
|
||||||
|
check_library_exists_concat(${CMAKE_LBER_LIB} ber_init HAVE_LIBLBER)
|
||||||
|
else()
|
||||||
|
check_include_file_concat("winldap.h" HAVE_WINLDAP_H)
|
||||||
|
check_include_file_concat("winber.h" HAVE_WINBER_H)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
set(CMAKE_REQUIRED_INCLUDES_BAK ${CMAKE_REQUIRED_INCLUDES})
|
||||||
|
set(CMAKE_LDAP_INCLUDE_DIR "" CACHE STRING "Path to LDAP include directory")
|
||||||
|
if(CMAKE_LDAP_INCLUDE_DIR)
|
||||||
|
list(APPEND CMAKE_REQUIRED_INCLUDES ${CMAKE_LDAP_INCLUDE_DIR})
|
||||||
|
endif()
|
||||||
|
check_include_file_concat("ldap.h" HAVE_LDAP_H)
|
||||||
|
check_include_file_concat("lber.h" HAVE_LBER_H)
|
||||||
|
|
||||||
|
if(NOT HAVE_LDAP_H)
|
||||||
|
message(STATUS "LDAP_H not found CURL_DISABLE_LDAP set ON")
|
||||||
|
set(CURL_DISABLE_LDAP ON CACHE BOOL "" FORCE)
|
||||||
|
set(CMAKE_REQUIRED_INCLUDES ${CMAKE_REQUIRED_INCLUDES_BAK}) #LDAP includes won't be used
|
||||||
|
elseif(NOT HAVE_LIBLDAP)
|
||||||
|
message(STATUS "LDAP library '${CMAKE_LDAP_LIB}' not found CURL_DISABLE_LDAP set ON")
|
||||||
|
set(CURL_DISABLE_LDAP ON CACHE BOOL "" FORCE)
|
||||||
|
set(CMAKE_REQUIRED_INCLUDES ${CMAKE_REQUIRED_INCLUDES_BAK}) #LDAP includes won't be used
|
||||||
|
else()
|
||||||
|
if(CMAKE_USE_OPENLDAP)
|
||||||
|
set(USE_OPENLDAP ON)
|
||||||
|
endif()
|
||||||
|
if(CMAKE_LDAP_INCLUDE_DIR)
|
||||||
|
include_directories(${CMAKE_LDAP_INCLUDE_DIR})
|
||||||
|
endif()
|
||||||
|
set(NEED_LBER_H ON)
|
||||||
|
set(_HEADER_LIST)
|
||||||
|
if(HAVE_WINDOWS_H)
|
||||||
|
list(APPEND _HEADER_LIST "windows.h")
|
||||||
|
endif()
|
||||||
|
if(HAVE_SYS_TYPES_H)
|
||||||
|
list(APPEND _HEADER_LIST "sys/types.h")
|
||||||
|
endif()
|
||||||
|
list(APPEND _HEADER_LIST "ldap.h")
|
||||||
|
|
||||||
|
set(_SRC_STRING "")
|
||||||
|
foreach(_HEADER ${_HEADER_LIST})
|
||||||
|
set(_INCLUDE_STRING "${_INCLUDE_STRING}#include <${_HEADER}>\n")
|
||||||
|
endforeach()
|
||||||
|
|
||||||
|
set(_SRC_STRING
|
||||||
|
"
|
||||||
|
${_INCLUDE_STRING}
|
||||||
|
int main(int argc, char ** argv)
|
||||||
|
{
|
||||||
|
BerValue *bvp = NULL;
|
||||||
|
BerElement *bep = ber_init(bvp);
|
||||||
|
ber_free(bep, 1);
|
||||||
|
return 0;
|
||||||
|
}"
|
||||||
|
)
|
||||||
|
set(CMAKE_REQUIRED_DEFINITIONS "${CMAKE_REQUIRED_DEFINITIONS} -DLDAP_DEPRECATED=1")
|
||||||
|
list(APPEND CMAKE_REQUIRED_LIBRARIES ${CMAKE_LDAP_LIB})
|
||||||
|
if(HAVE_LIBLBER)
|
||||||
|
list(APPEND CMAKE_REQUIRED_LIBRARIES ${CMAKE_LBER_LIB})
|
||||||
|
endif()
|
||||||
|
check_c_source_compiles("${_SRC_STRING}" NOT_NEED_LBER_H)
|
||||||
|
|
||||||
|
if(NOT_NEED_LBER_H)
|
||||||
|
set(NEED_LBER_H OFF)
|
||||||
|
else()
|
||||||
|
set(CURL_TEST_DEFINES "${CURL_TEST_DEFINES} -DNEED_LBER_H")
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
|
||||||
|
endif()
|
||||||
|
|
||||||
|
# No ldap, no ldaps.
|
||||||
|
if(CURL_DISABLE_LDAP)
|
||||||
|
if(NOT CURL_DISABLE_LDAPS)
|
||||||
|
message(STATUS "LDAP needs to be enabled to support LDAPS")
|
||||||
|
set(CURL_DISABLE_LDAPS ON CACHE BOOL "" FORCE)
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
|
||||||
|
if(NOT CURL_DISABLE_LDAPS)
|
||||||
|
check_include_file_concat("ldap_ssl.h" HAVE_LDAP_SSL_H)
|
||||||
|
check_include_file_concat("ldapssl.h" HAVE_LDAPSSL_H)
|
||||||
|
endif()
|
||||||
|
|
||||||
# Check for idn
|
# Check for idn
|
||||||
check_library_exists_concat("idn" idna_to_ascii_lz HAVE_LIBIDN)
|
check_library_exists_concat("idn" idna_to_ascii_lz HAVE_LIBIDN)
|
||||||
|
|
||||||
# Check for LDAP
|
|
||||||
check_library_exists_concat("ldap" ldap_init HAVE_LIBLDAP)
|
|
||||||
# if(NOT HAVE_LIBLDAP)
|
|
||||||
# SET(CURL_DISABLE_LDAP ON)
|
|
||||||
# endif(NOT HAVE_LIBLDAP)
|
|
||||||
|
|
||||||
# Check for symbol dlopen (same as HAVE_LIBDL)
|
# Check for symbol dlopen (same as HAVE_LIBDL)
|
||||||
check_library_exists("${CURL_LIBS}" dlopen "" HAVE_DLOPEN)
|
check_library_exists("${CURL_LIBS}" dlopen "" HAVE_DLOPEN)
|
||||||
|
|
||||||
# For other tests to use the same libraries
|
|
||||||
set(CMAKE_REQUIRED_LIBRARIES ${CURL_LIBS})
|
|
||||||
|
|
||||||
option(CURL_ZLIB "Set to ON to enable building cURL with zlib support." ON)
|
option(CURL_ZLIB "Set to ON to enable building cURL with zlib support." ON)
|
||||||
set(HAVE_LIBZ OFF)
|
set(HAVE_LIBZ OFF)
|
||||||
set(HAVE_ZLIB_H OFF)
|
set(HAVE_ZLIB_H OFF)
|
||||||
set(HAVE_ZLIB OFF)
|
set(HAVE_ZLIB OFF)
|
||||||
if(CURL_ZLIB) # AND CURL_CONFIG_HAS_BEEN_RUN_BEFORE
|
if(CURL_ZLIB)
|
||||||
find_package(ZLIB QUIET)
|
find_package(ZLIB QUIET)
|
||||||
if(ZLIB_FOUND)
|
if(ZLIB_FOUND)
|
||||||
set(HAVE_ZLIB_H ON)
|
set(HAVE_ZLIB_H ON)
|
||||||
set(HAVE_ZLIB ON)
|
set(HAVE_ZLIB ON)
|
||||||
set(HAVE_LIBZ ON)
|
set(HAVE_LIBZ ON)
|
||||||
list(APPEND CURL_LIBS ${ZLIB_LIBRARIES})
|
list(APPEND CURL_LIBS ${ZLIB_LIBRARIES})
|
||||||
|
include_directories(${ZLIB_INCLUDE_DIRS})
|
||||||
|
list(APPEND CMAKE_REQUIRED_INCLUDES ${ZLIB_INCLUDE_DIRS})
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
option(CMAKE_USE_OPENSSL "Use OpenSSL code. Experimental" ON)
|
#libSSH2
|
||||||
mark_as_advanced(CMAKE_USE_OPENSSL)
|
option(CMAKE_USE_LIBSSH2 "Use libSSH2" ON)
|
||||||
if(CMAKE_USE_OPENSSL)
|
mark_as_advanced(CMAKE_USE_LIBSSH2)
|
||||||
|
set(USE_LIBSSH2 OFF)
|
||||||
|
set(HAVE_LIBSSH2 OFF)
|
||||||
|
set(HAVE_LIBSSH2_H OFF)
|
||||||
|
|
||||||
set(USE_SSLEAY OFF)
|
if(CMAKE_USE_LIBSSH2)
|
||||||
set(USE_OPENSSL OFF)
|
find_package(LibSSH2)
|
||||||
set(HAVE_LIBCRYPTO OFF)
|
if(LIBSSH2_FOUND)
|
||||||
set(HAVE_LIBSSL OFF)
|
list(APPEND CURL_LIBS ${LIBSSH2_LIBRARY})
|
||||||
|
set(CMAKE_REQUIRED_LIBRARIES ${LIBSSH2_LIBRARY})
|
||||||
|
list(APPEND CMAKE_REQUIRED_INCLUDES "${LIBSSH2_INCLUDE_DIR}")
|
||||||
|
include_directories("${LIBSSH2_INCLUDE_DIR}")
|
||||||
|
set(HAVE_LIBSSH2 ON)
|
||||||
|
set(USE_LIBSSH2 ON)
|
||||||
|
|
||||||
find_package(OpenSSL)
|
# find_package has already found the headers
|
||||||
if(OPENSSL_FOUND)
|
set(HAVE_LIBSSH2_H ON)
|
||||||
list(APPEND CURL_LIBS ${OPENSSL_LIBRARIES})
|
set(CURL_INCLUDES ${CURL_INCLUDES} "${LIBSSH2_INCLUDE_DIR}/libssh2.h")
|
||||||
list(APPEND CMAKE_REQUIRED_INCLUDES ${OPENSSL_INCLUDE_DIR})
|
set(CURL_TEST_DEFINES "${CURL_TEST_DEFINES} -DHAVE_LIBSSH2_H")
|
||||||
set(USE_SSLEAY ON)
|
|
||||||
set(USE_OPENSSL ON)
|
|
||||||
set(HAVE_LIBCRYPTO ON)
|
|
||||||
set(HAVE_LIBSSL ON)
|
|
||||||
endif(OPENSSL_FOUND)
|
|
||||||
endif(CMAKE_USE_OPENSSL)
|
|
||||||
|
|
||||||
# If we have features.h, then do the _BSD_SOURCE magic
|
# now check for specific libssh2 symbols as they were added in different versions
|
||||||
check_include_file("features.h" HAVE_FEATURES_H)
|
set(CMAKE_EXTRA_INCLUDE_FILES "libssh2.h")
|
||||||
|
check_function_exists(libssh2_version HAVE_LIBSSH2_VERSION)
|
||||||
|
check_function_exists(libssh2_init HAVE_LIBSSH2_INIT)
|
||||||
|
check_function_exists(libssh2_exit HAVE_LIBSSH2_EXIT)
|
||||||
|
check_function_exists(libssh2_scp_send64 HAVE_LIBSSH2_SCP_SEND64)
|
||||||
|
check_function_exists(libssh2_session_handshake HAVE_LIBSSH2_SESSION_HANDSHAKE)
|
||||||
|
set(CMAKE_EXTRA_INCLUDE_FILES "")
|
||||||
|
|
||||||
# Check if header file exists and add it to the list.
|
endif(LIBSSH2_FOUND)
|
||||||
macro(CHECK_INCLUDE_FILE_CONCAT FILE VARIABLE)
|
endif(CMAKE_USE_LIBSSH2)
|
||||||
check_include_files("${CURL_INCLUDES};${FILE}" ${VARIABLE})
|
|
||||||
if(${VARIABLE})
|
option(CMAKE_USE_GSSAPI "Use GSSAPI implementation (right now only Heimdal is supported with CMake build)" OFF)
|
||||||
set(CURL_INCLUDES ${CURL_INCLUDES} ${FILE})
|
mark_as_advanced(CMAKE_USE_GSSAPI)
|
||||||
set(CURL_TEST_DEFINES "${CURL_TEST_DEFINES} -D${VARIABLE}")
|
|
||||||
endif(${VARIABLE})
|
if(CMAKE_USE_GSSAPI)
|
||||||
endmacro(CHECK_INCLUDE_FILE_CONCAT)
|
find_package(GSS)
|
||||||
|
|
||||||
|
set(HAVE_GSSAPI ${GSS_FOUND})
|
||||||
|
if(GSS_FOUND)
|
||||||
|
|
||||||
|
message(STATUS "Found ${GSS_FLAVOUR} GSSAPI version: \"${GSS_VERSION}\"")
|
||||||
|
|
||||||
|
list(APPEND CMAKE_REQUIRED_INCLUDES ${GSS_INCLUDE_DIRECTORIES})
|
||||||
|
check_include_file_concat("gssapi/gssapi.h" HAVE_GSSAPI_GSSAPI_H)
|
||||||
|
check_include_file_concat("gssapi/gssapi_generic.h" HAVE_GSSAPI_GSSAPI_GENERIC_H)
|
||||||
|
check_include_file_concat("gssapi/gssapi_krb5.h" HAVE_GSSAPI_GSSAPI_KRB5_H)
|
||||||
|
|
||||||
|
if(GSS_FLAVOUR STREQUAL "Heimdal")
|
||||||
|
set(HAVE_GSSHEIMDAL ON)
|
||||||
|
else() # MIT
|
||||||
|
set(HAVE_GSSMIT ON)
|
||||||
|
set(_INCLUDE_LIST "")
|
||||||
|
if(HAVE_GSSAPI_GSSAPI_H)
|
||||||
|
list(APPEND _INCLUDE_LIST "gssapi/gssapi.h")
|
||||||
|
endif()
|
||||||
|
if(HAVE_GSSAPI_GSSAPI_GENERIC_H)
|
||||||
|
list(APPEND _INCLUDE_LIST "gssapi/gssapi_generic.h")
|
||||||
|
endif()
|
||||||
|
if(HAVE_GSSAPI_GSSAPI_KRB5_H)
|
||||||
|
list(APPEND _INCLUDE_LIST "gssapi/gssapi_krb5.h")
|
||||||
|
endif()
|
||||||
|
|
||||||
|
string(REPLACE ";" " " _COMPILER_FLAGS_STR "${GSS_COMPILER_FLAGS}")
|
||||||
|
string(REPLACE ";" " " _LINKER_FLAGS_STR "${GSS_LINKER_FLAGS}")
|
||||||
|
|
||||||
|
foreach(_dir ${GSS_LINK_DIRECTORIES})
|
||||||
|
set(_LINKER_FLAGS_STR "${_LINKER_FLAGS_STR} -L\"${_dir}\"")
|
||||||
|
endforeach()
|
||||||
|
|
||||||
|
set(CMAKE_REQUIRED_FLAGS "${_COMPILER_FLAGS_STR} ${_LINKER_FLAGS_STR}")
|
||||||
|
set(CMAKE_REQUIRED_LIBRARIES ${GSS_LIBRARIES})
|
||||||
|
check_symbol_exists("GSS_C_NT_HOSTBASED_SERVICE" ${_INCLUDE_LIST} HAVE_GSS_C_NT_HOSTBASED_SERVICE)
|
||||||
|
if(NOT HAVE_GSS_C_NT_HOSTBASED_SERVICE)
|
||||||
|
set(HAVE_OLD_GSSMIT ON)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
endif()
|
||||||
|
|
||||||
|
include_directories(${GSS_INCLUDE_DIRECTORIES})
|
||||||
|
link_directories(${GSS_LINK_DIRECTORIES})
|
||||||
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${GSS_COMPILER_FLAGS}")
|
||||||
|
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} ${GSS_LINKER_FLAGS}")
|
||||||
|
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${GSS_LINKER_FLAGS}")
|
||||||
|
list(APPEND CURL_LIBS ${GSS_LIBRARIES})
|
||||||
|
|
||||||
|
else()
|
||||||
|
message(WARNING "GSSAPI support has been requested but no supporting libraries found. Skipping.")
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
|
||||||
|
option(ENABLE_UNIX_SOCKETS "Define if you want Unix domain sockets support" ON)
|
||||||
|
if(ENABLE_UNIX_SOCKETS)
|
||||||
|
include(CheckStructHasMember)
|
||||||
|
check_struct_has_member("struct sockaddr_un" sun_path "sys/un.h" USE_UNIX_SOCKETS)
|
||||||
|
else()
|
||||||
|
unset(USE_UNIX_SOCKETS CACHE)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
|
||||||
# Check for header files
|
# Check for header files
|
||||||
if(NOT UNIX)
|
|
||||||
check_include_file_concat("ws2tcpip.h" HAVE_WS2TCPIP_H)
|
|
||||||
check_include_file_concat("winsock2.h" HAVE_WINSOCK2_H)
|
|
||||||
endif(NOT UNIX)
|
|
||||||
check_include_file_concat("stdio.h" HAVE_STDIO_H)
|
|
||||||
if(NOT UNIX)
|
if(NOT UNIX)
|
||||||
check_include_file_concat("windows.h" HAVE_WINDOWS_H)
|
check_include_file_concat("windows.h" HAVE_WINDOWS_H)
|
||||||
check_include_file_concat("winsock.h" HAVE_WINSOCK_H)
|
check_include_file_concat("winsock.h" HAVE_WINSOCK_H)
|
||||||
|
check_include_file_concat("ws2tcpip.h" HAVE_WS2TCPIP_H)
|
||||||
|
check_include_file_concat("winsock2.h" HAVE_WINSOCK2_H)
|
||||||
|
if(CURL_WINDOWS_SSPI)
|
||||||
|
set(CMAKE_REQUIRED_DEFINITIONS "${CMAKE_REQUIRED_DEFINITIONS} -DSECURITY_WIN32")
|
||||||
|
check_include_file_concat("sspi.h" HAVE_SSPI_H)
|
||||||
|
if(HAVE_SSPI_H)
|
||||||
|
check_include_file_concat("schannel.h" HAVE_SCHANNEL_H)
|
||||||
|
set(USE_WINDOWS_SSPI ON)
|
||||||
|
if(HAVE_SCHANNEL_H)
|
||||||
|
set(USE_SCHANNEL ON)
|
||||||
|
set(SSL_ENABLED ON)
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
endif(NOT UNIX)
|
endif(NOT UNIX)
|
||||||
|
|
||||||
|
check_include_file_concat("stdio.h" HAVE_STDIO_H)
|
||||||
check_include_file_concat("inttypes.h" HAVE_INTTYPES_H)
|
check_include_file_concat("inttypes.h" HAVE_INTTYPES_H)
|
||||||
check_include_file_concat("sys/filio.h" HAVE_SYS_FILIO_H)
|
check_include_file_concat("sys/filio.h" HAVE_SYS_FILIO_H)
|
||||||
check_include_file_concat("sys/ioctl.h" HAVE_SYS_IOCTL_H)
|
check_include_file_concat("sys/ioctl.h" HAVE_SYS_IOCTL_H)
|
||||||
@@ -328,32 +608,18 @@ check_include_file_concat("des.h" HAVE_DES_H)
|
|||||||
check_include_file_concat("err.h" HAVE_ERR_H)
|
check_include_file_concat("err.h" HAVE_ERR_H)
|
||||||
check_include_file_concat("errno.h" HAVE_ERRNO_H)
|
check_include_file_concat("errno.h" HAVE_ERRNO_H)
|
||||||
check_include_file_concat("fcntl.h" HAVE_FCNTL_H)
|
check_include_file_concat("fcntl.h" HAVE_FCNTL_H)
|
||||||
check_include_file_concat("gssapi/gssapi.h" HAVE_GSSAPI_GSSAPI_H)
|
|
||||||
check_include_file_concat("gssapi/gssapi_generic.h" HAVE_GSSAPI_GSSAPI_GENERIC_H)
|
|
||||||
check_include_file_concat("gssapi/gssapi_krb5.h" HAVE_GSSAPI_GSSAPI_KRB5_H)
|
|
||||||
check_include_file_concat("idn-free.h" HAVE_IDN_FREE_H)
|
check_include_file_concat("idn-free.h" HAVE_IDN_FREE_H)
|
||||||
check_include_file_concat("ifaddrs.h" HAVE_IFADDRS_H)
|
check_include_file_concat("ifaddrs.h" HAVE_IFADDRS_H)
|
||||||
check_include_file_concat("io.h" HAVE_IO_H)
|
check_include_file_concat("io.h" HAVE_IO_H)
|
||||||
check_include_file_concat("krb.h" HAVE_KRB_H)
|
check_include_file_concat("krb.h" HAVE_KRB_H)
|
||||||
check_include_file_concat("libgen.h" HAVE_LIBGEN_H)
|
check_include_file_concat("libgen.h" HAVE_LIBGEN_H)
|
||||||
check_include_file_concat("libssh2.h" HAVE_LIBSSH2_H)
|
|
||||||
check_include_file_concat("limits.h" HAVE_LIMITS_H)
|
check_include_file_concat("limits.h" HAVE_LIMITS_H)
|
||||||
check_include_file_concat("locale.h" HAVE_LOCALE_H)
|
check_include_file_concat("locale.h" HAVE_LOCALE_H)
|
||||||
check_include_file_concat("net/if.h" HAVE_NET_IF_H)
|
check_include_file_concat("net/if.h" HAVE_NET_IF_H)
|
||||||
check_include_file_concat("netdb.h" HAVE_NETDB_H)
|
check_include_file_concat("netdb.h" HAVE_NETDB_H)
|
||||||
check_include_file_concat("netinet/in.h" HAVE_NETINET_IN_H)
|
check_include_file_concat("netinet/in.h" HAVE_NETINET_IN_H)
|
||||||
check_include_file_concat("netinet/tcp.h" HAVE_NETINET_TCP_H)
|
check_include_file_concat("netinet/tcp.h" HAVE_NETINET_TCP_H)
|
||||||
if(CMAKE_USE_OPENSSL AND OPENSSL_FOUND)
|
|
||||||
check_include_file_concat("openssl/crypto.h" HAVE_OPENSSL_CRYPTO_H)
|
|
||||||
check_include_file_concat("openssl/engine.h" HAVE_OPENSSL_ENGINE_H)
|
|
||||||
check_include_file_concat("openssl/err.h" HAVE_OPENSSL_ERR_H)
|
|
||||||
check_include_file_concat("openssl/pem.h" HAVE_OPENSSL_PEM_H)
|
|
||||||
check_include_file_concat("openssl/pkcs12.h" HAVE_OPENSSL_PKCS12_H)
|
|
||||||
check_include_file_concat("openssl/rsa.h" HAVE_OPENSSL_RSA_H)
|
|
||||||
check_include_file_concat("openssl/ssl.h" HAVE_OPENSSL_SSL_H)
|
|
||||||
check_include_file_concat("openssl/x509.h" HAVE_OPENSSL_X509_H)
|
|
||||||
check_include_file_concat("openssl/rand.h" HAVE_OPENSSL_RAND_H)
|
|
||||||
endif(CMAKE_USE_OPENSSL AND OPENSSL_FOUND)
|
|
||||||
check_include_file_concat("pem.h" HAVE_PEM_H)
|
check_include_file_concat("pem.h" HAVE_PEM_H)
|
||||||
check_include_file_concat("poll.h" HAVE_POLL_H)
|
check_include_file_concat("poll.h" HAVE_POLL_H)
|
||||||
check_include_file_concat("pwd.h" HAVE_PWD_H)
|
check_include_file_concat("pwd.h" HAVE_PWD_H)
|
||||||
@@ -382,25 +648,13 @@ check_include_file_concat("stddef.h" HAVE_STDDEF_H)
|
|||||||
check_include_file_concat("dlfcn.h" HAVE_DLFCN_H)
|
check_include_file_concat("dlfcn.h" HAVE_DLFCN_H)
|
||||||
check_include_file_concat("malloc.h" HAVE_MALLOC_H)
|
check_include_file_concat("malloc.h" HAVE_MALLOC_H)
|
||||||
check_include_file_concat("memory.h" HAVE_MEMORY_H)
|
check_include_file_concat("memory.h" HAVE_MEMORY_H)
|
||||||
check_include_file_concat("ldap.h" HAVE_LDAP_H)
|
|
||||||
check_include_file_concat("netinet/if_ether.h" HAVE_NETINET_IF_ETHER_H)
|
check_include_file_concat("netinet/if_ether.h" HAVE_NETINET_IF_ETHER_H)
|
||||||
check_include_file_concat("stdint.h" HAVE_STDINT_H)
|
check_include_file_concat("stdint.h" HAVE_STDINT_H)
|
||||||
check_include_file_concat("sockio.h" HAVE_SOCKIO_H)
|
check_include_file_concat("sockio.h" HAVE_SOCKIO_H)
|
||||||
check_include_file_concat("sys/utsname.h" HAVE_SYS_UTSNAME_H)
|
check_include_file_concat("sys/utsname.h" HAVE_SYS_UTSNAME_H)
|
||||||
check_include_file_concat("idna.h" HAVE_IDNA_H)
|
check_include_file_concat("idna.h" HAVE_IDNA_H)
|
||||||
|
|
||||||
if(NOT HAVE_LDAP_H)
|
|
||||||
message(STATUS "LDAP_H not found CURL_DISABLE_LDAP set ON")
|
|
||||||
set(CURL_DISABLE_LDAP ON CACHE BOOL "" FORCE)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
# No ldap, no ldaps.
|
|
||||||
if(CURL_DISABLE_LDAP)
|
|
||||||
if(NOT CURL_DISABLE_LDAPS)
|
|
||||||
message(STATUS "LDAP needs to be enabled to support LDAPS")
|
|
||||||
set(CURL_DISABLE_LDAPS ON CACHE BOOL "" FORCE)
|
|
||||||
endif()
|
|
||||||
endif()
|
|
||||||
|
|
||||||
check_type_size(size_t SIZEOF_SIZE_T)
|
check_type_size(size_t SIZEOF_SIZE_T)
|
||||||
check_type_size(ssize_t SIZEOF_SSIZE_T)
|
check_type_size(ssize_t SIZEOF_SSIZE_T)
|
||||||
@@ -473,6 +727,12 @@ find_file(RANDOM_FILE urandom /dev)
|
|||||||
mark_as_advanced(RANDOM_FILE)
|
mark_as_advanced(RANDOM_FILE)
|
||||||
|
|
||||||
# Check for some functions that are used
|
# Check for some functions that are used
|
||||||
|
if(HAVE_LIBWS2_32)
|
||||||
|
set(CMAKE_REQUIRED_LIBRARIES ws2_32)
|
||||||
|
elseif(HAVE_LIBSOCKET)
|
||||||
|
set(CMAKE_REQUIRED_LIBRARIES socket)
|
||||||
|
endif()
|
||||||
|
|
||||||
check_symbol_exists(basename "${CURL_INCLUDES}" HAVE_BASENAME)
|
check_symbol_exists(basename "${CURL_INCLUDES}" HAVE_BASENAME)
|
||||||
check_symbol_exists(socket "${CURL_INCLUDES}" HAVE_SOCKET)
|
check_symbol_exists(socket "${CURL_INCLUDES}" HAVE_SOCKET)
|
||||||
check_symbol_exists(poll "${CURL_INCLUDES}" HAVE_POLL)
|
check_symbol_exists(poll "${CURL_INCLUDES}" HAVE_POLL)
|
||||||
@@ -515,7 +775,6 @@ if(CMAKE_USE_OPENSSL)
|
|||||||
HAVE_CRYPTO_CLEANUP_ALL_EX_DATA)
|
HAVE_CRYPTO_CLEANUP_ALL_EX_DATA)
|
||||||
if(HAVE_LIBCRYPTO AND HAVE_LIBSSL)
|
if(HAVE_LIBCRYPTO AND HAVE_LIBSSL)
|
||||||
set(USE_OPENSSL 1)
|
set(USE_OPENSSL 1)
|
||||||
set(USE_SSLEAY 1)
|
|
||||||
endif(HAVE_LIBCRYPTO AND HAVE_LIBSSL)
|
endif(HAVE_LIBCRYPTO AND HAVE_LIBSSL)
|
||||||
endif(CMAKE_USE_OPENSSL)
|
endif(CMAKE_USE_OPENSSL)
|
||||||
check_symbol_exists(gmtime_r "${CURL_INCLUDES}" HAVE_GMTIME_R)
|
check_symbol_exists(gmtime_r "${CURL_INCLUDES}" HAVE_GMTIME_R)
|
||||||
@@ -536,6 +795,7 @@ check_symbol_exists(strerror_r "${CURL_INCLUDES}" HAVE_STRERROR_R)
|
|||||||
check_symbol_exists(siginterrupt "${CURL_INCLUDES}" HAVE_SIGINTERRUPT)
|
check_symbol_exists(siginterrupt "${CURL_INCLUDES}" HAVE_SIGINTERRUPT)
|
||||||
check_symbol_exists(perror "${CURL_INCLUDES}" HAVE_PERROR)
|
check_symbol_exists(perror "${CURL_INCLUDES}" HAVE_PERROR)
|
||||||
check_symbol_exists(fork "${CURL_INCLUDES}" HAVE_FORK)
|
check_symbol_exists(fork "${CURL_INCLUDES}" HAVE_FORK)
|
||||||
|
check_symbol_exists(getaddrinfo "${CURL_INCLUDES}" HAVE_GETADDRINFO)
|
||||||
check_symbol_exists(freeaddrinfo "${CURL_INCLUDES}" HAVE_FREEADDRINFO)
|
check_symbol_exists(freeaddrinfo "${CURL_INCLUDES}" HAVE_FREEADDRINFO)
|
||||||
check_symbol_exists(freeifaddrs "${CURL_INCLUDES}" HAVE_FREEIFADDRS)
|
check_symbol_exists(freeifaddrs "${CURL_INCLUDES}" HAVE_FREEIFADDRS)
|
||||||
check_symbol_exists(pipe "${CURL_INCLUDES}" HAVE_PIPE)
|
check_symbol_exists(pipe "${CURL_INCLUDES}" HAVE_PIPE)
|
||||||
@@ -574,75 +834,6 @@ if(NOT HAVE_STRICMP)
|
|||||||
set(HAVE_LDAP_URL_PARSE 1)
|
set(HAVE_LDAP_URL_PARSE 1)
|
||||||
endif(NOT HAVE_STRICMP)
|
endif(NOT HAVE_STRICMP)
|
||||||
|
|
||||||
# For other curl specific tests, use this macro.
|
|
||||||
macro(CURL_INTERNAL_TEST CURL_TEST)
|
|
||||||
if("${CURL_TEST}" MATCHES "^${CURL_TEST}$")
|
|
||||||
set(MACRO_CHECK_FUNCTION_DEFINITIONS
|
|
||||||
"-D${CURL_TEST} ${CURL_TEST_DEFINES} ${CMAKE_REQUIRED_FLAGS}")
|
|
||||||
if(CMAKE_REQUIRED_LIBRARIES)
|
|
||||||
set(CURL_TEST_ADD_LIBRARIES
|
|
||||||
"-DLINK_LIBRARIES:STRING=${CMAKE_REQUIRED_LIBRARIES}")
|
|
||||||
endif(CMAKE_REQUIRED_LIBRARIES)
|
|
||||||
|
|
||||||
message(STATUS "Performing Curl Test ${CURL_TEST}")
|
|
||||||
try_compile(${CURL_TEST}
|
|
||||||
${CMAKE_BINARY_DIR}
|
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/CMake/CurlTests.c
|
|
||||||
CMAKE_FLAGS -DCOMPILE_DEFINITIONS:STRING=${MACRO_CHECK_FUNCTION_DEFINITIONS}
|
|
||||||
"${CURL_TEST_ADD_LIBRARIES}"
|
|
||||||
OUTPUT_VARIABLE OUTPUT)
|
|
||||||
if(${CURL_TEST})
|
|
||||||
set(${CURL_TEST} 1 CACHE INTERNAL "Curl test ${FUNCTION}")
|
|
||||||
message(STATUS "Performing Curl Test ${CURL_TEST} - Success")
|
|
||||||
file(APPEND ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeOutput.log
|
|
||||||
"Performing Curl Test ${CURL_TEST} passed with the following output:\n"
|
|
||||||
"${OUTPUT}\n")
|
|
||||||
else(${CURL_TEST})
|
|
||||||
message(STATUS "Performing Curl Test ${CURL_TEST} - Failed")
|
|
||||||
set(${CURL_TEST} "" CACHE INTERNAL "Curl test ${FUNCTION}")
|
|
||||||
file(APPEND ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeError.log
|
|
||||||
"Performing Curl Test ${CURL_TEST} failed with the following output:\n"
|
|
||||||
"${OUTPUT}\n")
|
|
||||||
endif(${CURL_TEST})
|
|
||||||
endif("${CURL_TEST}" MATCHES "^${CURL_TEST}$")
|
|
||||||
endmacro(CURL_INTERNAL_TEST)
|
|
||||||
|
|
||||||
macro(CURL_INTERNAL_TEST_RUN CURL_TEST)
|
|
||||||
if("${CURL_TEST}_COMPILE" MATCHES "^${CURL_TEST}_COMPILE$")
|
|
||||||
set(MACRO_CHECK_FUNCTION_DEFINITIONS
|
|
||||||
"-D${CURL_TEST} ${CMAKE_REQUIRED_FLAGS}")
|
|
||||||
if(CMAKE_REQUIRED_LIBRARIES)
|
|
||||||
set(CURL_TEST_ADD_LIBRARIES
|
|
||||||
"-DLINK_LIBRARIES:STRING=${CMAKE_REQUIRED_LIBRARIES}")
|
|
||||||
endif(CMAKE_REQUIRED_LIBRARIES)
|
|
||||||
|
|
||||||
message(STATUS "Performing Curl Test ${CURL_TEST}")
|
|
||||||
try_run(${CURL_TEST} ${CURL_TEST}_COMPILE
|
|
||||||
${CMAKE_BINARY_DIR}
|
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/CMake/CurlTests.c
|
|
||||||
CMAKE_FLAGS -DCOMPILE_DEFINITIONS:STRING=${MACRO_CHECK_FUNCTION_DEFINITIONS}
|
|
||||||
"${CURL_TEST_ADD_LIBRARIES}"
|
|
||||||
OUTPUT_VARIABLE OUTPUT)
|
|
||||||
if(${CURL_TEST}_COMPILE AND NOT ${CURL_TEST})
|
|
||||||
set(${CURL_TEST} 1 CACHE INTERNAL "Curl test ${FUNCTION}")
|
|
||||||
message(STATUS "Performing Curl Test ${CURL_TEST} - Success")
|
|
||||||
else(${CURL_TEST}_COMPILE AND NOT ${CURL_TEST})
|
|
||||||
message(STATUS "Performing Curl Test ${CURL_TEST} - Failed")
|
|
||||||
set(${CURL_TEST} "" CACHE INTERNAL "Curl test ${FUNCTION}")
|
|
||||||
file(APPEND "${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeError.log"
|
|
||||||
"Performing Curl Test ${CURL_TEST} failed with the following output:\n"
|
|
||||||
"${OUTPUT}")
|
|
||||||
if(${CURL_TEST}_COMPILE)
|
|
||||||
file(APPEND
|
|
||||||
"${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeError.log"
|
|
||||||
"There was a problem running this test\n")
|
|
||||||
endif(${CURL_TEST}_COMPILE)
|
|
||||||
file(APPEND "${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeError.log"
|
|
||||||
"\n\n")
|
|
||||||
endif(${CURL_TEST}_COMPILE AND NOT ${CURL_TEST})
|
|
||||||
endif("${CURL_TEST}_COMPILE" MATCHES "^${CURL_TEST}_COMPILE$")
|
|
||||||
endmacro(CURL_INTERNAL_TEST_RUN)
|
|
||||||
|
|
||||||
# Do curl specific tests
|
# Do curl specific tests
|
||||||
foreach(CURL_TEST
|
foreach(CURL_TEST
|
||||||
HAVE_FCNTL_O_NONBLOCK
|
HAVE_FCNTL_O_NONBLOCK
|
||||||
@@ -830,24 +1021,6 @@ if(MSVC)
|
|||||||
add_definitions(-D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE)
|
add_definitions(-D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE)
|
||||||
endif(MSVC)
|
endif(MSVC)
|
||||||
|
|
||||||
# Sets up the dependencies (zlib, OpenSSL, etc.) of a cURL subproject according to options.
|
|
||||||
# TODO This is far to be complete!
|
|
||||||
function(SETUP_CURL_DEPENDENCIES TARGET_NAME)
|
|
||||||
if(CURL_ZLIB AND ZLIB_FOUND)
|
|
||||||
include_directories(${ZLIB_INCLUDE_DIR})
|
|
||||||
#ADD_DEFINITIONS( -DHAVE_ZLIB_H -DHAVE_ZLIB -DHAVE_LIBZ )
|
|
||||||
endif()
|
|
||||||
|
|
||||||
if(CMAKE_USE_OPENSSL AND OPENSSL_FOUND)
|
|
||||||
include_directories(${OPENSSL_INCLUDE_DIR})
|
|
||||||
endif()
|
|
||||||
if(CMAKE_USE_OPENSSL AND CURL_CONFIG_HAS_BEEN_RUN_BEFORE)
|
|
||||||
#ADD_DEFINITIONS( -DUSE_SSLEAY )
|
|
||||||
endif()
|
|
||||||
|
|
||||||
target_link_libraries(${TARGET_NAME} ${CURL_LIBS})
|
|
||||||
endfunction()
|
|
||||||
|
|
||||||
# Ugly (but functional) way to include "Makefile.inc" by transforming it (= regenerate it).
|
# Ugly (but functional) way to include "Makefile.inc" by transforming it (= regenerate it).
|
||||||
function(TRANSFORM_MAKEFILE_INC INPUT_FILE OUTPUT_FILE)
|
function(TRANSFORM_MAKEFILE_INC INPUT_FILE OUTPUT_FILE)
|
||||||
file(READ ${INPUT_FILE} MAKEFILE_INC_TEXT)
|
file(READ ${INPUT_FILE} MAKEFILE_INC_TEXT)
|
||||||
@@ -872,6 +1045,134 @@ if(BUILD_CURL_TESTS)
|
|||||||
add_subdirectory(tests)
|
add_subdirectory(tests)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
# TODO support GNUTLS, NSS, POLARSSL, AXTLS, CYASSL, WINSSL, DARWINSSL
|
||||||
|
if(USE_OPENSSL)
|
||||||
|
set(SSL_ENABLED 1)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
# Helper to populate a list (_items) with a label when conditions (the remaining
|
||||||
|
# args) are satisfied
|
||||||
|
function(_add_if label)
|
||||||
|
# TODO need to disable policy CMP0054 (CMake 3.1) to allow this indirection
|
||||||
|
if(${ARGN})
|
||||||
|
set(_items ${_items} "${label}" PARENT_SCOPE)
|
||||||
|
endif()
|
||||||
|
endfunction()
|
||||||
|
|
||||||
|
# Clear list and try to detect available features
|
||||||
|
set(_items)
|
||||||
|
_add_if("WinSSL" SSL_ENABLED AND USE_WINDOWS_SSPI)
|
||||||
|
_add_if("OpenSSL" SSL_ENABLED AND USE_OPENSSL)
|
||||||
|
_add_if("IPv6" ENABLE_IPV6)
|
||||||
|
_add_if("unix-sockets" USE_UNIX_SOCKETS)
|
||||||
|
_add_if("libz" HAVE_LIBZ)
|
||||||
|
_add_if("AsynchDNS" USE_ARES OR USE_THREADS_POSIX)
|
||||||
|
_add_if("IDN" HAVE_LIBIDN)
|
||||||
|
# TODO SSP1 (WinSSL) check is missing
|
||||||
|
_add_if("SSPI" USE_WINDOWS_SSPI)
|
||||||
|
_add_if("GSS-API" HAVE_GSSAPI)
|
||||||
|
# TODO SSP1 missing for SPNEGO
|
||||||
|
_add_if("SPNEGO" NOT CURL_DISABLE_CRYPTO_AUTH AND
|
||||||
|
(HAVE_GSSAPI OR USE_WINDOWS_SSPI))
|
||||||
|
_add_if("Kerberos" NOT CURL_DISABLE_CRYPTO_AUTH AND
|
||||||
|
(HAVE_GSSAPI OR USE_WINDOWS_SSPI))
|
||||||
|
# NTLM support requires crypto function adaptions from various SSL libs
|
||||||
|
# TODO alternative SSL libs tests for SSP1, GNUTLS, NSS, DARWINSSL
|
||||||
|
if(NOT CURL_DISABLE_CRYPTO_AUTH AND (USE_OPENSSL OR
|
||||||
|
USE_WINDOWS_SSPI OR GNUTLS_ENABLED OR NSS_ENABLED OR DARWINSSL_ENABLED))
|
||||||
|
_add_if("NTLM" 1)
|
||||||
|
# TODO missing option (autoconf: --enable-ntlm-wb)
|
||||||
|
_add_if("NTLM_WB" NOT CURL_DISABLE_HTTP AND NTLM_WB_ENABLED)
|
||||||
|
endif()
|
||||||
|
# TODO missing option (--enable-tls-srp), depends on GNUTLS_SRP/OPENSSL_SRP
|
||||||
|
_add_if("TLS-SRP" USE_TLS_SRP)
|
||||||
|
# TODO option --with-nghttp2 tests for nghttp2 lib and nghttp2/nghttp2.h header
|
||||||
|
_add_if("HTTP2" USE_NGHTTP2)
|
||||||
|
string(REPLACE ";" " " SUPPORT_FEATURES "${_items}")
|
||||||
|
message(STATUS "Enabled features: ${SUPPORT_FEATURES}")
|
||||||
|
|
||||||
|
# Clear list and try to detect available protocols
|
||||||
|
set(_items)
|
||||||
|
_add_if("HTTP" NOT CURL_DISABLE_HTTP)
|
||||||
|
_add_if("HTTPS" NOT CURL_DISABLE_HTTP AND SSL_ENABLED)
|
||||||
|
_add_if("FTP" NOT CURL_DISABLE_FTP)
|
||||||
|
_add_if("FTPS" NOT CURL_DISABLE_FTP AND SSL_ENABLED)
|
||||||
|
_add_if("FILE" NOT CURL_DISABLE_FILE)
|
||||||
|
_add_if("TELNET" NOT CURL_DISABLE_TELNET)
|
||||||
|
_add_if("LDAP" NOT CURL_DISABLE_LDAP)
|
||||||
|
# CURL_DISABLE_LDAP implies CURL_DISABLE_LDAPS
|
||||||
|
# TODO check HAVE_LDAP_SSL (in autoconf this is enabled with --enable-ldaps)
|
||||||
|
_add_if("LDAPS" NOT CURL_DISABLE_LDAPS AND
|
||||||
|
((USE_OPENLDAP AND SSL_ENABLED) OR
|
||||||
|
(NOT USE_OPENLDAP AND HAVE_LDAP_SSL)))
|
||||||
|
_add_if("DICT" NOT CURL_DISABLE_DICT)
|
||||||
|
_add_if("TFTP" NOT CURL_DISABLE_TFTP)
|
||||||
|
_add_if("GOPHER" NOT CURL_DISABLE_GOPHER)
|
||||||
|
_add_if("POP3" NOT CURL_DISABLE_POP3)
|
||||||
|
_add_if("POP3S" NOT CURL_DISABLE_POP3 AND SSL_ENABLED)
|
||||||
|
_add_if("IMAP" NOT CURL_DISABLE_IMAP)
|
||||||
|
_add_if("IMAPS" NOT CURL_DISABLE_IMAP AND SSL_ENABLED)
|
||||||
|
_add_if("SMTP" NOT CURL_DISABLE_SMTP)
|
||||||
|
_add_if("SMTPS" NOT CURL_DISABLE_SMTP AND SSL_ENABLED)
|
||||||
|
_add_if("SCP" USE_LIBSSH2)
|
||||||
|
_add_if("SFTP" USE_LIBSSH2)
|
||||||
|
_add_if("RTSP" NOT CURL_DISABLE_RTSP)
|
||||||
|
_add_if("RTMP" USE_LIBRTMP)
|
||||||
|
list(SORT _items)
|
||||||
|
string(REPLACE ";" " " SUPPORT_PROTOCOLS "${_items}")
|
||||||
|
message(STATUS "Enabled protocols: ${SUPPORT_PROTOCOLS}")
|
||||||
|
|
||||||
|
# curl-config needs the following options to be set.
|
||||||
|
set(CC "${CMAKE_C_COMPILER}")
|
||||||
|
# TODO probably put a -D... options here?
|
||||||
|
set(CONFIGURE_OPTIONS "")
|
||||||
|
# TODO when to set "-DCURL_STATICLIB" for CPPFLAG_CURL_STATICLIB?
|
||||||
|
set(CPPFLAG_CURL_STATICLIB "")
|
||||||
|
# TODO need to set this (see CURL_CHECK_CA_BUNDLE in acinclude.m4)
|
||||||
|
set(CURL_CA_BUNDLE "")
|
||||||
|
set(CURLVERSION "${CURL_VERSION}")
|
||||||
|
set(ENABLE_SHARED "yes")
|
||||||
|
if(CURL_STATICLIB)
|
||||||
|
# Broken: LIBCURL_LIBS below; .a lib is not built
|
||||||
|
message(WARNING "Static linking is broken!")
|
||||||
|
set(ENABLE_STATIC "no")
|
||||||
|
else()
|
||||||
|
set(ENABLE_STATIC "no")
|
||||||
|
endif()
|
||||||
|
set(exec_prefix "\${prefix}")
|
||||||
|
set(includedir "\${prefix}/include")
|
||||||
|
set(LDFLAGS "${CMAKE_SHARED_LINKER_FLAGS}")
|
||||||
|
set(LIBCURL_LIBS "")
|
||||||
|
set(libdir "${CMAKE_INSTALL_PREFIX}/lib")
|
||||||
|
# TODO CURL_LIBS also contains absolute paths which don't work with static -l...
|
||||||
|
foreach(_lib ${CMAKE_C_IMPLICIT_LINK_LIBRARIES} ${CURL_LIBS})
|
||||||
|
set(LIBCURL_LIBS "${LIBCURL_LIBS} -l${_lib}")
|
||||||
|
endforeach()
|
||||||
|
# "a" (Linux) or "lib" (Windows)
|
||||||
|
string(REPLACE "." "" libext "${CMAKE_STATIC_LIBRARY_SUFFIX}")
|
||||||
|
set(prefix "${CMAKE_INSTALL_PREFIX}")
|
||||||
|
# Set this to "yes" to append all libraries on which -lcurl is dependent
|
||||||
|
set(REQUIRE_LIB_DEPS "no")
|
||||||
|
# SUPPORT_FEATURES
|
||||||
|
# SUPPORT_PROTOCOLS
|
||||||
|
set(VERSIONNUM "${CURL_VERSION_NUM}")
|
||||||
|
|
||||||
|
# Finally generate a "curl-config" matching this config
|
||||||
|
configure_file("${CURL_SOURCE_DIR}/curl-config.in"
|
||||||
|
"${CURL_BINARY_DIR}/curl-config" @ONLY)
|
||||||
|
install(FILES "${CURL_BINARY_DIR}/curl-config"
|
||||||
|
DESTINATION bin
|
||||||
|
PERMISSIONS
|
||||||
|
OWNER_READ OWNER_WRITE OWNER_EXECUTE
|
||||||
|
GROUP_READ GROUP_EXECUTE
|
||||||
|
WORLD_READ WORLD_EXECUTE)
|
||||||
|
|
||||||
|
# Finally generate a pkg-config file matching this config
|
||||||
|
configure_file("${CURL_SOURCE_DIR}/libcurl.pc.in"
|
||||||
|
"${CURL_BINARY_DIR}/libcurl.pc" @ONLY)
|
||||||
|
install(FILES "${CURL_BINARY_DIR}/libcurl.pc"
|
||||||
|
DESTINATION lib/pkgconfig)
|
||||||
|
|
||||||
# This needs to be run very last so other parts of the scripts can take advantage of this.
|
# This needs to be run very last so other parts of the scripts can take advantage of this.
|
||||||
if(NOT CURL_CONFIG_HAS_BEEN_RUN_BEFORE)
|
if(NOT CURL_CONFIG_HAS_BEEN_RUN_BEFORE)
|
||||||
set(CURL_CONFIG_HAS_BEEN_RUN_BEFORE 1 CACHE INTERNAL "Flag to track whether this is the first time running CMake or if CMake has been configured before")
|
set(CURL_CONFIG_HAS_BEEN_RUN_BEFORE 1 CACHE INTERNAL "Flag to track whether this is the first time running CMake or if CMake has been configured before")
|
||||||
|
|||||||
3
COPYING
3
COPYING
@@ -1,6 +1,7 @@
|
|||||||
COPYRIGHT AND PERMISSION NOTICE
|
COPYRIGHT AND PERMISSION NOTICE
|
||||||
|
|
||||||
Copyright (c) 1996 - 2014, Daniel Stenberg, <daniel@haxx.se>.
|
Copyright (c) 1996 - 2016, Daniel Stenberg, <daniel@haxx.se>, and many
|
||||||
|
contributors, see the THANKS file.
|
||||||
|
|
||||||
All rights reserved.
|
All rights reserved.
|
||||||
|
|
||||||
|
|||||||
@@ -65,7 +65,7 @@ else
|
|||||||
ARCHES64='-arch x86_64'
|
ARCHES64='-arch x86_64'
|
||||||
#We "know" that 10.4 and earlier do not support 64bit
|
#We "know" that 10.4 and earlier do not support 64bit
|
||||||
OLD_SDK64=`ls $SDK_PATH|egrep -v "10.[0-4]"|head -1`
|
OLD_SDK64=`ls $SDK_PATH|egrep -v "10.[0-4]"|head -1`
|
||||||
NEW_SDK64=`ls -r $SDK_PATH|egrep -v "10.[0-4]"|head -1`
|
NEW_SDK64=`ls -r $SDK_PATH|egrep -v "10.[0-4][^0-9]" | head -1`
|
||||||
if test $USE_OLD -gt 0
|
if test $USE_OLD -gt 0
|
||||||
then
|
then
|
||||||
SDK64=$OLD_SDK64
|
SDK64=$OLD_SDK64
|
||||||
@@ -94,7 +94,7 @@ if test ! -z $SDK32; then
|
|||||||
rm -r libcurl.framework
|
rm -r libcurl.framework
|
||||||
mkdir -p libcurl.framework/${FRAMEWORK_VERSION}/Resources
|
mkdir -p libcurl.framework/${FRAMEWORK_VERSION}/Resources
|
||||||
cp lib/.libs/libcurl.dylib libcurl.framework/${FRAMEWORK_VERSION}/libcurl
|
cp lib/.libs/libcurl.dylib libcurl.framework/${FRAMEWORK_VERSION}/libcurl
|
||||||
install_name_tool -id @executable_path/../Frameworks/libcurl.framework/${FRAMEWORK_VERSION}/libcurl libcurl.framework/${FRAMEWORK_VERSION}/libcurl
|
install_name_tool -id @rpath/libcurl.framework/${FRAMEWORK_VERSION}/libcurl libcurl.framework/${FRAMEWORK_VERSION}/libcurl
|
||||||
/usr/bin/sed -e "s/7\.12\.3/$VERSION/" lib/libcurl.plist >libcurl.framework/${FRAMEWORK_VERSION}/Resources/Info.plist
|
/usr/bin/sed -e "s/7\.12\.3/$VERSION/" lib/libcurl.plist >libcurl.framework/${FRAMEWORK_VERSION}/Resources/Info.plist
|
||||||
mkdir -p libcurl.framework/${FRAMEWORK_VERSION}/Headers/curl
|
mkdir -p libcurl.framework/${FRAMEWORK_VERSION}/Headers/curl
|
||||||
cp include/curl/*.h libcurl.framework/${FRAMEWORK_VERSION}/Headers/curl
|
cp include/curl/*.h libcurl.framework/${FRAMEWORK_VERSION}/Headers/curl
|
||||||
@@ -121,7 +121,7 @@ if test ! -z $SDK32; then
|
|||||||
|
|
||||||
echo "----Appending 64 bit framework to 32 bit framework..."
|
echo "----Appending 64 bit framework to 32 bit framework..."
|
||||||
cp lib/.libs/libcurl.dylib libcurl.framework/${FRAMEWORK_VERSION}/libcurl64
|
cp lib/.libs/libcurl.dylib libcurl.framework/${FRAMEWORK_VERSION}/libcurl64
|
||||||
install_name_tool -id @executable_path/../Frameworks/libcurl.framework/${FRAMEWORK_VERSION}/libcurl libcurl.framework/${FRAMEWORK_VERSION}/libcurl64
|
install_name_tool -id @rpath/libcurl.framework/${FRAMEWORK_VERSION}/libcurl libcurl.framework/${FRAMEWORK_VERSION}/libcurl64
|
||||||
cp libcurl.framework/${FRAMEWORK_VERSION}/libcurl libcurl.framework/${FRAMEWORK_VERSION}/libcurl32
|
cp libcurl.framework/${FRAMEWORK_VERSION}/libcurl libcurl.framework/${FRAMEWORK_VERSION}/libcurl32
|
||||||
pwd
|
pwd
|
||||||
lipo libcurl.framework/${FRAMEWORK_VERSION}/libcurl32 libcurl.framework/${FRAMEWORK_VERSION}/libcurl64 -create -output libcurl.framework/${FRAMEWORK_VERSION}/libcurl
|
lipo libcurl.framework/${FRAMEWORK_VERSION}/libcurl32 libcurl.framework/${FRAMEWORK_VERSION}/libcurl64 -create -output libcurl.framework/${FRAMEWORK_VERSION}/libcurl
|
||||||
|
|||||||
208
Makefile.am
208
Makefile.am
@@ -5,11 +5,11 @@
|
|||||||
# | (__| |_| | _ <| |___
|
# | (__| |_| | _ <| |___
|
||||||
# \___|\___/|_| \_\_____|
|
# \___|\___/|_| \_\_____|
|
||||||
#
|
#
|
||||||
# Copyright (C) 1998 - 2014, Daniel Stenberg, <daniel@haxx.se>, et al.
|
# Copyright (C) 1998 - 2016, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
#
|
#
|
||||||
# This software is licensed as described in the file COPYING, which
|
# This software is licensed as described in the file COPYING, which
|
||||||
# you should have received as part of this distribution. The terms
|
# you should have received as part of this distribution. The terms
|
||||||
# are also available at http://curl.haxx.se/docs/copyright.html.
|
# are also available at https://curl.haxx.se/docs/copyright.html.
|
||||||
#
|
#
|
||||||
# You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
# You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
||||||
# copies of the Software, and permit persons to whom the Software is
|
# copies of the Software, and permit persons to whom the Software is
|
||||||
@@ -24,111 +24,132 @@ AUTOMAKE_OPTIONS = foreign
|
|||||||
|
|
||||||
ACLOCAL_AMFLAGS = -I m4
|
ACLOCAL_AMFLAGS = -I m4
|
||||||
|
|
||||||
CMAKE_DIST = CMakeLists.txt CMake/CMakeConfigurableFile.in \
|
CMAKE_DIST = CMakeLists.txt CMake/CMakeConfigurableFile.in \
|
||||||
CMake/CurlCheckCSourceCompiles.cmake CMake/CurlCheckCSourceRuns.cmake \
|
CMake/CurlTests.c CMake/FindGSS.cmake CMake/OtherTests.cmake \
|
||||||
CMake/CurlTests.c CMake/FindOpenSSL.cmake CMake/FindZLIB.cmake \
|
CMake/Platforms/WindowsCache.cmake CMake/Utilities.cmake \
|
||||||
CMake/OtherTests.cmake CMake/Platforms/WindowsCache.cmake \
|
include/curl/curlbuild.h.cmake CMake/Macros.cmake
|
||||||
CMake/Utilities.cmake include/curl/curlbuild.h.cmake
|
|
||||||
|
|
||||||
VC6_LIBTMPL = projects/Windows/VC6/lib/libcurl.tmpl
|
VC6_LIBTMPL = projects/Windows/VC6/lib/libcurl.tmpl
|
||||||
VC6_LIBDSP = projects/Windows/VC6/lib/libcurl.dsp
|
VC6_LIBDSP = projects/Windows/VC6/lib/libcurl.dsp.dist
|
||||||
VC6_LIBDSP_DEPS = $(VC6_LIBTMPL) Makefile.am lib/Makefile.inc
|
VC6_LIBDSP_DEPS = $(VC6_LIBTMPL) Makefile.am lib/Makefile.inc
|
||||||
VC6_SRCTMPL = projects/Windows/VC6/src/curlsrc.tmpl
|
VC6_SRCTMPL = projects/Windows/VC6/src/curl.tmpl
|
||||||
VC6_SRCDSP = projects/Windows/VC6/src/curlsrc.dsp
|
VC6_SRCDSP = projects/Windows/VC6/src/curl.dsp.dist
|
||||||
VC6_SRCDSP_DEPS = $(VC6_SRCTMPL) Makefile.am src/Makefile.inc
|
VC6_SRCDSP_DEPS = $(VC6_SRCTMPL) Makefile.am src/Makefile.inc
|
||||||
|
|
||||||
VC7_LIBTMPL = projects/Windows/VC7/lib/libcurl.tmpl
|
VC7_LIBTMPL = projects/Windows/VC7/lib/libcurl.tmpl
|
||||||
VC7_LIBVCPROJ = projects/Windows/VC7/lib/libcurl.vcproj
|
VC7_LIBVCPROJ = projects/Windows/VC7/lib/libcurl.vcproj.dist
|
||||||
VC7_LIBVCPROJ_DEPS = $(VC7_LIBTMPL) Makefile.am lib/Makefile.inc
|
VC7_LIBVCPROJ_DEPS = $(VC7_LIBTMPL) Makefile.am lib/Makefile.inc
|
||||||
VC7_SRCTMPL = projects/Windows/VC7/src/curlsrc.tmpl
|
VC7_SRCTMPL = projects/Windows/VC7/src/curl.tmpl
|
||||||
VC7_SRCVCPROJ = projects/Windows/VC7/src/curlsrc.vcproj
|
VC7_SRCVCPROJ = projects/Windows/VC7/src/curl.vcproj.dist
|
||||||
VC7_SRCVCPROJ_DEPS = $(VC7_SRCTMPL) Makefile.am src/Makefile.inc
|
VC7_SRCVCPROJ_DEPS = $(VC7_SRCTMPL) Makefile.am src/Makefile.inc
|
||||||
|
|
||||||
VC71_LIBTMPL = projects/Windows/VC7.1/lib/libcurl.tmpl
|
VC71_LIBTMPL = projects/Windows/VC7.1/lib/libcurl.tmpl
|
||||||
VC71_LIBVCPROJ = projects/Windows/VC7.1/lib/libcurl.vcproj
|
VC71_LIBVCPROJ = projects/Windows/VC7.1/lib/libcurl.vcproj.dist
|
||||||
VC71_LIBVCPROJ_DEPS = $(VC71_LIBTMPL) Makefile.am lib/Makefile.inc
|
VC71_LIBVCPROJ_DEPS = $(VC71_LIBTMPL) Makefile.am lib/Makefile.inc
|
||||||
VC71_SRCTMPL = projects/Windows/VC7.1/src/curlsrc.tmpl
|
VC71_SRCTMPL = projects/Windows/VC7.1/src/curl.tmpl
|
||||||
VC71_SRCVCPROJ = projects/Windows/VC7.1/src/curlsrc.vcproj
|
VC71_SRCVCPROJ = projects/Windows/VC7.1/src/curl.vcproj.dist
|
||||||
VC71_SRCVCPROJ_DEPS = $(VC71_SRCTMPL) Makefile.am src/Makefile.inc
|
VC71_SRCVCPROJ_DEPS = $(VC71_SRCTMPL) Makefile.am src/Makefile.inc
|
||||||
|
|
||||||
VC8_LIBTMPL = projects/Windows/VC8/lib/libcurl.tmpl
|
VC8_LIBTMPL = projects/Windows/VC8/lib/libcurl.tmpl
|
||||||
VC8_LIBVCPROJ = projects/Windows/VC8/lib/libcurl.vcproj
|
VC8_LIBVCPROJ = projects/Windows/VC8/lib/libcurl.vcproj.dist
|
||||||
VC8_LIBVCPROJ_DEPS = $(VC8_LIBTMPL) Makefile.am lib/Makefile.inc
|
VC8_LIBVCPROJ_DEPS = $(VC8_LIBTMPL) Makefile.am lib/Makefile.inc
|
||||||
VC8_SRCTMPL = projects/Windows/VC8/src/curlsrc.tmpl
|
VC8_SRCTMPL = projects/Windows/VC8/src/curl.tmpl
|
||||||
VC8_SRCVCPROJ = projects/Windows/VC8/src/curlsrc.vcproj
|
VC8_SRCVCPROJ = projects/Windows/VC8/src/curl.vcproj.dist
|
||||||
VC8_SRCVCPROJ_DEPS = $(VC8_SRCTMPL) Makefile.am src/Makefile.inc
|
VC8_SRCVCPROJ_DEPS = $(VC8_SRCTMPL) Makefile.am src/Makefile.inc
|
||||||
|
|
||||||
VC9_LIBTMPL = projects/Windows/VC9/lib/libcurl.tmpl
|
VC9_LIBTMPL = projects/Windows/VC9/lib/libcurl.tmpl
|
||||||
VC9_LIBVCPROJ = projects/Windows/VC9/lib/libcurl.vcproj
|
VC9_LIBVCPROJ = projects/Windows/VC9/lib/libcurl.vcproj.dist
|
||||||
VC9_LIBVCPROJ_DEPS = $(VC9_LIBTMPL) Makefile.am lib/Makefile.inc
|
VC9_LIBVCPROJ_DEPS = $(VC9_LIBTMPL) Makefile.am lib/Makefile.inc
|
||||||
VC9_SRCTMPL = projects/Windows/VC9/src/curlsrc.tmpl
|
VC9_SRCTMPL = projects/Windows/VC9/src/curl.tmpl
|
||||||
VC9_SRCVCPROJ = projects/Windows/VC9/src/curlsrc.vcproj
|
VC9_SRCVCPROJ = projects/Windows/VC9/src/curl.vcproj.dist
|
||||||
VC9_SRCVCPROJ_DEPS = $(VC9_SRCTMPL) Makefile.am src/Makefile.inc
|
VC9_SRCVCPROJ_DEPS = $(VC9_SRCTMPL) Makefile.am src/Makefile.inc
|
||||||
|
|
||||||
VC10_LIBTMPL = projects/Windows/VC10/lib/libcurl.tmpl
|
VC10_LIBTMPL = projects/Windows/VC10/lib/libcurl.tmpl
|
||||||
VC10_LIBVCXPROJ = projects/Windows/VC10/lib/libcurl.vcxproj
|
VC10_LIBVCXPROJ = projects/Windows/VC10/lib/libcurl.vcxproj.dist
|
||||||
VC10_LIBVCXPROJ_DEPS = $(VC10_LIBTMPL) Makefile.am lib/Makefile.inc
|
VC10_LIBVCXPROJ_DEPS = $(VC10_LIBTMPL) Makefile.am lib/Makefile.inc
|
||||||
VC10_SRCTMPL = projects/Windows/VC10/src/curlsrc.tmpl
|
VC10_SRCTMPL = projects/Windows/VC10/src/curl.tmpl
|
||||||
VC10_SRCVCXPROJ = projects/Windows/VC10/src/curlsrc.vcxproj
|
VC10_SRCVCXPROJ = projects/Windows/VC10/src/curl.vcxproj.dist
|
||||||
VC10_SRCVCXPROJ_DEPS = $(VC10_SRCTMPL) Makefile.am src/Makefile.inc
|
VC10_SRCVCXPROJ_DEPS = $(VC10_SRCTMPL) Makefile.am src/Makefile.inc
|
||||||
|
|
||||||
VC11_LIBTMPL = projects/Windows/VC11/lib/libcurl.tmpl
|
VC11_LIBTMPL = projects/Windows/VC11/lib/libcurl.tmpl
|
||||||
VC11_LIBVCXPROJ = projects/Windows/VC11/lib/libcurl.vcxproj
|
VC11_LIBVCXPROJ = projects/Windows/VC11/lib/libcurl.vcxproj.dist
|
||||||
VC11_LIBVCXPROJ_DEPS = $(VC11_LIBTMPL) Makefile.am lib/Makefile.inc
|
VC11_LIBVCXPROJ_DEPS = $(VC11_LIBTMPL) Makefile.am lib/Makefile.inc
|
||||||
VC11_SRCTMPL = projects/Windows/VC11/src/curlsrc.tmpl
|
VC11_SRCTMPL = projects/Windows/VC11/src/curl.tmpl
|
||||||
VC11_SRCVCXPROJ = projects/Windows/VC11/src/curlsrc.vcxproj
|
VC11_SRCVCXPROJ = projects/Windows/VC11/src/curl.vcxproj.dist
|
||||||
VC11_SRCVCXPROJ_DEPS = $(VC11_SRCTMPL) Makefile.am src/Makefile.inc
|
VC11_SRCVCXPROJ_DEPS = $(VC11_SRCTMPL) Makefile.am src/Makefile.inc
|
||||||
|
|
||||||
VC12_LIBTMPL = projects/Windows/VC12/lib/libcurl.tmpl
|
VC12_LIBTMPL = projects/Windows/VC12/lib/libcurl.tmpl
|
||||||
VC12_LIBVCXPROJ = projects/Windows/VC12/lib/libcurl.vcxproj
|
VC12_LIBVCXPROJ = projects/Windows/VC12/lib/libcurl.vcxproj.dist
|
||||||
VC12_LIBVCXPROJ_DEPS = $(VC12_LIBTMPL) Makefile.am lib/Makefile.inc
|
VC12_LIBVCXPROJ_DEPS = $(VC12_LIBTMPL) Makefile.am lib/Makefile.inc
|
||||||
VC12_SRCTMPL = projects/Windows/VC12/src/curlsrc.tmpl
|
VC12_SRCTMPL = projects/Windows/VC12/src/curl.tmpl
|
||||||
VC12_SRCVCXPROJ = projects/Windows/VC12/src/curlsrc.vcxproj
|
VC12_SRCVCXPROJ = projects/Windows/VC12/src/curl.vcxproj.dist
|
||||||
VC12_SRCVCXPROJ_DEPS = $(VC12_SRCTMPL) Makefile.am src/Makefile.inc
|
VC12_SRCVCXPROJ_DEPS = $(VC12_SRCTMPL) Makefile.am src/Makefile.inc
|
||||||
|
|
||||||
VC_DIST = projects/README \
|
VC14_LIBTMPL = projects/Windows/VC14/lib/libcurl.tmpl
|
||||||
projects/build-openssl.bat \
|
VC14_LIBVCXPROJ = projects/Windows/VC14/lib/libcurl.vcxproj.dist
|
||||||
projects/Windows/VC6/curl.dsw \
|
VC14_LIBVCXPROJ_DEPS = $(VC14_LIBTMPL) Makefile.am lib/Makefile.inc
|
||||||
projects/Windows/VC6/lib/libcurl.dsw $(VC6_LIBDSP) \
|
VC14_SRCTMPL = projects/Windows/VC14/src/curl.tmpl
|
||||||
projects/Windows/VC6/src/curlsrc.dsw $(VC6_SRCDSP) \
|
VC14_SRCVCXPROJ = projects/Windows/VC14/src/curl.vcxproj.dist
|
||||||
projects/Windows/VC7/curl.sln \
|
VC14_SRCVCXPROJ_DEPS = $(VC14_SRCTMPL) Makefile.am src/Makefile.inc
|
||||||
projects/Windows/VC7/lib/libcurl.sln $(VC7_LIBVCPROJ) \
|
|
||||||
projects/Windows/VC7/src/curlsrc.sln $(VC7_SRCVCPROJ) \
|
VC_DIST = projects/README \
|
||||||
projects/Windows/VC7.1/curl.sln \
|
projects/build-openssl.bat \
|
||||||
projects/Windows/VC7.1/lib/libcurl.sln $(VC71_LIBVCPROJ) \
|
projects/build-wolfssl.bat \
|
||||||
projects/Windows/VC7.1/src/curlsrc.sln $(VC71_SRCVCPROJ) \
|
projects/checksrc.bat \
|
||||||
projects/Windows/VC8/curl.sln \
|
projects/Windows/VC6/curl-all.dsw \
|
||||||
projects/Windows/VC8/lib/libcurl.sln $(VC8_LIBVCPROJ) \
|
projects/Windows/VC6/lib/libcurl.dsw \
|
||||||
projects/Windows/VC8/src/curlsrc.sln $(VC8_SRCVCPROJ) \
|
projects/Windows/VC6/src/curl.dsw \
|
||||||
projects/Windows/VC9/curl.sln \
|
projects/Windows/VC7/curl-all.sln \
|
||||||
projects/Windows/VC9/lib/libcurl.sln $(VC9_LIBVCPROJ) \
|
projects/Windows/VC7/lib/libcurl.sln \
|
||||||
projects/Windows/VC9/src/curlsrc.sln $(VC9_SRCVCPROJ) \
|
projects/Windows/VC7/src/curl.sln \
|
||||||
projects/Windows/VC10/curl.sln \
|
projects/Windows/VC7.1/curl-all.sln \
|
||||||
projects/Windows/VC10/lib/libcurl.sln $(VC10_LIBVCXPROJ) \
|
projects/Windows/VC7.1/lib/libcurl.sln \
|
||||||
projects/Windows/VC10/src/curlsrc.sln $(VC10_SRCVCXPROJ) \
|
projects/Windows/VC7.1/src/curl.sln \
|
||||||
projects/Windows/VC11/curl.sln \
|
projects/Windows/VC8/curl-all.sln \
|
||||||
projects/Windows/VC11/lib/libcurl.sln $(VC11_LIBVCXPROJ) \
|
projects/Windows/VC8/lib/libcurl.sln \
|
||||||
projects/Windows/VC11/src/curlsrc.sln $(VC11_SRCVCXPROJ) \
|
projects/Windows/VC8/src/curl.sln \
|
||||||
projects/Windows/VC12/curl.sln \
|
projects/Windows/VC9/curl-all.sln \
|
||||||
projects/Windows/VC12/lib/libcurl.sln $(VC12_LIBVCXPROJ) \
|
projects/Windows/VC9/lib/libcurl.sln \
|
||||||
projects/Windows/VC12/src/curlsrc.sln $(VC12_SRCVCXPROJ)
|
projects/Windows/VC9/src/curl.sln \
|
||||||
|
projects/Windows/VC10/curl-all.sln \
|
||||||
|
projects/Windows/VC10/lib/libcurl.sln \
|
||||||
|
projects/Windows/VC10/lib/libcurl.vcxproj.filters \
|
||||||
|
projects/Windows/VC10/src/curl.sln \
|
||||||
|
projects/Windows/VC10/src/curl.vcxproj.filters \
|
||||||
|
projects/Windows/VC11/curl-all.sln \
|
||||||
|
projects/Windows/VC11/lib/libcurl.sln \
|
||||||
|
projects/Windows/VC11/lib/libcurl.vcxproj.filters \
|
||||||
|
projects/Windows/VC11/src/curl.sln \
|
||||||
|
projects/Windows/VC11/src/curl.vcxproj.filters \
|
||||||
|
projects/Windows/VC12/curl-all.sln \
|
||||||
|
projects/Windows/VC12/lib/libcurl.sln \
|
||||||
|
projects/Windows/VC12/lib/libcurl.vcxproj.filters \
|
||||||
|
projects/Windows/VC12/src/curl.sln \
|
||||||
|
projects/Windows/VC12/src/curl.vcxproj.filters \
|
||||||
|
projects/Windows/VC14/curl-all.sln \
|
||||||
|
projects/Windows/VC14/lib/libcurl.sln \
|
||||||
|
projects/Windows/VC14/lib/libcurl.vcxproj.filters \
|
||||||
|
projects/Windows/VC14/src/curl.sln \
|
||||||
|
projects/Windows/VC14/src/curl.vcxproj.filters
|
||||||
|
|
||||||
WINBUILD_DIST = winbuild/BUILD.WINDOWS.txt winbuild/gen_resp_file.bat \
|
WINBUILD_DIST = winbuild/BUILD.WINDOWS.txt winbuild/gen_resp_file.bat \
|
||||||
winbuild/MakefileBuild.vc winbuild/Makefile.vc \
|
winbuild/MakefileBuild.vc winbuild/Makefile.vc \
|
||||||
winbuild/Makefile.msvc.names
|
winbuild/Makefile.msvc.names
|
||||||
|
|
||||||
EXTRA_DIST = CHANGES COPYING maketgz Makefile.dist curl-config.in \
|
EXTRA_DIST = CHANGES COPYING maketgz Makefile.dist curl-config.in \
|
||||||
RELEASE-NOTES buildconf libcurl.pc.in MacOSX-Framework \
|
RELEASE-NOTES buildconf libcurl.pc.in MacOSX-Framework scripts/zsh.pl \
|
||||||
$(CMAKE_DIST) $(VC_DIST) $(WINBUILD_DIST) lib/libcurl.vers.in
|
$(CMAKE_DIST) $(VC_DIST) $(WINBUILD_DIST) lib/libcurl.vers.in \
|
||||||
|
buildconf.bat
|
||||||
|
|
||||||
CLEANFILES = $(VC6_LIBDSP) $(VC6_SRCDSP) $(VC7_LIBVCPROJ) $(VC7_SRCVCPROJ) \
|
CLEANFILES = $(VC6_LIBDSP) $(VC6_SRCDSP) $(VC7_LIBVCPROJ) $(VC7_SRCVCPROJ) \
|
||||||
$(VC71_LIBVCPROJ) $(VC71_SRCVCPROJ) $(VC8_LIBVCPROJ) $(VC8_SRCVCPROJ) \
|
$(VC71_LIBVCPROJ) $(VC71_SRCVCPROJ) $(VC8_LIBVCPROJ) $(VC8_SRCVCPROJ) \
|
||||||
$(VC9_LIBVCPROJ) $(VC9_SRCVCPROJ) $(VC10_LIBVCXPROJ) $(VC10_SRCVCXPROJ) \
|
$(VC9_LIBVCPROJ) $(VC9_SRCVCPROJ) $(VC10_LIBVCXPROJ) $(VC10_SRCVCXPROJ) \
|
||||||
$(VC11_LIBVCXPROJ) $(VC11_SRCVCXPROJ) $(VC12_LIBVCXPROJ) $(VC12_SRCVCXPROJ)
|
$(VC11_LIBVCXPROJ) $(VC11_SRCVCXPROJ) $(VC12_LIBVCXPROJ) $(VC12_SRCVCXPROJ) \
|
||||||
|
$(VC14_LIBVCXPROJ) $(VC14_SRCVCXPROJ)
|
||||||
|
|
||||||
bin_SCRIPTS = curl-config
|
bin_SCRIPTS = curl-config
|
||||||
|
|
||||||
SUBDIRS = lib src include
|
SUBDIRS = lib src include scripts
|
||||||
DIST_SUBDIRS = $(SUBDIRS) tests packages docs
|
DIST_SUBDIRS = $(SUBDIRS) tests packages docs
|
||||||
|
|
||||||
pkgconfigdir = $(libdir)/pkgconfig
|
pkgconfigdir = $(libdir)/pkgconfig
|
||||||
@@ -148,12 +169,12 @@ dist-hook:
|
|||||||
done)
|
done)
|
||||||
|
|
||||||
html:
|
html:
|
||||||
cd docs; make html
|
cd docs && make html
|
||||||
|
|
||||||
pdf:
|
pdf:
|
||||||
cd docs; make pdf
|
cd docs && make pdf
|
||||||
|
|
||||||
check: test examples
|
check: test examples check-docs
|
||||||
|
|
||||||
if CROSSCOMPILING
|
if CROSSCOMPILING
|
||||||
test-full: test
|
test-full: test
|
||||||
@@ -181,6 +202,9 @@ endif
|
|||||||
examples:
|
examples:
|
||||||
@(cd docs/examples; $(MAKE) check)
|
@(cd docs/examples; $(MAKE) check)
|
||||||
|
|
||||||
|
check-docs:
|
||||||
|
@(cd docs/libcurl; $(MAKE) check)
|
||||||
|
|
||||||
# This is a hook to have 'make clean' also clean up the docs and the tests
|
# This is a hook to have 'make clean' also clean up the docs and the tests
|
||||||
# dir. The extra check for the Makefiles being present is necessary because
|
# dir. The extra check for the Makefiles being present is necessary because
|
||||||
# 'make distcheck' will make clean first in these directories _before_ it runs
|
# 'make distcheck' will make clean first in these directories _before_ it runs
|
||||||
@@ -266,7 +290,7 @@ vc-ide: $(VC6_LIBDSP_DEPS) $(VC6_SRCDSP_DEPS) $(VC7_LIBVCPROJ_DEPS) \
|
|||||||
$(VC8_LIBVCPROJ_DEPS) $(VC8_SRCVCPROJ_DEPS) $(VC9_LIBVCPROJ_DEPS) \
|
$(VC8_LIBVCPROJ_DEPS) $(VC8_SRCVCPROJ_DEPS) $(VC9_LIBVCPROJ_DEPS) \
|
||||||
$(VC9_SRCVCPROJ_DEPS) $(VC10_LIBVCXPROJ_DEPS) $(VC10_SRCVCXPROJ_DEPS) \
|
$(VC9_SRCVCPROJ_DEPS) $(VC10_LIBVCXPROJ_DEPS) $(VC10_SRCVCXPROJ_DEPS) \
|
||||||
$(VC11_LIBVCXPROJ_DEPS) $(VC11_SRCVCXPROJ_DEPS) $(VC12_LIBVCXPROJ_DEPS) \
|
$(VC11_LIBVCXPROJ_DEPS) $(VC11_SRCVCXPROJ_DEPS) $(VC12_LIBVCXPROJ_DEPS) \
|
||||||
$(VC12_SRCVCXPROJ_DEPS)
|
$(VC12_SRCVCXPROJ_DEPS) $(VC14_LIBVCXPROJ_DEPS) $(VC14_SRCVCXPROJ_DEPS)
|
||||||
@(win32_lib_srcs='$(LIB_CFILES)'; \
|
@(win32_lib_srcs='$(LIB_CFILES)'; \
|
||||||
win32_lib_hdrs='$(LIB_HFILES) config-win32.h'; \
|
win32_lib_hdrs='$(LIB_HFILES) config-win32.h'; \
|
||||||
win32_lib_rc='$(LIB_RCFILES)'; \
|
win32_lib_rc='$(LIB_RCFILES)'; \
|
||||||
@@ -275,6 +299,8 @@ vc-ide: $(VC6_LIBDSP_DEPS) $(VC6_SRCDSP_DEPS) $(VC7_LIBVCPROJ_DEPS) \
|
|||||||
win32_src_srcs='$(CURL_CFILES)'; \
|
win32_src_srcs='$(CURL_CFILES)'; \
|
||||||
win32_src_hdrs='$(CURL_HFILES)'; \
|
win32_src_hdrs='$(CURL_HFILES)'; \
|
||||||
win32_src_rc='$(CURL_RCFILES)'; \
|
win32_src_rc='$(CURL_RCFILES)'; \
|
||||||
|
win32_src_x_srcs='$(CURLX_CFILES)'; \
|
||||||
|
win32_src_x_hdrs='$(CURLX_HFILES) ../lib/config-win32.h'; \
|
||||||
\
|
\
|
||||||
sorted_lib_srcs=`for file in $$win32_lib_srcs; do echo $$file; done | sort`; \
|
sorted_lib_srcs=`for file in $$win32_lib_srcs; do echo $$file; done | sort`; \
|
||||||
sorted_lib_hdrs=`for file in $$win32_lib_hdrs; do echo $$file; done | sort`; \
|
sorted_lib_hdrs=`for file in $$win32_lib_hdrs; do echo $$file; done | sort`; \
|
||||||
@@ -282,6 +308,8 @@ vc-ide: $(VC6_LIBDSP_DEPS) $(VC6_SRCDSP_DEPS) $(VC7_LIBVCPROJ_DEPS) \
|
|||||||
sorted_lib_vtls_hdrs=`for file in $$win32_lib_vtls_hdrs; do echo $$file; done | sort`; \
|
sorted_lib_vtls_hdrs=`for file in $$win32_lib_vtls_hdrs; do echo $$file; done | sort`; \
|
||||||
sorted_src_srcs=`for file in $$win32_src_srcs; do echo $$file; done | sort`; \
|
sorted_src_srcs=`for file in $$win32_src_srcs; do echo $$file; done | sort`; \
|
||||||
sorted_src_hdrs=`for file in $$win32_src_hdrs; do echo $$file; done | sort`; \
|
sorted_src_hdrs=`for file in $$win32_src_hdrs; do echo $$file; done | sort`; \
|
||||||
|
sorted_src_x_srcs=`for file in $$win32_src_x_srcs; do echo $$file; done | sort`; \
|
||||||
|
sorted_src_x_hdrs=`for file in $$win32_src_x_hdrs; do echo $$file; done | sort`; \
|
||||||
\
|
\
|
||||||
awk_code='\
|
awk_code='\
|
||||||
function gen_element(type, dir, file)\
|
function gen_element(type, dir, file)\
|
||||||
@@ -363,6 +391,20 @@ function gen_element(type, dir, file)\
|
|||||||
split(src_rc, arr);\
|
split(src_rc, arr);\
|
||||||
for(val in arr) gen_element(proj_type, "src", arr[val]);\
|
for(val in arr) gen_element(proj_type, "src", arr[val]);\
|
||||||
}\
|
}\
|
||||||
|
else if($$0 == "CURL_SRC_X_C_FILES") {\
|
||||||
|
split(src_x_srcs, arr);\
|
||||||
|
for(val in arr) {\
|
||||||
|
sub(/..\/lib\//, "", arr[val]);\
|
||||||
|
gen_element(proj_type, "lib", arr[val]);\
|
||||||
|
}\
|
||||||
|
}\
|
||||||
|
else if($$0 == "CURL_SRC_X_H_FILES") {\
|
||||||
|
split(src_x_hdrs, arr);\
|
||||||
|
for(val in arr) {\
|
||||||
|
sub(/..\/lib\//, "", arr[val]);\
|
||||||
|
gen_element(proj_type, "lib", arr[val]);\
|
||||||
|
}\
|
||||||
|
}\
|
||||||
else\
|
else\
|
||||||
printf("%s\r\n", $$0);\
|
printf("%s\r\n", $$0);\
|
||||||
}';\
|
}';\
|
||||||
@@ -381,6 +423,8 @@ function gen_element(type, dir, file)\
|
|||||||
-v src_srcs="$$sorted_src_srcs" \
|
-v src_srcs="$$sorted_src_srcs" \
|
||||||
-v src_hdrs="$$sorted_src_hdrs" \
|
-v src_hdrs="$$sorted_src_hdrs" \
|
||||||
-v src_rc="$$win32_src_rc" \
|
-v src_rc="$$win32_src_rc" \
|
||||||
|
-v src_x_srcs="$$sorted_src_x_srcs" \
|
||||||
|
-v src_x_hdrs="$$sorted_src_x_hdrs" \
|
||||||
"$$awk_code" $(srcdir)/$(VC6_SRCTMPL) > $(VC6_SRCDSP) || { exit 1; }; \
|
"$$awk_code" $(srcdir)/$(VC6_SRCTMPL) > $(VC6_SRCDSP) || { exit 1; }; \
|
||||||
\
|
\
|
||||||
echo "generating '$(VC7_LIBVCPROJ)'"; \
|
echo "generating '$(VC7_LIBVCPROJ)'"; \
|
||||||
@@ -397,6 +441,8 @@ function gen_element(type, dir, file)\
|
|||||||
-v src_srcs="$$sorted_src_srcs" \
|
-v src_srcs="$$sorted_src_srcs" \
|
||||||
-v src_hdrs="$$sorted_src_hdrs" \
|
-v src_hdrs="$$sorted_src_hdrs" \
|
||||||
-v src_rc="$$win32_src_rc" \
|
-v src_rc="$$win32_src_rc" \
|
||||||
|
-v src_x_srcs="$$sorted_src_x_srcs" \
|
||||||
|
-v src_x_hdrs="$$sorted_src_x_hdrs" \
|
||||||
"$$awk_code" $(srcdir)/$(VC7_SRCTMPL) > $(VC7_SRCVCPROJ) || { exit 1; }; \
|
"$$awk_code" $(srcdir)/$(VC7_SRCTMPL) > $(VC7_SRCVCPROJ) || { exit 1; }; \
|
||||||
\
|
\
|
||||||
echo "generating '$(VC71_LIBVCPROJ)'"; \
|
echo "generating '$(VC71_LIBVCPROJ)'"; \
|
||||||
@@ -413,6 +459,8 @@ function gen_element(type, dir, file)\
|
|||||||
-v src_srcs="$$sorted_src_srcs" \
|
-v src_srcs="$$sorted_src_srcs" \
|
||||||
-v src_hdrs="$$sorted_src_hdrs" \
|
-v src_hdrs="$$sorted_src_hdrs" \
|
||||||
-v src_rc="$$win32_src_rc" \
|
-v src_rc="$$win32_src_rc" \
|
||||||
|
-v src_x_srcs="$$sorted_src_x_srcs" \
|
||||||
|
-v src_x_hdrs="$$sorted_src_x_hdrs" \
|
||||||
"$$awk_code" $(srcdir)/$(VC71_SRCTMPL) > $(VC71_SRCVCPROJ) || { exit 1; }; \
|
"$$awk_code" $(srcdir)/$(VC71_SRCTMPL) > $(VC71_SRCVCPROJ) || { exit 1; }; \
|
||||||
\
|
\
|
||||||
echo "generating '$(VC8_LIBVCPROJ)'"; \
|
echo "generating '$(VC8_LIBVCPROJ)'"; \
|
||||||
@@ -429,6 +477,8 @@ function gen_element(type, dir, file)\
|
|||||||
-v src_srcs="$$sorted_src_srcs" \
|
-v src_srcs="$$sorted_src_srcs" \
|
||||||
-v src_hdrs="$$sorted_src_hdrs" \
|
-v src_hdrs="$$sorted_src_hdrs" \
|
||||||
-v src_rc="$$win32_src_rc" \
|
-v src_rc="$$win32_src_rc" \
|
||||||
|
-v src_x_srcs="$$sorted_src_x_srcs" \
|
||||||
|
-v src_x_hdrs="$$sorted_src_x_hdrs" \
|
||||||
"$$awk_code" $(srcdir)/$(VC8_SRCTMPL) > $(VC8_SRCVCPROJ) || { exit 1; }; \
|
"$$awk_code" $(srcdir)/$(VC8_SRCTMPL) > $(VC8_SRCVCPROJ) || { exit 1; }; \
|
||||||
\
|
\
|
||||||
echo "generating '$(VC9_LIBVCPROJ)'"; \
|
echo "generating '$(VC9_LIBVCPROJ)'"; \
|
||||||
@@ -445,6 +495,8 @@ function gen_element(type, dir, file)\
|
|||||||
-v src_srcs="$$sorted_src_srcs" \
|
-v src_srcs="$$sorted_src_srcs" \
|
||||||
-v src_hdrs="$$sorted_src_hdrs" \
|
-v src_hdrs="$$sorted_src_hdrs" \
|
||||||
-v src_rc="$$win32_src_rc" \
|
-v src_rc="$$win32_src_rc" \
|
||||||
|
-v src_x_srcs="$$sorted_src_x_srcs" \
|
||||||
|
-v src_x_hdrs="$$sorted_src_x_hdrs" \
|
||||||
"$$awk_code" $(srcdir)/$(VC9_SRCTMPL) > $(VC9_SRCVCPROJ) || { exit 1; }; \
|
"$$awk_code" $(srcdir)/$(VC9_SRCTMPL) > $(VC9_SRCVCPROJ) || { exit 1; }; \
|
||||||
\
|
\
|
||||||
echo "generating '$(VC10_LIBVCXPROJ)'"; \
|
echo "generating '$(VC10_LIBVCXPROJ)'"; \
|
||||||
@@ -461,6 +513,8 @@ function gen_element(type, dir, file)\
|
|||||||
-v src_srcs="$$sorted_src_srcs" \
|
-v src_srcs="$$sorted_src_srcs" \
|
||||||
-v src_hdrs="$$sorted_src_hdrs" \
|
-v src_hdrs="$$sorted_src_hdrs" \
|
||||||
-v src_rc="$$win32_src_rc" \
|
-v src_rc="$$win32_src_rc" \
|
||||||
|
-v src_x_srcs="$$sorted_src_x_srcs" \
|
||||||
|
-v src_x_hdrs="$$sorted_src_x_hdrs" \
|
||||||
"$$awk_code" $(srcdir)/$(VC10_SRCTMPL) > $(VC10_SRCVCXPROJ) || { exit 1; }; \
|
"$$awk_code" $(srcdir)/$(VC10_SRCTMPL) > $(VC10_SRCVCXPROJ) || { exit 1; }; \
|
||||||
\
|
\
|
||||||
echo "generating '$(VC11_LIBVCXPROJ)'"; \
|
echo "generating '$(VC11_LIBVCXPROJ)'"; \
|
||||||
@@ -477,6 +531,8 @@ function gen_element(type, dir, file)\
|
|||||||
-v src_srcs="$$sorted_src_srcs" \
|
-v src_srcs="$$sorted_src_srcs" \
|
||||||
-v src_hdrs="$$sorted_src_hdrs" \
|
-v src_hdrs="$$sorted_src_hdrs" \
|
||||||
-v src_rc="$$win32_src_rc" \
|
-v src_rc="$$win32_src_rc" \
|
||||||
|
-v src_x_srcs="$$sorted_src_x_srcs" \
|
||||||
|
-v src_x_hdrs="$$sorted_src_x_hdrs" \
|
||||||
"$$awk_code" $(srcdir)/$(VC11_SRCTMPL) > $(VC11_SRCVCXPROJ) || { exit 1; }; \
|
"$$awk_code" $(srcdir)/$(VC11_SRCTMPL) > $(VC11_SRCVCXPROJ) || { exit 1; }; \
|
||||||
\
|
\
|
||||||
echo "generating '$(VC12_LIBVCXPROJ)'"; \
|
echo "generating '$(VC12_LIBVCXPROJ)'"; \
|
||||||
@@ -493,4 +549,24 @@ function gen_element(type, dir, file)\
|
|||||||
-v src_srcs="$$sorted_src_srcs" \
|
-v src_srcs="$$sorted_src_srcs" \
|
||||||
-v src_hdrs="$$sorted_src_hdrs" \
|
-v src_hdrs="$$sorted_src_hdrs" \
|
||||||
-v src_rc="$$win32_src_rc" \
|
-v src_rc="$$win32_src_rc" \
|
||||||
"$$awk_code" $(srcdir)/$(VC12_SRCTMPL) > $(VC12_SRCVCXPROJ) || { exit 1; };)
|
-v src_x_srcs="$$sorted_src_x_srcs" \
|
||||||
|
-v src_x_hdrs="$$sorted_src_x_hdrs" \
|
||||||
|
"$$awk_code" $(srcdir)/$(VC12_SRCTMPL) > $(VC12_SRCVCXPROJ) || { exit 1; }; \
|
||||||
|
\
|
||||||
|
echo "generating '$(VC14_LIBVCXPROJ)'"; \
|
||||||
|
awk -v proj_type=vcxproj \
|
||||||
|
-v lib_srcs="$$sorted_lib_srcs" \
|
||||||
|
-v lib_hdrs="$$sorted_lib_hdrs" \
|
||||||
|
-v lib_rc="$$win32_lib_rc" \
|
||||||
|
-v lib_vtls_srcs="$$sorted_lib_vtls_srcs" \
|
||||||
|
-v lib_vtls_hdrs="$$sorted_lib_vtls_hdrs" \
|
||||||
|
"$$awk_code" $(srcdir)/$(VC14_LIBTMPL) > $(VC14_LIBVCXPROJ) || { exit 1; }; \
|
||||||
|
\
|
||||||
|
echo "generating '$(VC14_SRCVCXPROJ)'"; \
|
||||||
|
awk -v proj_type=vcxproj \
|
||||||
|
-v src_srcs="$$sorted_src_srcs" \
|
||||||
|
-v src_hdrs="$$sorted_src_hdrs" \
|
||||||
|
-v src_rc="$$win32_src_rc" \
|
||||||
|
-v src_x_srcs="$$sorted_src_x_srcs" \
|
||||||
|
-v src_x_hdrs="$$sorted_src_x_hdrs" \
|
||||||
|
"$$awk_code" $(srcdir)/$(VC14_SRCTMPL) > $(VC14_SRCVCXPROJ) || { exit 1; };)
|
||||||
|
|||||||
271
Makefile.dist
271
Makefile.dist
@@ -5,11 +5,11 @@
|
|||||||
# | (__| |_| | _ <| |___
|
# | (__| |_| | _ <| |___
|
||||||
# \___|\___/|_| \_\_____|
|
# \___|\___/|_| \_\_____|
|
||||||
#
|
#
|
||||||
# Copyright (C) 1998 - 2014, Daniel Stenberg, <daniel@haxx.se>, et al.
|
# Copyright (C) 1998 - 2015, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
#
|
#
|
||||||
# This software is licensed as described in the file COPYING, which
|
# This software is licensed as described in the file COPYING, which
|
||||||
# you should have received as part of this distribution. The terms
|
# you should have received as part of this distribution. The terms
|
||||||
# are also available at http://curl.haxx.se/docs/copyright.html.
|
# are also available at https://curl.haxx.se/docs/copyright.html.
|
||||||
#
|
#
|
||||||
# You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
# You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
||||||
# copies of the Software, and permit persons to whom the Software is
|
# copies of the Software, and permit persons to whom the Software is
|
||||||
@@ -130,6 +130,42 @@ vc-x64: $(VC)
|
|||||||
cd ..\src
|
cd ..\src
|
||||||
nmake /f Makefile.$(VC) MACHINE=x64 cfg=release
|
nmake /f Makefile.$(VC) MACHINE=x64 cfg=release
|
||||||
|
|
||||||
|
vc-sspi: $(VC)
|
||||||
|
cd lib
|
||||||
|
nmake /f Makefile.$(VC) cfg=release WINDOWS_SSPI=1
|
||||||
|
cd ..\src
|
||||||
|
nmake /f Makefile.$(VC) cfg=release WINDOWS_SSPI=1
|
||||||
|
|
||||||
|
vc-x64-sspi: $(VC)
|
||||||
|
cd lib
|
||||||
|
nmake /f Makefile.$(VC) MACHINE=x64 cfg=release WINDOWS_SSPI=1
|
||||||
|
cd ..\src
|
||||||
|
nmake /f Makefile.$(VC) MACHINE=x64 cfg=release WINDOWS_SSPI=1
|
||||||
|
|
||||||
|
vc-idn: $(VC)
|
||||||
|
cd lib
|
||||||
|
nmake /f Makefile.$(VC) cfg=release USE_IDN=1
|
||||||
|
cd ..\src
|
||||||
|
nmake /f Makefile.$(VC) cfg=release USE_IDN=1
|
||||||
|
|
||||||
|
vc-x64-idn: $(VC)
|
||||||
|
cd lib
|
||||||
|
nmake /f Makefile.$(VC) MACHINE=x64 cfg=release USE_IDN=1
|
||||||
|
cd ..\src
|
||||||
|
nmake /f Makefile.$(VC) MACHINE=x64 cfg=release USE_IDN=1
|
||||||
|
|
||||||
|
vc-idn-sspi: $(VC)
|
||||||
|
cd lib
|
||||||
|
nmake /f Makefile.$(VC) cfg=release USE_IDN=1 WINDOWS_SSPI=1
|
||||||
|
cd ..\src
|
||||||
|
nmake /f Makefile.$(VC) cfg=release USE_IDN=1 WINDOWS_SSPI=1
|
||||||
|
|
||||||
|
vc-x64-idn-sspi: $(VC)
|
||||||
|
cd lib
|
||||||
|
nmake /f Makefile.$(VC) MACHINE=x64 cfg=release USE_IDN=1 WINDOWS_SSPI=1
|
||||||
|
cd ..\src
|
||||||
|
nmake /f Makefile.$(VC) MACHINE=x64 cfg=release USE_IDN=1 WINDOWS_SSPI=1
|
||||||
|
|
||||||
vc-zlib: $(VC)
|
vc-zlib: $(VC)
|
||||||
cd lib
|
cd lib
|
||||||
nmake /f Makefile.$(VC) cfg=release-zlib
|
nmake /f Makefile.$(VC) cfg=release-zlib
|
||||||
@@ -142,29 +178,89 @@ vc-x64-zlib: $(VC)
|
|||||||
cd ..\src
|
cd ..\src
|
||||||
nmake /f Makefile.$(VC) MACHINE=x64 cfg=release-zlib
|
nmake /f Makefile.$(VC) MACHINE=x64 cfg=release-zlib
|
||||||
|
|
||||||
|
vc-zlib-sspi: $(VC)
|
||||||
|
cd lib
|
||||||
|
nmake /f Makefile.$(VC) cfg=release-zlib WINDOWS_SSPI=1
|
||||||
|
cd ..\src
|
||||||
|
nmake /f Makefile.$(VC) cfg=release-zlib WINDOWS_SSPI=1
|
||||||
|
|
||||||
|
vc-x64-zlib-sspi: $(VC)
|
||||||
|
cd lib
|
||||||
|
nmake /f Makefile.$(VC) MACHINE=x64 cfg=release-zlib WINDOWS_SSPI=1
|
||||||
|
cd ..\src
|
||||||
|
nmake /f Makefile.$(VC) MACHINE=x64 cfg=release-zlib WINDOWS_SSPI=1
|
||||||
|
|
||||||
|
vc-zlib-idn: $(VC)
|
||||||
|
cd lib
|
||||||
|
nmake /f Makefile.$(VC) cfg=release-zlib USE_IDN=1
|
||||||
|
cd ..\src
|
||||||
|
nmake /f Makefile.$(VC) cfg=release-zlib USE_IDN=1
|
||||||
|
|
||||||
|
vc-x64-zlib-idn: $(VC)
|
||||||
|
cd lib
|
||||||
|
nmake /f Makefile.$(VC) MACHINE=x64 cfg=release-zlib USE_IDN=1
|
||||||
|
cd ..\src
|
||||||
|
nmake /f Makefile.$(VC) MACHINE=x64 cfg=release-zlib USE_IDN=1
|
||||||
|
|
||||||
|
vc-zlib-idn-sspi: $(VC)
|
||||||
|
cd lib
|
||||||
|
nmake /f Makefile.$(VC) cfg=release-zlib USE_IDN=1 WINDOWS_SSPI=1
|
||||||
|
cd ..\src
|
||||||
|
nmake /f Makefile.$(VC) cfg=release-zlib USE_IDN=1 WINDOWS_SSPI=1
|
||||||
|
|
||||||
|
vc-x64-zlib-idn-sspi: $(VC)
|
||||||
|
cd lib
|
||||||
|
nmake /f Makefile.$(VC) MACHINE=x64 cfg=release-zlib USE_IDN=1 WINDOWS_SSPI=1
|
||||||
|
cd ..\src
|
||||||
|
nmake /f Makefile.$(VC) MACHINE=x64 cfg=release-zlib USE_IDN=1 WINDOWS_SSPI=1
|
||||||
|
|
||||||
vc-ssl: $(VC)
|
vc-ssl: $(VC)
|
||||||
cd lib
|
cd lib
|
||||||
nmake /f Makefile.$(VC) cfg=release-ssl
|
nmake /f Makefile.$(VC) cfg=release-ssl
|
||||||
cd ..\src
|
cd ..\src
|
||||||
nmake /f Makefile.$(VC) cfg=release-ssl
|
nmake /f Makefile.$(VC) cfg=release-ssl
|
||||||
|
|
||||||
vc-winssl: $(VC)
|
|
||||||
cd lib
|
|
||||||
nmake /f Makefile.$(VC) cfg=release-winssl WINDOWS_SSPI=1
|
|
||||||
cd ..\src
|
|
||||||
nmake /f Makefile.$(VC) cfg=release-winssl WINDOWS_SSPI=1
|
|
||||||
|
|
||||||
vc-x64-ssl: $(VC)
|
vc-x64-ssl: $(VC)
|
||||||
cd lib
|
cd lib
|
||||||
nmake /f Makefile.$(VC) MACHINE=x64 cfg=release-ssl
|
nmake /f Makefile.$(VC) MACHINE=x64 cfg=release-ssl
|
||||||
cd ..\src
|
cd ..\src
|
||||||
nmake /f Makefile.$(VC) MACHINE=x64 cfg=release-ssl
|
nmake /f Makefile.$(VC) MACHINE=x64 cfg=release-ssl
|
||||||
|
|
||||||
vc-x64-winssl: $(VC)
|
vc-ssl-sspi: $(VC)
|
||||||
cd lib
|
cd lib
|
||||||
nmake /f Makefile.$(VC) MACHINE=x64 cfg=release-winssl WINDOWS_SSPI=1
|
nmake /f Makefile.$(VC) cfg=release-ssl WINDOWS_SSPI=1
|
||||||
cd ..\src
|
cd ..\src
|
||||||
nmake /f Makefile.$(VC) MACHINE=x64 cfg=release-winssl WINDOWS_SSPI=1
|
nmake /f Makefile.$(VC) cfg=release-ssl WINDOWS_SSPI=1
|
||||||
|
|
||||||
|
vc-x64-ssl-sspi: $(VC)
|
||||||
|
cd lib
|
||||||
|
nmake /f Makefile.$(VC) MACHINE=x64 cfg=release-ssl WINDOWS_SSPI=1
|
||||||
|
cd ..\src
|
||||||
|
nmake /f Makefile.$(VC) MACHINE=x64 cfg=release-ssl WINDOWS_SSPI=1
|
||||||
|
|
||||||
|
vc-ssl-idn: $(VC)
|
||||||
|
cd lib
|
||||||
|
nmake /f Makefile.$(VC) cfg=release-ssl USE_IDN=1
|
||||||
|
cd ..\src
|
||||||
|
nmake /f Makefile.$(VC) cfg=release-ssl USE_IDN=1
|
||||||
|
|
||||||
|
vc-x64-ssl-idn: $(VC)
|
||||||
|
cd lib
|
||||||
|
nmake /f Makefile.$(VC) MACHINE=x64 cfg=release-ssl USE_IDN=1
|
||||||
|
cd ..\src
|
||||||
|
nmake /f Makefile.$(VC) MACHINE=x64 cfg=release-ssl USE_IDN=1
|
||||||
|
|
||||||
|
vc-ssl-idn-sspi: $(VC)
|
||||||
|
cd lib
|
||||||
|
nmake /f Makefile.$(VC) cfg=release-ssl USE_IDN=1 WINDOWS_SSPI=1
|
||||||
|
cd ..\src
|
||||||
|
nmake /f Makefile.$(VC) cfg=release-ssl USE_IDN=1 WINDOWS_SSPI=1
|
||||||
|
|
||||||
|
vc-x64-ssl-idn-sspi: $(VC)
|
||||||
|
cd lib
|
||||||
|
nmake /f Makefile.$(VC) MACHINE=x64 cfg=release-ssl USE_IDN=1 WINDOWS_SSPI=1
|
||||||
|
cd ..\src
|
||||||
|
nmake /f Makefile.$(VC) MACHINE=x64 cfg=release-ssl USE_IDN=1 WINDOWS_SSPI=1
|
||||||
|
|
||||||
vc-ssl-zlib: $(VC)
|
vc-ssl-zlib: $(VC)
|
||||||
cd lib
|
cd lib
|
||||||
@@ -172,23 +268,143 @@ vc-ssl-zlib: $(VC)
|
|||||||
cd ..\src
|
cd ..\src
|
||||||
nmake /f Makefile.$(VC) cfg=release-ssl-zlib
|
nmake /f Makefile.$(VC) cfg=release-ssl-zlib
|
||||||
|
|
||||||
vc-winssl-zlib: $(VC)
|
|
||||||
cd lib
|
|
||||||
nmake /f Makefile.$(VC) cfg=release-winssl-zlib
|
|
||||||
cd ..\src
|
|
||||||
nmake /f Makefile.$(VC) cfg=release-winssl-zlib
|
|
||||||
|
|
||||||
vc-x64-ssl-zlib: $(VC)
|
vc-x64-ssl-zlib: $(VC)
|
||||||
cd lib
|
cd lib
|
||||||
nmake /f Makefile.$(VC) MACHINE=x64 cfg=release-ssl-zlib
|
nmake /f Makefile.$(VC) MACHINE=x64 cfg=release-ssl-zlib
|
||||||
cd ..\src
|
cd ..\src
|
||||||
nmake /f Makefile.$(VC) MACHINE=x64 cfg=release-ssl-zlib
|
nmake /f Makefile.$(VC) MACHINE=x64 cfg=release-ssl-zlib
|
||||||
|
|
||||||
|
vc-ssl-zlib-sspi: $(VC)
|
||||||
|
cd lib
|
||||||
|
nmake /f Makefile.$(VC) cfg=release-ssl-zlib WINDOWS_SSPI=1
|
||||||
|
cd ..\src
|
||||||
|
nmake /f Makefile.$(VC) cfg=release-ssl-zlib WINDOWS_SSPI=1
|
||||||
|
|
||||||
|
vc-x64-ssl-zlib-sspi: $(VC)
|
||||||
|
cd lib
|
||||||
|
nmake /f Makefile.$(VC) MACHINE=x64 cfg=release-ssl-zlib WINDOWS_SSPI=1
|
||||||
|
cd ..\src
|
||||||
|
nmake /f Makefile.$(VC) MACHINE=x64 cfg=release-ssl-zlib WINDOWS_SSPI=1
|
||||||
|
|
||||||
|
vc-ssl-zlib-idn: $(VC)
|
||||||
|
cd lib
|
||||||
|
nmake /f Makefile.$(VC) cfg=release-ssl-zlib USE_IDN=1
|
||||||
|
cd ..\src
|
||||||
|
nmake /f Makefile.$(VC) cfg=release-ssl-zlib USE_IDN=1
|
||||||
|
|
||||||
|
vc-x64-ssl-zlib-idn: $(VC)
|
||||||
|
cd lib
|
||||||
|
nmake /f Makefile.$(VC) MACHINE=x64 cfg=release-ssl-zlib USE_IDN=1
|
||||||
|
cd ..\src
|
||||||
|
nmake /f Makefile.$(VC) MACHINE=x64 cfg=release-ssl-zlib USE_IDN=1
|
||||||
|
|
||||||
|
vc-ssl-zlib-idn-sspi: $(VC)
|
||||||
|
cd lib
|
||||||
|
nmake /f Makefile.$(VC) cfg=release-ssl-zlib USE_IDN=1 WINDOWS_SSPI=1
|
||||||
|
cd ..\src
|
||||||
|
nmake /f Makefile.$(VC) cfg=release-ssl-zlib USE_IDN=1 WINDOWS_SSPI=1
|
||||||
|
|
||||||
|
vc-x64-ssl-zlib-idn-sspi: $(VC)
|
||||||
|
cd lib
|
||||||
|
nmake /f Makefile.$(VC) MACHINE=x64 cfg=release-ssl-zlib USE_IDN=1 WINDOWS_SSPI=1
|
||||||
|
cd ..\src
|
||||||
|
nmake /f Makefile.$(VC) MACHINE=x64 cfg=release-ssl-zlib USE_IDN=1 WINDOWS_SSPI=1
|
||||||
|
|
||||||
|
vc-ssl-ssh2-zlib: $(VC)
|
||||||
|
cd lib
|
||||||
|
nmake /f Makefile.$(VC) cfg=release-ssl-ssh2-zlib
|
||||||
|
cd ..\src
|
||||||
|
nmake /f Makefile.$(VC) cfg=release-ssl-ssh2-zlib
|
||||||
|
|
||||||
|
vc-x64-ssl-ssh2-zlib: $(VC)
|
||||||
|
cd lib
|
||||||
|
nmake /f Makefile.$(VC) MACHINE=x64 cfg=release-ssl-ssh2-zlib
|
||||||
|
cd ..\src
|
||||||
|
nmake /f Makefile.$(VC) MACHINE=x64 cfg=release-ssl-ssh2-zlib
|
||||||
|
|
||||||
|
vc-ssl-ssh2-zlib-sspi: $(VC)
|
||||||
|
cd lib
|
||||||
|
nmake /f Makefile.$(VC) cfg=release-ssl-ssh2-zlib WINDOWS_SSPI=1
|
||||||
|
cd ..\src
|
||||||
|
nmake /f Makefile.$(VC) cfg=release-ssl-ssh2-zlib WINDOWS_SSPI=1
|
||||||
|
|
||||||
|
vc-x64-ssl-ssh2-zlib-sspi: $(VC)
|
||||||
|
cd lib
|
||||||
|
nmake /f Makefile.$(VC) MACHINE=x64 cfg=release-ssl-ssh2-zlib WINDOWS_SSPI=1
|
||||||
|
cd ..\src
|
||||||
|
nmake /f Makefile.$(VC) MACHINE=x64 cfg=release-ssl-ssh2-zlib WINDOWS_SSPI=1
|
||||||
|
|
||||||
|
vc-ssl-ssh2-zlib-idn: $(VC)
|
||||||
|
cd lib
|
||||||
|
nmake /f Makefile.$(VC) cfg=release-ssl-ssh2-zlib USE_IDN=1
|
||||||
|
cd ..\src
|
||||||
|
nmake /f Makefile.$(VC) cfg=release-ssl-ssh2-zlib USE_IDN=1
|
||||||
|
|
||||||
|
vc-x64-ssl-ssh2-zlib-idn: $(VC)
|
||||||
|
cd lib
|
||||||
|
nmake /f Makefile.$(VC) MACHINE=x64 cfg=release-ssl-ssh2-zlib USE_IDN=1
|
||||||
|
cd ..\src
|
||||||
|
nmake /f Makefile.$(VC) MACHINE=x64 cfg=release-ssl-ssh2-zlib USE_IDN=1
|
||||||
|
|
||||||
|
vc-ssl-ssh2-zlib-idn-sspi: $(VC)
|
||||||
|
cd lib
|
||||||
|
nmake /f Makefile.$(VC) cfg=release-ssl-ssh2-zlib USE_IDN=1 WINDOWS_SSPI=1
|
||||||
|
cd ..\src
|
||||||
|
nmake /f Makefile.$(VC) cfg=release-ssl-ssh2-zlib USE_IDN=1 WINDOWS_SSPI=1
|
||||||
|
|
||||||
|
vc-x64-ssl-ssh2-zlib-idn-sspi: $(VC)
|
||||||
|
cd lib
|
||||||
|
nmake /f Makefile.$(VC) MACHINE=x64 cfg=release-ssl-ssh2-zlib USE_IDN=1 WINDOWS_SSPI=1
|
||||||
|
cd ..\src
|
||||||
|
nmake /f Makefile.$(VC) MACHINE=x64 cfg=release-ssl-ssh2-zlib USE_IDN=1 WINDOWS_SSPI=1
|
||||||
|
|
||||||
|
vc-winssl: $(VC)
|
||||||
|
cd lib
|
||||||
|
nmake /f Makefile.$(VC) cfg=release-winssl WINDOWS_SSPI=1
|
||||||
|
cd ..\src
|
||||||
|
nmake /f Makefile.$(VC) cfg=release-winssl WINDOWS_SSPI=1
|
||||||
|
|
||||||
|
vc-x64-winssl: $(VC)
|
||||||
|
cd lib
|
||||||
|
nmake /f Makefile.$(VC) MACHINE=x64 cfg=release-winssl WINDOWS_SSPI=1
|
||||||
|
cd ..\src
|
||||||
|
nmake /f Makefile.$(VC) MACHINE=x64 cfg=release-winssl WINDOWS_SSPI=1
|
||||||
|
|
||||||
|
vc-winssl-idn: $(VC)
|
||||||
|
cd lib
|
||||||
|
nmake /f Makefile.$(VC) cfg=release-winssl USE_IDN=1 WINDOWS_SSPI=1
|
||||||
|
cd ..\src
|
||||||
|
nmake /f Makefile.$(VC) cfg=release-winssl USE_IDN=1 WINDOWS_SSPI=1
|
||||||
|
|
||||||
|
vc-x64-winssl-idn: $(VC)
|
||||||
|
cd lib
|
||||||
|
nmake /f Makefile.$(VC) MACHINE=x64 cfg=release-winssl USE_IDN=1 WINDOWS_SSPI=1
|
||||||
|
cd ..\src
|
||||||
|
nmake /f Makefile.$(VC) MACHINE=x64 cfg=release-winssl USE_IDN=1 WINDOWS_SSPI=1
|
||||||
|
|
||||||
|
vc-winssl-zlib: $(VC)
|
||||||
|
cd lib
|
||||||
|
nmake /f Makefile.$(VC) cfg=release-winssl-zlib WINDOWS_SSPI=1
|
||||||
|
cd ..\src
|
||||||
|
nmake /f Makefile.$(VC) cfg=release-winssl-zlib WINDOWS_SSPI=1
|
||||||
|
|
||||||
vc-x64-winssl-zlib: $(VC)
|
vc-x64-winssl-zlib: $(VC)
|
||||||
cd lib
|
cd lib
|
||||||
nmake /f Makefile.$(VC) MACHINE=x64 cfg=release-winssl-zlib
|
nmake /f Makefile.$(VC) MACHINE=x64 cfg=release-winssl-zlib WINDOWS_SSPI=1
|
||||||
cd ..\src
|
cd ..\src
|
||||||
nmake /f Makefile.$(VC) MACHINE=x64 cfg=release-winssl-zlib
|
nmake /f Makefile.$(VC) MACHINE=x64 cfg=release-winssl-zlib WINDOWS_SSPI=1
|
||||||
|
|
||||||
|
vc-winssl-zlib-idn: $(VC)
|
||||||
|
cd lib
|
||||||
|
nmake /f Makefile.$(VC) cfg=release-winssl-zlib USE_IDN=1 WINDOWS_SSPI=1
|
||||||
|
cd ..\src
|
||||||
|
nmake /f Makefile.$(VC) cfg=release-winssl-zlib USE_IDN=1 WINDOWS_SSPI=1
|
||||||
|
|
||||||
|
vc-x64-winssl-zlib-idn: $(VC)
|
||||||
|
cd lib
|
||||||
|
nmake /f Makefile.$(VC) MACHINE=x64 cfg=release-winssl-zlib USE_IDN=1 WINDOWS_SSPI=1
|
||||||
|
cd ..\src
|
||||||
|
nmake /f Makefile.$(VC) MACHINE=x64 cfg=release-winssl-zlib USE_IDN=1 WINDOWS_SSPI=1
|
||||||
|
|
||||||
vc-ssl-dll: $(VC)
|
vc-ssl-dll: $(VC)
|
||||||
cd lib
|
cd lib
|
||||||
@@ -232,12 +448,6 @@ vc-zlib-dll: $(VC)
|
|||||||
cd ..\src
|
cd ..\src
|
||||||
nmake /f Makefile.$(VC) cfg=release-zlib-dll
|
nmake /f Makefile.$(VC) cfg=release-zlib-dll
|
||||||
|
|
||||||
vc-sspi: $(VC)
|
|
||||||
cd lib
|
|
||||||
nmake /f Makefile.$(VC) cfg=release WINDOWS_SSPI=1
|
|
||||||
cd ..\src
|
|
||||||
nmake /f Makefile.$(VC) cfg=release WINDOWS_SSPI=1
|
|
||||||
|
|
||||||
djgpp:
|
djgpp:
|
||||||
$(MAKE) -C lib -f Makefile.dj
|
$(MAKE) -C lib -f Makefile.dj
|
||||||
$(MAKE) -C src -f Makefile.dj
|
$(MAKE) -C src -f Makefile.dj
|
||||||
@@ -356,6 +566,17 @@ src/Makefile.vc12: src/Makefile.vc6
|
|||||||
@echo "generate $@"
|
@echo "generate $@"
|
||||||
@sed -e "s#/GX /DWIN32 /YX#/EHsc /DWIN32#" -e "s#/GZ#/RTC1#" -e "s/ws2_32.lib/ws2_32.lib/g" -e "s/vc6/vc12/g" -e "s/VC6/VC12/g" src/Makefile.vc6 > src/Makefile.vc12
|
@sed -e "s#/GX /DWIN32 /YX#/EHsc /DWIN32#" -e "s#/GZ#/RTC1#" -e "s/ws2_32.lib/ws2_32.lib/g" -e "s/vc6/vc12/g" -e "s/VC6/VC12/g" src/Makefile.vc6 > src/Makefile.vc12
|
||||||
|
|
||||||
|
# VC14 makefiles are for use with VS2015
|
||||||
|
vc14: lib/Makefile.vc14 src/Makefile.vc14
|
||||||
|
|
||||||
|
lib/Makefile.vc14: lib/Makefile.vc6
|
||||||
|
@echo "generate $@"
|
||||||
|
@sed -e "s#/GX /DWIN32 /YX#/EHsc /DWIN32#" -e "s#/GZ#/RTC1#" -e "s/ws2_32.lib/ws2_32.lib/g" -e "s/vc6/vc14/g" -e "s/VC6/VC14/g" lib/Makefile.vc6 > lib/Makefile.vc14
|
||||||
|
|
||||||
|
src/Makefile.vc14: src/Makefile.vc6
|
||||||
|
@echo "generate $@"
|
||||||
|
@sed -e "s#/GX /DWIN32 /YX#/EHsc /DWIN32#" -e "s#/GZ#/RTC1#" -e "s/ws2_32.lib/ws2_32.lib/g" -e "s/vc6/vc14/g" -e "s/VC6/VC14/g" src/Makefile.vc6 > src/Makefile.vc14
|
||||||
|
|
||||||
ca-bundle: lib/mk-ca-bundle.pl
|
ca-bundle: lib/mk-ca-bundle.pl
|
||||||
@echo "generate a fresh ca-bundle.crt"
|
@echo "generate a fresh ca-bundle.crt"
|
||||||
@perl $< -b -l -u lib/ca-bundle.crt
|
@perl $< -b -l -u lib/ca-bundle.crt
|
||||||
|
|||||||
8
README
8
README
@@ -24,7 +24,7 @@ README
|
|||||||
CONTACT
|
CONTACT
|
||||||
|
|
||||||
If you have problems, questions, ideas or suggestions, please contact us
|
If you have problems, questions, ideas or suggestions, please contact us
|
||||||
by posting to a suitable mailing list. See http://curl.haxx.se/mail/
|
by posting to a suitable mailing list. See https://curl.haxx.se/mail/
|
||||||
|
|
||||||
All contributors to the project are listed in the THANKS document.
|
All contributors to the project are listed in the THANKS document.
|
||||||
|
|
||||||
@@ -32,18 +32,18 @@ WEB SITE
|
|||||||
|
|
||||||
Visit the curl web site for the latest news and downloads:
|
Visit the curl web site for the latest news and downloads:
|
||||||
|
|
||||||
http://curl.haxx.se/
|
https://curl.haxx.se/
|
||||||
|
|
||||||
GIT
|
GIT
|
||||||
|
|
||||||
To download the very latest source off the GIT server do this:
|
To download the very latest source off the GIT server do this:
|
||||||
|
|
||||||
git clone git://github.com/bagder/curl.git
|
git clone https://github.com/curl/curl.git
|
||||||
|
|
||||||
(you'll get a directory named curl created, filled with the source code)
|
(you'll get a directory named curl created, filled with the source code)
|
||||||
|
|
||||||
NOTICE
|
NOTICE
|
||||||
|
|
||||||
Curl contains pieces of source code that is Copyright (c) 1998, 1999
|
Curl contains pieces of source code that is Copyright (c) 1998, 1999
|
||||||
Kungliga Tekniska H<EFBFBD>gskolan. This notice is included here to comply with the
|
Kungliga Tekniska Högskolan. This notice is included here to comply with the
|
||||||
distribution terms.
|
distribution terms.
|
||||||
|
|||||||
45
README.md
Normal file
45
README.md
Normal file
@@ -0,0 +1,45 @@
|
|||||||
|
|
||||||
|
Curl is a command line tool for transferring data specified with URL
|
||||||
|
syntax. Find out how to use curl by reading [the curl.1 man
|
||||||
|
page](https://curl.haxx.se/docs/manpage.html) or [the MANUAL
|
||||||
|
document](https://curl.haxx.se/docs/manual.html). Find out how to install Curl
|
||||||
|
by reading [the INSTALL document](https://curl.haxx.se/docs/install.html).
|
||||||
|
|
||||||
|
libcurl is the library curl is using to do its job. It is readily available to
|
||||||
|
be used by your software. Read [the libcurl.3 man
|
||||||
|
page](https://curl.haxx.se/libcurl/c/libcurl.html) to learn how!
|
||||||
|
|
||||||
|
You find answers to the most frequent questions we get in [the FAQ
|
||||||
|
document](https://curl.haxx.se/docs/faq.html).
|
||||||
|
|
||||||
|
Study [the COPYING file](https://curl.haxx.se/docs/copyright.html) for
|
||||||
|
distribution terms and similar. If you distribute curl binaries or other
|
||||||
|
binaries that involve libcurl, you might enjoy [the LICENSE-MIXING
|
||||||
|
document](https://curl.haxx.se/legal/licmix.html).
|
||||||
|
|
||||||
|
## CONTACT
|
||||||
|
|
||||||
|
If you have problems, questions, ideas or suggestions, please contact us by
|
||||||
|
posting to a suitable [mailing list](https://curl.haxx.se/mail/).
|
||||||
|
|
||||||
|
All contributors to the project are listed in [the THANKS
|
||||||
|
document](https://curl.haxx.se/docs/thanks.html).
|
||||||
|
|
||||||
|
## WEB SITE
|
||||||
|
|
||||||
|
Visit the [curl web site](https://curl.haxx.se/) for the latest news and
|
||||||
|
downloads.
|
||||||
|
|
||||||
|
## GIT
|
||||||
|
|
||||||
|
To download the very latest source off the GIT server do this:
|
||||||
|
|
||||||
|
git clone https://github.com/curl/curl.git
|
||||||
|
|
||||||
|
(you'll get a directory named curl created, filled with the source code)
|
||||||
|
|
||||||
|
## NOTICE
|
||||||
|
|
||||||
|
Curl contains pieces of source code that is Copyright (c) 1998, 1999 Kungliga
|
||||||
|
Tekniska Högskolan. This notice is included here to comply with the
|
||||||
|
distribution terms.
|
||||||
251
RELEASE-NOTES
251
RELEASE-NOTES
@@ -1,130 +1,159 @@
|
|||||||
Curl and libcurl 7.37.0
|
Curl and libcurl 7.48.0
|
||||||
|
|
||||||
Public curl releases: 139
|
Public curl releases: 153
|
||||||
Command line options: 161
|
Command line options: 179
|
||||||
curl_easy_setopt() options: 206
|
curl_easy_setopt() options: 221
|
||||||
Public functions in libcurl: 58
|
Public functions in libcurl: 61
|
||||||
Contributors: 1137
|
Contributors: 1364
|
||||||
|
|
||||||
This release includes the following changes:
|
This release includes the following changes:
|
||||||
|
|
||||||
o URL parser: IPv6 zone identifiers are now supported
|
o configure: --with-ca-fallback: use built-in TLS CA fallback [2]
|
||||||
o CURLOPT_PROXYHEADER: set headers for proxy-only
|
o TFTP: add --tftp-no-options to expose CURLOPT_TFTP_NO_OPTIONS [22]
|
||||||
o CURLOPT_HEADEROPT: added
|
o getinfo: CURLINFO_TLS_SSL_PTR supersedes CURLINFO_TLS_SESSION [25]
|
||||||
o curl: add --proxy-header
|
o added CODE_STYLE.md [47]
|
||||||
o sasl: Added support for DIGEST-MD5 via Windows SSPI
|
|
||||||
o sasl: Added DIGEST-MD5 qop-option validation in native challange handling
|
|
||||||
o imap: Expanded mailbox SEARCH support to use URL query strings [7]
|
|
||||||
o imap: Extended FETCH support to include PARTIAL URL specifier [7]
|
|
||||||
o nss: implement non-blocking SSL handshake
|
|
||||||
o build: Reworked Visual Studio project files
|
|
||||||
o poll: enable poll on darwin13
|
|
||||||
o mk-ca-bundle: added -p
|
|
||||||
o libtests: add a wait_ms() function
|
|
||||||
|
|
||||||
This release includes the following bugfixes:
|
This release includes the following bugfixes:
|
||||||
|
|
||||||
o mkhelp: generate code for --disable-manual as well [1]
|
o Proxy-Connection: stop sending this header by default [1]
|
||||||
o hostcheck: added a system include to define struct in_addr
|
o os400: sync ILE/RPG definitions with latest public header files
|
||||||
o winbuild: added warnless.c to fix build
|
o cookies: allow spaces in cookie names, cut of trailing spaces [3]
|
||||||
o Makefile.vc6: added warnless.c to fix build
|
o tool_urlglob: Allow reserved dos device names (Windows) [4]
|
||||||
o smtp: Fixed login denied when server doesn't support AUTH capability [2]
|
o openssl: remove most BoringSSL #ifdefs [5]
|
||||||
o smtp: Fixed login denied with a RFC-821 based server [2]
|
o tool_doswin: Support for literal path prefix \\?\
|
||||||
o curl: stop interpreting IPv6 literals as glob patterns
|
o mbedtls: fix ALPN usage segfault [6]
|
||||||
o http2: remove _DRAFT09 from the NPN_HTTP2 enum
|
o mbedtls: fix memory leak when destroying SSL connection data [7]
|
||||||
o http2: let openssl mention the exact protocol negotiated
|
o nss: do not count enabled cipher-suites
|
||||||
o http2+openssl: fix compiler warnings in ALPN using code
|
o examples/cookie_interface.c: add cleanup call
|
||||||
o ftp: in passive data connect wait for happy eyeballs sockets [3]
|
o examples: adhere to curl code style
|
||||||
o HTTP: don't send Content-Length: 0 _and_ Expect: 100-continue [4]
|
o curlx_tvdiff: handle 32bit time_t overflows [8]
|
||||||
o http2: Compile with current nghttp2, which supports h2-11 [5]
|
o dist: ship buildconf.bat too
|
||||||
o http_negotiate_sspi: Fixed compilation when USE_HTTP_NEGOTIATE not defined
|
o curl.1: --disable-{eprt,epsv} are ignored for IPv6 hosts [9]
|
||||||
o strerror: fix comment about vxworks' strerror_r buffer size [6]
|
o generate.bat: Fix comment bug by removing old comments [10]
|
||||||
o url: only use if_nametoindex() if IFNAMSIZ is available
|
o test1604: Add to Makefile.inc so it gets run
|
||||||
o imap: Fixed untagged response detection when no data after command
|
o gtls: fix for builds lacking encrypted key file support [11]
|
||||||
o various: fix possible dereference of null pointer
|
o SCP: use libssh2_scp_recv2 to support > 2GB files on windows [12]
|
||||||
o various: fix use of uninitialized variable
|
o CURLOPT_CONNECTTIMEOUT_MS.3: Fix example to use milliseconds option [13]
|
||||||
o various: fix use of non-null terminated strings
|
o cookie: do not refuse cookies to localhost [14]
|
||||||
o telnet.c: check sscanf results before passing them to snprintf
|
o openssl: avoid direct PKEY access with OpenSSL 1.1.0 [15]
|
||||||
o parsedate.c: check sscanf result before passing it to strlen
|
o http: Don't break the header into chunks if HTTP/2 [16]
|
||||||
o sockfilt.c: free memory in case of memory allocation errors
|
o http2: don't decompress gzip decoding automatically [17]
|
||||||
o sockfilt.c: ignore non-key-events and continue waiting for input
|
o curlx.c: i2s_ASN1_IA5STRING() clashes with an openssl function
|
||||||
o sockfilt.c: properly handle disk files, pipes and character input
|
o curl.1: add a missing dash
|
||||||
o sockfilt.c: fixed getting stuck waiting for MinGW stdin pipe
|
o curl.1: HTTP headers for --cookie must be Set-Cookie style [18]
|
||||||
o sockfilt.c: clean up threaded approach and add documentation
|
o CURLOPT_COOKIEFILE.3: HTTP headers must be Set-Cookie style [18]
|
||||||
o configure: use the nghttp2 path correctly with pkg-config [8]
|
o curl_sasl: Fix memory leak in digest parser [19]
|
||||||
o curl_global_init_mem: bump initialized even if already initialized [9]
|
o src/Makefile.m32: add CURL_{LD,C}FLAGS_EXTRAS support [20]
|
||||||
o gtls: fix NULL pointer dereference [10]
|
o CURLOPT_DEBUGFUNCTION.3: Fix example
|
||||||
o cyassl: Use error-ssl.h when available
|
o runtests: Fixed usage of %PWD on MinGW64 [21]
|
||||||
o handler: make 'protocol' always specified as a single bit [11]
|
o tests/sshserver.pl: use RSA instead of DSA for host auth [23]
|
||||||
o INFILESIZE: fields in UserDefined must not be changed run-time
|
o multi_remove_handle: keep the timeout list until after disconnect [24]
|
||||||
o openssl: biomem->data is not zero terminated
|
o Curl_read: check for activated HTTP/1 pipelining, not only requested
|
||||||
o config-win32.h: Fixed HAVE_LONGLONG for Visual Studio .NET 2003 and up
|
o configure: warn on invalid ca bundle or path [26]
|
||||||
o curl_ntlm_core: Fixed use of long long for VC6 and VC7
|
o file: try reading from files with no size [27]
|
||||||
o SNI: strip off a single trailing dot from host name [12]
|
o getinfo: Add support for mbedTLS TLS session info
|
||||||
o curl: bail on cookie use when built with disabled cookies
|
o formpost: fix memory leaks in AddFormData error branches [28]
|
||||||
o curl_easy_setopt.3: added the proto for CURLOPT_SSH_KNOWNHOSTS
|
o makefile.m32: allow to pass .dll/.exe-specific LDFLAGS [29]
|
||||||
o curl_multi_cleanup: ignore SIGPIPE better [13]
|
o url: if Curl_done is premature then pipeline not in use [30]
|
||||||
o schannel: don't use the connect-timeout during send [14]
|
o cookie: remove redundant check [31]
|
||||||
o mprintf: allow %.s with data not being zero terminated
|
o cookie: Don't expire session cookies in remove_expired [32]
|
||||||
o tool_help: Fixed missing --login-options option
|
o makefile.m32: fix to allow -ssh2-winssl combination [33]
|
||||||
o configure: Don't set LD_LIBRARY_PATH when cross-compiling
|
o checksrc.bat: Fixed cannot find perl if installed but not in path
|
||||||
o http: auth failure on duplicated 'WWW-Authenticate: Negotiate' header [15]
|
o build-openssl.bat: Fixed cannot find perl if installed but not in path
|
||||||
o cacertinmem: fix memory leak [16]
|
o mbedtls: fix user-specified SSL protocol version
|
||||||
o lib1506: make sure the transfers are not within the same ms [17]
|
o makefile.m32: add missing libs for static -winssl-ssh2 builds [34]
|
||||||
o Makefile.b32: Fixed for vtls changes [18]
|
o test46: change cookie expiry date [35]
|
||||||
o sasl: Fixed missing qop in the client's challenge-response message
|
o pipeline: Sanity check pipeline pointer before accessing it [36]
|
||||||
o openssl: unbreak PKCS12 support [19]
|
o openssl: use the correct OpenSSL/BoringSSL/LibreSSL in messages
|
||||||
o darwinssl: fix potential crash with a P12 file [20]
|
o ftp_done: clear tunnel_state when secondary socket closes [37]
|
||||||
o timers: fix timer regression involving redirects / reconnects [21]
|
o opt-docs: fix heading macros [38]
|
||||||
o CURLINFO_SSL_VERIFYRESULT: made more reliable [22]
|
o imap/pop3/smtp: Fixed connections upgraded with TLS are not reused [39]
|
||||||
o HTTP: fixed connection re-use [23]
|
o curl_multi_wait: never return -1 in 'numfds' [40]
|
||||||
o configure: add SPNEGO to supported features [24]
|
o url.c: fix clang warning: no newline at end of file
|
||||||
o configure: add GSS-API to supported features [25]
|
o krb5: improved type handling to avoid clang compiler warnings
|
||||||
o ALPN: fix typo in http/1.1 identifier
|
o cookies: first n/v pair in Set-Cookie: is the cookie, then parameters [41]
|
||||||
o http2: make connection re-use work [26]
|
o multi: avoid blocking during CURLM_STATE_WAITPROXYCONNECT [42]
|
||||||
|
o multi hash: ensure modulo performed on curl_socket_t [43]
|
||||||
|
o curl: glob_range: no need to check unsigned variable for negative
|
||||||
|
o easy: add check to malloc() when running event-based
|
||||||
|
o CURLOPT_SSLENGINE.3: Only for OpenSSL built with engine support [44]
|
||||||
|
o version: thread safety
|
||||||
|
o openssl: verbose: show matching SAN pattern
|
||||||
|
o openssl: adapt to OpenSSL 1.1.0 API breakage in ERR_remove_thread_state()
|
||||||
|
o formdata.c: Fixed compilation warning
|
||||||
|
o configure: use cpp -P when needed [45]
|
||||||
|
o imap.c: Fixed compilation warning with /Wall enabled
|
||||||
|
o config-w32.h: Fixed compilation warning when /Wall enabled
|
||||||
|
o ftp/imap/pop3/smtp: Fixed compilation warning when /Wall enabled
|
||||||
|
o build: Added missing Visual Studio filter files for VC10 onwards
|
||||||
|
o easy: Remove poll failure check in easy_transfer
|
||||||
|
o mbedtls: fix compiler warning
|
||||||
|
o build-wolfssl: Update VS properties for wolfSSL v3.9.0
|
||||||
|
o Fixed various compilation warnings when verbose strings disabled
|
||||||
|
|
||||||
This release includes the following known bugs:
|
This release includes the following known bugs:
|
||||||
|
|
||||||
o see docs/KNOWN_BUGS (http://curl.haxx.se/docs/knownbugs.html)
|
o see docs/KNOWN_BUGS (https://curl.haxx.se/docs/knownbugs.html)
|
||||||
|
|
||||||
This release would not have looked like this without help, code, reports and
|
This release would not have looked like this without help, code, reports and
|
||||||
advice from friends like these:
|
advice from friends like these:
|
||||||
|
|
||||||
Aaro Koskinen, Cody Mack, Damian Dixon, Dan Fandrich, Daniel Johnson,
|
Anders Bakken, Brad Fitzpatrick, Clint Clayton, Dan Fandrich,
|
||||||
Daniel Stenberg, David Woodhouse, Dilyan Palauzov, Fabian Frank,
|
Daniel Stenberg, David Benjamin, David Byron, Emil Lerner, Eric S. Raymond,
|
||||||
Ivo Bellin Salarin, Jeff King, Jeroen Koekkoek, Jon Torrey, Kamil Dudka,
|
Gisle Vanem, Jaime Fullaondo, Jeffrey Walton, Jesse Tan, Justin Ehlert,
|
||||||
Larry Lin, Leon Winter, Maciej Puzio, Marc Hoersken, Michael Osipov,
|
Kamil Dudka, Kazuho Oku, Ludwig Nussel, Maksim Kuzevanov, Michael König,
|
||||||
Nick Zitzmann, Patrick Watson, Paul Marks, Radu Simionescu, Remi Gacogne,
|
Oliver Graute, Patrick Monnerat, Rafael Antonio, Ray Satiro, Seth Mos,
|
||||||
Ryan Braud, Steve Holme, Tatsuhiro Tsujikawa, Till Maas, Tom Sparrow,
|
Shine Fan, Steve Holme, Tatsuhiro Tsujikawa, Timotej Lazar, Tim Rühsen,
|
||||||
Török Edwin, Vijay Panghal,
|
Viktor Szakáts,
|
||||||
|
(30 contributors)
|
||||||
|
|
||||||
Thanks! (and sorry if I forgot to mention someone)
|
Thanks! (and sorry if I forgot to mention someone)
|
||||||
|
|
||||||
References to bug reports and discussions on issues:
|
References to bug reports and discussions on issues:
|
||||||
|
|
||||||
[1] = http://curl.haxx.se/bug/view.cgi?id=1350
|
[1] = https://curl.haxx.se/bug/?i=633
|
||||||
[2] = http://curl.haxx.se/mail/lib-2014-03/0173.html
|
[2] = https://curl.haxx.se/bug/?i=569
|
||||||
[3] = http://curl.haxx.se/mail/lib-2014-02/0135.html (ruined)
|
[3] = https://curl.haxx.se/bug/?i=639
|
||||||
[4] = http://curl.haxx.se/bug/view.cgi?id=1349
|
[4] = https://github.com/curl/curl/commit/4520534#commitcomment-15954863
|
||||||
[5] = http://curl.haxx.se/mail/lib-2014-04/0053.html
|
[5] = https://curl.haxx.se/bug/?i=640
|
||||||
[6] = http://curl.haxx.se/mail/lib-2014-04/0063.html
|
[6] = https://curl.haxx.se/bug/?i=642
|
||||||
[7] = http://curl.haxx.se/mail/lib-2014-04/0067.html
|
[7] = https://curl.haxx.se/bug/?i=626
|
||||||
[8] = http://curl.haxx.se/mail/lib-2014-04/0159.html
|
[8] = https://curl.haxx.se/bug/?i=646
|
||||||
[9] = http://curl.haxx.se/bug/view.cgi?id=1362
|
[9] = https://bugzilla.redhat.com/1305970
|
||||||
[10] = http://curl.haxx.se/mail/lib-2014-04/0145.html
|
[10] = https://curl.haxx.se/bug/?i=649
|
||||||
[11] = https://github.com/bagder/curl/pull/97
|
[11] = https://curl.haxx.se/bug/?i=651
|
||||||
[12] = http://curl.haxx.se/mail/lib-2014-04/0161.html
|
[12] = https://curl.haxx.se/bug/?i=451
|
||||||
[13] = http://thread.gmane.org/gmane.comp.version-control.git/238242
|
[13] = https://curl.haxx.se/bug/?i=653
|
||||||
[14] = http://curl.haxx.se/bug/view.cgi?id=1352
|
[14] = https://curl.haxx.se/bug/?i=658
|
||||||
[15] = https://bugzilla.redhat.com/1093348
|
[15] = https://curl.haxx.se/bug/?i=650
|
||||||
[16] = http://curl.haxx.se/bug/view.cgi?id=1368
|
[16] = https://curl.haxx.se/bug/?i=659
|
||||||
[17] = http://curl.haxx.se/mail/lib-2014-05/0081.html
|
[17] = https://curl.haxx.se/bug/?i=661
|
||||||
[18] = http://curl.haxx.se/mail/lib-2014-05/0025.html
|
[18] = https://curl.haxx.se/bug/?i=666
|
||||||
[19] = http://curl.haxx.se/bug/view.cgi?id=1371
|
[19] = https://curl.haxx.se/bug/?i=667
|
||||||
[20] = http://curl.haxx.se/bug/view.cgi?id=1369
|
[20] = https://curl.haxx.se/bug/?i=670
|
||||||
[21] = http://curl.haxx.se/mail/lib-2014-05/0147.html
|
[21] = https://curl.haxx.se/bug/?i=672
|
||||||
[22] = http://curl.haxx.se/mail/lib-2014-04/0203.html
|
[22] = https://curl.haxx.se/bug/?i=481
|
||||||
[23] = http://curl.haxx.se/mail/lib-2014-05/0127.html
|
[23] = https://curl.haxx.se/bug/?i=676
|
||||||
[24] = http://curl.haxx.se/bug/view.cgi?id=1343
|
[24] = https://curl.haxx.se/mail/lib-2016-02/0097.html
|
||||||
[25] = http://curl.haxx.se/bug/view.cgi?id=1344
|
[25] = https://curl.haxx.se/libcurl/c/CURLINFO_TLS_SSL_PTR.html
|
||||||
[26] = http://curl.haxx.se/bug/view.cgi?id=1374
|
[26] = https://curl.haxx.se/bug/?i=404
|
||||||
|
[27] = https://curl.haxx.se/bug/?i=681
|
||||||
|
[28] = https://curl.haxx.se/bug/?i=688
|
||||||
|
[29] = https://curl.haxx.se/bug/?i=689
|
||||||
|
[30] = https://curl.haxx.se/bug/?i=690
|
||||||
|
[31] = https://curl.haxx.se/bug/?i=695
|
||||||
|
[32] = https://curl.haxx.se/bug/?i=697
|
||||||
|
[33] = https://curl.haxx.se/bug/?i=692
|
||||||
|
[34] = https://curl.haxx.se/bug/?i=693
|
||||||
|
[35] = https://curl.haxx.se/bug/?i=697
|
||||||
|
[36] = https://curl.haxx.se/bug/?i=704
|
||||||
|
[37] = https://curl.haxx.se/bug/?i=701
|
||||||
|
[38] = https://curl.haxx.se/bug/?i=705
|
||||||
|
[39] = https://curl.haxx.se/bug/?i=422
|
||||||
|
[40] = https://curl.haxx.se/bug/?i=707
|
||||||
|
[41] = https://curl.haxx.se/bug/?i=709
|
||||||
|
[42] = https://curl.haxx.se/bug/?i=703
|
||||||
|
[43] = https://curl.haxx.se/bug/?i=712
|
||||||
|
[44] = https://curl.haxx.se/mail/lib-2016-03/0150.html
|
||||||
|
[45] = https://curl.haxx.se/bug/?i=719
|
||||||
|
[47] = https://curl.haxx.se/dev/code-style.html
|
||||||
|
|||||||
@@ -1,4 +0,0 @@
|
|||||||
To be addressed in ...
|
|
||||||
=======================
|
|
||||||
|
|
||||||
327 -
|
|
||||||
203
acinclude.m4
203
acinclude.m4
@@ -5,11 +5,11 @@
|
|||||||
# | (__| |_| | _ <| |___
|
# | (__| |_| | _ <| |___
|
||||||
# \___|\___/|_| \_\_____|
|
# \___|\___/|_| \_\_____|
|
||||||
#
|
#
|
||||||
# Copyright (C) 1998 - 2013, Daniel Stenberg, <daniel@haxx.se>, et al.
|
# Copyright (C) 1998 - 2015, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
#
|
#
|
||||||
# This software is licensed as described in the file COPYING, which
|
# This software is licensed as described in the file COPYING, which
|
||||||
# you should have received as part of this distribution. The terms
|
# you should have received as part of this distribution. The terms
|
||||||
# are also available at http://curl.haxx.se/docs/copyright.html.
|
# are also available at https://curl.haxx.se/docs/copyright.html.
|
||||||
#
|
#
|
||||||
# You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
# You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
||||||
# copies of the Software, and permit persons to whom the Software is
|
# copies of the Software, and permit persons to whom the Software is
|
||||||
@@ -20,7 +20,6 @@
|
|||||||
#
|
#
|
||||||
#***************************************************************************
|
#***************************************************************************
|
||||||
|
|
||||||
|
|
||||||
dnl CURL_CHECK_DEF (SYMBOL, [INCLUDES], [SILENT])
|
dnl CURL_CHECK_DEF (SYMBOL, [INCLUDES], [SILENT])
|
||||||
dnl -------------------------------------------------
|
dnl -------------------------------------------------
|
||||||
dnl Use the C preprocessor to find out if the given object-style symbol
|
dnl Use the C preprocessor to find out if the given object-style symbol
|
||||||
@@ -31,6 +30,10 @@ dnl result in a set of double-quoted strings the returned expansion will
|
|||||||
dnl actually be a single double-quoted string concatenating all them.
|
dnl actually be a single double-quoted string concatenating all them.
|
||||||
|
|
||||||
AC_DEFUN([CURL_CHECK_DEF], [
|
AC_DEFUN([CURL_CHECK_DEF], [
|
||||||
|
AC_REQUIRE([CURL_CPP_P])dnl
|
||||||
|
OLDCPPFLAGS=$CPPFLAGS
|
||||||
|
# CPPPFLAGS comes from CURL_CPP_P
|
||||||
|
CPPFLAGS="$CPPPFLAGS"
|
||||||
AS_VAR_PUSHDEF([ac_HaveDef], [curl_cv_have_def_$1])dnl
|
AS_VAR_PUSHDEF([ac_HaveDef], [curl_cv_have_def_$1])dnl
|
||||||
AS_VAR_PUSHDEF([ac_Def], [curl_cv_def_$1])dnl
|
AS_VAR_PUSHDEF([ac_Def], [curl_cv_def_$1])dnl
|
||||||
if test -z "$SED"; then
|
if test -z "$SED"; then
|
||||||
@@ -67,6 +70,7 @@ CURL_DEF_TOKEN $1
|
|||||||
fi
|
fi
|
||||||
AS_VAR_POPDEF([ac_Def])dnl
|
AS_VAR_POPDEF([ac_Def])dnl
|
||||||
AS_VAR_POPDEF([ac_HaveDef])dnl
|
AS_VAR_POPDEF([ac_HaveDef])dnl
|
||||||
|
CPPFLAGS=$OLDCPPFLAGS
|
||||||
])
|
])
|
||||||
|
|
||||||
|
|
||||||
@@ -1851,8 +1855,10 @@ AC_DEFUN([CURL_CHECK_FUNC_CLOCK_GETTIME_MONOTONIC], [
|
|||||||
AC_REQUIRE([AC_HEADER_TIME])dnl
|
AC_REQUIRE([AC_HEADER_TIME])dnl
|
||||||
AC_CHECK_HEADERS(sys/types.h sys/time.h time.h)
|
AC_CHECK_HEADERS(sys/types.h sys/time.h time.h)
|
||||||
AC_MSG_CHECKING([for monotonic clock_gettime])
|
AC_MSG_CHECKING([for monotonic clock_gettime])
|
||||||
AC_COMPILE_IFELSE([
|
#
|
||||||
AC_LANG_PROGRAM([[
|
if test "x$dontwant_rt" == "xno" ; then
|
||||||
|
AC_COMPILE_IFELSE([
|
||||||
|
AC_LANG_PROGRAM([[
|
||||||
#ifdef HAVE_SYS_TYPES_H
|
#ifdef HAVE_SYS_TYPES_H
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#endif
|
#endif
|
||||||
@@ -1866,17 +1872,18 @@ AC_DEFUN([CURL_CHECK_FUNC_CLOCK_GETTIME_MONOTONIC], [
|
|||||||
#include <time.h>
|
#include <time.h>
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
]],[[
|
]],[[
|
||||||
struct timespec ts;
|
struct timespec ts;
|
||||||
(void)clock_gettime(CLOCK_MONOTONIC, &ts);
|
(void)clock_gettime(CLOCK_MONOTONIC, &ts);
|
||||||
]])
|
]])
|
||||||
],[
|
],[
|
||||||
AC_MSG_RESULT([yes])
|
AC_MSG_RESULT([yes])
|
||||||
ac_cv_func_clock_gettime="yes"
|
ac_cv_func_clock_gettime="yes"
|
||||||
],[
|
],[
|
||||||
AC_MSG_RESULT([no])
|
AC_MSG_RESULT([no])
|
||||||
ac_cv_func_clock_gettime="no"
|
ac_cv_func_clock_gettime="no"
|
||||||
])
|
])
|
||||||
|
fi
|
||||||
dnl Definition of HAVE_CLOCK_GETTIME_MONOTONIC is intentionally postponed
|
dnl Definition of HAVE_CLOCK_GETTIME_MONOTONIC is intentionally postponed
|
||||||
dnl until library linking and run-time checks for clock_gettime succeed.
|
dnl until library linking and run-time checks for clock_gettime succeed.
|
||||||
])
|
])
|
||||||
@@ -2452,23 +2459,6 @@ AC_DEFUN([CURL_CHECK_FUNC_SELECT], [
|
|||||||
])
|
])
|
||||||
|
|
||||||
|
|
||||||
# This is only a temporary fix. This macro is here to replace the broken one
|
|
||||||
# delivered by the automake project (including the 1.9.6 release). As soon as
|
|
||||||
# they ship a working version we SHOULD remove this work-around.
|
|
||||||
|
|
||||||
AC_DEFUN([AM_MISSING_HAS_RUN],
|
|
||||||
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
|
|
||||||
test x"${MISSING+set}" = xset || MISSING="\${SHELL} \"$am_aux_dir/missing\""
|
|
||||||
# Use eval to expand $SHELL
|
|
||||||
if eval "$MISSING --run true"; then
|
|
||||||
am_missing_run="$MISSING --run "
|
|
||||||
else
|
|
||||||
am_missing_run=
|
|
||||||
AC_MSG_WARN([`missing' script is too old or missing])
|
|
||||||
fi
|
|
||||||
])
|
|
||||||
|
|
||||||
|
|
||||||
dnl CURL_VERIFY_RUNTIMELIBS
|
dnl CURL_VERIFY_RUNTIMELIBS
|
||||||
dnl -------------------------------------------------
|
dnl -------------------------------------------------
|
||||||
dnl Verify that the shared libs found so far can be used when running
|
dnl Verify that the shared libs found so far can be used when running
|
||||||
@@ -2584,7 +2574,8 @@ AC_DEFUN([CURL_CHECK_CA_BUNDLE], [
|
|||||||
AC_MSG_CHECKING([default CA cert bundle/path])
|
AC_MSG_CHECKING([default CA cert bundle/path])
|
||||||
|
|
||||||
AC_ARG_WITH(ca-bundle,
|
AC_ARG_WITH(ca-bundle,
|
||||||
AC_HELP_STRING([--with-ca-bundle=FILE], [File name to use as CA bundle])
|
AC_HELP_STRING([--with-ca-bundle=FILE],
|
||||||
|
[Path to a file containing CA certificates (example: /etc/ca-bundle.crt)])
|
||||||
AC_HELP_STRING([--without-ca-bundle], [Don't use a default CA bundle]),
|
AC_HELP_STRING([--without-ca-bundle], [Don't use a default CA bundle]),
|
||||||
[
|
[
|
||||||
want_ca="$withval"
|
want_ca="$withval"
|
||||||
@@ -2594,7 +2585,11 @@ AC_HELP_STRING([--without-ca-bundle], [Don't use a default CA bundle]),
|
|||||||
],
|
],
|
||||||
[ want_ca="unset" ])
|
[ want_ca="unset" ])
|
||||||
AC_ARG_WITH(ca-path,
|
AC_ARG_WITH(ca-path,
|
||||||
AC_HELP_STRING([--with-ca-path=DIRECTORY], [Directory to use as CA path])
|
AC_HELP_STRING([--with-ca-path=DIRECTORY],
|
||||||
|
[Path to a directory containing CA certificates stored individually, with \
|
||||||
|
their filenames in a hash format. This option can be used with OpenSSL, \
|
||||||
|
GnuTLS and PolarSSL backends. Refer to OpenSSL c_rehash for details. \
|
||||||
|
(example: /etc/certificates)])
|
||||||
AC_HELP_STRING([--without-ca-path], [Don't use a default CA path]),
|
AC_HELP_STRING([--without-ca-path], [Don't use a default CA path]),
|
||||||
[
|
[
|
||||||
want_capath="$withval"
|
want_capath="$withval"
|
||||||
@@ -2604,18 +2599,23 @@ AC_HELP_STRING([--without-ca-path], [Don't use a default CA path]),
|
|||||||
],
|
],
|
||||||
[ want_capath="unset"])
|
[ want_capath="unset"])
|
||||||
|
|
||||||
|
ca_warning=" (warning: certs not found)"
|
||||||
|
capath_warning=" (warning: certs not found)"
|
||||||
|
check_capath=""
|
||||||
|
|
||||||
if test "x$want_ca" != "xno" -a "x$want_ca" != "xunset" -a \
|
if test "x$want_ca" != "xno" -a "x$want_ca" != "xunset" -a \
|
||||||
"x$want_capath" != "xno" -a "x$want_capath" != "xunset"; then
|
"x$want_capath" != "xno" -a "x$want_capath" != "xunset"; then
|
||||||
dnl both given
|
dnl both given
|
||||||
AC_MSG_ERROR([Can't specify both --with-ca-bundle and --with-ca-path.])
|
ca="$want_ca"
|
||||||
|
capath="$want_capath"
|
||||||
elif test "x$want_ca" != "xno" -a "x$want_ca" != "xunset"; then
|
elif test "x$want_ca" != "xno" -a "x$want_ca" != "xunset"; then
|
||||||
dnl --with-ca-bundle given
|
dnl --with-ca-bundle given
|
||||||
ca="$want_ca"
|
ca="$want_ca"
|
||||||
capath="no"
|
capath="no"
|
||||||
elif test "x$want_capath" != "xno" -a "x$want_capath" != "xunset"; then
|
elif test "x$want_capath" != "xno" -a "x$want_capath" != "xunset"; then
|
||||||
dnl --with-ca-path given
|
dnl --with-ca-path given
|
||||||
if test "x$OPENSSL_ENABLED" != "x1"; then
|
if test "x$OPENSSL_ENABLED" != "x1" -a "x$GNUTLS_ENABLED" != "x1" -a "x$POLARSSL_ENABLED" != "x1"; then
|
||||||
AC_MSG_ERROR([--with-ca-path only works with openSSL])
|
AC_MSG_ERROR([--with-ca-path only works with OpenSSL, GnuTLS or PolarSSL])
|
||||||
fi
|
fi
|
||||||
capath="$want_capath"
|
capath="$want_capath"
|
||||||
ca="no"
|
ca="no"
|
||||||
@@ -2651,12 +2651,7 @@ AC_HELP_STRING([--without-ca-path], [Don't use a default CA path]),
|
|||||||
fi
|
fi
|
||||||
if test "x$want_capath" = "xunset" -a "x$ca" = "xno" -a \
|
if test "x$want_capath" = "xunset" -a "x$ca" = "xno" -a \
|
||||||
"x$OPENSSL_ENABLED" = "x1"; then
|
"x$OPENSSL_ENABLED" = "x1"; then
|
||||||
for a in /etc/ssl/certs/; do
|
check_capath="/etc/ssl/certs/"
|
||||||
if test -d "$a" && ls "$a"/[[0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f]].0 >/dev/null 2>/dev/null; then
|
|
||||||
capath="$a"
|
|
||||||
break
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
dnl no option given and cross-compiling
|
dnl no option given and cross-compiling
|
||||||
@@ -2664,18 +2659,62 @@ AC_HELP_STRING([--without-ca-path], [Don't use a default CA path]),
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if test "x$ca" = "xno" || test -f "$ca"; then
|
||||||
|
ca_warning=""
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test "x$capath" != "xno"; then
|
||||||
|
check_capath="$capath"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test ! -z "$check_capath"; then
|
||||||
|
for a in "$check_capath"; do
|
||||||
|
if test -d "$a" && ls "$a"/[[0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f]].0 >/dev/null 2>/dev/null; then
|
||||||
|
if test "x$capath" = "xno"; then
|
||||||
|
capath="$a"
|
||||||
|
fi
|
||||||
|
capath_warning=""
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test "x$capath" = "xno"; then
|
||||||
|
capath_warning=""
|
||||||
|
fi
|
||||||
|
|
||||||
if test "x$ca" != "xno"; then
|
if test "x$ca" != "xno"; then
|
||||||
CURL_CA_BUNDLE='"'$ca'"'
|
CURL_CA_BUNDLE='"'$ca'"'
|
||||||
AC_DEFINE_UNQUOTED(CURL_CA_BUNDLE, "$ca", [Location of default ca bundle])
|
AC_DEFINE_UNQUOTED(CURL_CA_BUNDLE, "$ca", [Location of default ca bundle])
|
||||||
AC_SUBST(CURL_CA_BUNDLE)
|
AC_SUBST(CURL_CA_BUNDLE)
|
||||||
AC_MSG_RESULT([$ca])
|
AC_MSG_RESULT([$ca])
|
||||||
elif test "x$capath" != "xno"; then
|
fi
|
||||||
|
if test "x$capath" != "xno"; then
|
||||||
CURL_CA_PATH="\"$capath\""
|
CURL_CA_PATH="\"$capath\""
|
||||||
AC_DEFINE_UNQUOTED(CURL_CA_PATH, "$capath", [Location of default ca path])
|
AC_DEFINE_UNQUOTED(CURL_CA_PATH, "$capath", [Location of default ca path])
|
||||||
AC_MSG_RESULT([$capath (capath)])
|
AC_MSG_RESULT([$capath (capath)])
|
||||||
else
|
fi
|
||||||
|
if test "x$ca" = "xno" && test "x$capath" = "xno"; then
|
||||||
AC_MSG_RESULT([no])
|
AC_MSG_RESULT([no])
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
AC_MSG_CHECKING([whether to use builtin CA store of SSL library])
|
||||||
|
AC_ARG_WITH(ca-fallback,
|
||||||
|
AC_HELP_STRING([--with-ca-fallback], [Use the built in CA store of the SSL library])
|
||||||
|
AC_HELP_STRING([--without-ca-fallback], [Don't use the built in CA store of the SSL library]),
|
||||||
|
[
|
||||||
|
if test "x$with_ca_fallback" != "xyes" -a "x$with_ca_fallback" != "xno"; then
|
||||||
|
AC_MSG_ERROR([--with-ca-fallback only allows yes or no as parameter])
|
||||||
|
fi
|
||||||
|
],
|
||||||
|
[ with_ca_fallback="no"])
|
||||||
|
AC_MSG_RESULT([$with_ca_fallback])
|
||||||
|
if test "x$with_ca_fallback" = "xyes"; then
|
||||||
|
if test "x$OPENSSL_ENABLED" != "x1" -a "x$GNUTLS_ENABLED" != "x1"; then
|
||||||
|
AC_MSG_ERROR([--with-ca-fallback only works with OpenSSL or GnuTLS])
|
||||||
|
fi
|
||||||
|
AC_DEFINE_UNQUOTED(CURL_CA_FALLBACK, 1, [define "1" to use built in CA store of SSL library ])
|
||||||
|
fi
|
||||||
])
|
])
|
||||||
|
|
||||||
|
|
||||||
@@ -2848,7 +2887,6 @@ AC_DEFUN([CURL_CONFIGURE_CURL_OFF_T], [
|
|||||||
#
|
#
|
||||||
x_LP64_long=""
|
x_LP64_long=""
|
||||||
x_LP32_long=""
|
x_LP32_long=""
|
||||||
x_LP16_long=""
|
|
||||||
#
|
#
|
||||||
if test "$ac_cv_sizeof_long" -eq "8" &&
|
if test "$ac_cv_sizeof_long" -eq "8" &&
|
||||||
test "$ac_cv_sizeof_voidp" -ge "8"; then
|
test "$ac_cv_sizeof_voidp" -ge "8"; then
|
||||||
@@ -2856,9 +2894,6 @@ AC_DEFUN([CURL_CONFIGURE_CURL_OFF_T], [
|
|||||||
elif test "$ac_cv_sizeof_long" -eq "4" &&
|
elif test "$ac_cv_sizeof_long" -eq "4" &&
|
||||||
test "$ac_cv_sizeof_voidp" -ge "4"; then
|
test "$ac_cv_sizeof_voidp" -ge "4"; then
|
||||||
x_LP32_long="long"
|
x_LP32_long="long"
|
||||||
elif test "$ac_cv_sizeof_long" -eq "2" &&
|
|
||||||
test "$ac_cv_sizeof_voidp" -ge "2"; then
|
|
||||||
x_LP16_long="long"
|
|
||||||
fi
|
fi
|
||||||
#
|
#
|
||||||
dnl DO_CURL_OFF_T_CHECK results are stored in next 3 vars
|
dnl DO_CURL_OFF_T_CHECK results are stored in next 3 vars
|
||||||
@@ -2892,17 +2927,6 @@ AC_DEFUN([CURL_CONFIGURE_CURL_OFF_T], [
|
|||||||
done
|
done
|
||||||
AC_MSG_RESULT([$curl_typeof_curl_off_t])
|
AC_MSG_RESULT([$curl_typeof_curl_off_t])
|
||||||
fi
|
fi
|
||||||
if test "$curl_typeof_curl_off_t" = "unknown"; then
|
|
||||||
AC_MSG_CHECKING([for 16-bit curl_off_t data type])
|
|
||||||
for t2 in \
|
|
||||||
"$x_LP16_long" \
|
|
||||||
'int16_t' \
|
|
||||||
'__int16' \
|
|
||||||
'int' ; do
|
|
||||||
DO_CURL_OFF_T_CHECK([$t2], [2])
|
|
||||||
done
|
|
||||||
AC_MSG_RESULT([$curl_typeof_curl_off_t])
|
|
||||||
fi
|
|
||||||
if test "$curl_typeof_curl_off_t" = "unknown"; then
|
if test "$curl_typeof_curl_off_t" = "unknown"; then
|
||||||
AC_MSG_ERROR([cannot find data type for curl_off_t.])
|
AC_MSG_ERROR([cannot find data type for curl_off_t.])
|
||||||
fi
|
fi
|
||||||
@@ -3063,12 +3087,14 @@ dnl Optionally PKG_CONFIG_LIBDIR may be given as $pcdir.
|
|||||||
dnl
|
dnl
|
||||||
|
|
||||||
AC_DEFUN([CURL_CHECK_PKGCONFIG], [
|
AC_DEFUN([CURL_CHECK_PKGCONFIG], [
|
||||||
|
if test -n "$PKG_CONFIG"; then
|
||||||
|
PKGCONFIG="$PKG_CONFIG"
|
||||||
|
else
|
||||||
|
AC_PATH_TOOL([PKGCONFIG], [pkg-config], [no],
|
||||||
|
[$PATH:/usr/bin:/usr/local/bin])
|
||||||
|
fi
|
||||||
|
|
||||||
PKGCONFIG="no"
|
if test "x$PKGCONFIG" != "xno"; then
|
||||||
|
|
||||||
AC_PATH_TOOL( PKGCONFIG, pkg-config, no, $PATH:/usr/bin:/usr/local/bin)
|
|
||||||
|
|
||||||
if test x$PKGCONFIG != xno; then
|
|
||||||
AC_MSG_CHECKING([for $1 options with pkg-config])
|
AC_MSG_CHECKING([for $1 options with pkg-config])
|
||||||
dnl ask pkg-config about $1
|
dnl ask pkg-config about $1
|
||||||
itexists=`CURL_EXPORT_PCDIR([$2]) dnl
|
itexists=`CURL_EXPORT_PCDIR([$2]) dnl
|
||||||
@@ -3125,3 +3151,48 @@ use vars qw(
|
|||||||
1;
|
1;
|
||||||
_EOF
|
_EOF
|
||||||
])
|
])
|
||||||
|
|
||||||
|
dnl CURL_CPP_P
|
||||||
|
dnl
|
||||||
|
dnl Check if $cpp -P should be used for extract define values due to gcc 5
|
||||||
|
dnl splitting up strings and defines between line outputs. gcc by default
|
||||||
|
dnl (without -P) will show TEST EINVAL TEST as
|
||||||
|
dnl
|
||||||
|
dnl # 13 "conftest.c"
|
||||||
|
dnl TEST
|
||||||
|
dnl # 13 "conftest.c" 3 4
|
||||||
|
dnl 22
|
||||||
|
dnl # 13 "conftest.c"
|
||||||
|
dnl TEST
|
||||||
|
|
||||||
|
AC_DEFUN([CURL_CPP_P], [
|
||||||
|
AC_MSG_CHECKING([if cpp -P is needed])
|
||||||
|
AC_EGREP_CPP([TEST.*TEST], [
|
||||||
|
#include <errno.h>
|
||||||
|
TEST EINVAL TEST
|
||||||
|
], [cpp=no], [cpp=yes])
|
||||||
|
AC_MSG_RESULT([$cpp])
|
||||||
|
|
||||||
|
dnl we need cpp -P so check if it works then
|
||||||
|
if test "x$cpp" = "xyes"; then
|
||||||
|
AC_MSG_CHECKING([if cpp -P works])
|
||||||
|
OLDCPPFLAGS=$CPPFLAGS
|
||||||
|
CPPFLAGS="$CPPFLAGS -P"
|
||||||
|
AC_EGREP_CPP([TEST.*TEST], [
|
||||||
|
#include <errno.h>
|
||||||
|
TEST EINVAL TEST
|
||||||
|
], [cpp_p=yes], [cpp_p=no])
|
||||||
|
AC_MSG_RESULT([$cpp_p])
|
||||||
|
|
||||||
|
if test "x$cpp_p" = "xno"; then
|
||||||
|
AC_MSG_WARN([failed to figure out cpp -P alternative])
|
||||||
|
# without -P
|
||||||
|
CPPPFLAGS=$OLDCPPFLAGS
|
||||||
|
else
|
||||||
|
# with -P
|
||||||
|
CPPPFLAGS=$CPPFLAGS
|
||||||
|
fi
|
||||||
|
dnl restore CPPFLAGS
|
||||||
|
CPPFLAGS=$OLDCPPFLAGS
|
||||||
|
fi
|
||||||
|
])
|
||||||
|
|||||||
35
appveyor.yml
Normal file
35
appveyor.yml
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
version: 7.47.0.{build}
|
||||||
|
|
||||||
|
environment:
|
||||||
|
matrix:
|
||||||
|
- PRJ_GEN: "Visual Studio 11 2012 Win64"
|
||||||
|
BDIR: msvc2012
|
||||||
|
PRJ_CFG: Release
|
||||||
|
OPENSSL: OFF
|
||||||
|
- PRJ_GEN: "Visual Studio 12 2013 Win64"
|
||||||
|
BDIR: msvc2013
|
||||||
|
PRJ_CFG: Release
|
||||||
|
OPENSSL: OFF
|
||||||
|
- PRJ_GEN: "Visual Studio 14 2015 Win64"
|
||||||
|
BDIR: msvc2015
|
||||||
|
PRJ_CFG: Release
|
||||||
|
OPENSSL: OFF
|
||||||
|
- PRJ_GEN: "Visual Studio 11 2012 Win64"
|
||||||
|
BDIR: msvc2012
|
||||||
|
PRJ_CFG: Release
|
||||||
|
OPENSSL: ON
|
||||||
|
- PRJ_GEN: "Visual Studio 12 2013 Win64"
|
||||||
|
BDIR: msvc2013
|
||||||
|
PRJ_CFG: Release
|
||||||
|
OPENSSL: ON
|
||||||
|
- PRJ_GEN: "Visual Studio 14 2015 Win64"
|
||||||
|
BDIR: msvc2015
|
||||||
|
PRJ_CFG: Release
|
||||||
|
OPENSSL: ON
|
||||||
|
|
||||||
|
|
||||||
|
build_script:
|
||||||
|
- mkdir build.%BDIR%
|
||||||
|
- cd build.%BDIR%
|
||||||
|
- cmake .. -G"%PRJ_GEN%" -DCMAKE_USE_OPENSSL=%OPENSSL%
|
||||||
|
- cmake --build . --config %PRJ_CFG% --clean-first
|
||||||
56
buildconf
56
buildconf
@@ -6,11 +6,11 @@
|
|||||||
# | (__| |_| | _ <| |___
|
# | (__| |_| | _ <| |___
|
||||||
# \___|\___/|_| \_\_____|
|
# \___|\___/|_| \_\_____|
|
||||||
#
|
#
|
||||||
# Copyright (C) 1998 - 2012, Daniel Stenberg, <daniel@haxx.se>, et al.
|
# Copyright (C) 1998 - 2014, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
#
|
#
|
||||||
# This software is licensed as described in the file COPYING, which
|
# This software is licensed as described in the file COPYING, which
|
||||||
# you should have received as part of this distribution. The terms
|
# you should have received as part of this distribution. The terms
|
||||||
# are also available at http://curl.haxx.se/docs/copyright.html.
|
# are also available at https://curl.haxx.se/docs/copyright.html.
|
||||||
#
|
#
|
||||||
# You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
# You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
||||||
# copies of the Software, and permit persons to whom the Software is
|
# copies of the Software, and permit persons to whom the Software is
|
||||||
@@ -32,6 +32,7 @@ die(){
|
|||||||
#--------------------------------------------------------------------------
|
#--------------------------------------------------------------------------
|
||||||
# findtool works as 'which' but we use a different name to make it more
|
# findtool works as 'which' but we use a different name to make it more
|
||||||
# obvious we aren't using 'which'! ;-)
|
# obvious we aren't using 'which'! ;-)
|
||||||
|
# Unlike 'which' does, the current directory is ignored.
|
||||||
#
|
#
|
||||||
findtool(){
|
findtool(){
|
||||||
file="$1"
|
file="$1"
|
||||||
@@ -49,7 +50,7 @@ findtool(){
|
|||||||
do
|
do
|
||||||
IFS=$old_IFS
|
IFS=$old_IFS
|
||||||
# echo "checks for $file in $path" >&2
|
# echo "checks for $file in $path" >&2
|
||||||
if test -f "$path/$file"; then
|
if test "$path" -a "$path" != '.' -a -f "$path/$file"; then
|
||||||
echo "$path/$file"
|
echo "$path/$file"
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
@@ -189,32 +190,32 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
#--------------------------------------------------------------------------
|
#--------------------------------------------------------------------------
|
||||||
# GNU libtool preliminary check
|
# GNU libtoolize preliminary check
|
||||||
#
|
#
|
||||||
want_lt_major=1
|
want_lt_major=1
|
||||||
want_lt_minor=4
|
want_lt_minor=4
|
||||||
want_lt_patch=2
|
want_lt_patch=2
|
||||||
want_lt_version=1.4.2
|
want_lt_version=1.4.2
|
||||||
|
|
||||||
# This approach that tries 'glibtool' first is intended for systems that
|
# This approach that tries 'glibtoolize' first is intended for systems that
|
||||||
# have GNU libtool named as 'glibtool' and libtool not being GNU's.
|
# have GNU libtool named as 'glibtoolize' and libtoolize not being GNU's.
|
||||||
|
|
||||||
libtool=`findtool glibtool 2>/dev/null`
|
libtoolize=`findtool glibtoolize 2>/dev/null`
|
||||||
if test ! -x "$libtool"; then
|
if test ! -x "$libtoolize"; then
|
||||||
libtool=`findtool ${LIBTOOL:-libtool}`
|
libtoolize=`findtool ${LIBTOOLIZE:-libtoolize}`
|
||||||
fi
|
fi
|
||||||
if test -z "$libtool"; then
|
if test -z "$libtoolize"; then
|
||||||
echo "buildconf: libtool not found."
|
echo "buildconf: libtoolize not found."
|
||||||
echo " You need GNU libtool $want_lt_version or newer installed."
|
echo " You need GNU libtoolize $want_lt_version or newer installed."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
lt_pver=`$libtool --version 2>/dev/null|head -n 1`
|
lt_pver=`$libtoolize --version 2>/dev/null|head -n 1`
|
||||||
lt_qver=`echo $lt_pver|sed -e "s/([^)]*)//g" -e "s/^[^0-9]*//g"`
|
lt_qver=`echo $lt_pver|sed -e "s/([^)]*)//g" -e "s/^[^0-9]*//g"`
|
||||||
lt_version=`echo $lt_qver|sed -e "s/[- ].*//" -e "s/\([a-z]*\)$//"`
|
lt_version=`echo $lt_qver|sed -e "s/[- ].*//" -e "s/\([a-z]*\)$//"`
|
||||||
if test -z "$lt_version"; then
|
if test -z "$lt_version"; then
|
||||||
echo "buildconf: libtool not found."
|
echo "buildconf: libtoolize not found."
|
||||||
echo " You need GNU libtool $want_lt_version or newer installed."
|
echo " You need GNU libtoolize $want_lt_version or newer installed."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
old_IFS=$IFS; IFS='.'; set $lt_version; IFS=$old_IFS
|
old_IFS=$IFS; IFS='.'; set $lt_version; IFS=$old_IFS
|
||||||
@@ -244,27 +245,12 @@ else
|
|||||||
lt_status="good"
|
lt_status="good"
|
||||||
fi
|
fi
|
||||||
if test "$lt_status" != "good"; then
|
if test "$lt_status" != "good"; then
|
||||||
echo "buildconf: libtool version $lt_version found."
|
echo "buildconf: libtoolize version $lt_version found."
|
||||||
echo " You need GNU libtool $want_lt_version or newer installed."
|
echo " You need GNU libtoolize $want_lt_version or newer installed."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "buildconf: libtool version $lt_version (ok)"
|
echo "buildconf: libtoolize version $lt_version (ok)"
|
||||||
|
|
||||||
#--------------------------------------------------------------------------
|
|
||||||
# GNU libtoolize check
|
|
||||||
#
|
|
||||||
if test -z "$LIBTOOLIZE"; then
|
|
||||||
# use (g)libtoolize from same location as (g)libtool
|
|
||||||
libtoolize="${libtool}ize"
|
|
||||||
else
|
|
||||||
libtoolize=`findtool $LIBTOOLIZE`
|
|
||||||
fi
|
|
||||||
if test ! -f "$libtoolize"; then
|
|
||||||
echo "buildconf: libtoolize not found."
|
|
||||||
echo " You need GNU libtoolize $want_lt_version or newer installed."
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
#--------------------------------------------------------------------------
|
#--------------------------------------------------------------------------
|
||||||
# m4 check
|
# m4 check
|
||||||
@@ -332,6 +318,8 @@ for fname in .deps \
|
|||||||
ltsugar.m4 \
|
ltsugar.m4 \
|
||||||
ltversion.m4 \
|
ltversion.m4 \
|
||||||
lt~obsolete.m4 \
|
lt~obsolete.m4 \
|
||||||
|
missing \
|
||||||
|
install-sh \
|
||||||
stamp-h1 \
|
stamp-h1 \
|
||||||
stamp-h2 \
|
stamp-h2 \
|
||||||
stamp-h3 ; do
|
stamp-h3 ; do
|
||||||
@@ -343,7 +331,7 @@ done
|
|||||||
#
|
#
|
||||||
|
|
||||||
echo "buildconf: running libtoolize"
|
echo "buildconf: running libtoolize"
|
||||||
${libtoolize} --copy --automake --force || die "libtoolize command failed"
|
${libtoolize} --copy --force || die "libtoolize command failed"
|
||||||
|
|
||||||
# When using libtool 1.5.X (X < 26) we copy libtool.m4 to our local m4
|
# When using libtool 1.5.X (X < 26) we copy libtool.m4 to our local m4
|
||||||
# subdirectory and this local copy is patched to fix some warnings that
|
# subdirectory and this local copy is patched to fix some warnings that
|
||||||
|
|||||||
372
buildconf.bat
372
buildconf.bat
@@ -1,38 +1,350 @@
|
|||||||
@echo off
|
@echo off
|
||||||
REM
|
rem ***************************************************************************
|
||||||
REM
|
rem * _ _ ____ _
|
||||||
REM This batch file must be used to set up a git tree to build on
|
rem * Project ___| | | | _ \| |
|
||||||
REM systems where there is no autotools support (i.e. Microsoft).
|
rem * / __| | | | |_) | |
|
||||||
REM
|
rem * | (__| |_| | _ <| |___
|
||||||
REM This file is not included nor needed for curl's release
|
rem * \___|\___/|_| \_\_____|
|
||||||
REM archives, neither for curl's daily snapshot archives.
|
rem *
|
||||||
|
rem * Copyright (C) 1998 - 2016, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
|
rem *
|
||||||
|
rem * This software is licensed as described in the file COPYING, which
|
||||||
|
rem * you should have received as part of this distribution. The terms
|
||||||
|
rem * are also available at https://curl.haxx.se/docs/copyright.html.
|
||||||
|
rem *
|
||||||
|
rem * You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
||||||
|
rem * copies of the Software, and permit persons to whom the Software is
|
||||||
|
rem * furnished to do so, under the terms of the COPYING file.
|
||||||
|
rem *
|
||||||
|
rem * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
||||||
|
rem * KIND, either express or implied.
|
||||||
|
rem *
|
||||||
|
rem ***************************************************************************
|
||||||
|
|
||||||
if exist GIT-INFO goto start_doing
|
rem NOTES
|
||||||
ECHO ERROR: This file shall only be used with a curl git tree checkout.
|
rem
|
||||||
goto end_all
|
rem This batch file must be used to set up a git tree to build on systems where
|
||||||
:start_doing
|
rem there is no autotools support (i.e. DOS and Windows).
|
||||||
|
rem
|
||||||
|
|
||||||
REM create tool_hugehelp.c
|
:begin
|
||||||
if not exist src\tool_hugehelp.c.cvs goto end_hugehelp_c
|
rem Set our variables
|
||||||
copy /Y src\tool_hugehelp.c.cvs src\tool_hugehelp.c
|
if "%OS%" == "Windows_NT" setlocal
|
||||||
:end_hugehelp_c
|
set MODE=GENERATE
|
||||||
|
|
||||||
REM create Makefile
|
rem Switch to this batch file's directory
|
||||||
if not exist Makefile.dist goto end_makefile
|
cd /d "%~0\.." 1>NUL 2>&1
|
||||||
copy /Y Makefile.dist Makefile
|
|
||||||
:end_makefile
|
|
||||||
|
|
||||||
REM create curlbuild.h
|
rem Check we are running from a curl git repository
|
||||||
if not exist include\curl\curlbuild.h.dist goto end_curlbuild_h
|
if not exist GIT-INFO goto norepo
|
||||||
copy /Y include\curl\curlbuild.h.dist include\curl\curlbuild.h
|
|
||||||
:end_curlbuild_h
|
|
||||||
|
|
||||||
REM setup c-ares git tree
|
rem Detect programs. HAVE_<PROGNAME>
|
||||||
if not exist ares\buildconf.bat goto end_c_ares
|
rem When not found the variable is set undefined. The undefined pattern
|
||||||
cd ares
|
rem allows for statements like "if not defined HAVE_PERL (command)"
|
||||||
call buildconf.bat
|
groff --version <NUL 1>NUL 2>&1
|
||||||
cd ..
|
if errorlevel 1 (set HAVE_GROFF=) else (set HAVE_GROFF=Y)
|
||||||
:end_c_ares
|
nroff --version <NUL 1>NUL 2>&1
|
||||||
|
if errorlevel 1 (set HAVE_NROFF=) else (set HAVE_NROFF=Y)
|
||||||
|
perl --version <NUL 1>NUL 2>&1
|
||||||
|
if errorlevel 1 (set HAVE_PERL=) else (set HAVE_PERL=Y)
|
||||||
|
gzip --version <NUL 1>NUL 2>&1
|
||||||
|
if errorlevel 1 (set HAVE_GZIP=) else (set HAVE_GZIP=Y)
|
||||||
|
|
||||||
:end_all
|
:parseArgs
|
||||||
|
if "%~1" == "" goto start
|
||||||
|
|
||||||
|
if /i "%~1" == "-clean" (
|
||||||
|
set MODE=CLEAN
|
||||||
|
) else if /i "%~1" == "-?" (
|
||||||
|
goto syntax
|
||||||
|
) else if /i "%~1" == "-h" (
|
||||||
|
goto syntax
|
||||||
|
) else if /i "%~1" == "-help" (
|
||||||
|
goto syntax
|
||||||
|
) else (
|
||||||
|
goto unknown
|
||||||
|
)
|
||||||
|
|
||||||
|
shift & goto parseArgs
|
||||||
|
|
||||||
|
:start
|
||||||
|
if "%MODE%" == "GENERATE" (
|
||||||
|
echo.
|
||||||
|
echo Generating prerequisite files
|
||||||
|
|
||||||
|
call :generate
|
||||||
|
if errorlevel 4 goto nogencurlbuild
|
||||||
|
if errorlevel 3 goto nogenhugehelp
|
||||||
|
if errorlevel 2 goto nogenmakefile
|
||||||
|
if errorlevel 1 goto warning
|
||||||
|
|
||||||
|
) else (
|
||||||
|
echo.
|
||||||
|
echo Removing prerequisite files
|
||||||
|
|
||||||
|
call :clean
|
||||||
|
if errorlevel 3 goto nocleancurlbuild
|
||||||
|
if errorlevel 2 goto nocleanhugehelp
|
||||||
|
if errorlevel 1 goto nocleanmakefile
|
||||||
|
)
|
||||||
|
|
||||||
|
goto success
|
||||||
|
|
||||||
|
rem Main generate function.
|
||||||
|
rem
|
||||||
|
rem Returns:
|
||||||
|
rem
|
||||||
|
rem 0 - success
|
||||||
|
rem 1 - success with simplified tool_hugehelp.c
|
||||||
|
rem 2 - failed to generate Makefile
|
||||||
|
rem 3 - failed to generate tool_hugehelp.c
|
||||||
|
rem 4 - failed to generate curlbuild.h
|
||||||
|
rem
|
||||||
|
:generate
|
||||||
|
if "%OS%" == "Windows_NT" setlocal
|
||||||
|
set BASIC_HUGEHELP=0
|
||||||
|
|
||||||
|
rem Create Makefile
|
||||||
|
echo * %CD%\Makefile
|
||||||
|
if exist Makefile.dist (
|
||||||
|
copy /Y Makefile.dist Makefile 1>NUL 2>&1
|
||||||
|
if errorlevel 1 (
|
||||||
|
if "%OS%" == "Windows_NT" endlocal
|
||||||
|
exit /B 2
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
|
rem Create tool_hugehelp.c
|
||||||
|
echo * %CD%\src\tool_hugehelp.c
|
||||||
|
call :genHugeHelp
|
||||||
|
if errorlevel 2 (
|
||||||
|
if "%OS%" == "Windows_NT" endlocal
|
||||||
|
exit /B 3
|
||||||
|
)
|
||||||
|
if errorlevel 1 (
|
||||||
|
set BASIC_HUGEHELP=1
|
||||||
|
)
|
||||||
|
cmd /c exit 0
|
||||||
|
|
||||||
|
rem Create curlbuild.h
|
||||||
|
echo * %CD%\include\curl\curlbuild.h
|
||||||
|
if exist include\curl\curlbuild.h.dist (
|
||||||
|
copy /Y include\curl\curlbuild.h.dist include\curl\curlbuild.h 1>NUL 2>&1
|
||||||
|
if errorlevel 1 (
|
||||||
|
if "%OS%" == "Windows_NT" endlocal
|
||||||
|
exit /B 4
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
|
rem Setup c-ares git tree
|
||||||
|
if exist ares\buildconf.bat (
|
||||||
|
echo.
|
||||||
|
echo Configuring c-ares build environment
|
||||||
|
cd ares
|
||||||
|
call buildconf.bat
|
||||||
|
cd ..
|
||||||
|
)
|
||||||
|
|
||||||
|
if "%BASIC_HUGEHELP%" == "1" (
|
||||||
|
if "%OS%" == "Windows_NT" endlocal
|
||||||
|
exit /B 1
|
||||||
|
)
|
||||||
|
|
||||||
|
if "%OS%" == "Windows_NT" endlocal
|
||||||
|
exit /B 0
|
||||||
|
|
||||||
|
rem Main clean function.
|
||||||
|
rem
|
||||||
|
rem Returns:
|
||||||
|
rem
|
||||||
|
rem 0 - success
|
||||||
|
rem 1 - failed to clean Makefile
|
||||||
|
rem 2 - failed to clean tool_hugehelp.c
|
||||||
|
rem 3 - failed to clean curlbuild.h
|
||||||
|
rem
|
||||||
|
:clean
|
||||||
|
rem Remove Makefile
|
||||||
|
echo * %CD%\Makefile
|
||||||
|
if exist Makefile (
|
||||||
|
del Makefile 2>NUL
|
||||||
|
if exist Makefile (
|
||||||
|
exit /B 1
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
|
rem Remove tool_hugehelp.c
|
||||||
|
echo * %CD%\src\tool_hugehelp.c
|
||||||
|
if exist src\tool_hugehelp.c (
|
||||||
|
del src\tool_hugehelp.c 2>NUL
|
||||||
|
if exist src\tool_hugehelp.c (
|
||||||
|
exit /B 2
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
|
rem Remove curlbuild.h
|
||||||
|
echo * %CD%\include\curl\curlbuild.h
|
||||||
|
if exist include\curl\curlbuild.h (
|
||||||
|
del include\curl\curlbuild.h 2>NUL
|
||||||
|
if exist include\curl\curlbuild.h (
|
||||||
|
exit /B 3
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
|
exit /B
|
||||||
|
|
||||||
|
rem Function to generate src\tool_hugehelp.c
|
||||||
|
rem
|
||||||
|
rem Returns:
|
||||||
|
rem
|
||||||
|
rem 0 - full tool_hugehelp.c generated
|
||||||
|
rem 1 - simplified tool_hugehelp.c
|
||||||
|
rem 2 - failure
|
||||||
|
rem
|
||||||
|
:genHugeHelp
|
||||||
|
if "%OS%" == "Windows_NT" setlocal
|
||||||
|
set LC_ALL=C
|
||||||
|
set ROFFCMD=
|
||||||
|
set BASIC=1
|
||||||
|
|
||||||
|
if defined HAVE_PERL (
|
||||||
|
if defined HAVE_GROFF (
|
||||||
|
set ROFFCMD=groff -mtty-char -Tascii -P-c -man
|
||||||
|
) else if defined HAVE_NROFF (
|
||||||
|
set ROFFCMD=nroff -c -Tascii -man
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
|
if defined ROFFCMD (
|
||||||
|
echo #include "tool_setup.h"> src\tool_hugehelp.c
|
||||||
|
echo #include "tool_hugehelp.h">> src\tool_hugehelp.c
|
||||||
|
|
||||||
|
if defined HAVE_GZIP (
|
||||||
|
echo #ifndef HAVE_LIBZ>> src\tool_hugehelp.c
|
||||||
|
)
|
||||||
|
|
||||||
|
%ROFFCMD% docs\curl.1 2>NUL | perl src\mkhelp.pl docs\MANUAL >> src\tool_hugehelp.c
|
||||||
|
if defined HAVE_GZIP (
|
||||||
|
echo #else>> src\tool_hugehelp.c
|
||||||
|
%ROFFCMD% docs\curl.1 2>NUL | perl src\mkhelp.pl -c docs\MANUAL >> src\tool_hugehelp.c
|
||||||
|
echo #endif /^* HAVE_LIBZ ^*/>> src\tool_hugehelp.c
|
||||||
|
)
|
||||||
|
|
||||||
|
set BASIC=0
|
||||||
|
) else (
|
||||||
|
if exist src\tool_hugehelp.c.cvs (
|
||||||
|
copy /Y src\tool_hugehelp.c.cvs src\tool_hugehelp.c 1>NUL 2>&1
|
||||||
|
) else (
|
||||||
|
echo #include "tool_setup.h"> src\tool_hugehelp.c
|
||||||
|
echo #include "tool_hugehelp.hd">> src\tool_hugehelp.c
|
||||||
|
echo.>> src\tool_hugehelp.c
|
||||||
|
echo void hugehelp(void^)>> src\tool_hugehelp.c
|
||||||
|
echo {>> src\tool_hugehelp.c
|
||||||
|
echo #ifdef USE_MANUAL>> src\tool_hugehelp.c
|
||||||
|
echo fputs("Built-in manual not included\n", stdout^);>> src\tool_hugehelp.c
|
||||||
|
echo #endif>> src\tool_hugehelp.c
|
||||||
|
echo }>> src\tool_hugehelp.c
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
|
findstr "/C:void hugehelp(void)" src\tool_hugehelp.c 1>NUL 2>&1
|
||||||
|
if errorlevel 1 (
|
||||||
|
if "%OS%" == "Windows_NT" endlocal
|
||||||
|
exit /B 2
|
||||||
|
)
|
||||||
|
|
||||||
|
if "%BASIC%" == "1" (
|
||||||
|
if "%OS%" == "Windows_NT" endlocal
|
||||||
|
exit /B 1
|
||||||
|
)
|
||||||
|
|
||||||
|
if "%OS%" == "Windows_NT" endlocal
|
||||||
|
exit /B 0
|
||||||
|
|
||||||
|
rem Function to clean-up local variables under DOS, Windows 3.x and
|
||||||
|
rem Windows 9x as setlocal isn't available until Windows NT
|
||||||
|
rem
|
||||||
|
:dosCleanup
|
||||||
|
set MODE=
|
||||||
|
set HAVE_GROFF=
|
||||||
|
set HAVE_NROFF=
|
||||||
|
set HAVE_PERL=
|
||||||
|
set HAVE_GZIP=
|
||||||
|
set BASIC_HUGEHELP=
|
||||||
|
set LC_ALL
|
||||||
|
set ROFFCMD=
|
||||||
|
set BASIC=
|
||||||
|
|
||||||
|
exit /B
|
||||||
|
|
||||||
|
:syntax
|
||||||
|
rem Display the help
|
||||||
|
echo.
|
||||||
|
echo Usage: buildconf [-clean]
|
||||||
|
echo.
|
||||||
|
echo -clean - Removes the files
|
||||||
|
goto error
|
||||||
|
|
||||||
|
:unknown
|
||||||
|
echo.
|
||||||
|
echo Error: Unknown argument '%1'
|
||||||
|
goto error
|
||||||
|
|
||||||
|
:norepo
|
||||||
|
echo.
|
||||||
|
echo Error: This batch file should only be used with a curl git repository
|
||||||
|
goto error
|
||||||
|
|
||||||
|
:nogenmakefile
|
||||||
|
echo.
|
||||||
|
echo Error: Unable to generate Makefile
|
||||||
|
goto error
|
||||||
|
|
||||||
|
:nogenhugehelp
|
||||||
|
echo.
|
||||||
|
echo Error: Unable to generate src\tool_hugehelp.c
|
||||||
|
goto error
|
||||||
|
|
||||||
|
:nogencurlbuild
|
||||||
|
echo.
|
||||||
|
echo Error: Unable to generate include\curl\curlbuild.h
|
||||||
|
goto error
|
||||||
|
|
||||||
|
:nocleanmakefile
|
||||||
|
echo.
|
||||||
|
echo Error: Unable to clean Makefile
|
||||||
|
goto error
|
||||||
|
|
||||||
|
:nocleanhugehelp
|
||||||
|
echo.
|
||||||
|
echo Error: Unable to clean src\tool_hugehelp.c
|
||||||
|
goto error
|
||||||
|
|
||||||
|
:nocleancurlbuild
|
||||||
|
echo.
|
||||||
|
echo Error: Unable to clean include\curl\curlbuild.h
|
||||||
|
goto error
|
||||||
|
|
||||||
|
:warning
|
||||||
|
echo.
|
||||||
|
echo Warning: The curl manual could not be integrated in the source. This means when
|
||||||
|
echo you build curl the manual will not be available (curl --man^). Integration of
|
||||||
|
echo the manual is not required and a summary of the options will still be available
|
||||||
|
echo (curl --help^). To integrate the manual your PATH is required to have
|
||||||
|
echo groff/nroff, perl and optionally gzip for compression.
|
||||||
|
goto success
|
||||||
|
|
||||||
|
:error
|
||||||
|
if "%OS%" == "Windows_NT" (
|
||||||
|
endlocal
|
||||||
|
) else (
|
||||||
|
call :dosCleanup
|
||||||
|
)
|
||||||
|
exit /B 1
|
||||||
|
|
||||||
|
:success
|
||||||
|
if "%OS%" == "Windows_NT" (
|
||||||
|
endlocal
|
||||||
|
) else (
|
||||||
|
call :dosCleanup
|
||||||
|
)
|
||||||
|
exit /B 0
|
||||||
|
|||||||
753
configure.ac
753
configure.ac
File diff suppressed because it is too large
Load Diff
@@ -10,7 +10,7 @@
|
|||||||
#
|
#
|
||||||
# This software is licensed as described in the file COPYING, which
|
# This software is licensed as described in the file COPYING, which
|
||||||
# you should have received as part of this distribution. The terms
|
# you should have received as part of this distribution. The terms
|
||||||
# are also available at http://curl.haxx.se/docs/copyright.html.
|
# are also available at https://curl.haxx.se/docs/copyright.html.
|
||||||
#
|
#
|
||||||
# You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
# You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
||||||
# copies of the Software, and permit persons to whom the Software is
|
# copies of the Software, and permit persons to whom the Software is
|
||||||
@@ -71,7 +71,7 @@ while test $# -gt 0; do
|
|||||||
;;
|
;;
|
||||||
|
|
||||||
--ca)
|
--ca)
|
||||||
echo "@CURL_CA_BUNDLE@"
|
echo @CURL_CA_BUNDLE@
|
||||||
;;
|
;;
|
||||||
|
|
||||||
--cc)
|
--cc)
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ Basic
|
|||||||
|
|
||||||
C
|
C
|
||||||
libcurl is a C library in itself!
|
libcurl is a C library in itself!
|
||||||
http://curl.haxx.se/libcurl/
|
https://curl.haxx.se/libcurl/
|
||||||
|
|
||||||
C++
|
C++
|
||||||
|
|
||||||
@@ -50,7 +50,7 @@ Cocoa
|
|||||||
D
|
D
|
||||||
|
|
||||||
Written by Kenneth Bogert
|
Written by Kenneth Bogert
|
||||||
http://curl.haxx.se/libcurl/d/
|
http://dlang.org/library/std/net/curl.html
|
||||||
|
|
||||||
Dylan
|
Dylan
|
||||||
|
|
||||||
@@ -60,7 +60,7 @@ Dylan
|
|||||||
Eiffel
|
Eiffel
|
||||||
|
|
||||||
Written by Eiffel Software
|
Written by Eiffel Software
|
||||||
http://curl.haxx.se/libcurl/eiffel/
|
https://room.eiffel.com/library/curl
|
||||||
|
|
||||||
Euphoria
|
Euphoria
|
||||||
|
|
||||||
@@ -78,7 +78,7 @@ Ferite
|
|||||||
|
|
||||||
Gambas
|
Gambas
|
||||||
|
|
||||||
http://gambas.sourceforge.net
|
http://gambas.sourceforge.net/
|
||||||
|
|
||||||
glib/GTK+
|
glib/GTK+
|
||||||
|
|
||||||
@@ -90,6 +90,11 @@ Guile:
|
|||||||
Written by Michael L. Gran
|
Written by Michael L. Gran
|
||||||
http://www.lonelycactus.com/guile-curl.html
|
http://www.lonelycactus.com/guile-curl.html
|
||||||
|
|
||||||
|
Harbour
|
||||||
|
|
||||||
|
Written by Viktor Szakáts
|
||||||
|
https://github.com/vszakats/harbour-core/tree/master/contrib/hbcurl
|
||||||
|
|
||||||
Haskell
|
Haskell
|
||||||
|
|
||||||
Written by Galois, Inc
|
Written by Galois, Inc
|
||||||
@@ -97,8 +102,7 @@ Haskell
|
|||||||
|
|
||||||
Java
|
Java
|
||||||
|
|
||||||
Maintained by [blank]
|
https://github.com/pjlegato/curl-java
|
||||||
http://curl.haxx.se/libcurl/java/
|
|
||||||
|
|
||||||
Julia
|
Julia
|
||||||
|
|
||||||
@@ -115,7 +119,7 @@ Lua
|
|||||||
luacurl by Alexander Marinov
|
luacurl by Alexander Marinov
|
||||||
http://luacurl.luaforge.net/
|
http://luacurl.luaforge.net/
|
||||||
|
|
||||||
Lua-cURL by J<EFBFBD>rgen H<EFBFBD>tzel
|
Lua-cURL by Jürgen Hötzel
|
||||||
http://luaforge.net/projects/lua-curl/
|
http://luaforge.net/projects/lua-curl/
|
||||||
|
|
||||||
Mono
|
Mono
|
||||||
@@ -126,7 +130,12 @@ Mono
|
|||||||
.NET
|
.NET
|
||||||
|
|
||||||
libcurl-net by Jeffrey Phillips
|
libcurl-net by Jeffrey Phillips
|
||||||
http://sourceforge.net/projects/libcurl-net/
|
https://sourceforge.net/projects/libcurl-net/
|
||||||
|
|
||||||
|
node.js
|
||||||
|
|
||||||
|
node-libcurl by Jonathan Cardoso Machado
|
||||||
|
https://github.com/JCMais/node-libcurl
|
||||||
|
|
||||||
Object-Pascal
|
Object-Pascal
|
||||||
|
|
||||||
@@ -136,7 +145,7 @@ Object-Pascal
|
|||||||
O'Caml
|
O'Caml
|
||||||
|
|
||||||
Written by Lars Nilsson
|
Written by Lars Nilsson
|
||||||
http://sourceforge.net/projects/ocurl/
|
https://sourceforge.net/projects/ocurl/
|
||||||
|
|
||||||
Pascal
|
Pascal
|
||||||
|
|
||||||
@@ -145,13 +154,13 @@ Pascal
|
|||||||
|
|
||||||
Perl
|
Perl
|
||||||
|
|
||||||
Maintained by Cris Bailiff
|
Maintained by Cris Bailiff and Bálint Szilakszi
|
||||||
http://curl.haxx.se/libcurl/perl/
|
https://github.com/szbalint/WWW--Curl
|
||||||
|
|
||||||
PHP
|
PHP
|
||||||
|
|
||||||
Written by Sterling Hughes
|
Written by Sterling Hughes
|
||||||
http://curl.haxx.se/libcurl/php/
|
https://php.net/curl
|
||||||
|
|
||||||
PostgreSQL
|
PostgreSQL
|
||||||
|
|
||||||
@@ -165,8 +174,7 @@ Python
|
|||||||
|
|
||||||
R
|
R
|
||||||
|
|
||||||
RCurl by Duncan Temple Lang
|
http://cran.r-project.org/package=curl
|
||||||
http://www.omegahat.org/RCurl/
|
|
||||||
|
|
||||||
Rexx
|
Rexx
|
||||||
|
|
||||||
@@ -176,7 +184,7 @@ Rexx
|
|||||||
RPG
|
RPG
|
||||||
|
|
||||||
Support for ILE/RPG on OS/400 is included in source distribution
|
Support for ILE/RPG on OS/400 is included in source distribution
|
||||||
http://curl.haxx.se/libcurl/
|
https://curl.haxx.se/libcurl/
|
||||||
See packages/OS400/README.OS400 and packages/OS400/curl.inc.in
|
See packages/OS400/README.OS400 and packages/OS400/curl.inc.in
|
||||||
|
|
||||||
Ruby
|
Ruby
|
||||||
@@ -187,10 +195,15 @@ Ruby
|
|||||||
ruby-curl-multi - written by Kristjan Petursson and Keith Rarick
|
ruby-curl-multi - written by Kristjan Petursson and Keith Rarick
|
||||||
http://curl-multi.rubyforge.org/
|
http://curl-multi.rubyforge.org/
|
||||||
|
|
||||||
|
Rust
|
||||||
|
|
||||||
|
curl-rust - by Carl Lerche
|
||||||
|
https://github.com/carllerche/curl-rust
|
||||||
|
|
||||||
Scheme
|
Scheme
|
||||||
|
|
||||||
Bigloo binding by Kirill Lisovsky
|
Bigloo binding by Kirill Lisovsky
|
||||||
http://curl.haxx.se/libcurl/scheme/
|
http://www.metapaper.net/lisovsky/web/curl/
|
||||||
|
|
||||||
S-Lang
|
S-Lang
|
||||||
|
|
||||||
@@ -214,13 +227,13 @@ SPL
|
|||||||
|
|
||||||
Tcl
|
Tcl
|
||||||
|
|
||||||
Tclcurl by Andr<EFBFBD>s Garc<EFBFBD>a
|
Tclcurl by Andrés García
|
||||||
http://personal1.iddeo.es/andresgarci/tclcurl/english/docs.html
|
http://mirror.yellow5.com/tclcurl/
|
||||||
|
|
||||||
Visual Basic
|
Visual Basic
|
||||||
|
|
||||||
libcurl-vb by Jeffrey Phillips
|
libcurl-vb by Jeffrey Phillips
|
||||||
http://sourceforge.net/projects/libcurl-vb/
|
https://sourceforge.net/projects/libcurl-vb/
|
||||||
|
|
||||||
Visual Foxpro
|
Visual Foxpro
|
||||||
|
|
||||||
@@ -240,3 +253,8 @@ XBLite
|
|||||||
|
|
||||||
Written by David Szafranski
|
Written by David Szafranski
|
||||||
http://perso.wanadoo.fr/xblite/libraries.html
|
http://perso.wanadoo.fr/xblite/libraries.html
|
||||||
|
|
||||||
|
Xojo
|
||||||
|
|
||||||
|
Written by Andrew Lambert
|
||||||
|
https://github.com/charonn0/RB-libcURL
|
||||||
|
|||||||
@@ -35,14 +35,12 @@ BUGS
|
|||||||
have a go at a solution. You can optionally also post your bug/problem at
|
have a go at a solution. You can optionally also post your bug/problem at
|
||||||
curl's bug tracking system over at
|
curl's bug tracking system over at
|
||||||
|
|
||||||
https://sourceforge.net/p/curl/bugs/
|
https://github.com/curl/curl/issues
|
||||||
|
|
||||||
Please read the rest of this document below first before doing that! Also,
|
Please read the rest of this document below first before doing that!
|
||||||
you need to login to your sourceforge account before being able to submit a
|
|
||||||
bug report (necessary evil done to avoid spam).
|
|
||||||
|
|
||||||
If you feel you need to ask around first, find a suitable mailing list and
|
If you feel you need to ask around first, find a suitable mailing list and
|
||||||
post there. The lists are available on http://curl.haxx.se/mail/
|
post there. The lists are available on https://curl.haxx.se/mail/
|
||||||
|
|
||||||
1.3 What to report
|
1.3 What to report
|
||||||
|
|
||||||
|
|||||||
32
docs/CODE_OF_CONDUCT.md
Normal file
32
docs/CODE_OF_CONDUCT.md
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
Contributor Code of Conduct
|
||||||
|
===========================
|
||||||
|
|
||||||
|
As contributors and maintainers of this project, we pledge to respect all
|
||||||
|
people who contribute through reporting issues, posting feature requests,
|
||||||
|
updating documentation, submitting pull requests or patches, and other
|
||||||
|
activities.
|
||||||
|
|
||||||
|
We are committed to making participation in this project a harassment-free
|
||||||
|
experience for everyone, regardless of level of experience, gender, gender
|
||||||
|
identity and expression, sexual orientation, disability, personal appearance,
|
||||||
|
body size, race, ethnicity, age, or religion.
|
||||||
|
|
||||||
|
Examples of unacceptable behavior by participants include the use of sexual
|
||||||
|
language or imagery, derogatory comments or personal attacks, trolling, public
|
||||||
|
or private harassment, insults, or other unprofessional conduct.
|
||||||
|
|
||||||
|
Project maintainers have the right and responsibility to remove, edit, or
|
||||||
|
reject comments, commits, code, wiki edits, issues, and other contributions
|
||||||
|
that are not aligned to this Code of Conduct. Project maintainers who do not
|
||||||
|
follow the Code of Conduct may be removed from the project team.
|
||||||
|
|
||||||
|
This code of conduct applies both within project spaces and in public spaces
|
||||||
|
when an individual is representing the project or its community.
|
||||||
|
|
||||||
|
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
||||||
|
reported by opening an issue or contacting one or more of the project
|
||||||
|
maintainers.
|
||||||
|
|
||||||
|
This Code of Conduct is adapted from the [Contributor
|
||||||
|
Covenant](http://contributor-covenant.org), version 1.1.0, available at
|
||||||
|
[http://contributor-covenant.org/version/1/1/0/](http://contributor-covenant.org/version/1/1/0/)
|
||||||
185
docs/CODE_STYLE.md
Normal file
185
docs/CODE_STYLE.md
Normal file
@@ -0,0 +1,185 @@
|
|||||||
|
# cURL C code style
|
||||||
|
|
||||||
|
Source code that has a common style is easier to read than code that uses
|
||||||
|
different styles in different places. It helps making the code feel like one
|
||||||
|
single code base. Easy-to-read is a very important property of code and helps
|
||||||
|
making it easier to review when new things are added and it helps debugging
|
||||||
|
code when developers are trying to figure out why things go wrong. A unified
|
||||||
|
style is more important than individual contributors having their own personal
|
||||||
|
tastes satisfied.
|
||||||
|
|
||||||
|
Our C code has a few style rules. Most of them are verified and upheld by the
|
||||||
|
lib/checksrc.pl script. Invoked with `make checksrc` or even by default by the
|
||||||
|
build system when built after `./configure --enable-debug` has been used.
|
||||||
|
|
||||||
|
It is normally not a problem for anyone to follow the guidelines, as you just
|
||||||
|
need to copy the style already used in the source code and there are no
|
||||||
|
particularly unusual rules in our set of rules.
|
||||||
|
|
||||||
|
We also work hard on writing code that are warning-free on all the major
|
||||||
|
platforms and in general on as many platforms as possible. Code that obviously
|
||||||
|
will cause warnings will not be accepted as-is.
|
||||||
|
|
||||||
|
## Naming
|
||||||
|
|
||||||
|
Try using a non-confusing naming scheme for your new functions and variable
|
||||||
|
names. It doesn't necessarily have to mean that you should use the same as in
|
||||||
|
other places of the code, just that the names should be logical,
|
||||||
|
understandable and be named according to what they're used for. File-local
|
||||||
|
functions should be made static. We like lower case names.
|
||||||
|
|
||||||
|
See the INTERNALS document on how we name non-exported library-global symbols.
|
||||||
|
|
||||||
|
## Indenting
|
||||||
|
|
||||||
|
We use only spaces for indentation, never TABs. We use two spaces for each new
|
||||||
|
open brace.
|
||||||
|
|
||||||
|
if(something_is_true) {
|
||||||
|
while(second_statement == fine) {
|
||||||
|
moo();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
## Comments
|
||||||
|
|
||||||
|
Since we write C89 code, `//` comments are not allowed. They weren't
|
||||||
|
introduced in the C standard until C99. We use only `/*` and `*/` comments:
|
||||||
|
|
||||||
|
/* this is a comment */
|
||||||
|
|
||||||
|
## Long lines
|
||||||
|
|
||||||
|
Source code in curl may never be wider than 80 columns and there are two
|
||||||
|
reasons for maintaining this even in the modern era of very large and high
|
||||||
|
resolution screens:
|
||||||
|
|
||||||
|
1. Narrower columns are easier to read than very wide ones. There's a reason
|
||||||
|
newspapers have used columns for decades or centuries.
|
||||||
|
|
||||||
|
2. Narrower columns allow developers to easier show multiple pieces of code
|
||||||
|
next to each other in different windows. I often have two or three source
|
||||||
|
code windows next to each other on the same screen - as well as multiple
|
||||||
|
terminal and debugging windows.
|
||||||
|
|
||||||
|
## Braces
|
||||||
|
|
||||||
|
In if/while/do/for expressions, we write the open brace on the same line as
|
||||||
|
the keyword and we then set the closing brace on the same indentation level as
|
||||||
|
the initial keyword. Like this:
|
||||||
|
|
||||||
|
if(age < 40) {
|
||||||
|
/* clearly a youngster */
|
||||||
|
}
|
||||||
|
|
||||||
|
When we write functions however, the opening brace should be in the first
|
||||||
|
column of the first line:
|
||||||
|
|
||||||
|
int main(int argc, char **argv)
|
||||||
|
{
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
## 'else' on the following line
|
||||||
|
|
||||||
|
When adding an `else` clause to a conditional expression using braces, we add
|
||||||
|
it on a new line after the closing brace. Like this:
|
||||||
|
|
||||||
|
if(age < 40) {
|
||||||
|
/* clearly a youngster */
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
/* probably grumpy */
|
||||||
|
}
|
||||||
|
|
||||||
|
## No space before parentheses
|
||||||
|
|
||||||
|
When writing expressions using if/while/do/for, there shall be no space
|
||||||
|
between the keyword and the open parenthesis. Like this:
|
||||||
|
|
||||||
|
while(1) {
|
||||||
|
/* loop forever */
|
||||||
|
}
|
||||||
|
|
||||||
|
## Use boolean conditions
|
||||||
|
|
||||||
|
Rather than test a conditional value such as a bool against TRUE or FALSE, a
|
||||||
|
pointer against NULL or != NULL and an int against zero or not zero in
|
||||||
|
if/while conditions we prefer:
|
||||||
|
|
||||||
|
result = do_something();
|
||||||
|
if(!result) {
|
||||||
|
/* something went wrong */
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
## No assignments in conditions
|
||||||
|
|
||||||
|
To increase readability and reduce complexity of conditionals, we avoid
|
||||||
|
assigning variables within if/while conditions. We frown upon this style:
|
||||||
|
|
||||||
|
if((ptr = malloc(100)) == NULL)
|
||||||
|
return NULL;
|
||||||
|
|
||||||
|
and instead we encourage the above version to be spelled out more clearly:
|
||||||
|
|
||||||
|
ptr = malloc(100);
|
||||||
|
if(!ptr)
|
||||||
|
return NULL;
|
||||||
|
|
||||||
|
## New block on a new line
|
||||||
|
|
||||||
|
We never write multiple statements on the same source line, even for very
|
||||||
|
short if() conditions.
|
||||||
|
|
||||||
|
if(a)
|
||||||
|
return TRUE;
|
||||||
|
else if(b)
|
||||||
|
return FALSE;
|
||||||
|
|
||||||
|
and NEVER:
|
||||||
|
|
||||||
|
if(a) return TRUE;
|
||||||
|
else if(b) return FALSE;
|
||||||
|
|
||||||
|
## Space around operators
|
||||||
|
|
||||||
|
Please use spaces on both sides of operators in C expressions. Postfix `(),
|
||||||
|
[], ->, ., ++, --` and Unary `+, - !, ~, &` operators excluded they should
|
||||||
|
have no space.
|
||||||
|
|
||||||
|
Examples:
|
||||||
|
|
||||||
|
bla = func();
|
||||||
|
who = name[0];
|
||||||
|
age += 1;
|
||||||
|
true = !false;
|
||||||
|
size += -2 + 3 * (a + b);
|
||||||
|
ptr->member = a++;
|
||||||
|
struct.field = b--;
|
||||||
|
ptr = &address;
|
||||||
|
contents = *pointer;
|
||||||
|
complement = ~bits;
|
||||||
|
|
||||||
|
## Platform dependent code
|
||||||
|
|
||||||
|
Use `#ifdef HAVE_FEATURE` to do conditional code. We avoid checking for
|
||||||
|
particular operating systems or hardware in the #ifdef lines. The HAVE_FEATURE
|
||||||
|
shall be generated by the configure script for unix-like systems and they are
|
||||||
|
hard-coded in the config-[system].h files for the others.
|
||||||
|
|
||||||
|
We also encourage use of macros/functions that possibly are empty or defined
|
||||||
|
to constants when libcurl is built without that feature, to make the code
|
||||||
|
seamless. Like this style where the `magic()` function works differently
|
||||||
|
depending on a build-time conditional:
|
||||||
|
|
||||||
|
#ifdef HAVE_MAGIC
|
||||||
|
void magic(int a)
|
||||||
|
{
|
||||||
|
return a + 2;
|
||||||
|
}
|
||||||
|
#else
|
||||||
|
#define magic(x) 1
|
||||||
|
#endif
|
||||||
|
|
||||||
|
int content = magic(3);
|
||||||
131
docs/CONTRIBUTE
131
docs/CONTRIBUTE
@@ -15,18 +15,13 @@
|
|||||||
1.2 License
|
1.2 License
|
||||||
1.3 What To Read
|
1.3 What To Read
|
||||||
|
|
||||||
2. cURL Coding Standards
|
2. Write a good patch
|
||||||
2.1 Naming
|
2.1 Follow code style
|
||||||
2.2 Indenting
|
2.2 Non-clobbering All Over
|
||||||
2.3 Commenting
|
2.3 Write Separate Patches
|
||||||
2.4 Line Lengths
|
2.4 Patch Against Recent Sources
|
||||||
2.5 General Style
|
2.5 Document
|
||||||
2.6 Non-clobbering All Over
|
2.6 Test Cases
|
||||||
2.7 Platform Dependent Code
|
|
||||||
2.8 Write Separate Patches
|
|
||||||
2.9 Patch Against Recent Sources
|
|
||||||
2.10 Document
|
|
||||||
2.11 Test Cases
|
|
||||||
|
|
||||||
3. Pushing Out Your Changes
|
3. Pushing Out Your Changes
|
||||||
3.1 Write Access to git Repository
|
3.1 Write Access to git Repository
|
||||||
@@ -34,7 +29,7 @@
|
|||||||
3.3 How To Make a Patch without git
|
3.3 How To Make a Patch without git
|
||||||
3.4 How to get your changes into the main sources
|
3.4 How to get your changes into the main sources
|
||||||
3.5 Write good commit messages
|
3.5 Write good commit messages
|
||||||
3.6 Please don't send pull requests
|
3.6 About pull requests
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
|
|
||||||
@@ -42,16 +37,20 @@
|
|||||||
|
|
||||||
1.1 Join the Community
|
1.1 Join the Community
|
||||||
|
|
||||||
Skip over to http://curl.haxx.se/mail/ and join the appropriate mailing
|
Skip over to https://curl.haxx.se/mail/ and join the appropriate mailing
|
||||||
list(s). Read up on details before you post questions. Read this file before
|
list(s). Read up on details before you post questions. Read this file before
|
||||||
you start sending patches! We prefer patches and discussions being held on
|
you start sending patches! We prefer patches and discussions being held on
|
||||||
the mailing list(s), not sent to individuals.
|
the mailing list(s), not sent to individuals.
|
||||||
|
|
||||||
Before posting to one of the curl mailing lists, please read up on the mailing
|
Before posting to one of the curl mailing lists, please read up on the mailing
|
||||||
list etiquette: http://curl.haxx.se/mail/etiquette.html
|
list etiquette: https://curl.haxx.se/mail/etiquette.html
|
||||||
|
|
||||||
We also hang out on IRC in #curl on irc.freenode.net
|
We also hang out on IRC in #curl on irc.freenode.net
|
||||||
|
|
||||||
|
If you're at all interested in the code side of things, consider clicking
|
||||||
|
'watch' on the curl repo at github to get notified on pull requests and new
|
||||||
|
issues posted there.
|
||||||
|
|
||||||
1.2. License
|
1.2. License
|
||||||
|
|
||||||
When contributing with code, you agree to put your changes and new code under
|
When contributing with code, you agree to put your changes and new code under
|
||||||
@@ -78,53 +77,20 @@
|
|||||||
|
|
||||||
1.3 What To Read
|
1.3 What To Read
|
||||||
|
|
||||||
Source code, the man pages, the INTERNALS document, TODO, KNOWN_BUGS, the
|
Source code, the man pages, the INTERNALS document, TODO, KNOWN_BUGS and the
|
||||||
most recent CHANGES. Just lurking on the curl-library mailing list is gonna
|
most recent changes in the git log. Just lurking on the curl-library mailing
|
||||||
give you a lot of insights on what's going on right now. Asking there is a
|
list is gonna give you a lot of insights on what's going on right now. Asking
|
||||||
good idea too.
|
there is a good idea too.
|
||||||
|
|
||||||
2. cURL Coding Standards
|
2. Write a good patch
|
||||||
|
|
||||||
2.1 Naming
|
2.1 Follow code style
|
||||||
|
|
||||||
Try using a non-confusing naming scheme for your new functions and variable
|
When writing C code, follow the CODE_STYLE already established in the
|
||||||
names. It doesn't necessarily have to mean that you should use the same as in
|
project. Consistent style makes code easier to read and mistakes less likely
|
||||||
other places of the code, just that the names should be logical,
|
to happen.
|
||||||
understandable and be named according to what they're used for. File-local
|
|
||||||
functions should be made static. We like lower case names.
|
|
||||||
|
|
||||||
See the INTERNALS document on how we name non-exported library-global
|
2.2 Non-clobbering All Over
|
||||||
symbols.
|
|
||||||
|
|
||||||
2.2 Indenting
|
|
||||||
|
|
||||||
Use the same indenting levels and bracing method as all the other code
|
|
||||||
already does. It makes the source code easier to follow if all of it is
|
|
||||||
written using the same style. We don't ask you to like it, we just ask you to
|
|
||||||
follow the tradition! ;-) This mainly means: 2-level indents, using spaces
|
|
||||||
only (no tabs) and having the opening brace ({) on the same line as the if()
|
|
||||||
or while().
|
|
||||||
|
|
||||||
Also note that we use if() and while() with no space before the parenthesis.
|
|
||||||
|
|
||||||
2.3 Commenting
|
|
||||||
|
|
||||||
Comment your source code extensively using C comments (/* comment */), DO NOT
|
|
||||||
use C++ comments (// this style). Commented code is quality code and enables
|
|
||||||
future modifications much more. Uncommented code risk having to be completely
|
|
||||||
replaced when someone wants to extend things, since other persons' source
|
|
||||||
code can get quite hard to read.
|
|
||||||
|
|
||||||
2.4 Line Lengths
|
|
||||||
|
|
||||||
We write source lines shorter than 80 columns.
|
|
||||||
|
|
||||||
2.5 General Style
|
|
||||||
|
|
||||||
Keep your functions small. If they're small you avoid a lot of mistakes and
|
|
||||||
you don't accidentally mix up variables etc.
|
|
||||||
|
|
||||||
2.6 Non-clobbering All Over
|
|
||||||
|
|
||||||
When you write new functionality or fix bugs, it is important that you don't
|
When you write new functionality or fix bugs, it is important that you don't
|
||||||
fiddle all over the source files and functions. Remember that it is likely
|
fiddle all over the source files and functions. Remember that it is likely
|
||||||
@@ -133,14 +99,7 @@
|
|||||||
functionality, try writing it in a new source file. If you fix bugs, try to
|
functionality, try writing it in a new source file. If you fix bugs, try to
|
||||||
fix one bug at a time and send them as separate patches.
|
fix one bug at a time and send them as separate patches.
|
||||||
|
|
||||||
2.7 Platform Dependent Code
|
2.3 Write Separate Patches
|
||||||
|
|
||||||
Use #ifdef HAVE_FEATURE to do conditional code. We avoid checking for
|
|
||||||
particular operating systems or hardware in the #ifdef lines. The
|
|
||||||
HAVE_FEATURE shall be generated by the configure script for unix-like systems
|
|
||||||
and they are hard-coded in the config-[system].h files for the others.
|
|
||||||
|
|
||||||
2.8 Write Separate Patches
|
|
||||||
|
|
||||||
It is annoying when you get a huge patch from someone that is said to fix 511
|
It is annoying when you get a huge patch from someone that is said to fix 511
|
||||||
odd problems, but discussions and opinions don't agree with 510 of them - or
|
odd problems, but discussions and opinions don't agree with 510 of them - or
|
||||||
@@ -154,14 +113,14 @@
|
|||||||
Also, separate patches enable bisecting much better when we track problems in
|
Also, separate patches enable bisecting much better when we track problems in
|
||||||
the future.
|
the future.
|
||||||
|
|
||||||
2.9 Patch Against Recent Sources
|
2.4 Patch Against Recent Sources
|
||||||
|
|
||||||
Please try to get the latest available sources to make your patches
|
Please try to get the latest available sources to make your patches
|
||||||
against. It makes the life of the developers so much easier. The very best is
|
against. It makes the life of the developers so much easier. The very best is
|
||||||
if you get the most up-to-date sources from the git repository, but the
|
if you get the most up-to-date sources from the git repository, but the
|
||||||
latest release archive is quite OK as well!
|
latest release archive is quite OK as well!
|
||||||
|
|
||||||
2.10 Document
|
2.5 Document
|
||||||
|
|
||||||
Writing docs is dead boring and one of the big problems with many open source
|
Writing docs is dead boring and one of the big problems with many open source
|
||||||
projects. Someone's gotta do it. It makes it a lot easier if you submit a
|
projects. Someone's gotta do it. It makes it a lot easier if you submit a
|
||||||
@@ -172,7 +131,7 @@
|
|||||||
ASCII files. All HTML files on the web site and in the release archives are
|
ASCII files. All HTML files on the web site and in the release archives are
|
||||||
generated from the nroff/ASCII versions.
|
generated from the nroff/ASCII versions.
|
||||||
|
|
||||||
2.11 Test Cases
|
2.6 Test Cases
|
||||||
|
|
||||||
Since the introduction of the test suite, we can quickly verify that the main
|
Since the introduction of the test suite, we can quickly verify that the main
|
||||||
features are working as they're supposed to. To maintain this situation and
|
features are working as they're supposed to. To maintain this situation and
|
||||||
@@ -199,7 +158,7 @@
|
|||||||
|
|
||||||
You need to first checkout the repository:
|
You need to first checkout the repository:
|
||||||
|
|
||||||
git clone git://github.com/bagder/curl.git
|
git clone https://github.com/curl/curl.git
|
||||||
|
|
||||||
You then proceed and edit all the files you like and you commit them to your
|
You then proceed and edit all the files you like and you commit them to your
|
||||||
local repository:
|
local repository:
|
||||||
@@ -241,8 +200,8 @@
|
|||||||
|
|
||||||
For unix-like operating systems:
|
For unix-like operating systems:
|
||||||
|
|
||||||
http://www.gnu.org/software/patch/patch.html
|
https://savannah.gnu.org/projects/patch/
|
||||||
http://www.gnu.org/directory/diffutils.html
|
https://www.gnu.org/software/diffutils/
|
||||||
|
|
||||||
For Windows:
|
For Windows:
|
||||||
|
|
||||||
@@ -288,27 +247,15 @@
|
|||||||
and make sure that you have your own user and email setup correctly in git
|
and make sure that you have your own user and email setup correctly in git
|
||||||
before you commit
|
before you commit
|
||||||
|
|
||||||
3.6 Please don't send pull requests
|
3.6 About pull requests
|
||||||
|
|
||||||
With git (and especially github) it is easy and tempting to send a pull
|
With git (and especially github) it is easy and tempting to send a pull
|
||||||
request to one or more people in the curl project to have changes merged this
|
request to the curl project to have changes merged this way instead of
|
||||||
way instead of mailing patches to the curl-library mailing list.
|
mailing patches to the curl-library mailing list.
|
||||||
|
|
||||||
We don't like that. We want them mailed for these reasons:
|
We used to dislike this but we're trying to change that and accept that this
|
||||||
|
is a frictionless way for people to contribute to the project. We now welcome
|
||||||
|
pull requests!
|
||||||
|
|
||||||
- Peer review. Anyone and everyone on the list can review, comment and
|
We will continue to avoid using github's merge tools to make the history
|
||||||
improve on the patch. Pull requests limit this ability.
|
linear and to make sure commits follow our style guidelines.
|
||||||
|
|
||||||
- Anyone can merge the patch into their own trees for testing and those who
|
|
||||||
have push rights can push it to the main repo. It doesn't have to be anyone
|
|
||||||
the patch author knows beforehand.
|
|
||||||
|
|
||||||
- Commit messages can be tweaked and changed if merged locally instead of
|
|
||||||
using github. Merges directly on github requires the changes to be perfect
|
|
||||||
already, which they seldom are.
|
|
||||||
|
|
||||||
- Merges on github prevents rebases and even enforces --no-ff which is a git
|
|
||||||
style we don't otherwise use in the project
|
|
||||||
|
|
||||||
However: once patches have been reviewed and deemed fine on list they are
|
|
||||||
perfectly OK to be pulled from a published git tree.
|
|
||||||
|
|||||||
@@ -1,176 +0,0 @@
|
|||||||
Date: February 11, 2007
|
|
||||||
Author: Daniel Stenberg <daniel@haxx.se>
|
|
||||||
URL: http://curl.haxx.se/legal/distro-dilemma.html
|
|
||||||
|
|
||||||
Condition
|
|
||||||
|
|
||||||
This document is written to describe the situation as it is right now.
|
|
||||||
libcurl 7.16.1 is currently the latest version available. Things may of
|
|
||||||
course change in the future.
|
|
||||||
|
|
||||||
This document reflects my view and understanding of these things. Please tell
|
|
||||||
me where and how you think I'm wrong, and I'll try to correct my mistakes.
|
|
||||||
|
|
||||||
Background
|
|
||||||
|
|
||||||
The Free Software Foundation has deemed the Original BSD license[1] to be
|
|
||||||
"incompatible"[2] with GPL[3]. I'd rather say it is the other way around, but
|
|
||||||
the point is the same: if you distribute a binary version of a GPL program,
|
|
||||||
it MUST NOT be linked with any Original BSD-licensed parts or libraries.
|
|
||||||
Doing so will violate the GPL license. For a long time, very many GPL
|
|
||||||
licensed programs have avoided this license mess by adding an exception[8] to
|
|
||||||
their license. And many others have just closed their eyes for this problem.
|
|
||||||
|
|
||||||
libcurl is MIT-style[4] licensed - how on earth did this dilemma fall onto
|
|
||||||
our plates?
|
|
||||||
|
|
||||||
libcurl is only a little library. libcurl can be built to use OpenSSL for its
|
|
||||||
SSL/TLS capabilities. OpenSSL is basically Original BSD licensed[5].
|
|
||||||
|
|
||||||
If libcurl built to use OpenSSL is used by a GPL-licensed application and you
|
|
||||||
decide to distribute a binary version of it (Linux distros - for example -
|
|
||||||
tend to), you have a clash. GPL vs Original BSD.
|
|
||||||
|
|
||||||
This dilemma is not libcurl-specific nor is it specific to any particular
|
|
||||||
Linux distro. (This article mentions and refers to Debian several times, but
|
|
||||||
only because Debian seems to be the only Linux distro to have faced this
|
|
||||||
issue yet since no other distro is shipping libcurl built with two SSL
|
|
||||||
libraries.)
|
|
||||||
|
|
||||||
Part of the Operating System
|
|
||||||
|
|
||||||
This would not be a problem if the used lib would be considered part of the
|
|
||||||
underlying operating system, as then the GPL license has an exception
|
|
||||||
clause[6] that allows applications to use such libs without having to be
|
|
||||||
allowed to distribute it or its sources. Possibly some distros will claim
|
|
||||||
that OpenSSL is part of their operating system.
|
|
||||||
|
|
||||||
Debian does however not take this stance and has officially(?) claimed that
|
|
||||||
OpenSSL is not a required part of the Debian operating system
|
|
||||||
|
|
||||||
Some people claim that this paragraph cannot be exploited this way by a Linux
|
|
||||||
distro, but I am not a lawyer and that is a discussion left outside of this
|
|
||||||
document.
|
|
||||||
|
|
||||||
GnuTLS
|
|
||||||
|
|
||||||
Since May 2005 libcurl can get built to use GnuTLS instead of OpenSSL. GnuTLS
|
|
||||||
is an LGPL[7] licensed library that offers a matching set of features as
|
|
||||||
OpenSSL does. Now, you can build and distribute an TLS/SSL capable libcurl
|
|
||||||
without including any Original BSD licensed code.
|
|
||||||
|
|
||||||
I believe Debian is the first (only?) distro that provides libcurl/GnuTLS
|
|
||||||
packages.
|
|
||||||
|
|
||||||
yassl
|
|
||||||
|
|
||||||
libcurl can get also get built to use yassl for the TLS/SSL layer. yassl is a
|
|
||||||
GPL[3] licensed library.
|
|
||||||
|
|
||||||
|
|
||||||
GnuTLS vs OpenSSL vs yassl
|
|
||||||
|
|
||||||
While these three libraries offer similar features, they are not equal.
|
|
||||||
libcurl does not (yet) offer a standardized stable ABI if you decide to
|
|
||||||
switch from using libcurl-openssl to libcurl-gnutls or vice-versa. The GnuTLS
|
|
||||||
and yassl support is very recent in libcurl and it has not been tested nor
|
|
||||||
used very extensively, while the OpenSSL equivalent code has been used and
|
|
||||||
thus matured since 1999.
|
|
||||||
|
|
||||||
GnuTLS
|
|
||||||
- LGPL licensed
|
|
||||||
- supports SRP
|
|
||||||
- lacks SSLv2 support
|
|
||||||
- lacks MD2 support (used by at least some CA certs)
|
|
||||||
- lacks the crypto functions libcurl uses for NTLM
|
|
||||||
|
|
||||||
OpenSSL
|
|
||||||
- Original BSD licensed
|
|
||||||
- lacks SRP
|
|
||||||
- supports SSLv2
|
|
||||||
- older and more widely used
|
|
||||||
- provides crypto functions libcurl uses for NTLM
|
|
||||||
- libcurl can do non-blocking connects with it in 7.15.4 and later
|
|
||||||
|
|
||||||
yassl
|
|
||||||
- GPL licensed
|
|
||||||
- much untested and unproven in the real work by (lib)curl users so we don't
|
|
||||||
know a lot about restrictions or benefits from using this
|
|
||||||
|
|
||||||
The Better License, Original BSD, GPL or LGPL?
|
|
||||||
|
|
||||||
It isn't obvious or without debate to any objective interested party that
|
|
||||||
either of these licenses are the "better" or even the "preferred" one in a
|
|
||||||
generic situation.
|
|
||||||
|
|
||||||
Instead, I think we should accept the fact that the SSL/TLS libraries and
|
|
||||||
their different licenses will fit different applications and their authors
|
|
||||||
differently depending on the applications' licenses and their general usage
|
|
||||||
pattern (considering how GPL and LGPL libraries for example can be burdensome
|
|
||||||
for embedded systems usage).
|
|
||||||
|
|
||||||
In Debian land, there seems to be a common opinion that LGPL is "maximally
|
|
||||||
compatible" with apps while Original BSD is not. Like this:
|
|
||||||
|
|
||||||
http://lists.debian.org/debian-devel/2005/09/msg01417.html
|
|
||||||
|
|
||||||
More SSL Libraries
|
|
||||||
|
|
||||||
In libcurl, there's no stopping us here. There are more Open Source/Free
|
|
||||||
SSL/TLS libraries out there and we would very much like to support them as
|
|
||||||
well, to offer application authors an even wider scope of choice.
|
|
||||||
|
|
||||||
Application Angle of this Problem
|
|
||||||
|
|
||||||
libcurl is built to use one SSL/TLS library. It uses a single fixed name (by
|
|
||||||
default) on the built/created lib file, and applications are built/linked to
|
|
||||||
use that single lib. Replacing one libcurl instance with another one that
|
|
||||||
uses the other SSL/TLS library might break one or more applications (due to
|
|
||||||
ABI differences and/or different feature set). You want your application to
|
|
||||||
use the libcurl it was built for.
|
|
||||||
|
|
||||||
Project cURL Angle of this Problem
|
|
||||||
|
|
||||||
We distribute libcurl and everyone may build libcurl with either library at
|
|
||||||
their choice. This problem is not directly a problem of ours. It merely
|
|
||||||
affects users - GPL application authors only - of our lib as it comes
|
|
||||||
included and delivered on some distros.
|
|
||||||
|
|
||||||
libcurl has different ABI when built with different SSL/TLS libraries due to
|
|
||||||
these reasons:
|
|
||||||
|
|
||||||
1. No one has worked on fixing this. The mutex/lock callbacks should be set
|
|
||||||
with a generic libcurl function that should use the proper underlying
|
|
||||||
functions.
|
|
||||||
|
|
||||||
2. The CURLOPT_SSL_CTX_FUNCTION option is not possible to "emulate" on GnuTLS
|
|
||||||
but simply requires OpenSSL.
|
|
||||||
|
|
||||||
3. There might be some other subtle differences just because nobody has yet
|
|
||||||
tried to make a fixed ABI like this.
|
|
||||||
|
|
||||||
Distro Angle of this Problem
|
|
||||||
|
|
||||||
To my knowledge there is only one distro that ships libcurl built with either
|
|
||||||
OpenSSL or GnuTLS.
|
|
||||||
|
|
||||||
Debian Linux is now (since mid September 2005) providing two different
|
|
||||||
libcurl packages, one for libcurl built with OpenSSL and one built with
|
|
||||||
GnuTLS. They use different .so names and can this both be installed in a
|
|
||||||
single system simultaneously. This has been said to be a transitional system
|
|
||||||
not desired to keep in the long run.
|
|
||||||
|
|
||||||
Footnotes
|
|
||||||
|
|
||||||
[1] = http://www.xfree86.org/3.3.6/COPYRIGHT2.html#6
|
|
||||||
[2] = http://www.fsf.org/licensing/essays/bsd.html
|
|
||||||
[3] = http://www.fsf.org/licensing/licenses/gpl.html
|
|
||||||
[4] = http://curl.haxx.se/docs/copyright.html
|
|
||||||
[5] = http://www.openssl.org/source/license.html
|
|
||||||
[6] = http://www.fsf.org/licensing/licenses/gpl.html end of section 3
|
|
||||||
[7] = http://www.fsf.org/licensing/licenses/lgpl.html
|
|
||||||
[8] = http://en.wikipedia.org/wiki/OpenSSL_exception
|
|
||||||
|
|
||||||
Feedback/Updates provided by
|
|
||||||
|
|
||||||
Eric Cooper
|
|
||||||
182
docs/FAQ
182
docs/FAQ
@@ -21,6 +21,7 @@ FAQ
|
|||||||
1.12 I have a problem who can I chat with?
|
1.12 I have a problem who can I chat with?
|
||||||
1.13 curl's ECCN number?
|
1.13 curl's ECCN number?
|
||||||
1.14 How do I submit my patch?
|
1.14 How do I submit my patch?
|
||||||
|
1.15 How do I port libcurl to my OS?
|
||||||
|
|
||||||
2. Install Related Problems
|
2. Install Related Problems
|
||||||
2.1 configure doesn't find OpenSSL even when it is installed
|
2.1 configure doesn't find OpenSSL even when it is installed
|
||||||
@@ -29,6 +30,7 @@ FAQ
|
|||||||
2.2 Does curl work/build with other SSL libraries?
|
2.2 Does curl work/build with other SSL libraries?
|
||||||
2.3 Where can I find a copy of LIBEAY32.DLL?
|
2.3 Where can I find a copy of LIBEAY32.DLL?
|
||||||
2.4 Does curl support SOCKS (RFC 1928) ?
|
2.4 Does curl support SOCKS (RFC 1928) ?
|
||||||
|
2.5 Install libcurl for both 32bit and 64bit?
|
||||||
|
|
||||||
3. Usage Problems
|
3. Usage Problems
|
||||||
3.1 curl: (1) SSL is disabled, https: not supported
|
3.1 curl: (1) SSL is disabled, https: not supported
|
||||||
@@ -80,6 +82,8 @@ FAQ
|
|||||||
4.17 Non-functional connect timeouts on Windows
|
4.17 Non-functional connect timeouts on Windows
|
||||||
4.18 file:// URLs containing drive letters (Windows, NetWare)
|
4.18 file:// URLs containing drive letters (Windows, NetWare)
|
||||||
4.19 Why doesn't cURL return an error when the network cable is unplugged?
|
4.19 Why doesn't cURL return an error when the network cable is unplugged?
|
||||||
|
4.20 curl doesn't return error for HTTP non-200 responses!
|
||||||
|
4.21 Why is there a HTTP/1.1 in my HTTP/2 request?
|
||||||
|
|
||||||
5. libcurl Issues
|
5. libcurl Issues
|
||||||
5.1 Is libcurl thread-safe?
|
5.1 Is libcurl thread-safe?
|
||||||
@@ -133,14 +137,14 @@ FAQ
|
|||||||
|
|
||||||
A free and easy-to-use client-side URL transfer library, supporting DICT,
|
A free and easy-to-use client-side URL transfer library, supporting DICT,
|
||||||
FILE, FTP, FTPS, GOPHER, HTTP, HTTPS, IMAP, IMAPS, LDAP, LDAPS, POP3,
|
FILE, FTP, FTPS, GOPHER, HTTP, HTTPS, IMAP, IMAPS, LDAP, LDAPS, POP3,
|
||||||
POP3S, RTMP, RTSP, SCP, SFTP, SMTP, SMTPS, TELNET and TFTP.
|
POP3S, RTMP, RTSP, SCP, SFTP, SMB, SMBS, SMTP, SMTPS, TELNET and TFTP.
|
||||||
|
|
||||||
libcurl supports HTTPS certificates, HTTP POST, HTTP PUT, FTP uploading,
|
libcurl supports HTTPS certificates, HTTP POST, HTTP PUT, FTP uploading,
|
||||||
kerberos, HTTP form based upload, proxies, cookies, user+password
|
Kerberos, SPNEGO, HTTP form based upload, proxies, cookies, user+password
|
||||||
authentication, file transfer resume, http proxy tunneling and more!
|
authentication, file transfer resume, http proxy tunneling and more!
|
||||||
|
|
||||||
libcurl is highly portable, it builds and works identically on numerous
|
libcurl is highly portable, it builds and works identically on numerous
|
||||||
platforms, including Solaris, NetBSD, FreeBSD, OpenBSD, Darwin, HPUX,
|
platforms, including Solaris, NetBSD, FreeBSD, OpenBSD, Darwin, HP-UX,
|
||||||
IRIX, AIX, Tru64, Linux, UnixWare, HURD, Windows, Amiga, OS/2, BeOS, Mac
|
IRIX, AIX, Tru64, Linux, UnixWare, HURD, Windows, Amiga, OS/2, BeOS, Mac
|
||||||
OS X, Ultrix, QNX, OpenVMS, RISC OS, Novell NetWare, DOS, Symbian, OSF,
|
OS X, Ultrix, QNX, OpenVMS, RISC OS, Novell NetWare, DOS, Symbian, OSF,
|
||||||
Android, Minix, IBM TPF and more...
|
Android, Minix, IBM TPF and more...
|
||||||
@@ -155,7 +159,10 @@ FAQ
|
|||||||
Since curl uses libcurl, curl supports the same wide range of common
|
Since curl uses libcurl, curl supports the same wide range of common
|
||||||
Internet protocols that libcurl does.
|
Internet protocols that libcurl does.
|
||||||
|
|
||||||
We pronounce curl and cURL with an initial k sound: [kurl].
|
We pronounce curl with an initial k sound. It rhymes with words like girl
|
||||||
|
and earl. This is a short WAV file to help you:
|
||||||
|
|
||||||
|
http://media.merriam-webster.com/soundc11/c/curl0001.wav
|
||||||
|
|
||||||
There are numerous sub-projects and related projects that also use the word
|
There are numerous sub-projects and related projects that also use the word
|
||||||
curl in the project names in various combinations, but you should take
|
curl in the project names in various combinations, but you should take
|
||||||
@@ -219,7 +226,9 @@ FAQ
|
|||||||
implement it for you, that is not a very friendly attitude. We spend a
|
implement it for you, that is not a very friendly attitude. We spend a
|
||||||
considerable time already on maintaining and developing curl. In order to
|
considerable time already on maintaining and developing curl. In order to
|
||||||
get more out of us, you should consider trading in some of your time and
|
get more out of us, you should consider trading in some of your time and
|
||||||
efforts in return.
|
efforts in return. Simply go to the GitHub repo which resides at
|
||||||
|
https://github.com/curl/curl, fork the project, and create pull requests
|
||||||
|
with your proposed changes.
|
||||||
|
|
||||||
If you write the code, chances are bigger that it will get into curl faster.
|
If you write the code, chances are bigger that it will get into curl faster.
|
||||||
|
|
||||||
@@ -238,16 +247,17 @@ FAQ
|
|||||||
1.6 What do you get for making curl?
|
1.6 What do you get for making curl?
|
||||||
|
|
||||||
Project cURL is entirely free and open. No person gets paid for developing
|
Project cURL is entirely free and open. No person gets paid for developing
|
||||||
(lib)curl on full or even part time. We do this voluntarily on our spare
|
curl on full time. We do this voluntarily, mostly on spare time.
|
||||||
time. Occasionally companies pay individual developers to work on curl, but
|
Occasionally companies pay individual developers to work on curl, but that's
|
||||||
that's up to each company and developer. It is not controlled by nor
|
up to each company and developer. It is not controlled by nor supervised in
|
||||||
supervised in any way by the project.
|
any way by the project.
|
||||||
|
|
||||||
We still get help from companies. Haxx provides web site, bandwidth, mailing
|
We still get help from companies. Haxx provides web site, bandwidth, mailing
|
||||||
lists etc, sourceforge.net hosts project services we take advantage from,
|
lists etc, sourceforge.net hosts project services we take advantage from,
|
||||||
like the bug tracker and github hosts the primary git repository. Also
|
like the bug tracker, and GitHub hosts the primary git repository at
|
||||||
again, some companies have sponsored certain parts of the development in the
|
https://github.com/curl/curl. Also again, some companies have sponsored
|
||||||
past and I hope some will continue to do so in the future.
|
certain parts of the development in the past and I hope some will continue to
|
||||||
|
do so in the future.
|
||||||
|
|
||||||
If you want to support our project, consider a donation or a banner-program
|
If you want to support our project, consider a donation or a banner-program
|
||||||
or even better: by helping us coding, documenting, testing etc.
|
or even better: by helping us coding, documenting, testing etc.
|
||||||
@@ -272,7 +282,7 @@ FAQ
|
|||||||
Please do not mail any single individual unless you really need to. Keep
|
Please do not mail any single individual unless you really need to. Keep
|
||||||
curl-related questions on a suitable mailing list. All available mailing
|
curl-related questions on a suitable mailing list. All available mailing
|
||||||
lists are listed in the MANUAL document and online at
|
lists are listed in the MANUAL document and online at
|
||||||
http://curl.haxx.se/mail/
|
https://curl.haxx.se/mail/
|
||||||
|
|
||||||
Keeping curl-related questions and discussions on mailing lists allows
|
Keeping curl-related questions and discussions on mailing lists allows
|
||||||
others to join in and help, to share their ideas, contribute their
|
others to join in and help, to share their ideas, contribute their
|
||||||
@@ -293,7 +303,7 @@ FAQ
|
|||||||
your curl-related problems.
|
your curl-related problems.
|
||||||
|
|
||||||
We list available alternatives on the curl web site:
|
We list available alternatives on the curl web site:
|
||||||
http://curl.haxx.se/support.html
|
https://curl.haxx.se/support.html
|
||||||
|
|
||||||
1.10 How many are using curl?
|
1.10 How many are using curl?
|
||||||
|
|
||||||
@@ -310,7 +320,7 @@ FAQ
|
|||||||
In May 2012 Daniel did a counting game and came up with a number that may
|
In May 2012 Daniel did a counting game and came up with a number that may
|
||||||
be completely wrong or somewhat accurate. Over 500 million!
|
be completely wrong or somewhat accurate. Over 500 million!
|
||||||
|
|
||||||
See http://daniel.haxx.se/blog/2012/05/16/300m-users/
|
See https://daniel.haxx.se/blog/2012/05/16/300m-users/
|
||||||
|
|
||||||
1.11 Why don't you update ca-bundle.crt
|
1.11 Why don't you update ca-bundle.crt
|
||||||
|
|
||||||
@@ -332,7 +342,7 @@ FAQ
|
|||||||
If you want the most recent collection of ca certs that Mozilla Firefox
|
If you want the most recent collection of ca certs that Mozilla Firefox
|
||||||
uses, we recommend that you extract the collection yourself from Mozilla
|
uses, we recommend that you extract the collection yourself from Mozilla
|
||||||
Firefox (by running 'make ca-bundle), or by using our online service setup
|
Firefox (by running 'make ca-bundle), or by using our online service setup
|
||||||
for this purpose: http://curl.haxx.se/docs/caextract.html
|
for this purpose: https://curl.haxx.se/docs/caextract.html
|
||||||
|
|
||||||
1.12 I have a problem who can I chat with?
|
1.12 I have a problem who can I chat with?
|
||||||
|
|
||||||
@@ -346,13 +356,15 @@ FAQ
|
|||||||
cryptography. When doing so, the Export Control Classification Number (ECCN)
|
cryptography. When doing so, the Export Control Classification Number (ECCN)
|
||||||
is used to identify the level of export control etc.
|
is used to identify the level of export control etc.
|
||||||
|
|
||||||
ASF gives a good explanation at http://www.apache.org/dev/crypto.html
|
Apache Software Foundation gives a good explanation of ECCNs at
|
||||||
|
https://www.apache.org/dev/crypto.html
|
||||||
|
|
||||||
We believe curl's number might be ECCN 5D002, another possibility is
|
We believe curl's number might be ECCN 5D002, another possibility is
|
||||||
5D992. It seems necessary to write them, asking to confirm.
|
5D992. It seems necessary to write them (the authority that administers ECCN
|
||||||
|
numbers), asking to confirm.
|
||||||
|
|
||||||
Comprehensible explanations of the meaning of such numbers and how to
|
Comprehensible explanations of the meaning of such numbers and how to obtain
|
||||||
obtain them (resp.) are here
|
them (resp.) are here
|
||||||
|
|
||||||
http://www.bis.doc.gov/licensing/exportingbasics.htm
|
http://www.bis.doc.gov/licensing/exportingbasics.htm
|
||||||
http://www.bis.doc.gov/licensing/do_i_needaneccn.html
|
http://www.bis.doc.gov/licensing/do_i_needaneccn.html
|
||||||
@@ -375,6 +387,19 @@ FAQ
|
|||||||
|
|
||||||
Lots of more details are found in the CONTRIBUTE and INTERNALS docs.
|
Lots of more details are found in the CONTRIBUTE and INTERNALS docs.
|
||||||
|
|
||||||
|
1.15 How do I port libcurl to my OS?
|
||||||
|
|
||||||
|
Here's a rough step-by-step:
|
||||||
|
|
||||||
|
1. copy a suitable lib/config-*.h file as a start to lib/config-[youros].h
|
||||||
|
|
||||||
|
2. edit lib/config-[youros].h to match your OS and setup
|
||||||
|
|
||||||
|
3. edit lib/curl_setup.h to include config-[youros].h when your OS is
|
||||||
|
detected by the preprocessor, in the style others already exist
|
||||||
|
|
||||||
|
4. compile lib/*.c and make them into a library
|
||||||
|
|
||||||
|
|
||||||
2. Install Related Problems
|
2. Install Related Problems
|
||||||
|
|
||||||
@@ -423,9 +448,9 @@ FAQ
|
|||||||
|
|
||||||
curl can be built to use one of the following SSL alternatives: OpenSSL,
|
curl can be built to use one of the following SSL alternatives: OpenSSL,
|
||||||
GnuTLS, yassl, NSS, PolarSSL, axTLS, Secure Transport (native iOS/OS X),
|
GnuTLS, yassl, NSS, PolarSSL, axTLS, Secure Transport (native iOS/OS X),
|
||||||
WinSSL (native Windows) or qssl (native IBM i). They all have their pros
|
WinSSL (native Windows) or GSKit (native IBM i). They all have their pros
|
||||||
and cons, and we try to maintain a comparison of them here:
|
and cons, and we try to maintain a comparison of them here:
|
||||||
http://curl.haxx.se/docs/ssl-compared.html
|
https://curl.haxx.se/docs/ssl-compared.html
|
||||||
|
|
||||||
2.3 Where can I find a copy of LIBEAY32.DLL?
|
2.3 Where can I find a copy of LIBEAY32.DLL?
|
||||||
|
|
||||||
@@ -440,6 +465,32 @@ FAQ
|
|||||||
|
|
||||||
Yes, SOCKS 4 and 5 are supported.
|
Yes, SOCKS 4 and 5 are supported.
|
||||||
|
|
||||||
|
2.5 Install libcurl for both 32bit and 64bit?
|
||||||
|
|
||||||
|
In curl's configure procedure one of the regular include files get created
|
||||||
|
with platform specific information. The file 'curl/curlbuild.h' in the
|
||||||
|
installed libcurl file tree is therefore somewhat tied to that particular
|
||||||
|
platform.
|
||||||
|
|
||||||
|
To allow applications to get built for either 32bit or 64bit you need to
|
||||||
|
install libcurl headers for both setups and unfortunately curl doesn't do
|
||||||
|
this automatically.
|
||||||
|
|
||||||
|
A commonly used procedure is this:
|
||||||
|
|
||||||
|
$ ./configure [32bit platform]
|
||||||
|
$ mv curl/curlbuild.h curl/curlbuild-32bit.h
|
||||||
|
$ ./configure [64bit platform]
|
||||||
|
$ mv curl/curlbuild.h curl/curlbuild-64bit.h
|
||||||
|
|
||||||
|
Then you make a toplevel curl/curlbuild.h replacement that only does this:
|
||||||
|
|
||||||
|
#ifdef IS_32BIT
|
||||||
|
#include "curlbuild-32bit.h"
|
||||||
|
else
|
||||||
|
#include "curlbuild-64bit.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
3. Usage problems
|
3. Usage problems
|
||||||
|
|
||||||
@@ -537,7 +588,7 @@ FAQ
|
|||||||
|
|
||||||
Find out more about which languages that support curl directly, and how to
|
Find out more about which languages that support curl directly, and how to
|
||||||
install and use them, in the libcurl section of the curl web site:
|
install and use them, in the libcurl section of the curl web site:
|
||||||
http://curl.haxx.se/libcurl/
|
https://curl.haxx.se/libcurl/
|
||||||
|
|
||||||
All the various bindings to libcurl are made by other projects and people,
|
All the various bindings to libcurl are made by other projects and people,
|
||||||
outside of the cURL project. The cURL project itself only produces libcurl
|
outside of the cURL project. The cURL project itself only produces libcurl
|
||||||
@@ -670,7 +721,7 @@ FAQ
|
|||||||
certificate. Server certificate verification is enabled by default in curl
|
certificate. Server certificate verification is enabled by default in curl
|
||||||
and libcurl and is often the reason for problems as explained in FAQ entry
|
and libcurl and is often the reason for problems as explained in FAQ entry
|
||||||
4.12 and the SSLCERTS document
|
4.12 and the SSLCERTS document
|
||||||
(http://curl.haxx.se/docs/sslcerts.html). Server certificates that are
|
(https://curl.haxx.se/docs/sslcerts.html). Server certificates that are
|
||||||
"self-signed" or otherwise signed by a CA that you do not have a CA cert
|
"self-signed" or otherwise signed by a CA that you do not have a CA cert
|
||||||
for, cannot be verified. If the verification during a connect fails, you are
|
for, cannot be verified. If the verification during a connect fails, you are
|
||||||
refused access. You then need to explicitly disable the verification to
|
refused access. You then need to explicitly disable the verification to
|
||||||
@@ -760,8 +811,9 @@ FAQ
|
|||||||
request-body in a GET request with something like "curl -X GET -d data
|
request-body in a GET request with something like "curl -X GET -d data
|
||||||
[URL]"
|
[URL]"
|
||||||
|
|
||||||
Note that -X doesn't change curl's behavior. It only modifies the actual
|
Note that -X doesn't actually change curl's behavior as it only modifies the
|
||||||
string sent in the request.
|
actual string sent in the request, but that may of course trigger a
|
||||||
|
different set of events.
|
||||||
|
|
||||||
Accordingly, by using -XPOST on a command line that for example would follow
|
Accordingly, by using -XPOST on a command line that for example would follow
|
||||||
a 303 redirect, you will effectively prevent curl from behaving
|
a 303 redirect, you will effectively prevent curl from behaving
|
||||||
@@ -960,7 +1012,7 @@ FAQ
|
|||||||
this check.
|
this check.
|
||||||
|
|
||||||
Details are also in the SSLCERTS file in the release archives, found online
|
Details are also in the SSLCERTS file in the release archives, found online
|
||||||
here: http://curl.haxx.se/docs/sslcerts.html
|
here: https://curl.haxx.se/docs/sslcerts.html
|
||||||
|
|
||||||
4.13 Why is curl -R on Windows one hour off?
|
4.13 Why is curl -R on Windows one hour off?
|
||||||
|
|
||||||
@@ -1022,7 +1074,7 @@ FAQ
|
|||||||
timeout is set.
|
timeout is set.
|
||||||
|
|
||||||
See option TcpMaxConnectRetransmissions on this page:
|
See option TcpMaxConnectRetransmissions on this page:
|
||||||
http://support.microsoft.com/?scid=kb%3Ben-us%3B175523&x=6&y=7
|
https://support.microsoft.com/en-us/kb/175523/en-us
|
||||||
|
|
||||||
Also, even on non-Windows systems there may run a firewall or anti-virus
|
Also, even on non-Windows systems there may run a firewall or anti-virus
|
||||||
software or similar that accepts the connection but does not actually do
|
software or similar that accepts the connection but does not actually do
|
||||||
@@ -1039,7 +1091,7 @@ FAQ
|
|||||||
You'll find that even if D:\blah.txt does exist, cURL returns a 'file
|
You'll find that even if D:\blah.txt does exist, cURL returns a 'file
|
||||||
not found' error.
|
not found' error.
|
||||||
|
|
||||||
According to RFC 1738 (http://www.faqs.org/rfcs/rfc1738.html),
|
According to RFC 1738 (https://www.ietf.org/rfc/rfc1738.txt),
|
||||||
file:// URLs must contain a host component, but it is ignored by
|
file:// URLs must contain a host component, but it is ignored by
|
||||||
most implementations. In the above example, 'D:' is treated as the
|
most implementations. In the above example, 'D:' is treated as the
|
||||||
host component, and is taken away. Thus, cURL tries to open '/blah.txt'.
|
host component, and is taken away. Thus, cURL tries to open '/blah.txt'.
|
||||||
@@ -1067,7 +1119,7 @@ FAQ
|
|||||||
|
|
||||||
In such cases, the TCP/IP stack is responsible for detecting when the
|
In such cases, the TCP/IP stack is responsible for detecting when the
|
||||||
network connection is irrevocably lost. Since with some protocols it is
|
network connection is irrevocably lost. Since with some protocols it is
|
||||||
perfectly legal for the client wait indefinitely for data, the stack may
|
perfectly legal for the client to wait indefinitely for data, the stack may
|
||||||
never report a problem, and even when it does, it can take up to 20 minutes
|
never report a problem, and even when it does, it can take up to 20 minutes
|
||||||
for it to detect an issue. The curl option --keepalive-time enables
|
for it to detect an issue. The curl option --keepalive-time enables
|
||||||
keep-alive support in the TCP/IP stack which makes it periodically probe the
|
keep-alive support in the TCP/IP stack which makes it periodically probe the
|
||||||
@@ -1087,6 +1139,40 @@ FAQ
|
|||||||
by having the application monitor the network connection on its own using an
|
by having the application monitor the network connection on its own using an
|
||||||
OS-specific mechanism, then signalling libcurl to abort (see also item 5.13).
|
OS-specific mechanism, then signalling libcurl to abort (see also item 5.13).
|
||||||
|
|
||||||
|
4.20 curl doesn't return error for HTTP non-200 responses!
|
||||||
|
|
||||||
|
Correct. Unless you use -f (--fail).
|
||||||
|
|
||||||
|
When doing HTTP transfers, curl will perform exactly what you're asking it
|
||||||
|
to do and if successful it will not return an error. You can use curl to
|
||||||
|
test your web server's "file not found" page (that gets 404 back), you can
|
||||||
|
use it to check your authentication protected web pages (that get a 401
|
||||||
|
back) and so on.
|
||||||
|
|
||||||
|
The specific HTTP response code does not constitute a problem or error for
|
||||||
|
curl. It simply sends and delivers HTTP as you asked and if that worked,
|
||||||
|
everything is fine and dandy. The response code is generally providing more
|
||||||
|
higher level error information that curl doesn't care about. The error was
|
||||||
|
not in the HTTP transfer.
|
||||||
|
|
||||||
|
If you want your command line to treat error codes in the 400 and up range
|
||||||
|
as errors and thus return a non-zero value and possibly show an error
|
||||||
|
message, curl has a dedicated option for that: -f (CURLOPT_FAILONERROR in
|
||||||
|
libcurl speak).
|
||||||
|
|
||||||
|
You can also use the -w option and the variable %{response_code} to extract
|
||||||
|
the exact response code that was return in the response.
|
||||||
|
|
||||||
|
4.21 Why is there a HTTP/1.1 in my HTTP/2 request?
|
||||||
|
|
||||||
|
If you use verbose to see the HTTP request when you send off a HTTP/2
|
||||||
|
request, it will still say 1.1.
|
||||||
|
|
||||||
|
The reason for this is that we first generate the request to send using the
|
||||||
|
old 1.1 style and show that request in the verbose output, and then we
|
||||||
|
convert it over to the binary header-compressed HTTP/2 style. The actual
|
||||||
|
"1.1" part from that request is then not actually used in the transfer. The
|
||||||
|
binary HTTP/2 headers are not human readable.
|
||||||
|
|
||||||
5. libcurl Issues
|
5. libcurl Issues
|
||||||
|
|
||||||
@@ -1099,17 +1185,23 @@ FAQ
|
|||||||
your system has such. Note that you must never share the same handle in
|
your system has such. Note that you must never share the same handle in
|
||||||
multiple threads.
|
multiple threads.
|
||||||
|
|
||||||
|
libcurl's implementation of timeouts might use signals (depending on what it
|
||||||
|
was built to use for name resolving), and signal handling is generally not
|
||||||
|
thread-safe. Multi-threaded Applicationss that call libcurl from different
|
||||||
|
threads (on different handles) might want to use CURLOPT_NOSIGNAL, e.g.:
|
||||||
|
|
||||||
|
curl_easy_setopt(handle, CURLOPT_NOSIGNAL, true);
|
||||||
|
|
||||||
If you use a OpenSSL-powered libcurl in a multi-threaded environment, you
|
If you use a OpenSSL-powered libcurl in a multi-threaded environment, you
|
||||||
need to provide one or two locking functions:
|
need to provide one or two locking functions:
|
||||||
|
|
||||||
http://www.openssl.org/docs/crypto/threads.html
|
https://www.openssl.org/docs/crypto/threads.html
|
||||||
|
|
||||||
If you use a GnuTLS-powered libcurl in a multi-threaded environment, you
|
If you use a GnuTLS-powered libcurl in a multi-threaded environment, you
|
||||||
need to provide locking function(s) for libgcrypt (which is used by GnuTLS
|
need to provide locking function(s) for libgcrypt (which is used by GnuTLS
|
||||||
for the crypto functions).
|
for the crypto functions).
|
||||||
|
|
||||||
http://www.gnu.org/software/gnutls/manual/html_node/Multi_002dthreaded-applications.html
|
https://web.archive.org/web/20111103083330/http://www.gnu.org/software/gnutls/manual/html_node/Multi_002dthreaded-applications.html
|
||||||
|
|
||||||
No special locking is needed with a NSS-powered libcurl. NSS is thread-safe.
|
No special locking is needed with a NSS-powered libcurl. NSS is thread-safe.
|
||||||
|
|
||||||
@@ -1240,7 +1332,7 @@ FAQ
|
|||||||
you want to change name resolver function you must rebuild libcurl and tell
|
you want to change name resolver function you must rebuild libcurl and tell
|
||||||
it to use a different function.
|
it to use a different function.
|
||||||
|
|
||||||
- The non-ipv6 resolver that can use one out of four host name resolve calls
|
- The non-IPv6 resolver that can use one out of four host name resolve calls
|
||||||
(depending on what your system supports):
|
(depending on what your system supports):
|
||||||
|
|
||||||
A - gethostbyname()
|
A - gethostbyname()
|
||||||
@@ -1248,15 +1340,15 @@ FAQ
|
|||||||
C - gethostbyname_r() with 5 arguments
|
C - gethostbyname_r() with 5 arguments
|
||||||
D - gethostbyname_r() with 6 arguments
|
D - gethostbyname_r() with 6 arguments
|
||||||
|
|
||||||
- The ipv6-resolver that uses getaddrinfo()
|
- The IPv6-resolver that uses getaddrinfo()
|
||||||
|
|
||||||
- The c-ares based name resolver that uses the c-ares library for resolves.
|
- The c-ares based name resolver that uses the c-ares library for resolves.
|
||||||
Using this offers asynchronous name resolves.
|
Using this offers asynchronous name resolves.
|
||||||
|
|
||||||
- The threaded resolver (default option on Windows). It uses:
|
- The threaded resolver (default option on Windows). It uses:
|
||||||
|
|
||||||
A - gethostbyname() on plain ipv4 hosts
|
A - gethostbyname() on plain IPv4 hosts
|
||||||
B - getaddrinfo() on ipv6-enabled hosts
|
B - getaddrinfo() on IPv6 enabled hosts
|
||||||
|
|
||||||
Also note that libcurl never resolves or reverse-lookups addresses given as
|
Also note that libcurl never resolves or reverse-lookups addresses given as
|
||||||
pure numbers, such as 127.0.0.1 or ::1.
|
pure numbers, such as 127.0.0.1 or ::1.
|
||||||
@@ -1285,7 +1377,7 @@ FAQ
|
|||||||
Also note that on many networks NATs or other IP-munging techniques are used
|
Also note that on many networks NATs or other IP-munging techniques are used
|
||||||
that makes you see and use a different IP address locally than what the
|
that makes you see and use a different IP address locally than what the
|
||||||
remote server will see you coming from. You may also consider using
|
remote server will see you coming from. You may also consider using
|
||||||
http://www.torproject.org .
|
https://www.torproject.org/ .
|
||||||
|
|
||||||
5.13 How do I stop an ongoing transfer?
|
5.13 How do I stop an ongoing transfer?
|
||||||
|
|
||||||
@@ -1337,7 +1429,7 @@ FAQ
|
|||||||
to do "LIST -a" or similar to see them.
|
to do "LIST -a" or similar to see them.
|
||||||
|
|
||||||
The application thus needs to parse the LIST output. One such existing
|
The application thus needs to parse the LIST output. One such existing
|
||||||
list parser is available at http://cr.yp.to/ftpparse.html Versions of
|
list parser is available at https://cr.yp.to/ftpparse.html Versions of
|
||||||
libcurl since 7.21.0 also provide the ability to specify a wildcard to
|
libcurl since 7.21.0 also provide the ability to specify a wildcard to
|
||||||
download multiple files from one FTP directory.
|
download multiple files from one FTP directory.
|
||||||
|
|
||||||
@@ -1456,7 +1548,7 @@ FAQ
|
|||||||
notice" somewhere. Most probably like in the documentation or in the section
|
notice" somewhere. Most probably like in the documentation or in the section
|
||||||
where other third party dependencies already are mentioned and acknowledged.
|
where other third party dependencies already are mentioned and acknowledged.
|
||||||
|
|
||||||
As can be seen here: http://curl.haxx.se/docs/companies.html and elsewhere,
|
As can be seen here: https://curl.haxx.se/docs/companies.html and elsewhere,
|
||||||
more and more companies are discovering the power of libcurl and take
|
more and more companies are discovering the power of libcurl and take
|
||||||
advantage of it even in commercial environments.
|
advantage of it even in commercial environments.
|
||||||
|
|
||||||
@@ -1476,9 +1568,7 @@ FAQ
|
|||||||
|
|
||||||
7.2 Who wrote PHP/CURL?
|
7.2 Who wrote PHP/CURL?
|
||||||
|
|
||||||
PHP/CURL is a module that comes with the regular PHP package. It depends and
|
PHP/CURL was initially written by Sterling Hughes.
|
||||||
uses libcurl, so you need to have libcurl installed properly first before
|
|
||||||
PHP/CURL can be used. PHP/CURL was initially written by Sterling Hughes.
|
|
||||||
|
|
||||||
7.3 Can I perform multiple requests using the same handle?
|
7.3 Can I perform multiple requests using the same handle?
|
||||||
|
|
||||||
@@ -1487,4 +1577,10 @@ FAQ
|
|||||||
unknown to me).
|
unknown to me).
|
||||||
|
|
||||||
After a transfer, you just set new options in the handle and make another
|
After a transfer, you just set new options in the handle and make another
|
||||||
transfer. This will make libcurl to re-use the same connection if it can.
|
transfer. This will make libcurl re-use the same connection if it can.
|
||||||
|
|
||||||
|
7.4 Does PHP/CURL have dependencies?
|
||||||
|
|
||||||
|
PHP/CURL is a module that comes with the regular PHP package. It depends on
|
||||||
|
and uses libcurl, so you need to have libcurl installed properly before
|
||||||
|
PHP/CURL can be used.
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ libcurl
|
|||||||
- selectable network interface for outgoing traffic
|
- selectable network interface for outgoing traffic
|
||||||
- IPv6 support on unix and Windows
|
- IPv6 support on unix and Windows
|
||||||
- persistent connections
|
- persistent connections
|
||||||
- socks5 support
|
- socks 4 + 5 support, with or without local name resolving
|
||||||
- supports user name and password in proxy environment variables
|
- supports user name and password in proxy environment variables
|
||||||
- operations through proxy "tunnel" (using CONNECT)
|
- operations through proxy "tunnel" (using CONNECT)
|
||||||
- support for large files (>2GB and >4GB) during upload and download
|
- support for large files (>2GB and >4GB) during upload and download
|
||||||
@@ -45,8 +45,8 @@ HTTP
|
|||||||
- POST
|
- POST
|
||||||
- Pipelining
|
- Pipelining
|
||||||
- multipart formpost (RFC1867-style)
|
- multipart formpost (RFC1867-style)
|
||||||
- authentication: Basic, Digest, NTLM (*9), GSS-Negotiate/Negotiate (*3) and
|
- authentication: Basic, Digest, NTLM (*9) and Negotiate (SPNEGO) (*3)
|
||||||
SPNEGO (*4) to server and proxy
|
to server and proxy
|
||||||
- resume (both GET and PUT)
|
- resume (both GET and PUT)
|
||||||
- follow redirects
|
- follow redirects
|
||||||
- maximum amount of redirects to follow
|
- maximum amount of redirects to follow
|
||||||
@@ -64,6 +64,7 @@ HTTP
|
|||||||
- Content-Encoding support for deflate and gzip
|
- Content-Encoding support for deflate and gzip
|
||||||
- "Transfer-Encoding: chunked" support in uploads
|
- "Transfer-Encoding: chunked" support in uploads
|
||||||
- data compression (*12)
|
- data compression (*12)
|
||||||
|
- HTTP/2 (*5)
|
||||||
|
|
||||||
HTTPS (*1)
|
HTTPS (*1)
|
||||||
- (all the HTTP features)
|
- (all the HTTP features)
|
||||||
@@ -76,8 +77,7 @@ HTTPS (*1)
|
|||||||
FTP
|
FTP
|
||||||
- download
|
- download
|
||||||
- authentication
|
- authentication
|
||||||
- kerberos4 (*5)
|
- Kerberos 5 (*14)
|
||||||
- kerberos5 (*3)
|
|
||||||
- active/passive using PORT, EPRT, PASV or EPSV
|
- active/passive using PORT, EPRT, PASV or EPSV
|
||||||
- single file size information (compare to HTTP HEAD)
|
- single file size information (compare to HTTP HEAD)
|
||||||
- 'type=' URL support
|
- 'type=' URL support
|
||||||
@@ -127,8 +127,15 @@ FILE
|
|||||||
- upload
|
- upload
|
||||||
- resume
|
- resume
|
||||||
|
|
||||||
|
SMB
|
||||||
|
- SMBv1 over TCP and SSL
|
||||||
|
- download
|
||||||
|
- upload
|
||||||
|
- authentication with NTLMv1
|
||||||
|
|
||||||
SMTP
|
SMTP
|
||||||
- authentication: Plain, Login, CRAM-MD5, Digest-MD5 and NTLM (*9)
|
- authentication: Plain, Login, CRAM-MD5, Digest-MD5, NTLM (*9), Kerberos 5
|
||||||
|
(*4) and External.
|
||||||
- send e-mails
|
- send e-mails
|
||||||
- mail from support
|
- mail from support
|
||||||
- mail size support
|
- mail size support
|
||||||
@@ -143,8 +150,8 @@ SMTPS (*1)
|
|||||||
|
|
||||||
POP3
|
POP3
|
||||||
- authentication: Clear Text, APOP and SASL
|
- authentication: Clear Text, APOP and SASL
|
||||||
- SASL based authentication: Plain, Login, CRAM-MD5, Digest-MD5 and
|
- SASL based authentication: Plain, Login, CRAM-MD5, Digest-MD5, NTLM (*9),
|
||||||
NTLM (*9)
|
Kerberos 5 (*4) and External.
|
||||||
- list e-mails
|
- list e-mails
|
||||||
- retrieve e-mails
|
- retrieve e-mails
|
||||||
- enhanced command support for: CAPA, DELE, TOP, STAT, UIDL and NOOP via
|
- enhanced command support for: CAPA, DELE, TOP, STAT, UIDL and NOOP via
|
||||||
@@ -158,8 +165,8 @@ POP3S (*1)
|
|||||||
|
|
||||||
IMAP
|
IMAP
|
||||||
- authentication: Clear Text and SASL
|
- authentication: Clear Text and SASL
|
||||||
- SASL based authentication: Plain, Login, CRAM-MD5, Digest-MD5 and
|
- SASL based authentication: Plain, Login, CRAM-MD5, Digest-MD5, NTLM (*9),
|
||||||
NTLM (*9)
|
Kerberos 5 (*4) and External.
|
||||||
- list the folders of a mailbox
|
- list the folders of a mailbox
|
||||||
- select a mailbox with support for verifying the UIDVALIDITY
|
- select a mailbox with support for verifying the UIDVALIDITY
|
||||||
- fetch e-mails with support for specifying the UID and SECTION
|
- fetch e-mails with support for specifying the UID and SECTION
|
||||||
@@ -177,13 +184,15 @@ FOOTNOTES
|
|||||||
=========
|
=========
|
||||||
|
|
||||||
*1 = requires OpenSSL, GnuTLS, NSS, yassl, axTLS, PolarSSL, WinSSL (native
|
*1 = requires OpenSSL, GnuTLS, NSS, yassl, axTLS, PolarSSL, WinSSL (native
|
||||||
Windows), Secure Transport (native iOS/OS X) or qssl (native IBM i)
|
Windows), Secure Transport (native iOS/OS X) or GSKit (native IBM i)
|
||||||
*2 = requires OpenLDAP
|
*2 = requires OpenLDAP
|
||||||
*3 = requires a GSSAPI-compliant library, such as Heimdal or similar
|
*3 = requires a GSS-API implementation (such as Heimdal or MIT Kerberos) or
|
||||||
*4 = requires FBopenssl
|
SSPI (native Windows)
|
||||||
*5 = requires a krb4 library, such as the MIT one or similar
|
*4 = requires a GSS-API implementation, however, only Windows SSPI is
|
||||||
|
currently supported
|
||||||
|
*5 = requires nghttp2 and possibly a recent TLS library
|
||||||
*6 = requires c-ares
|
*6 = requires c-ares
|
||||||
*7 = requires OpenSSL, NSS, qssl, WinSSL or Secure Transport; GnuTLS, for
|
*7 = requires OpenSSL, NSS, GSKit, WinSSL or Secure Transport; GnuTLS, for
|
||||||
example, only supports SSLv3 and TLSv1
|
example, only supports SSLv3 and TLSv1
|
||||||
*8 = requires libssh2
|
*8 = requires libssh2
|
||||||
*9 = requires OpenSSL, GnuTLS, NSS, yassl, Secure Transport or SSPI (native
|
*9 = requires OpenSSL, GnuTLS, NSS, yassl, Secure Transport or SSPI (native
|
||||||
@@ -194,3 +203,4 @@ FOOTNOTES
|
|||||||
*12 = requires libz
|
*12 = requires libz
|
||||||
*13 = requires libmetalink, and either an Apple or Microsoft operating
|
*13 = requires libmetalink, and either an Apple or Microsoft operating
|
||||||
system, or OpenSSL, or GnuTLS, or NSS
|
system, or OpenSSL, or GnuTLS, or NSS
|
||||||
|
*14 = requires a GSS-API implementation (such as Heimdal or MIT Kerberos)
|
||||||
|
|||||||
262
docs/HISTORY
262
docs/HISTORY
@@ -4,23 +4,31 @@
|
|||||||
| (__| |_| | _ <| |___
|
| (__| |_| | _ <| |___
|
||||||
\___|\___/|_| \_\_____|
|
\___|\___/|_| \_\_____|
|
||||||
|
|
||||||
How cURL Became Like This
|
How cURL Became Like This
|
||||||
|
=========================
|
||||||
|
|
||||||
|
Towards the end of 1996, Daniel Stenberg was spending time writing an IRC bot
|
||||||
Towards the end of 1996, Daniel Stenberg came up with the idea to make
|
for an Amiga related channel on EFnet. He then came up with the idea to make
|
||||||
currency-exchange calculations available to Internet Relay Chat (IRC)
|
currency-exchange calculations available to Internet Relay Chat (IRC)
|
||||||
users. All the necessary data are published on the Web; he just needed to
|
users. All the necessary data are published on the Web; he just needed to
|
||||||
automate their retrieval.
|
automate their retrieval.
|
||||||
|
|
||||||
Daniel simply adopted an existing command-line open-source tool, httpget, that
|
Daniel simply adopted an existing command-line open-source tool, httpget, that
|
||||||
Brazilian Rafael Sagula had written and recently release version 0.1 of. After
|
Brazilian Rafael Sagula had written and recently release version 0.1 of. After
|
||||||
a few minor adjustments, it did just what he needed. HttpGet 1.0 was released
|
a few minor adjustments, it did just what he needed.
|
||||||
on April 8th 1997 with brand new HTTP proxy support.
|
|
||||||
|
1997
|
||||||
|
----
|
||||||
|
|
||||||
|
HttpGet 1.0 was released on April 8th 1997 with brand new HTTP proxy support.
|
||||||
|
|
||||||
We soon found and fixed support for getting currencies over GOPHER. Once FTP
|
We soon found and fixed support for getting currencies over GOPHER. Once FTP
|
||||||
download support was added, the name of the project was changed and urlget 2.0
|
download support was added, the name of the project was changed and urlget 2.0
|
||||||
was released in August 1997. The http-only days were already passed.
|
was released in August 1997. The http-only days were already passed.
|
||||||
|
|
||||||
|
1998
|
||||||
|
----
|
||||||
|
|
||||||
The project slowly grew bigger. When upload capabilities were added and the
|
The project slowly grew bigger. When upload capabilities were added and the
|
||||||
name once again was misleading, a second name change was made and on March 20,
|
name once again was misleading, a second name change was made and on March 20,
|
||||||
1998 curl 4 was released. (The version numbering from the previous names was
|
1998 curl 4 was released. (The version numbering from the previous names was
|
||||||
@@ -33,33 +41,39 @@ was revealed to us much later.)
|
|||||||
|
|
||||||
SSL support was added, powered by the SSLeay library.
|
SSL support was added, powered by the SSLeay library.
|
||||||
|
|
||||||
August 1998, first announcement of curl on freshmeat.net.
|
August, first announcement of curl on freshmeat.net.
|
||||||
|
|
||||||
October 1998, with the curl 4.9 release and the introduction of cookie
|
October, with the curl 4.9 release and the introduction of cookie support,
|
||||||
support, curl was no longer released under the GPL license. Now we're at 4000
|
curl was no longer released under the GPL license. Now we're at 4000 lines of
|
||||||
lines of code, we switched over to the MPL license to restrict the effects of
|
code, we switched over to the MPL license to restrict the effects of
|
||||||
"copyleft".
|
"copyleft".
|
||||||
|
|
||||||
November 1998, configure script and reported successful compiles on several
|
November, configure script and reported successful compiles on several
|
||||||
major operating systems. The never-quite-understood -F option was added and
|
major operating systems. The never-quite-understood -F option was added and
|
||||||
curl could now simulate quite a lot of a browser. TELNET support was added.
|
curl could now simulate quite a lot of a browser. TELNET support was added.
|
||||||
|
|
||||||
Curl 5 was released in December 1998 and introduced the first ever curl man
|
Curl 5 was released in December 1998 and introduced the first ever curl man
|
||||||
page. People started making Linux RPM packages out of it.
|
page. People started making Linux RPM packages out of it.
|
||||||
|
|
||||||
January 1999, DICT support added.
|
1999
|
||||||
|
----
|
||||||
|
|
||||||
|
January, DICT support added.
|
||||||
|
|
||||||
OpenSSL took over where SSLeay was abandoned.
|
OpenSSL took over where SSLeay was abandoned.
|
||||||
|
|
||||||
May 1999, first Debian package.
|
May, first Debian package.
|
||||||
|
|
||||||
August 1999, LDAP:// and FILE:// support added. The curl web site gets 1300
|
August, LDAP:// and FILE:// support added. The curl web site gets 1300 visits
|
||||||
visits weekly.
|
weekly. Moved site to curl.haxx.nu.
|
||||||
|
|
||||||
Released curl 6.0 in September. 15000 lines of code.
|
Released curl 6.0 in September. 15000 lines of code.
|
||||||
|
|
||||||
December 28 1999, added the project on Sourceforge and started using its
|
December 28, added the project on Sourceforge and started using its services
|
||||||
services for managing the project.
|
for managing the project.
|
||||||
|
|
||||||
|
2000
|
||||||
|
----
|
||||||
|
|
||||||
Spring 2000, major internal overhaul to provide a suitable library interface.
|
Spring 2000, major internal overhaul to provide a suitable library interface.
|
||||||
The first non-beta release was named 7.1 and arrived in August. This offered
|
The first non-beta release was named 7.1 and arrived in August. This offered
|
||||||
@@ -67,19 +81,24 @@ the easy interface and turned out to be the beginning of actually getting
|
|||||||
other software and programs to get based on and powered by libcurl. Almost
|
other software and programs to get based on and powered by libcurl. Almost
|
||||||
20000 lines of code.
|
20000 lines of code.
|
||||||
|
|
||||||
August 2000, the curl web site gets 4000 visits weekly.
|
June 2000: the curl site moves to "curl.haxx.se"
|
||||||
|
|
||||||
|
August, the curl web site gets 4000 visits weekly.
|
||||||
|
|
||||||
The PHP guys adopted libcurl already the same month, when the first ever third
|
The PHP guys adopted libcurl already the same month, when the first ever third
|
||||||
party libcurl binding showed up. CURL has been a supported module in PHP since
|
party libcurl binding showed up. CURL has been a supported module in PHP since
|
||||||
the release of PHP 4.0.2. This would soon get followers. More than 16
|
the release of PHP 4.0.2. This would soon get followers. More than 16
|
||||||
different bindings exist at the time of this writing.
|
different bindings exist at the time of this writing.
|
||||||
|
|
||||||
September 2000, kerberos4 support was added.
|
September, kerberos4 support was added.
|
||||||
|
|
||||||
In November 2000 started the work on a test suite for curl. It was later
|
In November started the work on a test suite for curl. It was later re-written
|
||||||
re-written from scratch again. The libcurl major SONAME number was set to 1.
|
from scratch again. The libcurl major SONAME number was set to 1.
|
||||||
|
|
||||||
January 2001, Daniel released curl 7.5.2 under a new license again: MIT (or
|
2001
|
||||||
|
----
|
||||||
|
|
||||||
|
January, Daniel released curl 7.5.2 under a new license again: MIT (or
|
||||||
MPL). The MIT license is extremely liberal and can be used combined with GPL
|
MPL). The MIT license is extremely liberal and can be used combined with GPL
|
||||||
in other projects. This would finally put an end to the "complaints" from
|
in other projects. This would finally put an end to the "complaints" from
|
||||||
people involved in GPLed projects that previously were prohibited from using
|
people involved in GPLed projects that previously were prohibited from using
|
||||||
@@ -92,17 +111,20 @@ code. The libcurl major SONAME number was bumped to 2 due to this overhaul.
|
|||||||
|
|
||||||
The first experimental ftps:// support was added in March 2001.
|
The first experimental ftps:// support was added in March 2001.
|
||||||
|
|
||||||
August 2001. curl is bundled in Mac OS X, 10.1. It was already becoming more
|
August. curl is bundled in Mac OS X, 10.1. It was already becoming more and
|
||||||
and more of a standard utility of Linux distributions and a regular in the BSD
|
more of a standard utility of Linux distributions and a regular in the BSD
|
||||||
ports collections. The curl web site gets 8000 visits weekly. Curl Corporation
|
ports collections. The curl web site gets 8000 visits weekly. Curl Corporation
|
||||||
contacted Daniel to discuss "the name issue". After Daniel's reply, they have
|
contacted Daniel to discuss "the name issue". After Daniel's reply, they have
|
||||||
never since got in touch again.
|
never since got in touch again.
|
||||||
|
|
||||||
September 2001, libcurl 7.9 introduces cookie jar and curl_formadd(). During
|
September, libcurl 7.9 introduces cookie jar and curl_formadd(). During the
|
||||||
the forthcoming 7.9.x releases, we introduced the multi interface slowly and
|
forthcoming 7.9.x releases, we introduced the multi interface slowly and
|
||||||
without much whistles.
|
without much whistles.
|
||||||
|
|
||||||
June 2002, the curl web site gets 13000 visits weekly. curl and libcurl is
|
2002
|
||||||
|
----
|
||||||
|
|
||||||
|
June, the curl web site gets 13000 visits weekly. curl and libcurl is
|
||||||
35000 lines of code. Reported successful compiles on more than 40 combinations
|
35000 lines of code. Reported successful compiles on more than 40 combinations
|
||||||
of CPUs and operating systems.
|
of CPUs and operating systems.
|
||||||
|
|
||||||
@@ -111,134 +133,152 @@ impossible. Around 5000 downloaded packages each week from the main site gives
|
|||||||
a hint, but the packages are mirrored extensively, bundled with numerous OS
|
a hint, but the packages are mirrored extensively, bundled with numerous OS
|
||||||
distributions and otherwise retrieved as part of other software.
|
distributions and otherwise retrieved as part of other software.
|
||||||
|
|
||||||
September 2002, with the release of curl 7.10 it is released under the MIT
|
September, with the release of curl 7.10 it is released under the MIT license
|
||||||
license only.
|
only.
|
||||||
|
|
||||||
January 2003. Started working on the distributed curl tests. The autobuilds.
|
2003
|
||||||
|
----
|
||||||
|
|
||||||
February 2003, the curl site averages at 20000 visits weekly. At any given
|
January. Started working on the distributed curl tests. The autobuilds.
|
||||||
moment, there's an average of 3 people browsing the curl.haxx.se site.
|
|
||||||
|
February, the curl site averages at 20000 visits weekly. At any given moment,
|
||||||
|
there's an average of 3 people browsing the curl.haxx.se site.
|
||||||
|
|
||||||
Multiple new authentication schemes are supported: Digest (May), NTLM (June)
|
Multiple new authentication schemes are supported: Digest (May), NTLM (June)
|
||||||
and Negotiate (June).
|
and Negotiate (June).
|
||||||
|
|
||||||
November 2003: curl 7.10.8 is released. 45000 lines of code. ~55000 unique
|
November: curl 7.10.8 is released. 45000 lines of code. ~55000 unique visitors
|
||||||
visitors to the curl.haxx.se site. Five official web mirrors.
|
to the curl.haxx.se site. Five official web mirrors.
|
||||||
|
|
||||||
December 2003, full-fledged SSL for FTP is supported.
|
December, full-fledged SSL for FTP is supported.
|
||||||
|
|
||||||
January 2004: curl 7.11.0 introduced large file support.
|
2004
|
||||||
|
----
|
||||||
|
|
||||||
June 2004:
|
January: curl 7.11.0 introduced large file support.
|
||||||
|
|
||||||
curl 7.12.0 introduced IDN support. 10 official web mirrors.
|
June: curl 7.12.0 introduced IDN support. 10 official web mirrors.
|
||||||
|
|
||||||
This release bumped the major SONAME to 3 due to the removal of the
|
This release bumped the major SONAME to 3 due to the removal of the
|
||||||
curl_formparse() function
|
curl_formparse() function
|
||||||
|
|
||||||
August 2004:
|
August: Curl and libcurl 7.12.1
|
||||||
Curl and libcurl 7.12.1
|
|
||||||
|
|
||||||
Public curl release number: 82
|
Public curl release number: 82
|
||||||
Releases counted from the very beginning: 109
|
Releases counted from the very beginning: 109
|
||||||
Available command line options: 96
|
Available command line options: 96
|
||||||
Available curl_easy_setopt() options: 120
|
Available curl_easy_setopt() options: 120
|
||||||
Number of public functions in libcurl: 36
|
Number of public functions in libcurl: 36
|
||||||
Amount of public web site mirrors: 12
|
Amount of public web site mirrors: 12
|
||||||
Number of known libcurl bindings: 26
|
Number of known libcurl bindings: 26
|
||||||
|
|
||||||
April 2005:
|
2005
|
||||||
|
----
|
||||||
|
|
||||||
GnuTLS can now optionally be used for the secure layer when curl is built.
|
April. GnuTLS can now optionally be used for the secure layer when curl is
|
||||||
|
built.
|
||||||
|
|
||||||
September 2005:
|
September: TFTP support was added.
|
||||||
|
|
||||||
TFTP support was added.
|
More than 100,000 unique visitors of the curl web site. 25 mirrors.
|
||||||
|
|
||||||
More than 100,000 unique visitors of the curl web site. 25 mirrors.
|
December: security vulnerability: libcurl URL Buffer Overflow
|
||||||
|
|
||||||
December 2005:
|
2006
|
||||||
|
----
|
||||||
|
|
||||||
security vulnerability: libcurl URL Buffer Overflow
|
January. We dropped support for Gopher. We found bugs in the implementation
|
||||||
|
that turned out having been introduced years ago, so with the conclusion that
|
||||||
|
nobody had found out in all this time we removed it instead of fixing it.
|
||||||
|
|
||||||
January 2006:
|
March: security vulnerability: libcurl TFTP Packet Buffer Overflow
|
||||||
|
|
||||||
We dropped support for Gopher. We found bugs in the implementation that
|
April: Added the multi_socket() API
|
||||||
turned out having been introduced years ago, so with the conclusion that
|
|
||||||
nobody had found out in all this time we removed it instead of fixing it.
|
|
||||||
|
|
||||||
March 2006:
|
September: The major SONAME number for libcurl was bumped to 4 due to the
|
||||||
|
removal of ftp third party transfer support.
|
||||||
|
|
||||||
security vulnerability: libcurl TFTP Packet Buffer Overflow
|
November: Added SCP and SFTP support
|
||||||
|
|
||||||
April 2006:
|
2007
|
||||||
|
----
|
||||||
|
|
||||||
Added the multi_socket() API
|
February: Added support for the Mozilla NSS library to do the SSL/TLS stuff
|
||||||
|
|
||||||
September 2006:
|
July: security vulnerability: libcurl GnuTLS insufficient cert verification
|
||||||
|
|
||||||
The major SONAME number for libcurl was bumped to 4 due to the removal of
|
2008
|
||||||
ftp third party transfer support.
|
----
|
||||||
|
|
||||||
November 2006:
|
November:
|
||||||
|
|
||||||
Added SCP and SFTP support
|
Command line options: 128
|
||||||
|
curl_easy_setopt() options: 158
|
||||||
February 2007:
|
Public functions in libcurl: 58
|
||||||
|
Known libcurl bindings: 37
|
||||||
Added support for the Mozilla NSS library to do the SSL/TLS stuff
|
Contributors: 683
|
||||||
|
|
||||||
July 2007:
|
|
||||||
|
|
||||||
security vulnerability: libcurl GnuTLS insufficient cert verification
|
|
||||||
|
|
||||||
November 2008:
|
|
||||||
|
|
||||||
Command line options: 128
|
|
||||||
curl_easy_setopt() options: 158
|
|
||||||
Public functions in libcurl: 58
|
|
||||||
Known libcurl bindings: 37
|
|
||||||
Contributors: 683
|
|
||||||
|
|
||||||
145,000 unique visitors. >100 GB downloaded.
|
145,000 unique visitors. >100 GB downloaded.
|
||||||
|
|
||||||
March 2009:
|
2009
|
||||||
|
----
|
||||||
|
|
||||||
security vulnerability: libcurl Arbitrary File Access
|
March: security vulnerability: libcurl Arbitrary File Access
|
||||||
|
|
||||||
August 2009:
|
August: security vulnerability: libcurl embedded zero in cert name
|
||||||
|
|
||||||
security vulnerability: libcurl embedded zero in cert name
|
December: Added support for IMAP, POP3 and SMTP
|
||||||
|
|
||||||
December 2009:
|
2010
|
||||||
|
----
|
||||||
|
|
||||||
Added support for IMAP, POP3 and SMTP
|
January: Added support for RTSP
|
||||||
|
|
||||||
January 2010:
|
February: security vulnerability: libcurl data callback excessive length
|
||||||
|
|
||||||
Added support for RTSP
|
March: The project switched over to use git (hosted by github) instead of CVS
|
||||||
|
for source code control
|
||||||
|
|
||||||
February 2010:
|
May: Added support for RTMP
|
||||||
|
|
||||||
security vulnerability: libcurl data callback excessive length
|
Added support for PolarSSL to do the SSL/TLS stuff
|
||||||
|
|
||||||
March 2010:
|
August:
|
||||||
|
|
||||||
The project switched over to use git instead of CVS for source code control
|
Public curl releases: 117
|
||||||
|
Command line options: 138
|
||||||
May 2010:
|
curl_easy_setopt() options: 180
|
||||||
|
Public functions in libcurl: 58
|
||||||
Added support for RTMP
|
Known libcurl bindings: 39
|
||||||
|
Contributors: 808
|
||||||
Added support for PolarSSL to do the SSL/TLS stuff
|
|
||||||
|
|
||||||
August 2010:
|
|
||||||
|
|
||||||
Public curl releases: 117
|
|
||||||
Command line options: 138
|
|
||||||
curl_easy_setopt() options: 180
|
|
||||||
Public functions in libcurl: 58
|
|
||||||
Known libcurl bindings: 39
|
|
||||||
Contributors: 808
|
|
||||||
|
|
||||||
Gopher support added (re-added actually)
|
Gopher support added (re-added actually)
|
||||||
|
|
||||||
|
2012
|
||||||
|
----
|
||||||
|
|
||||||
|
July: Added support for Schannel (native Windows TLS backend) and Darwin SSL
|
||||||
|
(Native Mac OS X and iOS TLS backend).
|
||||||
|
|
||||||
|
Supports metalink
|
||||||
|
|
||||||
|
October: SSH-agent support.
|
||||||
|
|
||||||
|
2013
|
||||||
|
----
|
||||||
|
|
||||||
|
February: Cleaned up internals to always uses the "multi" non-blocking
|
||||||
|
approach internally and only expose the blocking API with a wrapper.
|
||||||
|
|
||||||
|
September: First small steps on supporting HTTP/2 with nghttp2.
|
||||||
|
|
||||||
|
October: Removed krb4 support.
|
||||||
|
|
||||||
|
December: Happy eyeballs.
|
||||||
|
|
||||||
|
2014
|
||||||
|
----
|
||||||
|
|
||||||
|
March: first real release supporting HTTP/2
|
||||||
|
|
||||||
|
September: Web site had 245,000 unique visitors and served 236GB data
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
Updated: July 3, 2012 (http://curl.haxx.se/docs/http-cookies.html)
|
Updated: July 3, 2012 (https://curl.haxx.se/docs/http-cookies.html)
|
||||||
_ _ ____ _
|
_ _ ____ _
|
||||||
___| | | | _ \| |
|
___| | | | _ \| |
|
||||||
/ __| | | | |_) | |
|
/ __| | | | |_) | |
|
||||||
@@ -34,9 +34,9 @@ HTTP Cookies
|
|||||||
servers with the Cookie: header.
|
servers with the Cookie: header.
|
||||||
|
|
||||||
For a very long time, the only spec explaining how to use cookies was the
|
For a very long time, the only spec explaining how to use cookies was the
|
||||||
original Netscape spec from 1994: http://curl.haxx.se/rfc/cookie_spec.html
|
original Netscape spec from 1994: https://curl.haxx.se/rfc/cookie_spec.html
|
||||||
|
|
||||||
In 2011, RFC6265 (http://www.ietf.org/rfc/rfc6265.txt) was finally published
|
In 2011, RFC6265 (https://www.ietf.org/rfc/rfc6265.txt) was finally published
|
||||||
and details how cookies work within HTTP.
|
and details how cookies work within HTTP.
|
||||||
|
|
||||||
1.2 Cookies saved to disk
|
1.2 Cookies saved to disk
|
||||||
|
|||||||
111
docs/HTTP2.md
Normal file
111
docs/HTTP2.md
Normal file
@@ -0,0 +1,111 @@
|
|||||||
|
HTTP/2 with curl
|
||||||
|
================
|
||||||
|
|
||||||
|
[HTTP/2 Spec](https://www.rfc-editor.org/rfc/rfc7540.txt)
|
||||||
|
[http2 explained](https://daniel.haxx.se/http2/)
|
||||||
|
|
||||||
|
Build prerequisites
|
||||||
|
-------------------
|
||||||
|
- nghttp2
|
||||||
|
- OpenSSL, NSS, GnutTLS or PolarSSL with a new enough version
|
||||||
|
|
||||||
|
[nghttp2](https://nghttp2.org/)
|
||||||
|
-------------------------------
|
||||||
|
|
||||||
|
libcurl uses this 3rd party library for the low level protocol handling
|
||||||
|
parts. The reason for this is that HTTP/2 is much more complex at that layer
|
||||||
|
than HTTP/1.1 (which we implement on our own) and that nghttp2 is an already
|
||||||
|
existing and well functional library.
|
||||||
|
|
||||||
|
We require at least version 1.0.0.
|
||||||
|
|
||||||
|
Over an http:// URL
|
||||||
|
-------------------
|
||||||
|
|
||||||
|
If `CURLOPT_HTTP_VERSION` is set to `CURL_HTTP_VERSION_2_0`, libcurl will
|
||||||
|
include an upgrade header in the initial request to the host to allow
|
||||||
|
upgrading to HTTP/2.
|
||||||
|
|
||||||
|
Possibly we can later introduce an option that will cause libcurl to fail if
|
||||||
|
not possible to upgrade. Possibly we introduce an option that makes libcurl
|
||||||
|
use HTTP/2 at once over http://
|
||||||
|
|
||||||
|
Over an https:// URL
|
||||||
|
--------------------
|
||||||
|
|
||||||
|
If `CURLOPT_HTTP_VERSION` is set to `CURL_HTTP_VERSION_2_0`, libcurl will use
|
||||||
|
ALPN (or NPN) to negotiate which protocol to continue with. Possibly introduce
|
||||||
|
an option that will cause libcurl to fail if not possible to use HTTP/2.
|
||||||
|
|
||||||
|
`CURL_HTTP_VERSION_2TLS` was added in 7.47.0 as a way to ask libcurl to prefer
|
||||||
|
HTTP/2 for HTTPS but stick to 1.1 by default for plain old HTTP connections.
|
||||||
|
|
||||||
|
ALPN is the TLS extension that HTTP/2 is expected to use. The NPN extension is
|
||||||
|
for a similar purpose, was made prior to ALPN and is used for SPDY so early
|
||||||
|
HTTP/2 servers are implemented using NPN before ALPN support is widespread.
|
||||||
|
|
||||||
|
`CURLOPT_SSL_ENABLE_ALPN` and `CURLOPT_SSL_ENABLE_NPN` are offered to allow
|
||||||
|
applications to explicitly disable ALPN or NPN.
|
||||||
|
|
||||||
|
SSL libs
|
||||||
|
--------
|
||||||
|
|
||||||
|
The challenge is the ALPN and NPN support and all our different SSL
|
||||||
|
backends. You may need a fairly updated SSL library version for it to
|
||||||
|
provide the necessary TLS features. Right now we support:
|
||||||
|
|
||||||
|
- OpenSSL: ALPN and NPN
|
||||||
|
- NSS: ALPN and NPN
|
||||||
|
- GnuTLS: ALPN
|
||||||
|
- PolarSSL: ALPN
|
||||||
|
|
||||||
|
Multiplexing
|
||||||
|
------------
|
||||||
|
|
||||||
|
Starting in 7.43.0, libcurl fully supports HTTP/2 multiplexing, which is the
|
||||||
|
term for doing multiple independent transfers over the same physical TCP
|
||||||
|
connection.
|
||||||
|
|
||||||
|
To take advantage of multiplexing, you need to use the multi interface and set
|
||||||
|
`CURLMOPT_PIPELINING` to `CURLPIPE_MULTIPLEX`. With that bit set, libcurl will
|
||||||
|
attempt to re-use existing HTTP/2 connections and just add a new stream over
|
||||||
|
that when doing subsequent parallel requests.
|
||||||
|
|
||||||
|
While libcurl sets up a connection to a HTTP server there is a period during
|
||||||
|
which it doesn't know if it can pipeline or do multiplexing and if you add new
|
||||||
|
transfers in that period, libcurl will default to start new connections for
|
||||||
|
those transfers. With the new option `CURLOPT_PIPEWAIT` (added in 7.43.0), you
|
||||||
|
can ask that a transfer should rather wait and see in case there's a
|
||||||
|
connection for the same host in progress that might end up being possible to
|
||||||
|
multiplex on. It favours keeping the number of connections low to the cost of
|
||||||
|
slightly longer time to first byte transferred.
|
||||||
|
|
||||||
|
Applications
|
||||||
|
------------
|
||||||
|
|
||||||
|
We hide HTTP/2's binary nature and convert received HTTP/2 traffic to headers
|
||||||
|
in HTTP 1.1 style. This allows applications to work unmodified.
|
||||||
|
|
||||||
|
curl tool
|
||||||
|
---------
|
||||||
|
|
||||||
|
curl offers the `--http2` command line option to enable use of HTTP/2.
|
||||||
|
|
||||||
|
Since 7.47.0, the curl tool enables HTTP/2 by default for HTTPS connections.
|
||||||
|
|
||||||
|
HTTP Alternative Services
|
||||||
|
-------------------------
|
||||||
|
|
||||||
|
Alt-Svc is a suggested extension with a corresponding frame (ALTSVC) in HTTP/2
|
||||||
|
that tells the client about an alternative "route" to the same content for the
|
||||||
|
same origin server that you get the response from. A browser or long-living
|
||||||
|
client can use that hint to create a new connection asynchronously. For
|
||||||
|
libcurl, we may introduce a way to bring such clues to the applicaton and/or
|
||||||
|
let a subsequent request use the alternate route
|
||||||
|
automatically. [Spec](https://tools.ietf.org/html/draft-ietf-httpbis-alt-svc-14)
|
||||||
|
|
||||||
|
TODO
|
||||||
|
----
|
||||||
|
|
||||||
|
- Implement "prior-knowledge" HTTP/2 connections over clear text so that
|
||||||
|
curl can connect with HTTP/2 at once without 1.1+Upgrade.
|
||||||
146
docs/INSTALL
146
docs/INSTALL
@@ -20,9 +20,10 @@ Building from git
|
|||||||
If you get your code off a git repository, see the GIT-INFO file in the
|
If you get your code off a git repository, see the GIT-INFO file in the
|
||||||
root directory for specific instructions on how to proceed.
|
root directory for specific instructions on how to proceed.
|
||||||
|
|
||||||
UNIX
|
Unix
|
||||||
====
|
====
|
||||||
A normal unix installation is made in three or four steps (after you've
|
|
||||||
|
A normal Unix installation is made in three or four steps (after you've
|
||||||
unpacked the source archive):
|
unpacked the source archive):
|
||||||
|
|
||||||
./configure
|
./configure
|
||||||
@@ -136,8 +137,8 @@ UNIX
|
|||||||
|
|
||||||
To build with axTLS for SSL/TLS, use both --without-ssl and --with-axtls.
|
To build with axTLS for SSL/TLS, use both --without-ssl and --with-axtls.
|
||||||
|
|
||||||
To get GSSAPI support, build with --with-gssapi and have the MIT or
|
To build with GSS-API support, use --with-gssapi and have the MIT Kerberos
|
||||||
Heimdal Kerberos 5 packages installed.
|
or Heimdal packages installed.
|
||||||
|
|
||||||
To get support for SCP and SFTP, build with --with-libssh2 and have
|
To get support for SCP and SFTP, build with --with-libssh2 and have
|
||||||
libssh2 0.16 or later installed.
|
libssh2 0.16 or later installed.
|
||||||
@@ -147,6 +148,7 @@ UNIX
|
|||||||
|
|
||||||
SPECIAL CASES
|
SPECIAL CASES
|
||||||
-------------
|
-------------
|
||||||
|
|
||||||
Some versions of uClibc require configuring with CPPFLAGS=-D_GNU_SOURCE=1
|
Some versions of uClibc require configuring with CPPFLAGS=-D_GNU_SOURCE=1
|
||||||
to get correct large file support.
|
to get correct large file support.
|
||||||
|
|
||||||
@@ -155,7 +157,6 @@ UNIX
|
|||||||
./configure CC=owcc AR="$WATCOM/binl/wlib" AR_FLAGS=-q \
|
./configure CC=owcc AR="$WATCOM/binl/wlib" AR_FLAGS=-q \
|
||||||
RANLIB=/bin/true STRIP="$WATCOM/binl/wstrip" CFLAGS=-Wextra
|
RANLIB=/bin/true STRIP="$WATCOM/binl/wstrip" CFLAGS=-Wextra
|
||||||
|
|
||||||
|
|
||||||
Win32
|
Win32
|
||||||
=====
|
=====
|
||||||
|
|
||||||
@@ -172,13 +173,13 @@ Win32
|
|||||||
advice given above.
|
advice given above.
|
||||||
|
|
||||||
KB94248 - How To Use the C Run-Time
|
KB94248 - How To Use the C Run-Time
|
||||||
http://support.microsoft.com/kb/94248/en-us
|
https://support.microsoft.com/kb/94248/en-us
|
||||||
|
|
||||||
KB140584 - How to link with the correct C Run-Time (CRT) library
|
KB140584 - How to link with the correct C Run-Time (CRT) library
|
||||||
http://support.microsoft.com/kb/140584/en-us
|
https://support.microsoft.com/kb/140584/en-us
|
||||||
|
|
||||||
KB190799 - Potential Errors Passing CRT Objects Across DLL Boundaries
|
KB190799 - Potential Errors Passing CRT Objects Across DLL Boundaries
|
||||||
http://msdn.microsoft.com/en-us/library/ms235460
|
https://msdn.microsoft.com/en-us/library/ms235460
|
||||||
|
|
||||||
If your app is misbehaving in some strange way, or it is suffering
|
If your app is misbehaving in some strange way, or it is suffering
|
||||||
from memory corruption, before asking for further help, please try
|
from memory corruption, before asking for further help, please try
|
||||||
@@ -187,7 +188,6 @@ Win32
|
|||||||
|
|
||||||
If you get linkage errors read section 5.7 of the FAQ document.
|
If you get linkage errors read section 5.7 of the FAQ document.
|
||||||
|
|
||||||
|
|
||||||
MingW32
|
MingW32
|
||||||
-------
|
-------
|
||||||
|
|
||||||
@@ -209,8 +209,8 @@ Win32
|
|||||||
environment variables, for example:
|
environment variables, for example:
|
||||||
|
|
||||||
set ZLIB_PATH=c:\zlib-1.2.8
|
set ZLIB_PATH=c:\zlib-1.2.8
|
||||||
set OPENSSL_PATH=c:\openssl-0.9.8y
|
set OPENSSL_PATH=c:\openssl-1.0.2c
|
||||||
set LIBSSH2_PATH=c:\libssh2-1.4.3
|
set LIBSSH2_PATH=c:\libssh2-1.6.0
|
||||||
|
|
||||||
ATTENTION: if you want to build with libssh2 support you have to use latest
|
ATTENTION: if you want to build with libssh2 support you have to use latest
|
||||||
version 0.17 - previous versions will NOT work with 7.17.0 and later!
|
version 0.17 - previous versions will NOT work with 7.17.0 and later!
|
||||||
@@ -232,8 +232,7 @@ Win32
|
|||||||
- optional MingW32-built OpenLDAP SDK available from:
|
- optional MingW32-built OpenLDAP SDK available from:
|
||||||
http://www.gknw.net/mirror/openldap/
|
http://www.gknw.net/mirror/openldap/
|
||||||
- optional recent Novell CLDAP SDK available from:
|
- optional recent Novell CLDAP SDK available from:
|
||||||
http://developer.novell.com/ndk/cldap.htm
|
https://www.novell.com/developer/ndk/ldap_libraries_for_c.html
|
||||||
|
|
||||||
|
|
||||||
Cygwin
|
Cygwin
|
||||||
------
|
------
|
||||||
@@ -255,7 +254,7 @@ Win32
|
|||||||
If you use MSVC 6 it is required that you use the February 2003 edition of
|
If you use MSVC 6 it is required that you use the February 2003 edition of
|
||||||
the 'Platform SDK' which can be downloaded from:
|
the 'Platform SDK' which can be downloaded from:
|
||||||
|
|
||||||
http://www.microsoft.com/en-us/download/details.aspx?id=12261
|
https://www.microsoft.com/en-us/download/details.aspx?id=12261
|
||||||
|
|
||||||
Building any software with MSVC 6 without having PSDK installed is just
|
Building any software with MSVC 6 without having PSDK installed is just
|
||||||
asking for trouble down the road once you have released it, you might notice
|
asking for trouble down the road once you have released it, you might notice
|
||||||
@@ -264,7 +263,7 @@ Win32
|
|||||||
software built in such way will at some point regret having done so.
|
software built in such way will at some point regret having done so.
|
||||||
|
|
||||||
If the compiler has been updated with the installation of a service pack as
|
If the compiler has been updated with the installation of a service pack as
|
||||||
those mentioned in http://support.microsoft.com/kb/194022 the compiler can be
|
those mentioned in https://support.microsoft.com/kb/194022 the compiler can be
|
||||||
safely used to read source code, translate and make it object code.
|
safely used to read source code, translate and make it object code.
|
||||||
|
|
||||||
But, even with the service packs mentioned above installed, the resulting
|
But, even with the service packs mentioned above installed, the resulting
|
||||||
@@ -300,7 +299,7 @@ Win32
|
|||||||
Then run 'nmake vc' in curl's root directory.
|
Then run 'nmake vc' in curl's root directory.
|
||||||
|
|
||||||
If you want to compile with zlib support, you will need to build
|
If you want to compile with zlib support, you will need to build
|
||||||
zlib (http://www.gzip.org/zlib/) as well. Please read the zlib
|
zlib (http://www.zlib.net/) as well. Please read the zlib
|
||||||
documentation on how to compile zlib. Define the ZLIB_PATH environment
|
documentation on how to compile zlib. Define the ZLIB_PATH environment
|
||||||
variable to the location of zlib.h and zlib.lib, for example:
|
variable to the location of zlib.h and zlib.lib, for example:
|
||||||
|
|
||||||
@@ -318,7 +317,7 @@ Win32
|
|||||||
Before running nmake define the OPENSSL_PATH environment variable with
|
Before running nmake define the OPENSSL_PATH environment variable with
|
||||||
the root/base directory of OpenSSL, for example:
|
the root/base directory of OpenSSL, for example:
|
||||||
|
|
||||||
set OPENSSL_PATH=c:\openssl-0.9.8y
|
set OPENSSL_PATH=c:\openssl-0.9.8zc
|
||||||
|
|
||||||
Then run 'nmake vc-ssl' or 'nmake vc-ssl-dll' in curl's root
|
Then run 'nmake vc-ssl' or 'nmake vc-ssl-dll' in curl's root
|
||||||
directory. 'nmake vc-ssl' will create a libcurl static and dynamic
|
directory. 'nmake vc-ssl' will create a libcurl static and dynamic
|
||||||
@@ -389,7 +388,6 @@ Win32
|
|||||||
is required, as well as the OpenSSL libeay32.lib and ssleay32.lib
|
is required, as well as the OpenSSL libeay32.lib and ssleay32.lib
|
||||||
libraries.
|
libraries.
|
||||||
|
|
||||||
|
|
||||||
OTHER MSVC IDEs
|
OTHER MSVC IDEs
|
||||||
---------------
|
---------------
|
||||||
|
|
||||||
@@ -400,7 +398,6 @@ Win32
|
|||||||
Make the sources in the src/ drawer be a "win32 console application"
|
Make the sources in the src/ drawer be a "win32 console application"
|
||||||
project. Name it curl.
|
project. Name it curl.
|
||||||
|
|
||||||
|
|
||||||
Disabling Specific Protocols in Win32 builds
|
Disabling Specific Protocols in Win32 builds
|
||||||
--------------------------------------------
|
--------------------------------------------
|
||||||
|
|
||||||
@@ -419,16 +416,21 @@ Win32
|
|||||||
CURL_DISABLE_FILE disables FILE
|
CURL_DISABLE_FILE disables FILE
|
||||||
CURL_DISABLE_TFTP disables TFTP
|
CURL_DISABLE_TFTP disables TFTP
|
||||||
CURL_DISABLE_HTTP disables HTTP
|
CURL_DISABLE_HTTP disables HTTP
|
||||||
|
CURL_DISABLE_IMAP disables IMAP
|
||||||
|
CURL_DISABLE_POP3 disables POP3
|
||||||
|
CURL_DISABLE_SMTP disables SMTP
|
||||||
|
|
||||||
If you want to set any of these defines you have the following
|
If you want to set any of these defines you have the following options:
|
||||||
possibilities:
|
|
||||||
|
|
||||||
- Modify lib/config-win32.h
|
- Modify lib/config-win32.h
|
||||||
- Modify lib/curl_setup.h
|
- Modify lib/curl_setup.h
|
||||||
- Modify lib/Makefile.vc6
|
- Modify lib/Makefile.vc6
|
||||||
- Add defines to Project/Settings/C/C++/General/Preprocessor Definitions
|
- Modify the "Preprocessor Definitions" in the libcurl project
|
||||||
in the vc6libcurl.dsw/vc6libcurl.dsp Visual C++ 6 IDE project.
|
|
||||||
|
|
||||||
|
Note: The pre-processor settings can be found using the Visual Studio IDE
|
||||||
|
under "Project -> Settings -> C/C++ -> General" in VC6 and "Project ->
|
||||||
|
Properties -> Configuration Properties -> C/C++ -> Preprocessor" in later
|
||||||
|
versions.
|
||||||
|
|
||||||
Using BSD-style lwIP instead of Winsock TCP/IP stack in Win32 builds
|
Using BSD-style lwIP instead of Winsock TCP/IP stack in Win32 builds
|
||||||
--------------------------------------------------------------------
|
--------------------------------------------------------------------
|
||||||
@@ -440,8 +442,12 @@ Win32
|
|||||||
|
|
||||||
- Modify lib/config-win32.h and src/config-win32.h
|
- Modify lib/config-win32.h and src/config-win32.h
|
||||||
- Modify lib/Makefile.vc6
|
- Modify lib/Makefile.vc6
|
||||||
- Add definition to Project/Settings/C/C++/General/Preprocessor Definitions
|
- Modify the "Preprocessor Definitions" in the libcurl project
|
||||||
in the vc6libcurl.dsw/vc6libcurl.dsp Visual C++ 6 IDE project.
|
|
||||||
|
Note: The pre-processor settings can be found using the Visual Studio IDE
|
||||||
|
under "Project -> Settings -> C/C++ -> General" in VC6 and "Project ->
|
||||||
|
Properties -> Configuration Properties -> C/C++ -> Preprocessor" in later
|
||||||
|
versions.
|
||||||
|
|
||||||
Once that libcurl has been built with BSD-style lwIP TCP/IP stack support,
|
Once that libcurl has been built with BSD-style lwIP TCP/IP stack support,
|
||||||
in order to use it with your program it is mandatory that your program
|
in order to use it with your program it is mandatory that your program
|
||||||
@@ -465,9 +471,18 @@ Win32
|
|||||||
add '-DCURL_STATICLIB' to your CFLAGS. Otherwise the linker will look for
|
add '-DCURL_STATICLIB' to your CFLAGS. Otherwise the linker will look for
|
||||||
dynamic import symbols.
|
dynamic import symbols.
|
||||||
|
|
||||||
|
Legacy Windows and SSL
|
||||||
|
----------------------
|
||||||
|
|
||||||
|
WinSSL (specifically SChannel from Windows SSPI), is the native SSL library
|
||||||
|
in Windows. However, WinSSL in Windows <= XP is unable to connect to servers
|
||||||
|
that no longer support the legacy handshakes and algorithms used by those
|
||||||
|
versions. If you will be using curl in one of those earlier versions of
|
||||||
|
Windows you should choose another SSL backend such as OpenSSL.
|
||||||
|
|
||||||
Apple iOS and Mac OS X
|
Apple iOS and Mac OS X
|
||||||
======================
|
======================
|
||||||
|
|
||||||
On recent Apple operating systems, curl can be built to use Apple's
|
On recent Apple operating systems, curl can be built to use Apple's
|
||||||
SSL/TLS implementation, Secure Transport, instead of OpenSSL. To build with
|
SSL/TLS implementation, Secure Transport, instead of OpenSSL. To build with
|
||||||
Secure Transport for SSL/TLS, use the configure option --with-darwinssl. (It
|
Secure Transport for SSL/TLS, use the configure option --with-darwinssl. (It
|
||||||
@@ -497,9 +512,9 @@ Apple iOS and Mac OS X
|
|||||||
./configure --with-darwinssl
|
./configure --with-darwinssl
|
||||||
make
|
make
|
||||||
|
|
||||||
|
|
||||||
IBM OS/2
|
IBM OS/2
|
||||||
========
|
========
|
||||||
|
|
||||||
Building under OS/2 is not much different from building under unix.
|
Building under OS/2 is not much different from building under unix.
|
||||||
You need:
|
You need:
|
||||||
|
|
||||||
@@ -527,9 +542,9 @@ IBM OS/2
|
|||||||
If you're getting huge binaries, probably your makefiles have the -g in
|
If you're getting huge binaries, probably your makefiles have the -g in
|
||||||
CFLAGS.
|
CFLAGS.
|
||||||
|
|
||||||
|
|
||||||
VMS
|
VMS
|
||||||
===
|
===
|
||||||
|
|
||||||
(The VMS section is in whole contributed by the friendly Nico Baggus)
|
(The VMS section is in whole contributed by the friendly Nico Baggus)
|
||||||
|
|
||||||
Curl seems to work with FTP & HTTP other protocols are not tested. (the
|
Curl seems to work with FTP & HTTP other protocols are not tested. (the
|
||||||
@@ -574,6 +589,7 @@ VMS
|
|||||||
the name can be fetched from external or internal message libraries
|
the name can be fetched from external or internal message libraries
|
||||||
Error code - the err codes assigned by the application
|
Error code - the err codes assigned by the application
|
||||||
Sev. - severity: Even = error, off = non error
|
Sev. - severity: Even = error, off = non error
|
||||||
|
|
||||||
0 = Warning
|
0 = Warning
|
||||||
1 = Success
|
1 = Success
|
||||||
2 = Error
|
2 = Error
|
||||||
@@ -595,12 +611,13 @@ VMS
|
|||||||
Compaq C V6.2-003 on OpenVMS Alpha V7.1-1H2
|
Compaq C V6.2-003 on OpenVMS Alpha V7.1-1H2
|
||||||
|
|
||||||
So far for porting notes as of:
|
So far for porting notes as of:
|
||||||
|
|
||||||
13-jul-2001
|
13-jul-2001
|
||||||
N. Baggus
|
N. Baggus
|
||||||
|
|
||||||
|
|
||||||
QNX
|
QNX
|
||||||
===
|
===
|
||||||
|
|
||||||
(This section was graciously brought to us by David Bentham)
|
(This section was graciously brought to us by David Bentham)
|
||||||
|
|
||||||
As QNX is targeted for resource constrained environments, the QNX headers
|
As QNX is targeted for resource constrained environments, the QNX headers
|
||||||
@@ -611,11 +628,12 @@ QNX
|
|||||||
|
|
||||||
A good all-round solution to this is to override the default when building
|
A good all-round solution to this is to override the default when building
|
||||||
libcurl, by overriding CFLAGS during configure, example
|
libcurl, by overriding CFLAGS during configure, example
|
||||||
# configure CFLAGS='-DFD_SETSIZE=64 -g -O2'
|
|
||||||
|
|
||||||
|
# configure CFLAGS='-DFD_SETSIZE=64 -g -O2'
|
||||||
|
|
||||||
RISC OS
|
RISC OS
|
||||||
=======
|
=======
|
||||||
|
|
||||||
The library can be cross-compiled using gccsdk as follows:
|
The library can be cross-compiled using gccsdk as follows:
|
||||||
|
|
||||||
CC=riscos-gcc AR=riscos-ar RANLIB='riscos-ar -s' ./configure \
|
CC=riscos-gcc AR=riscos-ar RANLIB='riscos-ar -s' ./configure \
|
||||||
@@ -625,9 +643,9 @@ RISC OS
|
|||||||
where riscos-gcc and riscos-ar are links to the gccsdk tools.
|
where riscos-gcc and riscos-ar are links to the gccsdk tools.
|
||||||
You can then link your program with curl/lib/.libs/libcurl.a
|
You can then link your program with curl/lib/.libs/libcurl.a
|
||||||
|
|
||||||
|
|
||||||
AmigaOS
|
AmigaOS
|
||||||
=======
|
=======
|
||||||
|
|
||||||
(This section was graciously brought to us by Diego Casorran)
|
(This section was graciously brought to us by Diego Casorran)
|
||||||
|
|
||||||
To build cURL/libcurl on AmigaOS just type 'make amiga' ...
|
To build cURL/libcurl on AmigaOS just type 'make amiga' ...
|
||||||
@@ -647,20 +665,19 @@ AmigaOS
|
|||||||
To enable SSL support, you need a OpenSSL native version (without ixemul),
|
To enable SSL support, you need a OpenSSL native version (without ixemul),
|
||||||
you can find a precompiled package at http://amiga.sourceforge.net/OpenSSL/
|
you can find a precompiled package at http://amiga.sourceforge.net/OpenSSL/
|
||||||
|
|
||||||
|
|
||||||
NetWare
|
NetWare
|
||||||
=======
|
=======
|
||||||
|
|
||||||
To compile curl.nlm / libcurl.nlm you need:
|
To compile curl.nlm / libcurl.nlm you need:
|
||||||
|
|
||||||
- either any gcc / nlmconv, or CodeWarrior 7 PDK 4 or later.
|
- either any gcc / nlmconv, or CodeWarrior 7 PDK 4 or later.
|
||||||
- gnu make and awk running on the platform you compile on;
|
- gnu make and awk running on the platform you compile on;
|
||||||
native Win32 versions can be downloaded from:
|
native Win32 versions can be downloaded from:
|
||||||
http://www.gknw.net/development/prgtools/
|
http://www.gknw.net/development/prgtools/
|
||||||
- recent Novell LibC SDK available from:
|
- recent Novell LibC or Novell CLib SDK available from:
|
||||||
http://developer.novell.com/ndk/libc.htm
|
https://www.novell.com/developer/ndk/
|
||||||
- or recent Novell CLib SDK available from:
|
|
||||||
http://developer.novell.com/ndk/clib.htm
|
|
||||||
- optional recent Novell CLDAP SDK available from:
|
- optional recent Novell CLDAP SDK available from:
|
||||||
http://developer.novell.com/ndk/cldap.htm
|
https://www.novell.com/developer/ndk/ldap_libraries_for_c.html
|
||||||
- optional zlib sources (static or dynamic linking with zlib.imp);
|
- optional zlib sources (static or dynamic linking with zlib.imp);
|
||||||
sources with NetWare Makefile can be obtained from:
|
sources with NetWare Makefile can be obtained from:
|
||||||
http://www.gknw.net/mirror/zlib/
|
http://www.gknw.net/mirror/zlib/
|
||||||
@@ -689,11 +706,11 @@ NetWare
|
|||||||
Builds automatically created 8 times a day from current git are here:
|
Builds automatically created 8 times a day from current git are here:
|
||||||
http://www.gknw.net/mirror/curl/autobuilds/
|
http://www.gknw.net/mirror/curl/autobuilds/
|
||||||
the status of these builds can be viewed at the autobuild table:
|
the status of these builds can be viewed at the autobuild table:
|
||||||
http://curl.haxx.se/dev/builds.html
|
https://curl.haxx.se/dev/builds.html
|
||||||
|
|
||||||
|
|
||||||
eCos
|
eCos
|
||||||
====
|
====
|
||||||
|
|
||||||
curl does not use the eCos build system, so you must first build eCos
|
curl does not use the eCos build system, so you must first build eCos
|
||||||
separately, then link curl to the resulting eCos library. Here's a sample
|
separately, then link curl to the resulting eCos library. Here's a sample
|
||||||
configure line to do so on an x86 Linux box targeting x86:
|
configure line to do so on an x86 Linux box targeting x86:
|
||||||
@@ -761,9 +778,9 @@ eCos
|
|||||||
|
|
||||||
config.errors = stderr; /* default errors to stderr */
|
config.errors = stderr; /* default errors to stderr */
|
||||||
|
|
||||||
|
|
||||||
Minix
|
Minix
|
||||||
=====
|
=====
|
||||||
|
|
||||||
curl can be compiled on Minix 3 using gcc or ACK (starting with
|
curl can be compiled on Minix 3 using gcc or ACK (starting with
|
||||||
ver. 3.1.3). Ensure that GNU gawk and bash are both installed and
|
ver. 3.1.3). Ensure that GNU gawk and bash are both installed and
|
||||||
available in the PATH.
|
available in the PATH.
|
||||||
@@ -793,9 +810,9 @@ Minix
|
|||||||
make
|
make
|
||||||
chmem =256000 src/curl
|
chmem =256000 src/curl
|
||||||
|
|
||||||
|
|
||||||
Symbian OS
|
Symbian OS
|
||||||
==========
|
==========
|
||||||
|
|
||||||
The Symbian OS port uses the Symbian build system to compile. From the
|
The Symbian OS port uses the Symbian build system to compile. From the
|
||||||
packages/Symbian/group/ directory, run:
|
packages/Symbian/group/ directory, run:
|
||||||
|
|
||||||
@@ -806,16 +823,16 @@ Symbian OS
|
|||||||
SDK doesn't include support for P.I.P.S., you will need to contact
|
SDK doesn't include support for P.I.P.S., you will need to contact
|
||||||
your SDK vendor to obtain that first.
|
your SDK vendor to obtain that first.
|
||||||
|
|
||||||
|
|
||||||
VxWorks
|
VxWorks
|
||||||
========
|
========
|
||||||
|
|
||||||
Build for VxWorks is performed using cross compilation.
|
Build for VxWorks is performed using cross compilation.
|
||||||
That means you build on Windows machine using VxWorks tools and
|
That means you build on Windows machine using VxWorks tools and
|
||||||
run the built image on the VxWorks device.
|
run the built image on the VxWorks device.
|
||||||
|
|
||||||
To build libcurl for VxWorks you need:
|
To build libcurl for VxWorks you need:
|
||||||
|
|
||||||
- CYGWIN (free, http://cygwin.com/)
|
- CYGWIN (free, https://cygwin.com/)
|
||||||
- Wind River Workbench (commercial)
|
- Wind River Workbench (commercial)
|
||||||
|
|
||||||
If you have CYGWIN and Workbench installed on you machine
|
If you have CYGWIN and Workbench installed on you machine
|
||||||
@@ -832,13 +849,15 @@ VxWorks
|
|||||||
As a result the libcurl.a library should be created in the 'lib' folder.
|
As a result the libcurl.a library should be created in the 'lib' folder.
|
||||||
To clean the build results type 'make -f ./Makefile.vxworks clean'.
|
To clean the build results type 'make -f ./Makefile.vxworks clean'.
|
||||||
|
|
||||||
|
|
||||||
Android
|
Android
|
||||||
=======
|
=======
|
||||||
|
|
||||||
Method using the static makefile:
|
Method using the static makefile:
|
||||||
|
|
||||||
- see the build notes in the packages/Android/Android.mk file.
|
- see the build notes in the packages/Android/Android.mk file.
|
||||||
|
|
||||||
Method using a configure cross-compile (tested with Android NDK r7c, r8):
|
Method using a configure cross-compile (tested with Android NDK r7c, r8):
|
||||||
|
|
||||||
- prepare the toolchain of the Android NDK for standalone use; this can
|
- prepare the toolchain of the Android NDK for standalone use; this can
|
||||||
be done by invoking the script:
|
be done by invoking the script:
|
||||||
./build/tools/make-standalone-toolchain.sh
|
./build/tools/make-standalone-toolchain.sh
|
||||||
@@ -860,7 +879,8 @@ Android
|
|||||||
found in your automake folder:
|
found in your automake folder:
|
||||||
find /usr -name config.sub
|
find /usr -name config.sub
|
||||||
|
|
||||||
Wrapper for pkg-config
|
Wrapper for pkg-config:
|
||||||
|
|
||||||
- In order to make proper use of pkg-config so that configure is able to
|
- In order to make proper use of pkg-config so that configure is able to
|
||||||
find all dependencies you should create a wrapper script for pkg-config;
|
find all dependencies you should create a wrapper script for pkg-config;
|
||||||
file /opt/arm-linux-androideabi-4.4.3/bin/arm-linux-androideabi-pkg-config:
|
file /opt/arm-linux-androideabi-4.4.3/bin/arm-linux-androideabi-pkg-config:
|
||||||
@@ -874,9 +894,9 @@ Android
|
|||||||
|
|
||||||
also create a copy or symlink with name arm-unknown-linux-androideabi-pkg-config.
|
also create a copy or symlink with name arm-unknown-linux-androideabi-pkg-config.
|
||||||
|
|
||||||
|
|
||||||
CROSS COMPILE
|
CROSS COMPILE
|
||||||
=============
|
=============
|
||||||
|
|
||||||
(This section was graciously brought to us by Jim Duey, with additions by
|
(This section was graciously brought to us by Jim Duey, with additions by
|
||||||
Dan Fandrich)
|
Dan Fandrich)
|
||||||
|
|
||||||
@@ -922,17 +942,18 @@ CROSS COMPILE
|
|||||||
|
|
||||||
./configure --host=ARCH-OS
|
./configure --host=ARCH-OS
|
||||||
|
|
||||||
|
|
||||||
REDUCING SIZE
|
REDUCING SIZE
|
||||||
=============
|
=============
|
||||||
|
|
||||||
There are a number of configure options that can be used to reduce the
|
There are a number of configure options that can be used to reduce the
|
||||||
size of libcurl for embedded applications where binary size is an
|
size of libcurl for embedded applications where binary size is an
|
||||||
important factor. First, be sure to set the CFLAGS variable when
|
important factor. First, be sure to set the CFLAGS variable when
|
||||||
configuring with any relevant compiler optimization flags to reduce the
|
configuring with any relevant compiler optimization flags to reduce the
|
||||||
size of the binary. For gcc, this would mean at minimum the -Os option,
|
size of the binary. For gcc, this would mean at minimum the -Os option,
|
||||||
and potentially the -march=X and -mdynamic-no-pic options as well, e.g.
|
and potentially the -march=X, -mdynamic-no-pic and -flto options as well,
|
||||||
|
e.g.
|
||||||
|
|
||||||
./configure CFLAGS='-Os' ...
|
./configure CFLAGS='-Os' LDFLAGS='-Wl,-Bsymbolic'...
|
||||||
|
|
||||||
Note that newer compilers often produce smaller code than older versions
|
Note that newer compilers often produce smaller code than older versions
|
||||||
due to improved optimization.
|
due to improved optimization.
|
||||||
@@ -950,7 +971,9 @@ REDUCING SIZE
|
|||||||
--disable-ipv6 (disables support for IPv6)
|
--disable-ipv6 (disables support for IPv6)
|
||||||
--disable-manual (disables support for the built-in documentation)
|
--disable-manual (disables support for the built-in documentation)
|
||||||
--disable-proxy (disables support for HTTP and SOCKS proxies)
|
--disable-proxy (disables support for HTTP and SOCKS proxies)
|
||||||
|
--disable-unix-sockets (disables support for UNIX sockets)
|
||||||
--disable-verbose (eliminates debugging strings and error code strings)
|
--disable-verbose (eliminates debugging strings and error code strings)
|
||||||
|
--disable-versioned-symbols (disables support for versioned symbols)
|
||||||
--enable-hidden-symbols (eliminates unneeded symbols in the shared library)
|
--enable-hidden-symbols (eliminates unneeded symbols in the shared library)
|
||||||
--without-libidn (disables support for the libidn DNS library)
|
--without-libidn (disables support for the libidn DNS library)
|
||||||
--without-librtmp (disables support for RTMP)
|
--without-librtmp (disables support for RTMP)
|
||||||
@@ -961,8 +984,9 @@ REDUCING SIZE
|
|||||||
size of the libcurl dynamic libraries on some platforms even further.
|
size of the libcurl dynamic libraries on some platforms even further.
|
||||||
Specify them by providing appropriate CFLAGS and LDFLAGS variables on the
|
Specify them by providing appropriate CFLAGS and LDFLAGS variables on the
|
||||||
configure command-line, e.g.
|
configure command-line, e.g.
|
||||||
|
|
||||||
CFLAGS="-Os -ffunction-sections -fdata-sections \
|
CFLAGS="-Os -ffunction-sections -fdata-sections \
|
||||||
-fno-unwind-tables -fno-asynchronous-unwind-tables" \
|
-fno-unwind-tables -fno-asynchronous-unwind-tables -flto" \
|
||||||
LDFLAGS="-Wl,-s -Wl,-Bsymbolic -Wl,--gc-sections"
|
LDFLAGS="-Wl,-s -Wl,-Bsymbolic -Wl,--gc-sections"
|
||||||
|
|
||||||
Be sure also to strip debugging symbols from your binaries after
|
Be sure also to strip debugging symbols from your binaries after
|
||||||
@@ -972,9 +996,9 @@ REDUCING SIZE
|
|||||||
.comment section).
|
.comment section).
|
||||||
|
|
||||||
Using these techniques it is possible to create a basic HTTP-only shared
|
Using these techniques it is possible to create a basic HTTP-only shared
|
||||||
libcurl library for i386 Linux platforms that is only 114 KiB in size, and
|
libcurl library for i386 Linux platforms that is only 109 KiB in size, and
|
||||||
an FTP-only library that is 115 KiB in size (as of libcurl version 7.35.0,
|
an FTP-only library that is 109 KiB in size (as of libcurl version 7.45.0,
|
||||||
using gcc 4.8.2).
|
using gcc 4.9.2).
|
||||||
|
|
||||||
You may find that statically linking libcurl to your application will
|
You may find that statically linking libcurl to your application will
|
||||||
result in a lower total size than dynamically linking.
|
result in a lower total size than dynamically linking.
|
||||||
@@ -989,9 +1013,9 @@ REDUCING SIZE
|
|||||||
--disable-manual !--manual
|
--disable-manual !--manual
|
||||||
--disable-proxy !HTTP\ proxy !proxytunnel !SOCKS4 !SOCKS5
|
--disable-proxy !HTTP\ proxy !proxytunnel !SOCKS4 !SOCKS5
|
||||||
|
|
||||||
|
|
||||||
PORTS
|
PORTS
|
||||||
=====
|
=====
|
||||||
|
|
||||||
This is a probably incomplete list of known hardware and operating systems
|
This is a probably incomplete list of known hardware and operating systems
|
||||||
that curl has been compiled for. If you know a system curl compiles and
|
that curl has been compiled for. If you know a system curl compiles and
|
||||||
runs on, that isn't listed, please let us know!
|
runs on, that isn't listed, please let us know!
|
||||||
@@ -1072,18 +1096,18 @@ Useful URLs
|
|||||||
|
|
||||||
axTLS http://axtls.sourceforge.net/
|
axTLS http://axtls.sourceforge.net/
|
||||||
c-ares http://c-ares.haxx.se/
|
c-ares http://c-ares.haxx.se/
|
||||||
GNU GSS http://www.gnu.org/software/gss/
|
GNU GSS https://www.gnu.org/software/gss/
|
||||||
GnuTLS http://www.gnu.org/software/gnutls/
|
GnuTLS https://www.gnu.org/software/gnutls/
|
||||||
Heimdal http://www.pdc.kth.se/heimdal/
|
Heimdal http://www.h5l.org/
|
||||||
libidn http://www.gnu.org/software/libidn/
|
libidn https://www.gnu.org/software/libidn/
|
||||||
libmetalink https://launchpad.net/libmetalink/
|
libmetalink https://launchpad.net/libmetalink/
|
||||||
libssh2 http://www.libssh2.org/
|
libssh2 http://www.libssh2.org/
|
||||||
MIT Kerberos http://web.mit.edu/kerberos/www/dist/
|
MIT Kerberos http://web.mit.edu/kerberos/www/dist/
|
||||||
NSS http://www.mozilla.org/projects/security/pki/nss/
|
NSS https://developer.mozilla.org/en-US/docs/Mozilla/Projects/NSS
|
||||||
OpenLDAP http://www.openldap.org/
|
OpenLDAP http://www.openldap.org/
|
||||||
OpenSSL http://www.openssl.org/
|
OpenSSL https://www.openssl.org/
|
||||||
PolarSSL http://polarssl.org/
|
PolarSSL https://tls.mbed.org/
|
||||||
yassl http://www.yassl.com/
|
wolfSSL https://www.wolfssl.com/wolfSSL/
|
||||||
Zlib http://www.zlib.net/
|
Zlib http://www.zlib.net/
|
||||||
|
|
||||||
MingW http://www.mingw.org/
|
MingW http://www.mingw.org/
|
||||||
|
|||||||
@@ -24,7 +24,6 @@ Current flaws in the curl CMake build
|
|||||||
Missing features in the cmake build:
|
Missing features in the cmake build:
|
||||||
|
|
||||||
- Builds libcurl without large file support
|
- Builds libcurl without large file support
|
||||||
- It doesn't build src/tool_hugehelp.c which creates the --manual output
|
|
||||||
- Can't select which SSL library to build with, only OpenSSL
|
- Can't select which SSL library to build with, only OpenSSL
|
||||||
- Doesn't build with SCP and SFTP support (libssh2)
|
- Doesn't build with SCP and SFTP support (libssh2)
|
||||||
- Doesn't allow different resolver backends (no c-ares build support)
|
- Doesn't allow different resolver backends (no c-ares build support)
|
||||||
@@ -32,7 +31,6 @@ Current flaws in the curl CMake build
|
|||||||
- Doesn't allow build curl and libcurl debug enabled
|
- Doesn't allow build curl and libcurl debug enabled
|
||||||
- Doesn't allow a custom CA bundle path
|
- Doesn't allow a custom CA bundle path
|
||||||
- Doesn't allow you to disable specific protocols from the build
|
- Doesn't allow you to disable specific protocols from the build
|
||||||
- Doesn't properly enable IPv6 support by default
|
|
||||||
- Doesn't find or use krb4 or GSS
|
- Doesn't find or use krb4 or GSS
|
||||||
- Rebuilds test files too eagerly, but still can't run the tests
|
- Rebuilds test files too eagerly, but still can't run the tests
|
||||||
|
|
||||||
|
|||||||
@@ -95,7 +95,7 @@ install instructions may produce erratic behaviour in DevCpp. For further info
|
|||||||
check the following sites
|
check the following sites
|
||||||
|
|
||||||
http://aditsu.freeunixhost.com/dev-cpp-faq.html
|
http://aditsu.freeunixhost.com/dev-cpp-faq.html
|
||||||
http://sourceforge.net/forum/message.php?msg_id=3252213
|
https://sourceforge.net/p/dev-cpp/discussion/48211/thread/2a85ea46
|
||||||
|
|
||||||
As I have mentioned before I will confine this to the SSL Library compilations
|
As I have mentioned before I will confine this to the SSL Library compilations
|
||||||
but the process is very similar for compilation of the executable - curl.exe;
|
but the process is very similar for compilation of the executable - curl.exe;
|
||||||
@@ -248,7 +248,7 @@ SSL Files
|
|||||||
openssl-0.9.7e-win32-bin.zip for the minimalist package of the openssl-0.9.7e
|
openssl-0.9.7e-win32-bin.zip for the minimalist package of the openssl-0.9.7e
|
||||||
binaries ported to MS Windows 95/98/NT/XP using the MingW32/GCC-3.1
|
binaries ported to MS Windows 95/98/NT/XP using the MingW32/GCC-3.1
|
||||||
development environment. The file may be downloaded at
|
development environment. The file may be downloaded at
|
||||||
http://curl.haxx.se/download/.
|
https://curl.haxx.se/download/.
|
||||||
|
|
||||||
2- Open the above zip file. You will find two files - SDL.dll,
|
2- Open the above zip file. You will find two files - SDL.dll,
|
||||||
SDL_mixer.dll. Install them in the directory C:\WINDOWS\SYSTEM32 for Win 9x
|
SDL_mixer.dll. Install them in the directory C:\WINDOWS\SYSTEM32 for Win 9x
|
||||||
|
|||||||
911
docs/INTERNALS
911
docs/INTERNALS
File diff suppressed because it is too large
Load Diff
139
docs/KNOWN_BUGS
139
docs/KNOWN_BUGS
@@ -3,13 +3,46 @@ join in and help us correct one or more of these! Also be sure to check the
|
|||||||
changelog of the current development status, as one or more of these problems
|
changelog of the current development status, as one or more of these problems
|
||||||
may have been fixed since this was written!
|
may have been fixed since this was written!
|
||||||
|
|
||||||
|
93. It is not possible to pass a 64-bit value using CURLFORM_CONTENTLEN with
|
||||||
|
CURLFORM_ARRAY, when compiled on 32-bit platforms that support 64-bit
|
||||||
|
integers. This is because the underlying structure 'curl_forms' uses a dual
|
||||||
|
purpose char* for storing these values in via casting. For more information
|
||||||
|
see the now closed related issue:
|
||||||
|
https://github.com/curl/curl/issues/608
|
||||||
|
|
||||||
|
92. curl tool 7.47.1 in Windows will not --output to literal paths \\?\ or to
|
||||||
|
reserved dos device names unless the device prefix \\.\ is used. To send
|
||||||
|
output to a device that has a reserved dos device name you can use the
|
||||||
|
Windows device prefix (eg: --output \\.\NUL). You can also use the
|
||||||
|
redirection operator to send output to a literal path or a reserved device
|
||||||
|
name (eg: > NUL).
|
||||||
|
The next release of curl will support --output in Windows to literal paths
|
||||||
|
and to reserved device names without the device prefix.
|
||||||
|
https://github.com/curl/curl/commit/c3aac48
|
||||||
|
https://github.com/curl/curl/commit/4fc80f3
|
||||||
|
|
||||||
|
91. "curl_easy_perform hangs with imap and PolarSSL"
|
||||||
|
https://github.com/curl/curl/issues/334
|
||||||
|
|
||||||
|
90. IMAP "SEARCH ALL" truncates output on large boxes. "A quick search of the
|
||||||
|
code reveals that pingpong.c contains some truncation code, at line 408,
|
||||||
|
when it deems the server response to be too large truncating it to 40
|
||||||
|
characters"
|
||||||
|
https://curl.haxx.se/bug/view.cgi?id=1366
|
||||||
|
|
||||||
|
89. Disabling HTTP Pipelining when there are ongoing transfers can lead to
|
||||||
|
heap corruption and crash. https://curl.haxx.se/bug/view.cgi?id=1411
|
||||||
|
|
||||||
|
88. libcurl doesn't support CURLINFO_FILETIME for SFTP transfers and thus
|
||||||
|
curl's -R option also doesn't work then.
|
||||||
|
|
||||||
87. -J/--remote-header-name doesn't decode %-encoded file names. RFC6266
|
87. -J/--remote-header-name doesn't decode %-encoded file names. RFC6266
|
||||||
details how it should be done. The can of worm is basically that we have no
|
details how it should be done. The can of worm is basically that we have no
|
||||||
charset handling in curl and ascii >=128 is a challenge for us. Not to
|
charset handling in curl and ascii >=128 is a challenge for us. Not to
|
||||||
mention that decoding also means that we need to check for nastiness that is
|
mention that decoding also means that we need to check for nastiness that is
|
||||||
attempted, like "../" sequences and the like. Probably everything to the left
|
attempted, like "../" sequences and the like. Probably everything to the left
|
||||||
of any embedded slashes should be cut off.
|
of any embedded slashes should be cut off.
|
||||||
http://curl.haxx.se/bug/view.cgi?id=1294
|
https://curl.haxx.se/bug/view.cgi?id=1294
|
||||||
|
|
||||||
86. The disconnect commands (LOGOUT and QUIT) may not be sent by IMAP, POP3
|
86. The disconnect commands (LOGOUT and QUIT) may not be sent by IMAP, POP3
|
||||||
and SMTP if a failure occurs during the authentication phase of a
|
and SMTP if a failure occurs during the authentication phase of a
|
||||||
@@ -20,87 +53,66 @@ may have been fixed since this was written!
|
|||||||
CURLINFO_STARTTRANSFER_TIME is wrong. While using POST
|
CURLINFO_STARTTRANSFER_TIME is wrong. While using POST
|
||||||
CURLINFO_STARTTRANSFER_TIME minus CURLINFO_PRETRANSFER_TIME is near to zero
|
CURLINFO_STARTTRANSFER_TIME minus CURLINFO_PRETRANSFER_TIME is near to zero
|
||||||
every time.
|
every time.
|
||||||
http://curl.haxx.se/bug/view.cgi?id=1213
|
https://github.com/curl/curl/issues/218
|
||||||
|
https://curl.haxx.se/bug/view.cgi?id=1213
|
||||||
|
|
||||||
84. CURLINFO_SSL_VERIFYRESULT is only implemented for the OpenSSL and NSS
|
84. CURLINFO_SSL_VERIFYRESULT is only implemented for the OpenSSL and NSS
|
||||||
backends, so relying on this information in a generic app is flaky.
|
backends, so relying on this information in a generic app is flaky.
|
||||||
|
|
||||||
83. curl is unable to load non-default openssl engines, because openssl isn't
|
|
||||||
initialized properly. This seems to require OpenSSL_config() or
|
|
||||||
CONF_modules_load_file() to be used by libcurl but the first seems to not
|
|
||||||
work and we've gotten not reports from tests with the latter. Possibly we
|
|
||||||
need to discuss with OpenSSL developers how this is supposed to be done. We
|
|
||||||
need users with actual external openssl engines for testing to work on this.
|
|
||||||
http://curl.haxx.se/bug/view.cgi?id=1208
|
|
||||||
|
|
||||||
82. When building with the Windows Borland compiler, it fails because the
|
82. When building with the Windows Borland compiler, it fails because the
|
||||||
"tlib" tool doesn't support hyphens (minus signs) in file names and we have
|
"tlib" tool doesn't support hyphens (minus signs) in file names and we have
|
||||||
such in the build.
|
such in the build.
|
||||||
http://curl.haxx.se/bug/view.cgi?id=1222
|
https://curl.haxx.se/bug/view.cgi?id=1222
|
||||||
|
|
||||||
81. When using -J (with -O), automatically resumed downloading together with
|
81. When using -J (with -O), automatically resumed downloading together with
|
||||||
"-C -" fails. Without -J the same command line works! This happens because
|
"-C -" fails. Without -J the same command line works! This happens because
|
||||||
the resume logic is worked out before the target file name (and thus its
|
the resume logic is worked out before the target file name (and thus its
|
||||||
pre-transfer size) has been figured out!
|
pre-transfer size) has been figured out!
|
||||||
http://curl.haxx.se/bug/view.cgi?id=1169
|
https://curl.haxx.se/bug/view.cgi?id=1169
|
||||||
|
|
||||||
80. Curl doesn't recognize certificates in DER format in keychain, but it
|
80. Curl doesn't recognize certificates in DER format in keychain, but it
|
||||||
works with PEM.
|
works with PEM.
|
||||||
http://curl.haxx.se/bug/view.cgi?id=1065
|
https://curl.haxx.se/bug/view.cgi?id=1065
|
||||||
|
|
||||||
79. SMTP. When sending data to multiple recipients, curl will abort and return
|
79. SMTP. When sending data to multiple recipients, curl will abort and return
|
||||||
failure if one of the recipients indicate failure (on the "RCPT TO"
|
failure if one of the recipients indicate failure (on the "RCPT TO"
|
||||||
command). Ordinary mail programs would proceed and still send to the ones
|
command). Ordinary mail programs would proceed and still send to the ones
|
||||||
that can receive data. This is subject for change in the future.
|
that can receive data. This is subject for change in the future.
|
||||||
http://curl.haxx.se/bug/view.cgi?id=1116
|
https://curl.haxx.se/bug/view.cgi?id=1116
|
||||||
|
|
||||||
78. curl and libcurl don't always signal the client properly when "sending"
|
|
||||||
zero bytes files - it makes for example the command line client not creating
|
|
||||||
any file at all. Like when using FTP.
|
|
||||||
http://curl.haxx.se/bug/view.cgi?id=1063
|
|
||||||
|
|
||||||
77. CURLOPT_FORBID_REUSE on a handle prevents NTLM from working since it
|
|
||||||
"abuses" the underlying connection re-use system and if connections are
|
|
||||||
forced to close they break the NTLM support.
|
|
||||||
|
|
||||||
76. The SOCKET type in Win64 is 64 bits large (and thus so is curl_socket_t on
|
|
||||||
that platform), and long is only 32 bits. It makes it impossible for
|
|
||||||
curl_easy_getinfo() to return a socket properly with the CURLINFO_LASTSOCKET
|
|
||||||
option as for all other operating systems.
|
|
||||||
|
|
||||||
75. NTLM authentication involving unicode user name or password only works
|
75. NTLM authentication involving unicode user name or password only works
|
||||||
properly if built with UNICODE defined together with the WinSSL/schannel
|
properly if built with UNICODE defined together with the WinSSL/schannel
|
||||||
backend. The original problem was mentioned in:
|
backend. The original problem was mentioned in:
|
||||||
http://curl.haxx.se/mail/lib-2009-10/0024.html
|
https://curl.haxx.se/mail/lib-2009-10/0024.html
|
||||||
http://curl.haxx.se/bug/view.cgi?id=896
|
https://curl.haxx.se/bug/view.cgi?id=896
|
||||||
|
|
||||||
The WinSSL/schannel version verified to work as mentioned in
|
The WinSSL/schannel version verified to work as mentioned in
|
||||||
http://curl.haxx.se/mail/lib-2012-07/0073.html
|
https://curl.haxx.se/mail/lib-2012-07/0073.html
|
||||||
|
|
||||||
73. if a connection is made to a FTP server but the server then just never
|
73. if a connection is made to a FTP server but the server then just never
|
||||||
sends the 220 response or otherwise is dead slow, libcurl will not
|
sends the 220 response or otherwise is dead slow, libcurl will not
|
||||||
acknowledge the connection timeout during that phase but only the "real"
|
acknowledge the connection timeout during that phase but only the "real"
|
||||||
timeout - which may surprise users as it is probably considered to be the
|
timeout - which may surprise users as it is probably considered to be the
|
||||||
connect phase to most people. Brought up (and is being misunderstood) in:
|
connect phase to most people. Brought up (and is being misunderstood) in:
|
||||||
http://curl.haxx.se/bug/view.cgi?id=856
|
https://curl.haxx.se/bug/view.cgi?id=856
|
||||||
|
|
||||||
72. "Pausing pipeline problems."
|
72. "Pausing pipeline problems."
|
||||||
http://curl.haxx.se/mail/lib-2009-07/0214.html
|
https://curl.haxx.se/mail/lib-2009-07/0214.html
|
||||||
|
|
||||||
70. Problem re-using easy handle after call to curl_multi_remove_handle
|
70. Problem re-using easy handle after call to curl_multi_remove_handle
|
||||||
http://curl.haxx.se/mail/lib-2009-07/0249.html
|
https://curl.haxx.se/mail/lib-2009-07/0249.html
|
||||||
|
|
||||||
68. "More questions about ares behavior".
|
68. "More questions about ares behavior".
|
||||||
http://curl.haxx.se/mail/lib-2009-08/0012.html
|
https://curl.haxx.se/mail/lib-2009-08/0012.html
|
||||||
|
|
||||||
67. When creating multipart formposts. The file name part can be encoded with
|
67. When creating multipart formposts. The file name part can be encoded with
|
||||||
something beyond ascii but currently libcurl will only pass in the verbatim
|
something beyond ascii but currently libcurl will only pass in the verbatim
|
||||||
string the app provides. There are several browsers that already do this
|
string the app provides. There are several browsers that already do this
|
||||||
encoding. The key seems to be the updated draft to RFC2231:
|
encoding. The key seems to be the updated draft to RFC2231:
|
||||||
http://tools.ietf.org/html/draft-reschke-rfc2231-in-http-02
|
https://tools.ietf.org/html/draft-reschke-rfc2231-in-http-02
|
||||||
|
|
||||||
66. When using telnet, the time limitation options don't work.
|
66. When using telnet, the time limitation options don't work.
|
||||||
http://curl.haxx.se/bug/view.cgi?id=846
|
https://curl.haxx.se/bug/view.cgi?id=846
|
||||||
|
|
||||||
65. When doing FTP over a socks proxy or CONNECT through HTTP proxy and the
|
65. When doing FTP over a socks proxy or CONNECT through HTTP proxy and the
|
||||||
multi interface is used, libcurl will fail if the (passive) TCP connection
|
multi interface is used, libcurl will fail if the (passive) TCP connection
|
||||||
@@ -111,27 +123,27 @@ may have been fixed since this was written!
|
|||||||
63. When CURLOPT_CONNECT_ONLY is used, the handle cannot reliably be re-used
|
63. When CURLOPT_CONNECT_ONLY is used, the handle cannot reliably be re-used
|
||||||
for any further requests or transfers. The work-around is then to close that
|
for any further requests or transfers. The work-around is then to close that
|
||||||
handle with curl_easy_cleanup() and create a new. Some more details:
|
handle with curl_easy_cleanup() and create a new. Some more details:
|
||||||
http://curl.haxx.se/mail/lib-2009-04/0300.html
|
https://curl.haxx.se/mail/lib-2009-04/0300.html
|
||||||
|
|
||||||
61. If an upload using Expect: 100-continue receives an HTTP 417 response,
|
61. If an upload using Expect: 100-continue receives an HTTP 417 response,
|
||||||
it ought to be automatically resent without the Expect:. A workaround is
|
it ought to be automatically resent without the Expect:. A workaround is
|
||||||
for the client application to redo the transfer after disabling Expect:.
|
for the client application to redo the transfer after disabling Expect:.
|
||||||
http://curl.haxx.se/mail/archive-2008-02/0043.html
|
https://curl.haxx.se/mail/archive-2008-02/0043.html
|
||||||
|
|
||||||
60. libcurl closes the connection if an HTTP 401 reply is received while it
|
60. libcurl closes the connection if an HTTP 401 reply is received while it
|
||||||
is waiting for the the 100-continue response.
|
is waiting for the the 100-continue response.
|
||||||
http://curl.haxx.se/mail/lib-2008-08/0462.html
|
https://curl.haxx.se/mail/lib-2008-08/0462.html
|
||||||
|
|
||||||
58. It seems sensible to be able to use CURLOPT_NOBODY and
|
58. It seems sensible to be able to use CURLOPT_NOBODY and
|
||||||
CURLOPT_FAILONERROR with FTP to detect if a file exists or not, but it is
|
CURLOPT_FAILONERROR with FTP to detect if a file exists or not, but it is
|
||||||
not working: http://curl.haxx.se/mail/lib-2008-07/0295.html
|
not working: https://curl.haxx.se/mail/lib-2008-07/0295.html
|
||||||
|
|
||||||
56. When libcurl sends CURLOPT_POSTQUOTE commands when connected to a SFTP
|
56. When libcurl sends CURLOPT_POSTQUOTE commands when connected to a SFTP
|
||||||
server using the multi interface, the commands are not being sent correctly
|
server using the multi interface, the commands are not being sent correctly
|
||||||
and instead the connection is "cancelled" (the operation is considered done)
|
and instead the connection is "cancelled" (the operation is considered done)
|
||||||
prematurely. There is a half-baked (busy-looping) patch provided in the bug
|
prematurely. There is a half-baked (busy-looping) patch provided in the bug
|
||||||
report but it cannot be accepted as-is. See
|
report but it cannot be accepted as-is. See
|
||||||
http://curl.haxx.se/bug/view.cgi?id=748
|
https://curl.haxx.se/bug/view.cgi?id=748
|
||||||
|
|
||||||
55. libcurl fails to build with MIT Kerberos for Windows (KfW) due to KfW's
|
55. libcurl fails to build with MIT Kerberos for Windows (KfW) due to KfW's
|
||||||
library header files exporting symbols/macros that should be kept private
|
library header files exporting symbols/macros that should be kept private
|
||||||
@@ -140,13 +152,13 @@ may have been fixed since this was written!
|
|||||||
52. Gautam Kachroo's issue that identifies a problem with the multi interface
|
52. Gautam Kachroo's issue that identifies a problem with the multi interface
|
||||||
where a connection can be re-used without actually being properly
|
where a connection can be re-used without actually being properly
|
||||||
SSL-negotiated:
|
SSL-negotiated:
|
||||||
http://curl.haxx.se/mail/lib-2008-01/0277.html
|
https://curl.haxx.se/mail/lib-2008-01/0277.html
|
||||||
|
|
||||||
49. If using --retry and the transfer timeouts (possibly due to using -m or
|
49. If using --retry and the transfer timeouts (possibly due to using -m or
|
||||||
-y/-Y) the next attempt doesn't resume the transfer properly from what was
|
-y/-Y) the next attempt doesn't resume the transfer properly from what was
|
||||||
downloaded in the previous attempt but will truncate and restart at the
|
downloaded in the previous attempt but will truncate and restart at the
|
||||||
original position where it was at before the previous failed attempt. See
|
original position where it was at before the previous failed attempt. See
|
||||||
http://curl.haxx.se/mail/lib-2008-01/0080.html and Mandriva bug report
|
https://curl.haxx.se/mail/lib-2008-01/0080.html and Mandriva bug report
|
||||||
https://qa.mandriva.com/show_bug.cgi?id=22565
|
https://qa.mandriva.com/show_bug.cgi?id=22565
|
||||||
|
|
||||||
48. If a CONNECT response-headers are larger than BUFSIZE (16KB) when the
|
48. If a CONNECT response-headers are larger than BUFSIZE (16KB) when the
|
||||||
@@ -155,36 +167,33 @@ may have been fixed since this was written!
|
|||||||
protocol code. This should be very rare.
|
protocol code. This should be very rare.
|
||||||
|
|
||||||
43. There seems to be a problem when connecting to the Microsoft telnet server.
|
43. There seems to be a problem when connecting to the Microsoft telnet server.
|
||||||
http://curl.haxx.se/bug/view.cgi?id=649
|
https://curl.haxx.se/bug/view.cgi?id=649
|
||||||
|
|
||||||
41. When doing an operation over FTP that requires the ACCT command (but not
|
41. When doing an operation over FTP that requires the ACCT command (but not
|
||||||
when logging in), the operation will fail since libcurl doesn't detect this
|
when logging in), the operation will fail since libcurl doesn't detect this
|
||||||
and thus fails to issue the correct command:
|
and thus fails to issue the correct command:
|
||||||
http://curl.haxx.se/bug/view.cgi?id=635
|
https://curl.haxx.se/bug/view.cgi?id=635
|
||||||
|
|
||||||
39. Steffen Rumler's Race Condition in Curl_proxyCONNECT:
|
39. Steffen Rumler's Race Condition in Curl_proxyCONNECT:
|
||||||
http://curl.haxx.se/mail/lib-2007-01/0045.html
|
https://curl.haxx.se/mail/lib-2007-01/0045.html
|
||||||
|
|
||||||
38. Kumar Swamy Bhatt's problem in ftp/ssl "LIST" operation:
|
38. Kumar Swamy Bhatt's problem in ftp/ssl "LIST" operation:
|
||||||
http://curl.haxx.se/mail/lib-2007-01/0103.html
|
https://curl.haxx.se/mail/lib-2007-01/0103.html
|
||||||
|
|
||||||
35. Both SOCKS5 and SOCKS4 proxy connections are done blocking, which is very
|
35. Both SOCKS5 and SOCKS4 proxy connections are done blocking, which is very
|
||||||
bad when used with the multi interface.
|
bad when used with the multi interface.
|
||||||
|
|
||||||
34. The SOCKS4 connection codes don't properly acknowledge (connect) timeouts.
|
34. The SOCKS4 connection codes don't properly acknowledge (connect) timeouts.
|
||||||
Also see #12. According to bug #1556528, even the SOCKS5 connect code does
|
Also see #12. According to bug #1556528, even the SOCKS5 connect code does
|
||||||
not do it right: http://curl.haxx.se/bug/view.cgi?id=604
|
not do it right: https://curl.haxx.se/bug/view.cgi?id=604
|
||||||
|
|
||||||
31. "curl-config --libs" will include details set in LDFLAGS when configure is
|
31. "curl-config --libs" will include details set in LDFLAGS when configure is
|
||||||
run that might be needed only for building libcurl. Further, curl-config
|
run that might be needed only for building libcurl. Further, curl-config
|
||||||
--cflags suffers from the same effects with CFLAGS/CPPFLAGS.
|
--cflags suffers from the same effects with CFLAGS/CPPFLAGS.
|
||||||
|
|
||||||
30. You need to use -g to the command line tool in order to use RFC2732-style
|
|
||||||
or RFC6874-style IPv6 numerical addresses in URLs.
|
|
||||||
|
|
||||||
26. NTLM authentication using SSPI (on Windows) when (lib)curl is running in
|
26. NTLM authentication using SSPI (on Windows) when (lib)curl is running in
|
||||||
"system context" will make it use wrong(?) user name - at least when compared
|
"system context" will make it use wrong(?) user name - at least when compared
|
||||||
to what winhttp does. See http://curl.haxx.se/bug/view.cgi?id=535
|
to what winhttp does. See https://curl.haxx.se/bug/view.cgi?id=535
|
||||||
|
|
||||||
23. SOCKS-related problems:
|
23. SOCKS-related problems:
|
||||||
B) libcurl doesn't support FTPS over a SOCKS proxy.
|
B) libcurl doesn't support FTPS over a SOCKS proxy.
|
||||||
@@ -212,7 +221,7 @@ may have been fixed since this was written!
|
|||||||
be to use a data structure other than a plain C string, one that can handle
|
be to use a data structure other than a plain C string, one that can handle
|
||||||
embedded NUL characters. From a practical standpoint, most FTP servers
|
embedded NUL characters. From a practical standpoint, most FTP servers
|
||||||
would not meaningfully support NUL characters within RFC 959 <string>,
|
would not meaningfully support NUL characters within RFC 959 <string>,
|
||||||
anyway (e.g., UNIX pathnames may not contain NUL).
|
anyway (e.g., Unix pathnames may not contain NUL).
|
||||||
|
|
||||||
14. Test case 165 might fail on a system which has libidn present, but with an
|
14. Test case 165 might fail on a system which has libidn present, but with an
|
||||||
old iconv version (2.1.3 is a known bad version), since it doesn't recognize
|
old iconv version (2.1.3 is a known bad version), since it doesn't recognize
|
||||||
@@ -227,11 +236,11 @@ may have been fixed since this was written!
|
|||||||
acknowledged after the actual TCP connect (during the SOCKS "negotiate"
|
acknowledged after the actual TCP connect (during the SOCKS "negotiate"
|
||||||
phase).
|
phase).
|
||||||
|
|
||||||
10. To get HTTP Negotiate authentication to work fine, you need to provide a
|
10. To get HTTP Negotiate (SPNEGO) authentication to work fine, you need to
|
||||||
(fake) user name (this concerns both curl and the lib) because the code
|
provide a (fake) user name (this concerns both curl and the lib) because the
|
||||||
wrongly only considers authentication if there's a user name provided.
|
code wrongly only considers authentication if there's a user name provided.
|
||||||
http://curl.haxx.se/bug/view.cgi?id=440 How?
|
https://curl.haxx.se/bug/view.cgi?id=440 How?
|
||||||
http://curl.haxx.se/mail/lib-2004-08/0182.html
|
https://curl.haxx.se/mail/lib-2004-08/0182.html
|
||||||
|
|
||||||
8. Doing resumed upload over HTTP does not work with '-C -', because curl
|
8. Doing resumed upload over HTTP does not work with '-C -', because curl
|
||||||
doesn't do a HEAD first to get the initial size. This needs to be done
|
doesn't do a HEAD first to get the initial size. This needs to be done
|
||||||
@@ -247,14 +256,4 @@ may have been fixed since this was written!
|
|||||||
5. libcurl doesn't treat the content-length of compressed data properly, as
|
5. libcurl doesn't treat the content-length of compressed data properly, as
|
||||||
it seems HTTP servers send the *uncompressed* length in that header and
|
it seems HTTP servers send the *uncompressed* length in that header and
|
||||||
libcurl thinks of it as the *compressed* length. Some explanations are here:
|
libcurl thinks of it as the *compressed* length. Some explanations are here:
|
||||||
http://curl.haxx.se/mail/lib-2003-06/0146.html
|
https://curl.haxx.se/mail/lib-2003-06/0146.html
|
||||||
|
|
||||||
2. If a HTTP server responds to a HEAD request and includes a body (thus
|
|
||||||
violating the RFC2616), curl won't wait to read the response but just stop
|
|
||||||
reading and return back. If a second request (let's assume a GET) is then
|
|
||||||
immediately made to the same server again, the connection will be re-used
|
|
||||||
fine of course, and the second request will be sent off but when the
|
|
||||||
response is to get read, the previous response-body is what curl will read
|
|
||||||
and havoc is what happens.
|
|
||||||
More details on this is found in this libcurl mailing list thread:
|
|
||||||
http://curl.haxx.se/mail/lib-2002-08/0000.html
|
|
||||||
|
|||||||
@@ -1,245 +0,0 @@
|
|||||||
_ _ ____ _
|
|
||||||
___| | | | _ \| |
|
|
||||||
/ __| | | | |_) | |
|
|
||||||
| (__| |_| | _ <| |___
|
|
||||||
\___|\___/|_| \_\_____|
|
|
||||||
|
|
||||||
Structs in libcurl
|
|
||||||
|
|
||||||
This document should cover 7.32.0 pretty accurately, but will make sense even
|
|
||||||
for older and later versions as things don't change drastically that often.
|
|
||||||
|
|
||||||
1. The main structs in libcurl
|
|
||||||
1.1 SessionHandle
|
|
||||||
1.2 connectdata
|
|
||||||
1.3 Curl_multi
|
|
||||||
1.4 Curl_handler
|
|
||||||
1.5 conncache
|
|
||||||
1.6 Curl_share
|
|
||||||
1.7 CookieInfo
|
|
||||||
|
|
||||||
==============================================================================
|
|
||||||
|
|
||||||
1. The main structs in libcurl
|
|
||||||
|
|
||||||
1.1 SessionHandle
|
|
||||||
|
|
||||||
The SessionHandle handle struct is the one returned to the outside in the
|
|
||||||
external API as a "CURL *". This is usually known as an easy handle in API
|
|
||||||
documentations and examples.
|
|
||||||
|
|
||||||
Information and state that is related to the actual connection is in the
|
|
||||||
'connectdata' struct. When a transfer is about to be made, libcurl will
|
|
||||||
either create a new connection or re-use an existing one. The particular
|
|
||||||
connectdata that is used by this handle is pointed out by
|
|
||||||
SessionHandle->easy_conn.
|
|
||||||
|
|
||||||
Data and information that regard this particular single transfer is put in
|
|
||||||
the SingleRequest sub-struct.
|
|
||||||
|
|
||||||
When the SessionHandle struct is added to a multi handle, as it must be in
|
|
||||||
order to do any transfer, the ->multi member will point to the Curl_multi
|
|
||||||
struct it belongs to. The ->prev and ->next members will then be used by the
|
|
||||||
multi code to keep a linked list of SessionHandle structs that are added to
|
|
||||||
that same multi handle. libcurl always uses multi so ->multi *will* point to
|
|
||||||
a Curl_multi when a transfer is in progress.
|
|
||||||
|
|
||||||
->mstate is the multi state of this particular SessionHandle. When
|
|
||||||
multi_runsingle() is called, it will act on this handle according to which
|
|
||||||
state it is in. The mstate is also what tells which sockets to return for a
|
|
||||||
specific SessionHandle when curl_multi_fdset() is called etc.
|
|
||||||
|
|
||||||
The libcurl source code generally use the name 'data' for the variable that
|
|
||||||
points to the SessionHandle.
|
|
||||||
|
|
||||||
|
|
||||||
1.2 connectdata
|
|
||||||
|
|
||||||
A general idea in libcurl is to keep connections around in a connection
|
|
||||||
"cache" after they have been used in case they will be used again and then
|
|
||||||
re-use an existing one instead of creating a new as it creates a significant
|
|
||||||
performance boost.
|
|
||||||
|
|
||||||
Each 'connectdata' identifies a single physical connection to a server. If
|
|
||||||
the connection can't be kept alive, the connection will be closed after use
|
|
||||||
and then this struct can be removed from the cache and freed.
|
|
||||||
|
|
||||||
Thus, the same SessionHandle can be used multiple times and each time select
|
|
||||||
another connectdata struct to use for the connection. Keep this in mind, as
|
|
||||||
it is then important to consider if options or choices are based on the
|
|
||||||
connection or the SessionHandle.
|
|
||||||
|
|
||||||
Functions in libcurl will assume that connectdata->data points to the
|
|
||||||
SessionHandle that uses this connection.
|
|
||||||
|
|
||||||
As a special complexity, some protocols supported by libcurl require a
|
|
||||||
special disconnect procedure that is more than just shutting down the
|
|
||||||
socket. It can involve sending one or more commands to the server before
|
|
||||||
doing so. Since connections are kept in the connection cache after use, the
|
|
||||||
original SessionHandle may no longer be around when the time comes to shut
|
|
||||||
down a particular connection. For this purpose, libcurl holds a special
|
|
||||||
dummy 'closure_handle' SessionHandle in the Curl_multi struct to
|
|
||||||
|
|
||||||
FTP uses two TCP connections for a typical transfer but it keeps both in
|
|
||||||
this single struct and thus can be considered a single connection for most
|
|
||||||
internal concerns.
|
|
||||||
|
|
||||||
The libcurl source code generally use the name 'conn' for the variable that
|
|
||||||
points to the connectdata.
|
|
||||||
|
|
||||||
|
|
||||||
1.3 Curl_multi
|
|
||||||
|
|
||||||
Internally, the easy interface is implemented as a wrapper around multi
|
|
||||||
interface functions. This makes everything multi interface.
|
|
||||||
|
|
||||||
Curl_multi is the multi handle struct exposed as "CURLM *" in external APIs.
|
|
||||||
|
|
||||||
This struct holds a list of SessionHandle structs that have been added to
|
|
||||||
this handle with curl_multi_add_handle(). The start of the list is ->easyp
|
|
||||||
and ->num_easy is a counter of added SessionHandles.
|
|
||||||
|
|
||||||
->msglist is a linked list of messages to send back when
|
|
||||||
curl_multi_info_read() is called. Basically a node is added to that list
|
|
||||||
when an individual SessionHandle's transfer has completed.
|
|
||||||
|
|
||||||
->hostcache points to the name cache. It is a hash table for looking up name
|
|
||||||
to IP. The nodes have a limited life time in there and this cache is meant
|
|
||||||
to reduce the time for when the same name is wanted within a short period of
|
|
||||||
time.
|
|
||||||
|
|
||||||
->timetree points to a tree of SessionHandles, sorted by the remaining time
|
|
||||||
until it should be checked - normally some sort of timeout. Each
|
|
||||||
SessionHandle has one node in the tree.
|
|
||||||
|
|
||||||
->sockhash is a hash table to allow fast lookups of socket descriptor to
|
|
||||||
which SessionHandle that uses that descriptor. This is necessary for the
|
|
||||||
multi_socket API.
|
|
||||||
|
|
||||||
->conn_cache points to the connection cache. It keeps track of all
|
|
||||||
connections that are kept after use. The cache has a maximum size.
|
|
||||||
|
|
||||||
->closure_handle is described in the 'connectdata' section.
|
|
||||||
|
|
||||||
The libcurl source code generally use the name 'multi' for the variable that
|
|
||||||
points to the Curl_multi struct.
|
|
||||||
|
|
||||||
|
|
||||||
1.4 Curl_handler
|
|
||||||
|
|
||||||
Each unique protocol that is supported by libcurl needs to provide at least
|
|
||||||
one Curl_handler struct. It defines what the protocol is called and what
|
|
||||||
functions the main code should call to deal with protocol specific issues.
|
|
||||||
In general, there's a source file named [protocol].c in which there's a
|
|
||||||
"struct Curl_handler Curl_handler_[protocol]" declared. In url.c there's
|
|
||||||
then the main array with all individual Curl_handler structs pointed to from
|
|
||||||
a single array which is scanned through when a URL is given to libcurl to
|
|
||||||
work with.
|
|
||||||
|
|
||||||
->scheme is the URL scheme name, usually spelled out in uppercase. That's
|
|
||||||
"HTTP" or "FTP" etc. SSL versions of the protcol need its own Curl_handler
|
|
||||||
setup so HTTPS separate from HTTP.
|
|
||||||
|
|
||||||
->setup_connection is called to allow the protocol code to allocate protocol
|
|
||||||
specific data that then gets associated with that SessionHandle for the rest
|
|
||||||
of this transfer. It gets freed again at the end of the transfer. It will be
|
|
||||||
called before the 'connectdata' for the transfer has been selected/created.
|
|
||||||
Most protocols will allocate its private 'struct [PROTOCOL]' here and assign
|
|
||||||
SessionHandle->req.protop to point to it.
|
|
||||||
|
|
||||||
->connect_it allows a protocol to do some specific actions after the TCP
|
|
||||||
connect is done, that can still be considered part of the connection phase.
|
|
||||||
|
|
||||||
Some protocols will alter the connectdata->recv[] and connectdata->send[]
|
|
||||||
function pointers in this function.
|
|
||||||
|
|
||||||
->connecting is similarly a function that keeps getting called as long as the
|
|
||||||
protocol considers itself still in the connecting phase.
|
|
||||||
|
|
||||||
->do_it is the function called to issue the transfer request. What we call
|
|
||||||
the DO action internally. If the DO is not enough and things need to be kept
|
|
||||||
getting done for the entire DO sequence to complete, ->doing is then usually
|
|
||||||
also provided. Each protocol that needs to do multiple commands or similar
|
|
||||||
for do/doing need to implement their own state machines (see SCP, SFTP,
|
|
||||||
FTP). Some protocols (only FTP and only due to historical reasons) has a
|
|
||||||
separate piece of the DO state called DO_MORE.
|
|
||||||
|
|
||||||
->doing keeps getting called while issuing the transfer request command(s)
|
|
||||||
|
|
||||||
->done gets called when the transfer is complete and DONE. That's after the
|
|
||||||
main data has been transferred.
|
|
||||||
|
|
||||||
->do_more gets called during the DO_MORE state. The FTP protocol uses this
|
|
||||||
state when setting up the second connection.
|
|
||||||
|
|
||||||
->proto_getsock
|
|
||||||
->doing_getsock
|
|
||||||
->domore_getsock
|
|
||||||
->perform_getsock
|
|
||||||
Functions that return socket information. Which socket(s) to wait for which
|
|
||||||
action(s) during the particular multi state.
|
|
||||||
|
|
||||||
->disconnect is called immediately before the TCP connection is shutdown.
|
|
||||||
|
|
||||||
->readwrite gets called during transfer to allow the protocol to do extra
|
|
||||||
reads/writes
|
|
||||||
|
|
||||||
->defport is the default report TCP or UDP port this protocol uses
|
|
||||||
|
|
||||||
->protocol is one or more bits in the CURLPROTO_* set. The SSL versions have
|
|
||||||
their "base" protocol set and then the SSL variation. Like "HTTP|HTTPS".
|
|
||||||
|
|
||||||
->flags is a bitmask with additional information about the protocol that will
|
|
||||||
make it get treated differently by the generic engine:
|
|
||||||
|
|
||||||
PROTOPT_SSL - will make it connect and negotiate SSL
|
|
||||||
|
|
||||||
PROTOPT_DUAL - this protocol uses two connections
|
|
||||||
|
|
||||||
PROTOPT_CLOSEACTION - this protocol has actions to do before closing the
|
|
||||||
connection. This flag is no longer used by code, yet still set for a bunch
|
|
||||||
protocol handlers.
|
|
||||||
|
|
||||||
PROTOPT_DIRLOCK - "direction lock". The SSH protocols set this bit to
|
|
||||||
limit which "direction" of socket actions that the main engine will
|
|
||||||
concern itself about.
|
|
||||||
|
|
||||||
PROTOPT_NONETWORK - a protocol that doesn't use network (read file:)
|
|
||||||
|
|
||||||
PROTOPT_NEEDSPWD - this protocol needs a password and will use a default
|
|
||||||
one unless one is provided
|
|
||||||
|
|
||||||
PROTOPT_NOURLQUERY - this protocol can't handle a query part on the URL
|
|
||||||
(?foo=bar)
|
|
||||||
|
|
||||||
|
|
||||||
1.5 conncache
|
|
||||||
|
|
||||||
Is a hash table with connections for later re-use. Each SessionHandle has
|
|
||||||
a pointer to its connection cache. Each multi handle sets up a connection
|
|
||||||
cache that all added SessionHandles share by default.
|
|
||||||
|
|
||||||
|
|
||||||
1.6 Curl_share
|
|
||||||
|
|
||||||
The libcurl share API allocates a Curl_share struct, exposed to the external
|
|
||||||
API as "CURLSH *".
|
|
||||||
|
|
||||||
The idea is that the struct can have a set of own versions of caches and
|
|
||||||
pools and then by providing this struct in the CURLOPT_SHARE option, those
|
|
||||||
specific SessionHandles will use the caches/pools that this share handle
|
|
||||||
holds.
|
|
||||||
|
|
||||||
Then individual SessionHandle structs can be made to share specific things
|
|
||||||
that they otherwise wouldn't, such as cookies.
|
|
||||||
|
|
||||||
The Curl_share struct can currently hold cookies, DNS cache and the SSL
|
|
||||||
session cache.
|
|
||||||
|
|
||||||
|
|
||||||
1.7 CookieInfo
|
|
||||||
|
|
||||||
This is the main cookie struct. It holds all known cookies and related
|
|
||||||
information. Each SessionHandle has its own private CookieInfo even when
|
|
||||||
they are added to a multi handle. They can be made to share cookies by using
|
|
||||||
the share API.
|
|
||||||
@@ -18,36 +18,34 @@ accompany your license with an exception[2]. This particular problem was
|
|||||||
addressed when the Modified BSD license was created, which does not have the
|
addressed when the Modified BSD license was created, which does not have the
|
||||||
announcement clause that collides with GPL.
|
announcement clause that collides with GPL.
|
||||||
|
|
||||||
libcurl http://curl.haxx.se/docs/copyright.html
|
libcurl https://curl.haxx.se/docs/copyright.html
|
||||||
|
|
||||||
Uses an MIT (or Modified BSD)-style license that is as liberal as
|
Uses an MIT (or Modified BSD)-style license that is as liberal as
|
||||||
possible. Some of the source files that deal with KRB4 have Original
|
possible.
|
||||||
BSD-style announce-clause licenses. You may not distribute binaries
|
|
||||||
with krb4-enabled libcurl that also link with GPL-licensed code!
|
|
||||||
|
|
||||||
OpenSSL http://www.openssl.org/source/license.html
|
OpenSSL https://www.openssl.org/source/license.html
|
||||||
|
|
||||||
(May be used for SSL/TLS support) Uses an Original BSD-style license
|
(May be used for SSL/TLS support) Uses an Original BSD-style license
|
||||||
with an announcement clause that makes it "incompatible" with GPL. You
|
with an announcement clause that makes it "incompatible" with GPL. You
|
||||||
are not allowed to ship binaries that link with OpenSSL that includes
|
are not allowed to ship binaries that link with OpenSSL that includes
|
||||||
GPL code (unless that specific GPL code includes an exception for
|
GPL code (unless that specific GPL code includes an exception for
|
||||||
OpenSSL - a habit that is growing more and more common). If OpenSSL's
|
OpenSSL - a habit that is growing more and more common). If OpenSSL's
|
||||||
licensing is a problem for you, consider using GnuTLS or yassl
|
licensing is a problem for you, consider using another TLS library.
|
||||||
instead.
|
|
||||||
|
|
||||||
GnuTLS http://www.gnutls.org/
|
GnuTLS http://www.gnutls.org/
|
||||||
|
|
||||||
(May be used for SSL/TLS support) Uses the LGPL[3] license. If this is
|
(May be used for SSL/TLS support) Uses the LGPL[3] license. If this is
|
||||||
a problem for you, consider using OpenSSL instead. Also note that
|
a problem for you, consider using another TLS library. Also note that
|
||||||
GnuTLS itself depends on and uses other libs (libgcrypt and
|
GnuTLS itself depends on and uses other libs (libgcrypt and
|
||||||
libgpg-error) and they too are LGPL- or GPL-licensed.
|
libgpg-error) and they too are LGPL- or GPL-licensed.
|
||||||
|
|
||||||
yassl http://www.yassl.com/
|
WolfSSL https://www.wolfssl.com/
|
||||||
|
|
||||||
(May be used for SSL/TLS support) Uses the GPL[1] license. If this is
|
(May be used for SSL/TLS support) Uses the GPL[1] license or a
|
||||||
a problem for you, consider using OpenSSL or GnuTLS instead.
|
propietary license. If this is a problem for you, consider using
|
||||||
|
another TLS library.
|
||||||
|
|
||||||
NSS http://www.mozilla.org/projects/security/pki/nss/
|
NSS https://developer.mozilla.org/en-US/docs/Mozilla/Projects/NSS
|
||||||
|
|
||||||
(May be used for SSL/TLS support) Is covered by the MPL[4] license,
|
(May be used for SSL/TLS support) Is covered by the MPL[4] license,
|
||||||
the GPL[1] license and the LGPL[3] license. You may choose to license
|
the GPL[1] license and the LGPL[3] license. You may choose to license
|
||||||
@@ -59,47 +57,49 @@ axTLS http://axtls.sourceforge.net/
|
|||||||
|
|
||||||
(May be used for SSL/TLS support) Uses a Modified BSD-style license.
|
(May be used for SSL/TLS support) Uses a Modified BSD-style license.
|
||||||
|
|
||||||
c-ares http://daniel.haxx.se/projects/c-ares/license.html
|
mbedTLS https://tls.mbed.org/
|
||||||
|
|
||||||
|
(May be used for SSL/TLS support) Uses the GPL[1] license or a
|
||||||
|
propietary license. If this is a problem for you, consider using
|
||||||
|
another TLS library.
|
||||||
|
|
||||||
|
BoringSSL https://boringssl.googlesource.com/
|
||||||
|
|
||||||
|
(May be used for SSL/TLS support) As an OpenSSL fork, it has the same
|
||||||
|
license as that.
|
||||||
|
|
||||||
|
libressl http://www.libressl.org/
|
||||||
|
|
||||||
|
(May be used for SSL/TLS support) As an OpenSSL fork, it has the same
|
||||||
|
license as that.
|
||||||
|
|
||||||
|
c-ares https://daniel.haxx.se/projects/c-ares/license.html
|
||||||
|
|
||||||
(Used for asynchronous name resolves) Uses an MIT license that is very
|
(Used for asynchronous name resolves) Uses an MIT license that is very
|
||||||
liberal and imposes no restrictions on any other library or part you
|
liberal and imposes no restrictions on any other library or part you
|
||||||
may link with.
|
may link with.
|
||||||
|
|
||||||
zlib http://www.gzip.org/zlib/zlib_license.html
|
zlib http://www.zlib.net/zlib_license.html
|
||||||
|
|
||||||
(Used for compressed Transfer-Encoding support) Uses an MIT-style
|
(Used for compressed Transfer-Encoding support) Uses an MIT-style
|
||||||
license that shouldn't collide with any other library.
|
license that shouldn't collide with any other library.
|
||||||
|
|
||||||
krb4
|
|
||||||
|
|
||||||
While nothing in particular says that a Kerberos4 library must use any
|
|
||||||
particular license, the one I've tried and used successfully so far
|
|
||||||
(kth-krb4) is partly Original BSD-licensed with the announcement
|
|
||||||
clause. Some of the code in libcurl that is written to deal with
|
|
||||||
Kerberos4 is Modified BSD-licensed.
|
|
||||||
|
|
||||||
MIT Kerberos http://web.mit.edu/kerberos/www/dist/
|
MIT Kerberos http://web.mit.edu/kerberos/www/dist/
|
||||||
|
|
||||||
(May be used for GSS support) MIT licensed, that shouldn't collide
|
(May be used for GSS support) MIT licensed, that shouldn't collide
|
||||||
with any other parts.
|
with any other parts.
|
||||||
|
|
||||||
Heimdal http://www.pdc.kth.se/heimdal/
|
Heimdal http://www.h5l.org
|
||||||
|
|
||||||
(May be used for GSS support) Heimdal is Original BSD licensed with
|
(May be used for GSS support) Heimdal is Original BSD licensed with
|
||||||
the announcement clause.
|
the announcement clause.
|
||||||
|
|
||||||
GNU GSS http://www.gnu.org/software/gss/
|
GNU GSS https://www.gnu.org/software/gss/
|
||||||
|
|
||||||
(May be used for GSS support) GNU GSS is GPL licensed. Note that you
|
(May be used for GSS support) GNU GSS is GPL licensed. Note that you
|
||||||
may not distribute binary curl packages that uses this if you build
|
may not distribute binary curl packages that uses this if you build
|
||||||
curl to also link and use any Original BSD licensed libraries!
|
curl to also link and use any Original BSD licensed libraries!
|
||||||
|
|
||||||
fbopenssl
|
|
||||||
|
|
||||||
(Used for SPNEGO support) Unclear license. Based on its name, I assume
|
|
||||||
that it uses the OpenSSL license and thus shares the same issues as
|
|
||||||
described for OpenSSL above.
|
|
||||||
|
|
||||||
libidn http://josefsson.org/libidn/
|
libidn http://josefsson.org/libidn/
|
||||||
|
|
||||||
(Used for IDNA support) Uses the GNU Lesser General Public
|
(Used for IDNA support) Uses the GNU Lesser General Public
|
||||||
@@ -121,10 +121,10 @@ libssh2 http://www.libssh2.org/
|
|||||||
(Used for scp and sftp support) libssh2 uses a Modified BSD-style
|
(Used for scp and sftp support) libssh2 uses a Modified BSD-style
|
||||||
license.
|
license.
|
||||||
|
|
||||||
[1] = GPL - GNU General Public License: http://www.gnu.org/licenses/gpl.html
|
[1] = GPL - GNU General Public License: https://www.gnu.org/licenses/gpl.html
|
||||||
[2] = http://www.fsf.org/licenses/gpl-faq.html#GPLIncompatibleLibs details on
|
[2] = https://www.gnu.org/licenses/gpl-faq.html#GPLIncompatibleLibs details on
|
||||||
how to write such an exception to the GPL
|
how to write such an exception to the GPL
|
||||||
[3] = LGPL - GNU Lesser General Public License:
|
[3] = LGPL - GNU Lesser General Public License:
|
||||||
http://www.gnu.org/licenses/lgpl.html
|
https://www.gnu.org/licenses/lgpl.html
|
||||||
[4] = MPL - Mozilla Public License:
|
[4] = MPL - Mozilla Public License:
|
||||||
http://www.mozilla.org/MPL/
|
https://www.mozilla.org/MPL/
|
||||||
|
|||||||
@@ -14,6 +14,7 @@ MAIL ETIQUETTE
|
|||||||
1.5 Moderation of new posters
|
1.5 Moderation of new posters
|
||||||
1.6 Handling trolls and spam
|
1.6 Handling trolls and spam
|
||||||
1.7 How to unsubscribe
|
1.7 How to unsubscribe
|
||||||
|
1.8 I posted, now what?
|
||||||
|
|
||||||
2. Sending mail
|
2. Sending mail
|
||||||
2.1 Reply or New Mail
|
2.1 Reply or New Mail
|
||||||
@@ -32,7 +33,7 @@ MAIL ETIQUETTE
|
|||||||
1.1 Mailing Lists
|
1.1 Mailing Lists
|
||||||
|
|
||||||
The mailing lists we have are all listed and described at
|
The mailing lists we have are all listed and described at
|
||||||
http://curl.haxx.se/mail/
|
https://curl.haxx.se/mail/
|
||||||
|
|
||||||
Each mailing list is targeted to a specific set of users and subjects,
|
Each mailing list is targeted to a specific set of users and subjects,
|
||||||
please use the one or the ones that suit you the most.
|
please use the one or the ones that suit you the most.
|
||||||
@@ -125,6 +126,42 @@ MAIL ETIQUETTE
|
|||||||
You NEVER EVER email the mailing list requesting someone else to get you off
|
You NEVER EVER email the mailing list requesting someone else to get you off
|
||||||
the list.
|
the list.
|
||||||
|
|
||||||
|
1.8 I posted, now what?
|
||||||
|
|
||||||
|
If you aren't subscribed with the exact same email address that you used to
|
||||||
|
send the email, your post will just be silently discarded.
|
||||||
|
|
||||||
|
If you posted for the first time to the mailing list, you first need to wait
|
||||||
|
for an administrator to allow your email to go through. This normally
|
||||||
|
happens very quickly but in case we're asleep, you may have to wait a few
|
||||||
|
hours.
|
||||||
|
|
||||||
|
Once your email goes through it is sent out to several hundred or even
|
||||||
|
thousand recipients. Your email may cover an area that not that many people
|
||||||
|
know about or are interested in. Or possibly the person who knows about it
|
||||||
|
is on vacation or under a very heavy work load right now. You have to wait
|
||||||
|
for a response and you must not expect to get a response at all, but
|
||||||
|
hopefully you get an answer within a couple of days.
|
||||||
|
|
||||||
|
You do yourself and all of us a service when you include as many details as
|
||||||
|
possible already in your first email. Mention your operating system and
|
||||||
|
environment. Tell us which curl version you're using and tell us what you
|
||||||
|
did, what happened and what you expected would happen. Preferably, show us
|
||||||
|
what you did in details enough to allow others to help point out the problem
|
||||||
|
or repeat the same steps in their places.
|
||||||
|
|
||||||
|
Failing to include details will only delay responses and make people respond
|
||||||
|
and ask for the details and you have to send a follow-up email that includes
|
||||||
|
them.
|
||||||
|
|
||||||
|
Expect the responses to primarily help YOU debug the issue, or ask you
|
||||||
|
questions that can lead you or others towards a solution or explanation to
|
||||||
|
whatever you experience.
|
||||||
|
|
||||||
|
If you are a repeat offender to the guidelines outlined in this document,
|
||||||
|
chances are that people will ignore you at will and your chances to get
|
||||||
|
responses will greatly diminish.
|
||||||
|
|
||||||
|
|
||||||
2. Sending mail
|
2. Sending mail
|
||||||
|
|
||||||
@@ -193,7 +230,7 @@ MAIL ETIQUETTE
|
|||||||
Quote as little as possible. Just enough to provide the context you cannot
|
Quote as little as possible. Just enough to provide the context you cannot
|
||||||
leave out. A lengthy description can be found here:
|
leave out. A lengthy description can be found here:
|
||||||
|
|
||||||
http://www.netmeister.org/news/learn2quote.html
|
https://www.netmeister.org/news/learn2quote.html
|
||||||
|
|
||||||
2.7 Digest
|
2.7 Digest
|
||||||
|
|
||||||
|
|||||||
53
docs/MANUAL
53
docs/MANUAL
@@ -3,7 +3,7 @@ LATEST VERSION
|
|||||||
You always find news about what's going on as well as the latest versions
|
You always find news about what's going on as well as the latest versions
|
||||||
from the curl web pages, located at:
|
from the curl web pages, located at:
|
||||||
|
|
||||||
http://curl.haxx.se
|
https://curl.haxx.se
|
||||||
|
|
||||||
SIMPLE USAGE
|
SIMPLE USAGE
|
||||||
|
|
||||||
@@ -41,17 +41,28 @@ SIMPLE USAGE
|
|||||||
|
|
||||||
Get a file from an SSH server using SFTP:
|
Get a file from an SSH server using SFTP:
|
||||||
|
|
||||||
curl -u username sftp://shell.example.com/etc/issue
|
curl -u username sftp://example.com/etc/issue
|
||||||
|
|
||||||
Get a file from an SSH server using SCP using a private key to authenticate:
|
Get a file from an SSH server using SCP using a private key
|
||||||
|
(not password-protected) to authenticate:
|
||||||
|
|
||||||
curl -u username: --key ~/.ssh/id_dsa --pubkey ~/.ssh/id_dsa.pub \
|
curl -u username: --key ~/.ssh/id_rsa \
|
||||||
scp://shell.example.com/~/personal.txt
|
scp://example.com/~/file.txt
|
||||||
|
|
||||||
|
Get a file from an SSH server using SCP using a private key
|
||||||
|
(password-protected) to authenticate:
|
||||||
|
|
||||||
|
curl -u username: --key ~/.ssh/id_rsa --pass private_key_password \
|
||||||
|
scp://example.com/~/file.txt
|
||||||
|
|
||||||
Get the main page from an IPv6 web server:
|
Get the main page from an IPv6 web server:
|
||||||
|
|
||||||
curl "http://[2001:1890:1112:1::20]/"
|
curl "http://[2001:1890:1112:1::20]/"
|
||||||
|
|
||||||
|
Get a file from an SMB server:
|
||||||
|
|
||||||
|
curl -u "domain\username:passwd" smb://server.example.com/share/file.txt
|
||||||
|
|
||||||
DOWNLOAD TO A FILE
|
DOWNLOAD TO A FILE
|
||||||
|
|
||||||
Get a web page and store in a local file with a specific name:
|
Get a web page and store in a local file with a specific name:
|
||||||
@@ -91,10 +102,13 @@ USING PASSWORDS
|
|||||||
|
|
||||||
SFTP / SCP
|
SFTP / SCP
|
||||||
|
|
||||||
This is similar to FTP, but you can specify a private key to use instead of
|
This is similar to FTP, but you can use the --key option to specify a
|
||||||
a password. Note that the private key may itself be protected by a password
|
private key to use instead of a password. Note that the private key may
|
||||||
that is unrelated to the login password of the remote system. If you
|
itself be protected by a password that is unrelated to the login password
|
||||||
provide a private key file you must also provide a public key file.
|
of the remote system; this password is specified using the --pass option.
|
||||||
|
Typically, curl will automatically extract the public key from the private
|
||||||
|
key file, but in cases where curl does not have the proper library support,
|
||||||
|
a matching public key file must be specified using the --pubkey option.
|
||||||
|
|
||||||
HTTP
|
HTTP
|
||||||
|
|
||||||
@@ -108,10 +122,10 @@ USING PASSWORDS
|
|||||||
curl -u name:passwd http://machine.domain/full/path/to/file
|
curl -u name:passwd http://machine.domain/full/path/to/file
|
||||||
|
|
||||||
HTTP offers many different methods of authentication and curl supports
|
HTTP offers many different methods of authentication and curl supports
|
||||||
several: Basic, Digest, NTLM and Negotiate. Without telling which method to
|
several: Basic, Digest, NTLM and Negotiate (SPNEGO). Without telling which
|
||||||
use, curl defaults to Basic. You can also ask curl to pick the most secure
|
method to use, curl defaults to Basic. You can also ask curl to pick the
|
||||||
ones out of the ones that the server accepts for the given URL, by using
|
most secure ones out of the ones that the server accepts for the given URL,
|
||||||
--anyauth.
|
by using --anyauth.
|
||||||
|
|
||||||
NOTE! According to the URL specification, HTTP URLs can not contain a user
|
NOTE! According to the URL specification, HTTP URLs can not contain a user
|
||||||
and password, so that style will not work when using curl via a proxy, even
|
and password, so that style will not work when using curl via a proxy, even
|
||||||
@@ -218,6 +232,11 @@ UPLOADING
|
|||||||
|
|
||||||
curl --proxytunnel -x proxy:port -T localfile ftp.upload.com
|
curl --proxytunnel -x proxy:port -T localfile ftp.upload.com
|
||||||
|
|
||||||
|
SMB / SMBS
|
||||||
|
|
||||||
|
curl -T file.txt -u "domain\username:passwd"
|
||||||
|
smb://server.example.com/share/
|
||||||
|
|
||||||
HTTP
|
HTTP
|
||||||
|
|
||||||
Upload all data on stdin to a specified HTTP site:
|
Upload all data on stdin to a specified HTTP site:
|
||||||
@@ -451,8 +470,8 @@ COOKIES
|
|||||||
stored cookies which match the request as it follows the location. The
|
stored cookies which match the request as it follows the location. The
|
||||||
file "empty.txt" may be a nonexistent file.
|
file "empty.txt" may be a nonexistent file.
|
||||||
|
|
||||||
Alas, to both read and write cookies from a netscape cookie file, you can
|
To read and write cookies from a netscape cookie file, you can set both -b
|
||||||
set both -b and -c to use the same file:
|
and -c to use the same file:
|
||||||
|
|
||||||
curl -b cookies.txt -c cookies.txt www.example.com
|
curl -b cookies.txt -c cookies.txt www.example.com
|
||||||
|
|
||||||
@@ -805,7 +824,7 @@ LDAP
|
|||||||
Working with LDAP URLs":
|
Working with LDAP URLs":
|
||||||
http://developer.netscape.com/docs/manuals/dirsdk/csdk30/url.htm
|
http://developer.netscape.com/docs/manuals/dirsdk/csdk30/url.htm
|
||||||
|
|
||||||
RFC 2255, "The LDAP URL Format" http://curl.haxx.se/rfc/rfc2255.txt
|
RFC 2255, "The LDAP URL Format" https://curl.haxx.se/rfc/rfc2255.txt
|
||||||
|
|
||||||
To show you an example, this is how I can get all people from my local LDAP
|
To show you an example, this is how I can get all people from my local LDAP
|
||||||
server that has a certain sub-domain in their email address:
|
server that has a certain sub-domain in their email address:
|
||||||
@@ -992,7 +1011,7 @@ MAILING LISTS
|
|||||||
|
|
||||||
For your convenience, we have several open mailing lists to discuss curl,
|
For your convenience, we have several open mailing lists to discuss curl,
|
||||||
its development and things relevant to this. Get all info at
|
its development and things relevant to this. Get all info at
|
||||||
http://curl.haxx.se/mail/. Some of the lists available are:
|
https://curl.haxx.se/mail/. Some of the lists available are:
|
||||||
|
|
||||||
curl-users
|
curl-users
|
||||||
|
|
||||||
|
|||||||
@@ -5,11 +5,11 @@
|
|||||||
# | (__| |_| | _ <| |___
|
# | (__| |_| | _ <| |___
|
||||||
# \___|\___/|_| \_\_____|
|
# \___|\___/|_| \_\_____|
|
||||||
#
|
#
|
||||||
# Copyright (C) 1998 - 2014, Daniel Stenberg, <daniel@haxx.se>, et al.
|
# Copyright (C) 1998 - 2016, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
#
|
#
|
||||||
# This software is licensed as described in the file COPYING, which
|
# This software is licensed as described in the file COPYING, which
|
||||||
# you should have received as part of this distribution. The terms
|
# you should have received as part of this distribution. The terms
|
||||||
# are also available at http://curl.haxx.se/docs/copyright.html.
|
# are also available at https://curl.haxx.se/docs/copyright.html.
|
||||||
#
|
#
|
||||||
# You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
# You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
||||||
# copies of the Software, and permit persons to whom the Software is
|
# copies of the Software, and permit persons to whom the Software is
|
||||||
@@ -33,22 +33,22 @@ SUBDIRS = examples libcurl
|
|||||||
|
|
||||||
CLEANFILES = $(GENHTMLPAGES) $(PDFPAGES)
|
CLEANFILES = $(GENHTMLPAGES) $(PDFPAGES)
|
||||||
|
|
||||||
EXTRA_DIST = MANUAL BUGS CONTRIBUTE FAQ FEATURES INTERNALS SSLCERTS \
|
EXTRA_DIST = MANUAL BUGS CONTRIBUTE FAQ FEATURES INTERNALS SSLCERTS \
|
||||||
README.win32 RESOURCES TODO TheArtOfHttpScripting THANKS VERSIONS \
|
README.win32 RESOURCES TODO TheArtOfHttpScripting THANKS VERSIONS \
|
||||||
KNOWN_BUGS BINDINGS $(man_MANS) $(HTMLPAGES) HISTORY INSTALL \
|
KNOWN_BUGS BINDINGS $(man_MANS) $(HTMLPAGES) HISTORY INSTALL \
|
||||||
$(PDFPAGES) LICENSE-MIXING README.netware DISTRO-DILEMMA INSTALL.devcpp \
|
$(PDFPAGES) LICENSE-MIXING README.netware INSTALL.devcpp \
|
||||||
MAIL-ETIQUETTE HTTP-COOKIES LIBCURL-STRUCTS SECURITY RELEASE-PROCEDURE \
|
MAIL-ETIQUETTE HTTP-COOKIES SECURITY RELEASE-PROCEDURE SSL-PROBLEMS \
|
||||||
SSL-PROBLEMS
|
HTTP2.md ROADMAP.md CODE_OF_CONDUCT.md CODE_STYLE.md
|
||||||
|
|
||||||
MAN2HTML= roffit < $< >$@
|
MAN2HTML= roffit < $< >$@
|
||||||
|
|
||||||
SUFFIXES = .1 .html .pdf
|
SUFFIXES = .1 .html .pdf
|
||||||
|
|
||||||
html: $(HTMLPAGES)
|
html: $(HTMLPAGES)
|
||||||
cd libcurl; make html
|
cd libcurl && make html
|
||||||
|
|
||||||
pdf: $(PDFPAGES)
|
pdf: $(PDFPAGES)
|
||||||
cd libcurl; make pdf
|
cd libcurl && make pdf
|
||||||
|
|
||||||
.1.html:
|
.1.html:
|
||||||
$(MAN2HTML)
|
$(MAN2HTML)
|
||||||
|
|||||||
@@ -1,21 +1,16 @@
|
|||||||
_ _ ____ _
|
|
||||||
___| | | | _ \| |
|
|
||||||
/ __| | | | |_) | |
|
|
||||||
| (__| |_| | _ <| |___
|
|
||||||
\___|\___/|_| \_\_____|
|
|
||||||
|
|
||||||
curl release procedure - how to do a release
|
curl release procedure - how to do a release
|
||||||
============================================
|
============================================
|
||||||
|
|
||||||
[in the source code repo]
|
in the source code repo
|
||||||
|
-----------------------
|
||||||
|
|
||||||
- edit RELEASE-NOTES to be accurate
|
- edit `RELEASE-NOTES` to be accurate
|
||||||
|
|
||||||
- update docs/THANKS
|
- update `docs/THANKS`
|
||||||
|
|
||||||
- make sure all relevant changes are committed on the master branch
|
- make sure all relevant changes are committed on the master branch
|
||||||
|
|
||||||
- tag the git repo in this style: 'git tag -a curl-7_34_0'. -a annotates the
|
- tag the git repo in this style: `git tag -a curl-7_34_0`. -a annotates the
|
||||||
tag and we use underscores instead of dots in the version number.
|
tag and we use underscores instead of dots in the version number.
|
||||||
|
|
||||||
- run "./maketgz 7.34.0" to build the release tarballs. It is important that
|
- run "./maketgz 7.34.0" to build the release tarballs. It is important that
|
||||||
@@ -29,11 +24,14 @@ curl release procedure - how to do a release
|
|||||||
|
|
||||||
- upload the 8 resulting files to the primary download directory
|
- upload the 8 resulting files to the primary download directory
|
||||||
|
|
||||||
[data in the curl-www repo]
|
in the curl-www repo
|
||||||
|
--------------------
|
||||||
|
|
||||||
- edit Makefile (version number and date),
|
- edit `Makefile` (version number and date),
|
||||||
_newslog.html (announce the new release) and
|
|
||||||
_changes.html (insert changes+bugfixes from RELEASE-NOTES)
|
- edit `_newslog.html` (announce the new release) and
|
||||||
|
|
||||||
|
- edit `_changes.html` (insert changes+bugfixes from RELEASE-NOTES)
|
||||||
|
|
||||||
- commit all local changes
|
- commit all local changes
|
||||||
|
|
||||||
@@ -43,11 +41,47 @@ curl release procedure - how to do a release
|
|||||||
|
|
||||||
(the web site then updates its contents automatically)
|
(the web site then updates its contents automatically)
|
||||||
|
|
||||||
[inform]
|
inform
|
||||||
|
------
|
||||||
|
|
||||||
- send an email to curl-users, curl-announce and curl-library. Insert the
|
- send an email to curl-users, curl-announce and curl-library. Insert the
|
||||||
RELEASE-NOTES into the mail.
|
RELEASE-NOTES into the mail.
|
||||||
|
|
||||||
[celebrate]
|
celebrate
|
||||||
|
---------
|
||||||
|
|
||||||
- suitable beverage intake is encouraged for the festivities
|
- suitable beverage intake is encouraged for the festivities
|
||||||
|
|
||||||
|
curl release scheduling
|
||||||
|
=======================
|
||||||
|
|
||||||
|
Basics
|
||||||
|
------
|
||||||
|
|
||||||
|
We do releases every 8 weeks on Wednesdays. If critical problems arise, we can
|
||||||
|
insert releases outside of the schedule or we can move the release date - but
|
||||||
|
this is very rare.
|
||||||
|
|
||||||
|
Each 8 week release cycle is split in two 4-week periods.
|
||||||
|
|
||||||
|
- During the first 4 weeks after a release, we allow new features and changes
|
||||||
|
to curl and libcurl. If we accept any such changes, we bump the minor number
|
||||||
|
used for the next release.
|
||||||
|
|
||||||
|
- During the second 4-week period we do not merge any features or changes, we
|
||||||
|
then only focus on fixing bugs and polishing things to make a solid coming
|
||||||
|
release.
|
||||||
|
|
||||||
|
Coming dates
|
||||||
|
------------
|
||||||
|
|
||||||
|
Based on the description above, here are some planned release dates (at the
|
||||||
|
time of this writing):
|
||||||
|
|
||||||
|
- October 7, 2015 (version 7.45.0)
|
||||||
|
- December 2, 2015
|
||||||
|
- January 27, 2016
|
||||||
|
- March 23, 2016
|
||||||
|
- May 18, 2016
|
||||||
|
- July 13, 2016
|
||||||
|
- September 7, 2016
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ This document lists documents and standards used by curl.
|
|||||||
|
|
||||||
RFC 2109 - HTTP State Management Mechanism (cookie stuff)
|
RFC 2109 - HTTP State Management Mechanism (cookie stuff)
|
||||||
- Also, read Netscape's specification at
|
- Also, read Netscape's specification at
|
||||||
http://curl.haxx.se/rfc/cookie_spec.html
|
https://curl.haxx.se/rfc/cookie_spec.html
|
||||||
|
|
||||||
RFC 2183 - The Content-Disposition Header Field
|
RFC 2183 - The Content-Disposition Header Field
|
||||||
|
|
||||||
|
|||||||
133
docs/ROADMAP.md
Normal file
133
docs/ROADMAP.md
Normal file
@@ -0,0 +1,133 @@
|
|||||||
|
curl the next few years - perhaps
|
||||||
|
=================================
|
||||||
|
|
||||||
|
Roadmap of things Daniel Stenberg and Steve Holme want to work on next. It is
|
||||||
|
intended to serve as a guideline for others for information, feedback and
|
||||||
|
possible participation.
|
||||||
|
|
||||||
|
HTTP/2
|
||||||
|
------
|
||||||
|
|
||||||
|
- test suite
|
||||||
|
|
||||||
|
Base this on existing nghttp2 server to start with to make functional
|
||||||
|
tests. Later on we can adopt that code or work with nghttp2 to provide ways
|
||||||
|
to have the http2 server respond with broken responses to make sure we deal
|
||||||
|
with that nicely as well.
|
||||||
|
|
||||||
|
To decide: if we need to bundle parts of the nghttp2 stuff that probably
|
||||||
|
won't be shipped by many distros.
|
||||||
|
|
||||||
|
- provide option for HTTP/2 "prior knowledge" over clear text
|
||||||
|
|
||||||
|
As it would avoid the roundtrip-heavy Upgrade: procedures when you _know_
|
||||||
|
it speaks HTTP/2.
|
||||||
|
|
||||||
|
HTTP cookies
|
||||||
|
------------
|
||||||
|
|
||||||
|
Two cookie drafts have been adopted by the httpwg in IETF and we should
|
||||||
|
support them as the popular browsers will as well:
|
||||||
|
|
||||||
|
[Deprecate modification of 'secure' cookies from non-secure
|
||||||
|
origins](https://tools.ietf.org/html/draft-ietf-httpbis-cookie-alone-00)
|
||||||
|
|
||||||
|
[Cookie Prefixes](https://tools.ietf.org/html/draft-ietf-httpbis-cookie-prefixes-00)
|
||||||
|
|
||||||
|
[Firefox bug report about secure cookies](https://bugzilla.mozilla.org/show_bug.cgi?id=976073)
|
||||||
|
|
||||||
|
SRV records
|
||||||
|
-----------
|
||||||
|
|
||||||
|
How to find services for specific domains/hosts.
|
||||||
|
|
||||||
|
HTTPS to proxy
|
||||||
|
--------------
|
||||||
|
|
||||||
|
To avoid network traffic to/from the proxy getting snooped on. There's a git
|
||||||
|
branch in the public git repository for this that we need to make sure works
|
||||||
|
for all TLS backends and then merge!
|
||||||
|
|
||||||
|
curl_formadd()
|
||||||
|
--------------
|
||||||
|
|
||||||
|
make sure there's an easy handle passed in to `curl_formadd()`,
|
||||||
|
`curl_formget()` and `curl_formfree()` by adding replacement functions and
|
||||||
|
deprecating the old ones to allow custom mallocs and more
|
||||||
|
|
||||||
|
third-party SASL
|
||||||
|
----------------
|
||||||
|
|
||||||
|
add support for third-party SASL libraries such as Cyrus SASL - may need to
|
||||||
|
move existing native and SSPI based authentication into vsasl folder after
|
||||||
|
reworking HTTP and SASL code
|
||||||
|
|
||||||
|
SASL authentication in LDAP
|
||||||
|
---------------------------
|
||||||
|
|
||||||
|
...
|
||||||
|
|
||||||
|
Simplify the SMTP email
|
||||||
|
-----------------------
|
||||||
|
|
||||||
|
Simplify the SMTP email interface so that programmers don't have to
|
||||||
|
construct the body of an email that contains all the headers, alternative
|
||||||
|
content, images and attachments - maintain raw interface so that
|
||||||
|
programmers that want to do this can
|
||||||
|
|
||||||
|
email capabilities
|
||||||
|
------------------
|
||||||
|
|
||||||
|
Allow the email protocols to return the capabilities before
|
||||||
|
authenticating. This will allow an application to decide on the best
|
||||||
|
authentication mechanism
|
||||||
|
|
||||||
|
Win32 pthreads
|
||||||
|
--------------
|
||||||
|
|
||||||
|
Allow Windows threading model to be replaced by Win32 pthreads port
|
||||||
|
|
||||||
|
dynamic buffer size
|
||||||
|
-------------------
|
||||||
|
|
||||||
|
Implement a dynamic buffer size to allow SFTP to use much larger buffers and
|
||||||
|
possibly allow the size to be customizable by applications. Use less memory
|
||||||
|
when handles are not in use?
|
||||||
|
|
||||||
|
New stuff - curl
|
||||||
|
----------------
|
||||||
|
|
||||||
|
1. Embed a language interpreter (lua?). For that middle ground where curl
|
||||||
|
isn’t enough and a libcurl binding feels “too much”. Build-time conditional
|
||||||
|
of course.
|
||||||
|
|
||||||
|
2. Simplify the SMTP command line so that the headers and multi-part content
|
||||||
|
don't have to be constructed before calling curl
|
||||||
|
|
||||||
|
Improve
|
||||||
|
-------
|
||||||
|
|
||||||
|
1. build for windows (considered hard by many users)
|
||||||
|
|
||||||
|
2. curl -h output (considered overwhelming to users)
|
||||||
|
|
||||||
|
3. we have > 170 command line options, is there a way to redo things to
|
||||||
|
simplify or improve the situation as we are likely to keep adding
|
||||||
|
features/options in the future too
|
||||||
|
|
||||||
|
4. docs (considered "bad" by users but how do we make it better?)
|
||||||
|
|
||||||
|
- split up curl.1
|
||||||
|
|
||||||
|
5. authentication framework (consider merging HTTP and SASL authentication to
|
||||||
|
give one API for protocols to call)
|
||||||
|
|
||||||
|
6. Perform some of the clean up from the TODO document, removing old
|
||||||
|
definitions and such like that are currently earmarked to be removed years
|
||||||
|
ago
|
||||||
|
|
||||||
|
Remove
|
||||||
|
------
|
||||||
|
|
||||||
|
1. makefile.vc files as there is no point in maintaining two sets of Windows
|
||||||
|
makefiles. Note: These are currently being used by the Windows autobuilds
|
||||||
@@ -4,21 +4,24 @@
|
|||||||
| (__| |_| | _ <| |___
|
| (__| |_| | _ <| |___
|
||||||
\___|\___/|_| \_\_____|
|
\___|\___/|_| \_\_____|
|
||||||
|
|
||||||
CURL SECURITY FOR DEVELOPERS
|
curl security for developers
|
||||||
|
============================
|
||||||
|
|
||||||
This document is intended to provide guidance to curl developers on how
|
This document is intended to provide guidance to curl developers on how
|
||||||
security vulnerabilities should be handled.
|
security vulnerabilities should be handled.
|
||||||
|
|
||||||
PUBLISHING INFORMATION
|
Publishing Information
|
||||||
|
----------------------
|
||||||
|
|
||||||
All known and public curl or libcurl related vulnerabilities are listed at
|
All known and public curl or libcurl related vulnerabilities are listed on
|
||||||
http://curl.haxx.se/docs/security.html
|
[the curl web site security page](https://curl.haxx.se/docs/security.html).
|
||||||
|
|
||||||
Security vulnerabilities should not be entered in the project's public bug
|
Security vulnerabilities should not be entered in the project's public bug
|
||||||
tracker unless the necessary configuration is in place to limit access to the
|
tracker unless the necessary configuration is in place to limit access to the
|
||||||
issue to only the reporter and the project's security team.
|
issue to only the reporter and the project's security team.
|
||||||
|
|
||||||
VULNERABILITY HANDLING
|
Vulnerability Handling
|
||||||
|
----------------------
|
||||||
|
|
||||||
The typical process for handling a new security vulnerability is as follows.
|
The typical process for handling a new security vulnerability is as follows.
|
||||||
|
|
||||||
@@ -31,7 +34,7 @@ any reference to the security nature of the commit if done prior to the public
|
|||||||
announcement.
|
announcement.
|
||||||
|
|
||||||
- The person discovering the issue, the reporter, reports the vulnerability
|
- The person discovering the issue, the reporter, reports the vulnerability
|
||||||
privately to curl-security@haxx.se. That's an email alias that reaches a
|
privately to `curl-security@haxx.se`. That's an email alias that reaches a
|
||||||
handful of selected and trusted people.
|
handful of selected and trusted people.
|
||||||
|
|
||||||
- Messages that do not relate to the reporting or managing of an undisclosed
|
- Messages that do not relate to the reporting or managing of an undisclosed
|
||||||
@@ -63,7 +66,7 @@ announcement.
|
|||||||
workarounds, when the release is out and make sure to credit all
|
workarounds, when the release is out and make sure to credit all
|
||||||
contributors properly.
|
contributors properly.
|
||||||
|
|
||||||
- Request a CVE number from distros@openwall.org[1] when also informing and
|
- Request a CVE number from distros@openwall[1] when also informing and
|
||||||
preparing them for the upcoming public security vulnerability announcement -
|
preparing them for the upcoming public security vulnerability announcement -
|
||||||
attach the advisory draft for information. Note that 'distros' won't accept
|
attach the advisory draft for information. Note that 'distros' won't accept
|
||||||
an embargo longer than 19 days.
|
an embargo longer than 19 days.
|
||||||
@@ -89,3 +92,16 @@ announcement.
|
|||||||
mentioned.
|
mentioned.
|
||||||
|
|
||||||
[1] = http://oss-security.openwall.org/wiki/mailing-lists/distros
|
[1] = http://oss-security.openwall.org/wiki/mailing-lists/distros
|
||||||
|
|
||||||
|
CURL-SECURITY (at haxx dot se)
|
||||||
|
------------------------------
|
||||||
|
|
||||||
|
Who is on this list? There are a couple of criteria you must meet, and then we
|
||||||
|
might ask you to join the list or you can ask to join it. It really isn't very
|
||||||
|
formal. We basically only require that you have a long-term presence in the
|
||||||
|
curl project and you have shown an understanding for the project and its way
|
||||||
|
of working. You must've been around for a good while and you should have no
|
||||||
|
plans in vanishing in the near future.
|
||||||
|
|
||||||
|
We do not make the list of partipants public mostly because it tends to vary
|
||||||
|
somewhat over time and a list somewhere will only risk getting outdated.
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ CA bundle missing intermediate certificates
|
|||||||
problems if your CA cert does not have the certificates for the
|
problems if your CA cert does not have the certificates for the
|
||||||
intermediates in the whole trust chain.
|
intermediates in the whole trust chain.
|
||||||
|
|
||||||
SSL version
|
Protocol version
|
||||||
|
|
||||||
Some broken servers fail to support the protocol negotiation properly that
|
Some broken servers fail to support the protocol negotiation properly that
|
||||||
SSL servers are supposed to handle. This may cause the connection to fail
|
SSL servers are supposed to handle. This may cause the connection to fail
|
||||||
@@ -36,7 +36,9 @@ SSL version
|
|||||||
An additional complication can be that modern SSL libraries sometimes are
|
An additional complication can be that modern SSL libraries sometimes are
|
||||||
built with support for older SSL and TLS versions disabled!
|
built with support for older SSL and TLS versions disabled!
|
||||||
|
|
||||||
SSL ciphers
|
All versions of SSL are considered insecure and should be avoided. Use TLS.
|
||||||
|
|
||||||
|
Ciphers
|
||||||
|
|
||||||
Clients give servers a list of ciphers to select from. If the list doesn't
|
Clients give servers a list of ciphers to select from. If the list doesn't
|
||||||
include any ciphers the server wants/can use, the connection handshake
|
include any ciphers the server wants/can use, the connection handshake
|
||||||
@@ -51,9 +53,13 @@ SSL ciphers
|
|||||||
Note that these weak ciphers are identified as flawed. For example, this
|
Note that these weak ciphers are identified as flawed. For example, this
|
||||||
includes symmetric ciphers with less than 128 bit keys and RC4.
|
includes symmetric ciphers with less than 128 bit keys and RC4.
|
||||||
|
|
||||||
|
WinSSL in Windows XP is not able to connect to servers that no longer
|
||||||
|
support the legacy handshakes and algorithms used by those versions, so we
|
||||||
|
advice against building curl to use WinSSL on really old Windows versions.
|
||||||
|
|
||||||
References:
|
References:
|
||||||
|
|
||||||
http://tools.ietf.org/html/draft-popov-tls-prohibiting-rc4-01
|
https://tools.ietf.org/html/draft-popov-tls-prohibiting-rc4-01
|
||||||
|
|
||||||
Allow BEAST
|
Allow BEAST
|
||||||
|
|
||||||
@@ -65,3 +71,17 @@ Allow BEAST
|
|||||||
introduced. Exactly as it sounds, it re-introduces the BEAST vulnerability
|
introduced. Exactly as it sounds, it re-introduces the BEAST vulnerability
|
||||||
but on the other hand it allows curl to connect to that kind of strange
|
but on the other hand it allows curl to connect to that kind of strange
|
||||||
servers.
|
servers.
|
||||||
|
|
||||||
|
Disabling certificate revocation checks
|
||||||
|
|
||||||
|
Some SSL backends may do certificate revocation checks (CRL, OCSP, etc)
|
||||||
|
depending on the OS or build configuration. The --ssl-no-revoke option was
|
||||||
|
introduced in 7.44.0 to disable revocation checking but currently is only
|
||||||
|
supported for WinSSL (the native Windows SSL library), with an exception in
|
||||||
|
the case of Windows' Untrusted Publishers blacklist which it seems can't be
|
||||||
|
bypassed. This option may have broader support to accommodate other SSL
|
||||||
|
backends in the future.
|
||||||
|
|
||||||
|
References:
|
||||||
|
|
||||||
|
https://curl.haxx.se/docs/ssl-compared.html
|
||||||
|
|||||||
161
docs/SSLCERTS
161
docs/SSLCERTS
@@ -1,77 +1,110 @@
|
|||||||
Peer SSL Certificate Verification
|
SSL Certificate Verification
|
||||||
=================================
|
============================
|
||||||
|
|
||||||
(NOTE: If libcurl was built with Schannel or Secure Transport support, then
|
SSL is TLS
|
||||||
this does not apply to you. Scroll down for details on how the OS-native
|
----------
|
||||||
engines handle SSL certificates. If you're not sure, then run "curl -V" and
|
|
||||||
read the results. If the version string says "WinSSL" in it, then it was built
|
SSL is the old name. It is called TLS these days.
|
||||||
with Schannel support.)
|
|
||||||
|
|
||||||
|
Native SSL
|
||||||
|
----------
|
||||||
|
|
||||||
|
If libcurl was built with Schannel or Secure Transport support (the native SSL
|
||||||
|
libraries included in Windows and Mac OS X), then this does not apply to
|
||||||
|
you. Scroll down for details on how the OS-native engines handle SSL
|
||||||
|
certificates. If you're not sure, then run "curl -V" and read the results. If
|
||||||
|
the version string says "WinSSL" in it, then it was built with Schannel
|
||||||
|
support.
|
||||||
|
|
||||||
|
It is about trust
|
||||||
|
-----------------
|
||||||
|
|
||||||
|
This system is about trust. In your local CA certificate store you have certs
|
||||||
|
from *trusted* Certificate Authorities that you then can use to verify that the
|
||||||
|
server certificates you see are valid. They're signed by one of the CAs you
|
||||||
|
trust.
|
||||||
|
|
||||||
|
Which CAs do you trust? You can decide to trust the same set of companies your
|
||||||
|
operating system trusts, or the set one of the known browsers trust. That's
|
||||||
|
basically trust via someone else you trust. You should just be aware that
|
||||||
|
modern operating systems and browsers are setup to trust *hundreds* of
|
||||||
|
companies and recent years several such CAs have been found untrustworthy.
|
||||||
|
|
||||||
|
Certificate Verification
|
||||||
|
------------------------
|
||||||
|
|
||||||
libcurl performs peer SSL certificate verification by default. This is done
|
libcurl performs peer SSL certificate verification by default. This is done
|
||||||
by using CA cert bundle that the SSL library can use to make sure the peer's
|
by using a CA certificate store that the SSL library can use to make sure the
|
||||||
server certificate is valid.
|
peer's server certificate is valid.
|
||||||
|
|
||||||
If you communicate with HTTPS or FTPS servers using certificates that are
|
If you communicate with HTTPS, FTPS or other TLS-using servers using
|
||||||
signed by CAs present in the bundle, you can be sure that the remote server
|
certificates that are signed by CAs present in the store, you can be sure
|
||||||
really is the one it claims to be.
|
that the remote server really is the one it claims to be.
|
||||||
|
|
||||||
Until 7.18.0, curl bundled a severely outdated ca bundle file that was
|
|
||||||
installed by default. These days, the curl archives include no ca certs at
|
|
||||||
all. You need to get them elsewhere. See below for example.
|
|
||||||
|
|
||||||
If the remote server uses a self-signed certificate, if you don't install a CA
|
If the remote server uses a self-signed certificate, if you don't install a CA
|
||||||
cert bundle, if the server uses a certificate signed by a CA that isn't
|
cert store, if the server uses a certificate signed by a CA that isn't
|
||||||
included in the bundle you use or if the remote host is an impostor
|
included in the store you use or if the remote host is an impostor
|
||||||
impersonating your favorite site, and you want to transfer files from this
|
impersonating your favorite site, and you want to transfer files from this
|
||||||
server, do one of the following:
|
server, do one of the following:
|
||||||
|
|
||||||
1. Tell libcurl to *not* verify the peer. With libcurl you disable this with
|
1. Tell libcurl to *not* verify the peer. With libcurl you disable this with
|
||||||
curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, FALSE);
|
`curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, FALSE);`
|
||||||
|
|
||||||
With the curl command line tool, you disable this with -k/--insecure.
|
With the curl command line tool, you disable this with -k/--insecure.
|
||||||
|
|
||||||
2. Get a CA certificate that can verify the remote server and use the proper
|
2. Get a CA certificate that can verify the remote server and use the proper
|
||||||
option to point out this CA cert for verification when connecting. For
|
option to point out this CA cert for verification when connecting. For
|
||||||
libcurl hackers: curl_easy_setopt(curl, CURLOPT_CAPATH, capath);
|
libcurl hackers: `curl_easy_setopt(curl, CURLOPT_CAPATH, capath);`
|
||||||
|
|
||||||
With the curl command line tool: --cacert [file]
|
With the curl command line tool: --cacert [file]
|
||||||
|
|
||||||
3. Add the CA cert for your server to the existing default CA cert bundle.
|
3. Add the CA cert for your server to the existing default CA certificate
|
||||||
The default path of the CA bundle used can be changed by running configure
|
store. The default CA certificate store can changed at compile time with the
|
||||||
with the --with-ca-bundle option pointing out the path of your choice.
|
following configure options:
|
||||||
|
|
||||||
To do this, you need to get the CA cert for your server in PEM format and
|
--with-ca-bundle=FILE: use the specified file as CA certificate store. CA
|
||||||
then append that to your CA cert bundle.
|
certificates need to be concatenated in PEM format into this file.
|
||||||
|
|
||||||
|
--with-ca-path=PATH: use the specified path as CA certificate store. CA
|
||||||
|
certificates need to be stored as individual PEM files in this directory.
|
||||||
|
You may need to run c_rehash after adding files there.
|
||||||
|
|
||||||
|
If neither of the two options is specified, configure will try to auto-detect
|
||||||
|
a setting. It's also possible to explicitly not hardcode any default store
|
||||||
|
but rely on the built in default the crypto library may provide instead.
|
||||||
|
You can achieve that by passing both --without-ca-bundle and
|
||||||
|
--without-ca-path to the configure script.
|
||||||
|
|
||||||
If you use Internet Explorer, this is one way to get extract the CA cert
|
If you use Internet Explorer, this is one way to get extract the CA cert
|
||||||
for a particular server:
|
for a particular server:
|
||||||
|
|
||||||
o View the certificate by double-clicking the padlock
|
- View the certificate by double-clicking the padlock
|
||||||
o Find out where the CA certificate is kept (Certificate>
|
- Find out where the CA certificate is kept (Certificate>
|
||||||
Authority Information Access>URL)
|
Authority Information Access>URL)
|
||||||
o Get a copy of the crt file using curl
|
- Get a copy of the crt file using curl
|
||||||
o Convert it from crt to PEM using the openssl tool:
|
- Convert it from crt to PEM using the openssl tool:
|
||||||
openssl x509 -inform DES -in yourdownloaded.crt \
|
openssl x509 -inform DES -in yourdownloaded.crt \
|
||||||
-out outcert.pem -text
|
-out outcert.pem -text
|
||||||
o Append the 'outcert.pem' to the CA cert bundle or use it stand-alone
|
- Add the 'outcert.pem' to the CA certificate store or use it stand-alone
|
||||||
as described below.
|
as described below.
|
||||||
|
|
||||||
If you use the 'openssl' tool, this is one way to get extract the CA cert
|
If you use the 'openssl' tool, this is one way to get extract the CA cert
|
||||||
for a particular server:
|
for a particular server:
|
||||||
|
|
||||||
o openssl s_client -connect xxxxx.com:443 |tee logfile
|
- `openssl s_client -connect xxxxx.com:443 |tee logfile`
|
||||||
o type "QUIT", followed by the "ENTER" key
|
- type "QUIT", followed by the "ENTER" key
|
||||||
o The certificate will have "BEGIN CERTIFICATE" and "END CERTIFICATE"
|
- The certificate will have "BEGIN CERTIFICATE" and "END CERTIFICATE"
|
||||||
markers.
|
markers.
|
||||||
o If you want to see the data in the certificate, you can do: "openssl
|
- If you want to see the data in the certificate, you can do: "openssl
|
||||||
x509 -inform PEM -in certfile -text -out certdata" where certfile is
|
x509 -inform PEM -in certfile -text -out certdata" where certfile is
|
||||||
the cert you extracted from logfile. Look in certdata.
|
the cert you extracted from logfile. Look in certdata.
|
||||||
o If you want to trust the certificate, you can append it to your
|
- If you want to trust the certificate, you can add it to your CA
|
||||||
cert_bundle or use it stand-alone as described. Just remember that the
|
certificate store or use it stand-alone as described. Just remember that
|
||||||
security is no better than the way you obtained the certificate.
|
the security is no better than the way you obtained the certificate.
|
||||||
|
|
||||||
4. If you're using the curl command line tool, you can specify your own CA
|
4. If you're using the curl command line tool, you can specify your own CA
|
||||||
cert path by setting the environment variable CURL_CA_BUNDLE to the path
|
cert path by setting the environment variable `CURL_CA_BUNDLE` to the path
|
||||||
of your choice.
|
of your choice.
|
||||||
|
|
||||||
If you're using the curl command line tool on Windows, curl will search
|
If you're using the curl command line tool on Windows, curl will search
|
||||||
@@ -86,45 +119,37 @@ server, do one of the following:
|
|||||||
5. Get a better/different/newer CA cert bundle! One option is to extract the
|
5. Get a better/different/newer CA cert bundle! One option is to extract the
|
||||||
one a recent Firefox browser uses by running 'make ca-bundle' in the curl
|
one a recent Firefox browser uses by running 'make ca-bundle' in the curl
|
||||||
build tree root, or possibly download a version that was generated this
|
build tree root, or possibly download a version that was generated this
|
||||||
way for you:
|
way for you: [CA Extract](https://curl.haxx.se/docs/caextract.html)
|
||||||
|
|
||||||
http://curl.haxx.se/docs/caextract.html
|
|
||||||
|
|
||||||
Neglecting to use one of the above methods when dealing with a server using a
|
Neglecting to use one of the above methods when dealing with a server using a
|
||||||
certificate that isn't signed by one of the certificates in the installed CA
|
certificate that isn't signed by one of the certificates in the installed CA
|
||||||
cert bundle, will cause SSL to report an error ("certificate verify failed")
|
certificate store, will cause SSL to report an error ("certificate verify
|
||||||
during the handshake and SSL will then refuse further communication with that
|
failed") during the handshake and SSL will then refuse further communication
|
||||||
server.
|
with that server.
|
||||||
|
|
||||||
Peer SSL Certificate Verification with NSS
|
Certificate Verification with NSS
|
||||||
==========================================
|
---------------------------------
|
||||||
|
|
||||||
If libcurl was built with NSS support, then depending on the OS distribution,
|
If libcurl was built with NSS support, then depending on the OS distribution,
|
||||||
it is probably required to take some additional steps to use the system-wide CA
|
it is probably required to take some additional steps to use the system-wide
|
||||||
cert db. RedHat ships with an additional module, libnsspem.so, which enables
|
CA cert db. RedHat ships with an additional module, libnsspem.so, which
|
||||||
NSS to read the OpenSSL PEM CA bundle. This library is missing in OpenSuSE, and
|
enables NSS to read the OpenSSL PEM CA bundle. On openSUSE you can install
|
||||||
without it, NSS can only work with its own internal formats. NSS also has a new
|
p11-kit-nss-trust which makes NSS use the system wide CA certificate store. NSS
|
||||||
database format: https://wiki.mozilla.org/NSS_Shared_DB
|
also has a new [database format](https://wiki.mozilla.org/NSS_Shared_DB).
|
||||||
|
|
||||||
Starting with version 7.19.7, libcurl will check for the NSS version it runs,
|
Starting with version 7.19.7, libcurl automatically adds the 'sql:' prefix to
|
||||||
and automatically add the 'sql:' prefix to the certdb directory (either the
|
the certdb directory (either the hardcoded default /etc/pki/nssdb or the
|
||||||
hardcoded default /etc/pki/nssdb or the directory configured with SSL_DIR
|
directory configured with SSL_DIR environment variable). To check which certdb
|
||||||
environment variable) if version 3.12.0 or later is detected. To check which
|
format your distribution provides, examine the default certdb location:
|
||||||
certdb format your distribution provides, examine the default
|
/etc/pki/nssdb; the new certdb format can be identified by the filenames
|
||||||
certdb location: /etc/pki/nssdb; the new certdb format can be identified by
|
cert9.db, key4.db, pkcs11.txt; filenames of older versions are cert8.db,
|
||||||
the filenames cert9.db, key4.db, pkcs11.txt; filenames of older versions are
|
key3.db, secmod.db.
|
||||||
cert8.db, key3.db, modsec.db.
|
|
||||||
|
|
||||||
Usually these cert databases are empty, but NSS also has built-in CAs which are
|
Certificate Verification with Schannel and Secure Transport
|
||||||
provided through a shared library, libnssckbi.so; if you want to use these
|
-----------------------------------------------------------
|
||||||
built-in CAs, then create a symlink to libnssckbi.so in /etc/pki/nssdb:
|
|
||||||
ln -s /usr/lib[64]/libnssckbi.so /etc/pki/nssdb/libnssckbi.so
|
|
||||||
|
|
||||||
Peer SSL Certificate Verification with Schannel and Secure Transport
|
If libcurl was built with Schannel (Microsoft's native TLS engine) or Secure
|
||||||
====================================================================
|
Transport (Apple's native TLS engine) support, then libcurl will still perform
|
||||||
|
|
||||||
If libcurl was built with Schannel (Microsoft's TLS/SSL engine) or Secure
|
|
||||||
Transport (Apple's TLS/SSL engine) support, then libcurl will still perform
|
|
||||||
peer certificate verification, but instead of using a CA cert bundle, it will
|
peer certificate verification, but instead of using a CA cert bundle, it will
|
||||||
use the certificates that are built into the OS. These are the same
|
use the certificates that are built into the OS. These are the same
|
||||||
certificates that appear in the Internet Options control panel (under Windows)
|
certificates that appear in the Internet Options control panel (under Windows)
|
||||||
|
|||||||
247
docs/THANKS
247
docs/THANKS
@@ -22,7 +22,7 @@ Alan Pinstein
|
|||||||
Albert Chin-A-Young
|
Albert Chin-A-Young
|
||||||
Albert Choy
|
Albert Choy
|
||||||
Ale Vesely
|
Ale Vesely
|
||||||
Alejandro Alvarez
|
Alejandro Alvarez Ayllon
|
||||||
Aleksandar Milivojevic
|
Aleksandar Milivojevic
|
||||||
Aleksey Tulinov
|
Aleksey Tulinov
|
||||||
Alessandro Ghedini
|
Alessandro Ghedini
|
||||||
@@ -36,10 +36,14 @@ Alex Suykov
|
|||||||
Alex Vinnik
|
Alex Vinnik
|
||||||
Alex aka WindEagle
|
Alex aka WindEagle
|
||||||
Alexander Beedie
|
Alexander Beedie
|
||||||
|
Alexander Dyagilev
|
||||||
|
Alexander Elgert
|
||||||
Alexander Klauer
|
Alexander Klauer
|
||||||
Alexander Kourakos
|
Alexander Kourakos
|
||||||
Alexander Krasnostavsky
|
Alexander Krasnostavsky
|
||||||
Alexander Lazic
|
Alexander Lazic
|
||||||
|
Alexander Pepper
|
||||||
|
Alexander Peslyak
|
||||||
Alexander Zhuravlev
|
Alexander Zhuravlev
|
||||||
Alexey Borzov
|
Alexey Borzov
|
||||||
Alexey Pesternikov
|
Alexey Pesternikov
|
||||||
@@ -48,13 +52,16 @@ Alexey Zakhlestin
|
|||||||
Alexis Carvalho
|
Alexis Carvalho
|
||||||
Alfred Gebert
|
Alfred Gebert
|
||||||
Allen Pulsifer
|
Allen Pulsifer
|
||||||
|
Alona Rossen
|
||||||
Amol Pattekar
|
Amol Pattekar
|
||||||
Amr Shahin
|
Amr Shahin
|
||||||
Anatoli Tubman
|
Anatoli Tubman
|
||||||
|
Anders Bakken
|
||||||
Anders Gustafsson
|
Anders Gustafsson
|
||||||
Anders Havn
|
Anders Havn
|
||||||
Andi Jahja
|
Andi Jahja
|
||||||
Andre Guibert de Bruet
|
Andre Guibert de Bruet
|
||||||
|
Andre Heinecke
|
||||||
Andreas Damm
|
Andreas Damm
|
||||||
Andreas Faerber
|
Andreas Faerber
|
||||||
Andreas Farber
|
Andreas Farber
|
||||||
@@ -66,8 +73,8 @@ Andreas Schuldei
|
|||||||
Andreas Wurf
|
Andreas Wurf
|
||||||
Andrei Benea
|
Andrei Benea
|
||||||
Andrei Cipu
|
Andrei Cipu
|
||||||
|
Andrei Kurushin
|
||||||
Andrej E Baranov
|
Andrej E Baranov
|
||||||
Andres Garcia
|
|
||||||
Andrew Benham
|
Andrew Benham
|
||||||
Andrew Biggs
|
Andrew Biggs
|
||||||
Andrew Bushnell
|
Andrew Bushnell
|
||||||
@@ -77,12 +84,15 @@ Andrew Kurushin
|
|||||||
Andrew Moise
|
Andrew Moise
|
||||||
Andrew Wansink
|
Andrew Wansink
|
||||||
Andrew de los Reyes
|
Andrew de los Reyes
|
||||||
|
Andrey Labunets
|
||||||
Andrii Moiseiev
|
Andrii Moiseiev
|
||||||
Andrés García
|
Andrés García
|
||||||
Andy Cedilnik
|
Andy Cedilnik
|
||||||
Andy Serpa
|
Andy Serpa
|
||||||
Andy Tsouladze
|
Andy Tsouladze
|
||||||
Angus Mackay
|
Angus Mackay
|
||||||
|
Anthon Pang
|
||||||
|
Anthony Avina
|
||||||
Anthony Bryan
|
Anthony Bryan
|
||||||
Anthony G. Basile
|
Anthony G. Basile
|
||||||
Antoine Calando
|
Antoine Calando
|
||||||
@@ -97,15 +107,20 @@ Arnaud Ebalard
|
|||||||
Arthur Murray
|
Arthur Murray
|
||||||
Arve Knudsen
|
Arve Knudsen
|
||||||
Arvid Norberg
|
Arvid Norberg
|
||||||
|
Ashish Shukla
|
||||||
|
Ask Bjørn Hansen
|
||||||
|
Askar Safin
|
||||||
Ates Goral
|
Ates Goral
|
||||||
Augustus Saunders
|
Augustus Saunders
|
||||||
Avery Fay
|
Avery Fay
|
||||||
Axel Tillequin
|
Axel Tillequin
|
||||||
Balaji Parasuram
|
Balaji Parasuram
|
||||||
|
Balaji Salunke
|
||||||
Balint Szilakszi
|
Balint Szilakszi
|
||||||
Barry Abrahamson
|
Barry Abrahamson
|
||||||
Bart Whiteley
|
Bart Whiteley
|
||||||
Bas Mevissen
|
Bas Mevissen
|
||||||
|
Ben Boeckel
|
||||||
Ben Darnell
|
Ben Darnell
|
||||||
Ben Greear
|
Ben Greear
|
||||||
Ben Madsen
|
Ben Madsen
|
||||||
@@ -116,14 +131,20 @@ Benbuck Nason
|
|||||||
Benjamin Gerard
|
Benjamin Gerard
|
||||||
Benjamin Gilbert
|
Benjamin Gilbert
|
||||||
Benjamin Johnson
|
Benjamin Johnson
|
||||||
|
Benjamin Kircher
|
||||||
|
Benoit Neil
|
||||||
Benoit Sigoure
|
Benoit Sigoure
|
||||||
Bernard Leak
|
Bernard Leak
|
||||||
|
Bernard Spil
|
||||||
Bernhard Reutner-Fischer
|
Bernhard Reutner-Fischer
|
||||||
|
Bert Huijben
|
||||||
Bertrand Demiddelaer
|
Bertrand Demiddelaer
|
||||||
|
Bertrand Simonnet
|
||||||
Bill Doyle
|
Bill Doyle
|
||||||
Bill Egert
|
Bill Egert
|
||||||
Bill Hoffman
|
Bill Hoffman
|
||||||
Bill Middlecamp
|
Bill Middlecamp
|
||||||
|
Bill Nagel
|
||||||
Bjoern Sikora
|
Bjoern Sikora
|
||||||
Bjorn Augustsson
|
Bjorn Augustsson
|
||||||
Bjorn Reese
|
Bjorn Reese
|
||||||
@@ -134,20 +155,26 @@ Bob Richmond
|
|||||||
Bob Schader
|
Bob Schader
|
||||||
Bogdan Nicula
|
Bogdan Nicula
|
||||||
Brad Burdick
|
Brad Burdick
|
||||||
|
Brad Fitzpatrick
|
||||||
|
Brad Harder
|
||||||
Brad Hards
|
Brad Hards
|
||||||
Brad King
|
Brad King
|
||||||
Brad Spencer
|
Brad Spencer
|
||||||
Bradford Bruce
|
Bradford Bruce
|
||||||
|
Brandon Casey
|
||||||
Brandon Wang
|
Brandon Wang
|
||||||
Brendan Jurd
|
Brendan Jurd
|
||||||
Brent Beardsley
|
Brent Beardsley
|
||||||
Brian Akins
|
Brian Akins
|
||||||
|
Brian Chrisman
|
||||||
Brian Dessent
|
Brian Dessent
|
||||||
Brian J. Murrell
|
Brian J. Murrell
|
||||||
|
Brian Prodoehl
|
||||||
Brian R Duffy
|
Brian R Duffy
|
||||||
Brian Ulm
|
Brian Ulm
|
||||||
Brock Noland
|
Brock Noland
|
||||||
Bruce Mitchener
|
Bruce Mitchener
|
||||||
|
Bruno Thomsen
|
||||||
Bruno de Carvalho
|
Bruno de Carvalho
|
||||||
Bryan Henderson
|
Bryan Henderson
|
||||||
Bryan Kemp
|
Bryan Kemp
|
||||||
@@ -155,30 +182,34 @@ Byrial Jensen
|
|||||||
Cameron Kaiser
|
Cameron Kaiser
|
||||||
Camille Moncelier
|
Camille Moncelier
|
||||||
Caolan McNamara
|
Caolan McNamara
|
||||||
|
Carlo Wood
|
||||||
Carsten Lange
|
Carsten Lange
|
||||||
Casey O'Donnell
|
Casey O'Donnell
|
||||||
Cedric Deltheil
|
Catalin Patulea
|
||||||
Chad Monroe
|
Chad Monroe
|
||||||
Chandrakant Bagul
|
Chandrakant Bagul
|
||||||
Charles Kerr
|
Charles Kerr
|
||||||
|
Charles Romestant
|
||||||
Chen Prog
|
Chen Prog
|
||||||
Chih-Chung Chang
|
Chih-Chung Chang
|
||||||
Chris "Bob Bob"
|
Chris "Bob Bob"
|
||||||
|
Chris Araman
|
||||||
Chris Combes
|
Chris Combes
|
||||||
Chris Conlon
|
Chris Conlon
|
||||||
Chris Conroy
|
|
||||||
Chris Deidun
|
Chris Deidun
|
||||||
Chris Flerackers
|
Chris Flerackers
|
||||||
Chris Gaukroger
|
Chris Gaukroger
|
||||||
Chris Maltby
|
Chris Maltby
|
||||||
Chris Mumford
|
Chris Mumford
|
||||||
Chris Smowton
|
Chris Smowton
|
||||||
|
Chris Young
|
||||||
Christian Grothoff
|
Christian Grothoff
|
||||||
Christian Hägele
|
Christian Hägele
|
||||||
Christian Krause
|
Christian Krause
|
||||||
Christian Kurz
|
Christian Kurz
|
||||||
Christian Robottom Reis
|
Christian Robottom Reis
|
||||||
Christian Schmitz
|
Christian Schmitz
|
||||||
|
Christian Stewart
|
||||||
Christian Vogt
|
Christian Vogt
|
||||||
Christian Weisgerber
|
Christian Weisgerber
|
||||||
Christophe Demory
|
Christophe Demory
|
||||||
@@ -192,9 +223,11 @@ Claes Jakobsson
|
|||||||
Clarence Gardner
|
Clarence Gardner
|
||||||
Clemens Gruber
|
Clemens Gruber
|
||||||
Clifford Wolf
|
Clifford Wolf
|
||||||
|
Clint Clayton
|
||||||
Cody Jones
|
Cody Jones
|
||||||
Cody Mack
|
Cody Mack
|
||||||
Colby Ranger
|
Colby Ranger
|
||||||
|
Colin Blair
|
||||||
Colin Hogben
|
Colin Hogben
|
||||||
Colin Watson
|
Colin Watson
|
||||||
Colm Buckley
|
Colm Buckley
|
||||||
@@ -207,8 +240,10 @@ Cris Bailiff
|
|||||||
Cristian Rodríguez
|
Cristian Rodríguez
|
||||||
Curt Bogmine
|
Curt Bogmine
|
||||||
Cyrill Osterwalder
|
Cyrill Osterwalder
|
||||||
|
Cédric Connes
|
||||||
Cédric Deltheil
|
Cédric Deltheil
|
||||||
D. Flinkmann
|
D. Flinkmann
|
||||||
|
Da-Yoon Chung
|
||||||
Dag Ekengren
|
Dag Ekengren
|
||||||
Dagobert Michelsen
|
Dagobert Michelsen
|
||||||
Damian Dixon
|
Damian Dixon
|
||||||
@@ -224,8 +259,15 @@ Dan Zitter
|
|||||||
Daniel Black
|
Daniel Black
|
||||||
Daniel Cater
|
Daniel Cater
|
||||||
Daniel Egger
|
Daniel Egger
|
||||||
|
Daniel Hwang
|
||||||
Daniel Johnson
|
Daniel Johnson
|
||||||
|
Daniel Kahn Gillmor
|
||||||
|
Daniel Lee Hwang
|
||||||
|
Daniel Melani
|
||||||
Daniel Mentz
|
Daniel Mentz
|
||||||
|
Daniel Schauenberg
|
||||||
|
Daniel Seither
|
||||||
|
Daniel Shahaf
|
||||||
Daniel Steinberg
|
Daniel Steinberg
|
||||||
Daniel Stenberg
|
Daniel Stenberg
|
||||||
Daniel Theron
|
Daniel Theron
|
||||||
@@ -239,7 +281,9 @@ Dave May
|
|||||||
Dave Reisner
|
Dave Reisner
|
||||||
Dave Thompson
|
Dave Thompson
|
||||||
Dave Vasilevsky
|
Dave Vasilevsky
|
||||||
|
Davey Shafik
|
||||||
David Bau
|
David Bau
|
||||||
|
David Benjamin
|
||||||
David Binderman
|
David Binderman
|
||||||
David Blaikie
|
David Blaikie
|
||||||
David Byron
|
David Byron
|
||||||
@@ -254,6 +298,7 @@ David Kimdon
|
|||||||
David Lang
|
David Lang
|
||||||
David LeBlanc
|
David LeBlanc
|
||||||
David McCreedy
|
David McCreedy
|
||||||
|
David Meyer
|
||||||
David Odin
|
David Odin
|
||||||
David Phillips
|
David Phillips
|
||||||
David Rosenstrauch
|
David Rosenstrauch
|
||||||
@@ -267,6 +312,8 @@ David Woodhouse
|
|||||||
David Wright
|
David Wright
|
||||||
David Yan
|
David Yan
|
||||||
Dengminwen
|
Dengminwen
|
||||||
|
Denis Feklushkin
|
||||||
|
Dennis Clarke
|
||||||
Derek Higgins
|
Derek Higgins
|
||||||
Detlef Schmier
|
Detlef Schmier
|
||||||
Didier Brisebourg
|
Didier Brisebourg
|
||||||
@@ -274,7 +321,9 @@ Diego Casorran
|
|||||||
Dilyan Palauzov
|
Dilyan Palauzov
|
||||||
Dima Barsky
|
Dima Barsky
|
||||||
Dima Tisnek
|
Dima Tisnek
|
||||||
|
Dimitar Boevski
|
||||||
Dimitre Dimitrov
|
Dimitre Dimitrov
|
||||||
|
Dimitrios Siganos
|
||||||
Dimitris Sarris
|
Dimitris Sarris
|
||||||
Dinar
|
Dinar
|
||||||
Dirk Eddelbuettel
|
Dirk Eddelbuettel
|
||||||
@@ -282,38 +331,45 @@ Dirk Manske
|
|||||||
Dmitri Shubin
|
Dmitri Shubin
|
||||||
Dmitriy Sergeyev
|
Dmitriy Sergeyev
|
||||||
Dmitry Bartsevich
|
Dmitry Bartsevich
|
||||||
|
Dmitry Eremin-Solenikov
|
||||||
|
Dmitry Falko
|
||||||
Dmitry Kurochkin
|
Dmitry Kurochkin
|
||||||
Dmitry Popov
|
Dmitry Popov
|
||||||
Dmitry Rechkin
|
Dmitry Rechkin
|
||||||
|
Dmitry S. Baikov
|
||||||
Dolbneff A.V
|
Dolbneff A.V
|
||||||
Domenico Andreoli
|
Domenico Andreoli
|
||||||
Dominick Meglio
|
Dominick Meglio
|
||||||
Dominique Leuenberger
|
Dominique Leuenberger
|
||||||
Doug Kaufman
|
Doug Kaufman
|
||||||
Doug Porter
|
Doug Porter
|
||||||
|
Douglas Creager
|
||||||
Douglas E. Wegscheid
|
Douglas E. Wegscheid
|
||||||
Douglas Kilpatrick
|
Douglas Kilpatrick
|
||||||
Douglas R. Horner
|
Douglas R. Horner
|
||||||
Douglas Steinwand
|
Douglas Steinwand
|
||||||
Dov Murik
|
Dov Murik
|
||||||
|
Drake Arconis
|
||||||
Duane Cathey
|
Duane Cathey
|
||||||
Duncan
|
|
||||||
Duncan Mac-Vicar Prett
|
Duncan Mac-Vicar Prett
|
||||||
Dustin Boswell
|
Dustin Boswell
|
||||||
Dylan Ellicott
|
Dylan Ellicott
|
||||||
Dylan Salisbury
|
Dylan Salisbury
|
||||||
Early Ehlinger
|
Early Ehlinger
|
||||||
Ebenezer Ikonne
|
Ebenezer Ikonne
|
||||||
|
Ed Morley
|
||||||
Edin Kadribasic
|
Edin Kadribasic
|
||||||
Eduard Bloch
|
Eduard Bloch
|
||||||
Edward Rudd
|
Edward Rudd
|
||||||
Edward Sheldrake
|
Edward Sheldrake
|
||||||
Eelco Dolstra
|
Eelco Dolstra
|
||||||
Eetu Ojanen
|
Eetu Ojanen
|
||||||
|
Egon Eckert
|
||||||
Eldar Zaitov
|
Eldar Zaitov
|
||||||
Ellis Pritchard
|
Ellis Pritchard
|
||||||
Elmira A Semenova
|
Elmira A Semenova
|
||||||
Emanuele Bovisio
|
Emanuele Bovisio
|
||||||
|
Emil Lerner
|
||||||
Emil Romanus
|
Emil Romanus
|
||||||
Emiliano Ida
|
Emiliano Ida
|
||||||
Enrico Scholz
|
Enrico Scholz
|
||||||
@@ -326,15 +382,19 @@ Eric Lubin
|
|||||||
Eric Melville
|
Eric Melville
|
||||||
Eric Mertens
|
Eric Mertens
|
||||||
Eric Rautman
|
Eric Rautman
|
||||||
|
Eric Ridge
|
||||||
Eric S. Raymond
|
Eric S. Raymond
|
||||||
Eric Thelin
|
Eric Thelin
|
||||||
Eric Vergnaud
|
Eric Vergnaud
|
||||||
Eric Wong
|
Eric Wong
|
||||||
Eric Young
|
Eric Young
|
||||||
Erick Nuwendam
|
Erick Nuwendam
|
||||||
|
Erik Janssen
|
||||||
Erik Johansson
|
Erik Johansson
|
||||||
|
Ernest Beinrohr
|
||||||
Erwan Legrand
|
Erwan Legrand
|
||||||
Erwin Authried
|
Erwin Authried
|
||||||
|
Ethan Glasser Camp
|
||||||
Eugene Kotlyarov
|
Eugene Kotlyarov
|
||||||
Evan Jordan
|
Evan Jordan
|
||||||
Evgeny Turnaev
|
Evgeny Turnaev
|
||||||
@@ -344,12 +404,16 @@ Fabian Hiernaux
|
|||||||
Fabian Keil
|
Fabian Keil
|
||||||
Fabrizio Ammollo
|
Fabrizio Ammollo
|
||||||
Fedor Karpelevitch
|
Fedor Karpelevitch
|
||||||
|
Feist Josselin
|
||||||
Felix Yan
|
Felix Yan
|
||||||
Felix von Leitner
|
Felix von Leitner
|
||||||
Feng Tu
|
Feng Tu
|
||||||
|
Flavio Medeiros
|
||||||
Florian Schoppmann
|
Florian Schoppmann
|
||||||
|
Florian Weimer
|
||||||
Forrest Cahoon
|
Forrest Cahoon
|
||||||
Francois Charlier
|
Francisco Moraes
|
||||||
|
Frank Gevaerts
|
||||||
Frank Hempel
|
Frank Hempel
|
||||||
Frank Keeney
|
Frank Keeney
|
||||||
Frank McGeough
|
Frank McGeough
|
||||||
@@ -357,9 +421,11 @@ Frank Meier
|
|||||||
Frank Ticheler
|
Frank Ticheler
|
||||||
Frank Van Uffelen
|
Frank Van Uffelen
|
||||||
František Kučera
|
František Kučera
|
||||||
|
François Charlier
|
||||||
Fred Machado
|
Fred Machado
|
||||||
Fred New
|
Fred New
|
||||||
Fred Noz
|
Fred Noz
|
||||||
|
Fred Stluka
|
||||||
Frederic Lepied
|
Frederic Lepied
|
||||||
Fredrik Thulin
|
Fredrik Thulin
|
||||||
Gabriel Kuri
|
Gabriel Kuri
|
||||||
@@ -390,38 +456,47 @@ Gilles Blanc
|
|||||||
Gisle Vanem
|
Gisle Vanem
|
||||||
Giuseppe Attardi
|
Giuseppe Attardi
|
||||||
Giuseppe D'Ambrosio
|
Giuseppe D'Ambrosio
|
||||||
|
Glen A Johnson Jr.
|
||||||
Glen Nakamura
|
Glen Nakamura
|
||||||
Glen Scott
|
Glen Scott
|
||||||
Glenn Sheridan
|
Glenn Sheridan
|
||||||
Gokhan Sengun
|
Google Inc.
|
||||||
Gordon Marler
|
Gordon Marler
|
||||||
Gorilla Maguila
|
Gorilla Maguila
|
||||||
Grant Erickson
|
Grant Erickson
|
||||||
|
Grant Pannell
|
||||||
Greg Hewgill
|
Greg Hewgill
|
||||||
Greg Morse
|
Greg Morse
|
||||||
Greg Onufer
|
Greg Onufer
|
||||||
|
Greg Pratt
|
||||||
Greg Zavertnik
|
Greg Zavertnik
|
||||||
Grigory Entin
|
Grigory Entin
|
||||||
Guenole Bescon
|
Guenole Bescon
|
||||||
Guenter Knauf
|
Guenter Knauf
|
||||||
Guido Berhoerster
|
Guido Berhoerster
|
||||||
Guillaume Arluison
|
Guillaume Arluison
|
||||||
|
Gunter Knauf
|
||||||
Gustaf Hui
|
Gustaf Hui
|
||||||
|
Gustavo Grieco
|
||||||
Gwenole Beauchesne
|
Gwenole Beauchesne
|
||||||
|
Gökhan Şengün
|
||||||
Götz Babin-Ebell
|
Götz Babin-Ebell
|
||||||
Hamish Mackenzie
|
Hamish Mackenzie
|
||||||
Hang Kin Lau
|
Hang Kin Lau
|
||||||
Hang Su
|
Hang Su
|
||||||
|
Hanno Böck
|
||||||
Hanno Kranzhoff
|
Hanno Kranzhoff
|
||||||
Hans Steegers
|
Hans Steegers
|
||||||
Hans-Jurgen May
|
Hans-Jurgen May
|
||||||
Hardeep Singh
|
Hardeep Singh
|
||||||
|
Haris Okanovic
|
||||||
Harshal Pradhan
|
Harshal Pradhan
|
||||||
Hauke Duden
|
Hauke Duden
|
||||||
He Qin
|
He Qin
|
||||||
Heikki Korpela
|
Heikki Korpela
|
||||||
Heinrich Ko
|
Heinrich Ko
|
||||||
Heinrich Schaefer
|
Heinrich Schaefer
|
||||||
|
Helwing Lutz
|
||||||
Hendrik Visage
|
Hendrik Visage
|
||||||
Henrik Storner
|
Henrik Storner
|
||||||
Henry Ludemann
|
Henry Ludemann
|
||||||
@@ -447,16 +522,21 @@ Iida Yosiaki
|
|||||||
Ilguiz Latypov
|
Ilguiz Latypov
|
||||||
Ilja van Sprundel
|
Ilja van Sprundel
|
||||||
Immanuel Gregoire
|
Immanuel Gregoire
|
||||||
|
Inca R
|
||||||
Ingmar Runge
|
Ingmar Runge
|
||||||
Ingo Ralf Blum
|
Ingo Ralf Blum
|
||||||
Ingo Wilken
|
Ingo Wilken
|
||||||
|
Isaac Boukris
|
||||||
Ishan SinghLevett
|
Ishan SinghLevett
|
||||||
Ivo Bellin Salarin
|
Ivo Bellin Salarin
|
||||||
Jack Zhang
|
Jack Zhang
|
||||||
Jacky Lam
|
Jacky Lam
|
||||||
Jacob Meuser
|
Jacob Meuser
|
||||||
Jacob Moshenko
|
Jacob Moshenko
|
||||||
|
Jactry Zeng
|
||||||
Jad Chamcham
|
Jad Chamcham
|
||||||
|
Jaime Fullaondo
|
||||||
|
Jakub Zakrzewski
|
||||||
James Bursa
|
James Bursa
|
||||||
James Cheng
|
James Cheng
|
||||||
James Clancy
|
James Clancy
|
||||||
@@ -476,21 +556,24 @@ Jan Schaumann
|
|||||||
Jan Van Boghout
|
Jan Van Boghout
|
||||||
Jared Jennings
|
Jared Jennings
|
||||||
Jared Lundell
|
Jared Lundell
|
||||||
|
Jari Aalto
|
||||||
Jari Sundell
|
Jari Sundell
|
||||||
Jason Glasgow
|
Jason Glasgow
|
||||||
Jason Liu
|
Jason Liu
|
||||||
Jason McDonald
|
Jason McDonald
|
||||||
Jason S. Priebe
|
Jason S. Priebe
|
||||||
Javier Barroso
|
Javier Barroso
|
||||||
|
Javier G. Sogo
|
||||||
Jay Austin
|
Jay Austin
|
||||||
Jayesh A Shah
|
Jayesh A Shah
|
||||||
Jaz Fresh
|
Jaz Fresh
|
||||||
Jean Jacques Drouin
|
Jean Jacques Drouin
|
||||||
Jean-Claude Chauve
|
Jean-Claude Chauve
|
||||||
Jean-Francois Bertrand
|
Jean-Francois Bertrand
|
||||||
|
Jean-Francois Durand
|
||||||
Jean-Louis Lemaire
|
Jean-Louis Lemaire
|
||||||
Jean-Marc Ranger
|
Jean-Marc Ranger
|
||||||
Jean-Noel Rouvignac
|
Jean-Noël Rouvignac
|
||||||
Jean-Philippe Barrette-LaPierre
|
Jean-Philippe Barrette-LaPierre
|
||||||
Jeff Connelly
|
Jeff Connelly
|
||||||
Jeff Hodges
|
Jeff Hodges
|
||||||
@@ -500,22 +583,28 @@ Jeff Lawson
|
|||||||
Jeff Phillips
|
Jeff Phillips
|
||||||
Jeff Pohlmeyer
|
Jeff Pohlmeyer
|
||||||
Jeff Weber
|
Jeff Weber
|
||||||
Jeffrey Pohlmeyer
|
Jeffrey Walton
|
||||||
|
Jens Rantil
|
||||||
Jeremy Friesner
|
Jeremy Friesner
|
||||||
Jeremy Huddleston
|
Jeremy Huddleston
|
||||||
|
Jeremy Lin
|
||||||
Jeroen Koekkoek
|
Jeroen Koekkoek
|
||||||
|
Jeroen Ooms
|
||||||
Jerome Muffat-Meridol
|
Jerome Muffat-Meridol
|
||||||
|
Jerome Robert
|
||||||
Jerome Vouillon
|
Jerome Vouillon
|
||||||
Jerry Krinock
|
Jerry Krinock
|
||||||
Jerry Wu
|
Jerry Wu
|
||||||
Jes Badwal
|
Jes Badwal
|
||||||
Jesper Jensen
|
Jesper Jensen
|
||||||
Jesse Noller
|
Jesse Noller
|
||||||
|
Jesse Tan
|
||||||
Jie He
|
Jie He
|
||||||
Jim Drash
|
Jim Drash
|
||||||
Jim Freeman
|
Jim Freeman
|
||||||
Jim Hollinger
|
Jim Hollinger
|
||||||
Jim Meyering
|
Jim Meyering
|
||||||
|
Jiri Dvorak
|
||||||
Jiri Hruska
|
Jiri Hruska
|
||||||
Jiri Jaburek
|
Jiri Jaburek
|
||||||
Jiri Malak
|
Jiri Malak
|
||||||
@@ -524,12 +613,17 @@ Joe Halpin
|
|||||||
Joe Malicki
|
Joe Malicki
|
||||||
Joe Mason
|
Joe Mason
|
||||||
Joel Chen
|
Joel Chen
|
||||||
|
Joel Depooter
|
||||||
Jofell Gallardo
|
Jofell Gallardo
|
||||||
Johan Anderson
|
Johan Anderson
|
||||||
|
Johan Lantz
|
||||||
Johan Nilsson
|
Johan Nilsson
|
||||||
Johan van Selst
|
Johan van Selst
|
||||||
Johannes Bauer
|
Johannes Bauer
|
||||||
|
Johannes Ernst
|
||||||
|
Johannes Schindelin
|
||||||
John Bradshaw
|
John Bradshaw
|
||||||
|
John Coffey
|
||||||
John Crow
|
John Crow
|
||||||
John Dennis
|
John Dennis
|
||||||
John Dunn
|
John Dunn
|
||||||
@@ -538,9 +632,12 @@ John Gardiner Myers
|
|||||||
John Janssen
|
John Janssen
|
||||||
John Joseph Bachir
|
John Joseph Bachir
|
||||||
John Kelly
|
John Kelly
|
||||||
|
John Kohl
|
||||||
John Lask
|
John Lask
|
||||||
|
John Levon
|
||||||
John Lightsey
|
John Lightsey
|
||||||
John Marino
|
John Marino
|
||||||
|
John Marshall
|
||||||
John McGowan
|
John McGowan
|
||||||
John P. McCaskey
|
John P. McCaskey
|
||||||
John Suprock
|
John Suprock
|
||||||
@@ -550,15 +647,22 @@ Johnny Luong
|
|||||||
Jon Grubbs
|
Jon Grubbs
|
||||||
Jon Nelson
|
Jon Nelson
|
||||||
Jon Sargeant
|
Jon Sargeant
|
||||||
|
Jon Seymour
|
||||||
|
Jon Spencer
|
||||||
Jon Torrey
|
Jon Torrey
|
||||||
Jon Travis
|
Jon Travis
|
||||||
Jon Turner
|
Jon Turner
|
||||||
Jonas Forsman
|
Jonas Forsman
|
||||||
|
Jonas Minnberg
|
||||||
Jonas Schnelli
|
Jonas Schnelli
|
||||||
Jonatan Lander
|
Jonatan Lander
|
||||||
|
Jonatan Vela
|
||||||
|
Jonathan Cardoso Machado
|
||||||
|
Jonathan Cardoso Machado Machado
|
||||||
Jonathan Hseu
|
Jonathan Hseu
|
||||||
Jonathan Nieder
|
Jonathan Nieder
|
||||||
Jongki Suwandi
|
Jongki Suwandi
|
||||||
|
Jose Alf
|
||||||
Jose Kahan
|
Jose Kahan
|
||||||
Josef Wolf
|
Josef Wolf
|
||||||
Josh Kapell
|
Josh Kapell
|
||||||
@@ -571,27 +675,32 @@ Judson Bishop
|
|||||||
Juergen Wilke
|
Juergen Wilke
|
||||||
Jukka Pihl
|
Jukka Pihl
|
||||||
Julian Noble
|
Julian Noble
|
||||||
|
Julian Ospald
|
||||||
Julian Taylor
|
Julian Taylor
|
||||||
Julien Chaffraix
|
Julien Chaffraix
|
||||||
|
Julien Nabet
|
||||||
Julien Royer
|
Julien Royer
|
||||||
Jun-ichiro itojun Hagino
|
Jun-ichiro itojun Hagino
|
||||||
Jurij Smakov
|
Jurij Smakov
|
||||||
|
Justin Ehlert
|
||||||
Justin Fletcher
|
Justin Fletcher
|
||||||
Justin Karneges
|
Justin Karneges
|
||||||
Justin Maggard
|
Justin Maggard
|
||||||
Jörg Mueller-Tolk
|
Jörg Mueller-Tolk
|
||||||
Jörn Hartroth
|
Jörn Hartroth
|
||||||
|
K. R. Walker
|
||||||
Kai Engert
|
Kai Engert
|
||||||
Kai Sommerfeld
|
Kai Sommerfeld
|
||||||
Kai-Uwe Rommel
|
Kai-Uwe Rommel
|
||||||
Kalle Vahlman
|
Kalle Vahlman
|
||||||
Kamil Dudka
|
Kamil Dudka
|
||||||
|
Kang Lin
|
||||||
Kang-Jin Lee
|
Kang-Jin Lee
|
||||||
Karl M
|
|
||||||
Karl Moerder
|
Karl Moerder
|
||||||
Karol Pietrzak
|
Karol Pietrzak
|
||||||
Kaspar Brand
|
Kaspar Brand
|
||||||
Katie Wang
|
Katie Wang
|
||||||
|
Kazuho Oku
|
||||||
Kees Cook
|
Kees Cook
|
||||||
Keith MacDonald
|
Keith MacDonald
|
||||||
Keith McGuigan
|
Keith McGuigan
|
||||||
@@ -618,12 +727,15 @@ Krishnendu Majumdar
|
|||||||
Krister Johansen
|
Krister Johansen
|
||||||
Kristian Gunstone
|
Kristian Gunstone
|
||||||
Kristian Köhntopp
|
Kristian Köhntopp
|
||||||
|
Kurt Fankhauser
|
||||||
|
Kyle J. McKay
|
||||||
Kyle L. Huff
|
Kyle L. Huff
|
||||||
Kyle Sallee
|
Kyle Sallee
|
||||||
Lachlan O'Dea
|
Lachlan O'Dea
|
||||||
Larry Campbell
|
Larry Campbell
|
||||||
Larry Fahnoe
|
Larry Fahnoe
|
||||||
Larry Lin
|
Larry Lin
|
||||||
|
Larry Stone
|
||||||
Lars Buitinck
|
Lars Buitinck
|
||||||
Lars Gustafsson
|
Lars Gustafsson
|
||||||
Lars J. Aas
|
Lars J. Aas
|
||||||
@@ -632,36 +744,49 @@ Lars Nilsson
|
|||||||
Lars Torben Wilson
|
Lars Torben Wilson
|
||||||
Lau Hang Kin
|
Lau Hang Kin
|
||||||
Laurent Rabret
|
Laurent Rabret
|
||||||
|
Lauri Kasanen
|
||||||
Legoff Vincent
|
Legoff Vincent
|
||||||
Lehel Bernadt
|
Lehel Bernadt
|
||||||
Leif W
|
Leif W
|
||||||
|
Leith Bade
|
||||||
Len Krause
|
Len Krause
|
||||||
Lenaic Lefever
|
Lenaic Lefever
|
||||||
Lenny Rachitsky
|
Lenny Rachitsky
|
||||||
Leon Winter
|
Leon Winter
|
||||||
|
Leonardo Rosati
|
||||||
Liam Healy
|
Liam Healy
|
||||||
Lijo Antony
|
Lijo Antony
|
||||||
Linas Vepstas
|
Linas Vepstas
|
||||||
|
Lindley French
|
||||||
Ling Thio
|
Ling Thio
|
||||||
Linus Nielsen Feltzing
|
Linus Nielsen Feltzing
|
||||||
|
Lior Kaplan
|
||||||
Lisa Xu
|
Lisa Xu
|
||||||
|
Liviu Chircu
|
||||||
Liza Alenchery
|
Liza Alenchery
|
||||||
Lluís Batlle i Rossell
|
Lluís Batlle i Rossell
|
||||||
Loic Dachary
|
Loic Dachary
|
||||||
Loren Kirkby
|
Loren Kirkby
|
||||||
|
Luan Cestari
|
||||||
Luca Altea
|
Luca Altea
|
||||||
Luca Alteas
|
|
||||||
Lucas Adamski
|
Lucas Adamski
|
||||||
|
Lucas Pardue
|
||||||
|
Ludek Finstrle
|
||||||
Ludovico Cavedon
|
Ludovico Cavedon
|
||||||
|
Ludwig Nussel
|
||||||
|
Lukas Ruzicka
|
||||||
Lukasz Czekierda
|
Lukasz Czekierda
|
||||||
Luke Amery
|
Luke Amery
|
||||||
Luke Call
|
Luke Call
|
||||||
Luke Dashjr
|
Luke Dashjr
|
||||||
Luong Dinh Dung
|
Luong Dinh Dung
|
||||||
|
Lyndon Hill
|
||||||
Maciej Karpiuk
|
Maciej Karpiuk
|
||||||
Maciej Puzio
|
Maciej Puzio
|
||||||
Maciej W. Rozycki
|
Maciej W. Rozycki
|
||||||
Maks Naumov
|
Maks Naumov
|
||||||
|
Maksim Kuzevanov
|
||||||
|
Maksim Stsepanenka
|
||||||
Mamoru Tasaka
|
Mamoru Tasaka
|
||||||
Mandy Wu
|
Mandy Wu
|
||||||
Manfred Schwarb
|
Manfred Schwarb
|
||||||
@@ -669,8 +794,10 @@ Manuel Massing
|
|||||||
Marc Boucher
|
Marc Boucher
|
||||||
Marc Deslauriers
|
Marc Deslauriers
|
||||||
Marc Doughty
|
Marc Doughty
|
||||||
|
Marc Hesse
|
||||||
Marc Hoersken
|
Marc Hoersken
|
||||||
Marc Kleine-Budde
|
Marc Kleine-Budde
|
||||||
|
Marc Renault
|
||||||
Marcel Raad
|
Marcel Raad
|
||||||
Marcel Roelofs
|
Marcel Roelofs
|
||||||
Marcelo Juchem
|
Marcelo Juchem
|
||||||
@@ -693,6 +820,7 @@ Mark Salisbury
|
|||||||
Mark Snelling
|
Mark Snelling
|
||||||
Mark Tully
|
Mark Tully
|
||||||
Markus Duft
|
Markus Duft
|
||||||
|
Markus Elfring
|
||||||
Markus Koetter
|
Markus Koetter
|
||||||
Markus Moeller
|
Markus Moeller
|
||||||
Markus Oberhumer
|
Markus Oberhumer
|
||||||
@@ -713,6 +841,7 @@ Mateusz Loskot
|
|||||||
Mathias Axelsson
|
Mathias Axelsson
|
||||||
Mats Lidell
|
Mats Lidell
|
||||||
Matt Arsenault
|
Matt Arsenault
|
||||||
|
Matt Ford
|
||||||
Matt Kraai
|
Matt Kraai
|
||||||
Matt Veenstra
|
Matt Veenstra
|
||||||
Matt Witherspoon
|
Matt Witherspoon
|
||||||
@@ -720,6 +849,7 @@ Matt Wixson
|
|||||||
Matteo Rocco
|
Matteo Rocco
|
||||||
Matthew Blain
|
Matthew Blain
|
||||||
Matthew Clarke
|
Matthew Clarke
|
||||||
|
Matthew Hall
|
||||||
Matthias Bolte
|
Matthias Bolte
|
||||||
Maurice Barnum
|
Maurice Barnum
|
||||||
Mauro Iorio
|
Mauro Iorio
|
||||||
@@ -740,18 +870,26 @@ Michael Day
|
|||||||
Michael Goffioul
|
Michael Goffioul
|
||||||
Michael Jahn
|
Michael Jahn
|
||||||
Michael Jerris
|
Michael Jerris
|
||||||
|
Michael Kalinin
|
||||||
|
Michael Kaufmann
|
||||||
|
Michael König
|
||||||
Michael Mealling
|
Michael Mealling
|
||||||
Michael Mueller
|
Michael Mueller
|
||||||
Michael Osipov
|
Michael Osipov
|
||||||
Michael Smith
|
Michael Smith
|
||||||
|
Michael Stapelberg
|
||||||
Michael Stillwell
|
Michael Stillwell
|
||||||
Michael Wallner
|
Michael Wallner
|
||||||
Michal Bonino
|
Michal Bonino
|
||||||
Michal Gorny
|
|
||||||
Michal Kowalczyk
|
|
||||||
Michal Marek
|
Michal Marek
|
||||||
|
Michał Fita
|
||||||
|
Michał Górny
|
||||||
|
Michał Kowalczyk
|
||||||
|
Michał Piechowski
|
||||||
|
Michel Promonet
|
||||||
Michele Bini
|
Michele Bini
|
||||||
Miguel Angel
|
Miguel Angel
|
||||||
|
Miguel Diaz
|
||||||
Mihai Ionescu
|
Mihai Ionescu
|
||||||
Mikael Johansson
|
Mikael Johansson
|
||||||
Mikael Sennerholm
|
Mikael Sennerholm
|
||||||
@@ -760,22 +898,26 @@ Mike Crowe
|
|||||||
Mike Dobbs
|
Mike Dobbs
|
||||||
Mike Giancola
|
Mike Giancola
|
||||||
Mike Hasselberg
|
Mike Hasselberg
|
||||||
|
Mike Henshaw
|
||||||
Mike Hommey
|
Mike Hommey
|
||||||
Mike Mio
|
Mike Mio
|
||||||
Mike Power
|
Mike Power
|
||||||
Mike Protts
|
Mike Protts
|
||||||
Mike Revi
|
Mike Revi
|
||||||
Miklos Nemeth
|
Miklos Nemeth
|
||||||
|
Miroslav Spousta
|
||||||
Mitz Wark
|
Mitz Wark
|
||||||
Mohamed Lrhazi
|
Mohamed Lrhazi
|
||||||
Mohammad AlSaleh
|
Mohammad AlSaleh
|
||||||
Mohun Biswas
|
Mohun Biswas
|
||||||
Moonesamy
|
Mostyn Bramley-Moore
|
||||||
Myk Taylor
|
Myk Taylor
|
||||||
Nach M. S.
|
Nach M. S.
|
||||||
|
Nagai H
|
||||||
Nathan Coulter
|
Nathan Coulter
|
||||||
Nathan O'Sullivan
|
Nathan O'Sullivan
|
||||||
Nathanael Nerode
|
Nathanael Nerode
|
||||||
|
Nathaniel Waisbrot
|
||||||
Naveen Chandran
|
Naveen Chandran
|
||||||
Naveen Noel
|
Naveen Noel
|
||||||
Neil Bowers
|
Neil Bowers
|
||||||
@@ -799,17 +941,25 @@ Nikos Mavrogiannopoulos
|
|||||||
Ning Dong
|
Ning Dong
|
||||||
Nir Soffer
|
Nir Soffer
|
||||||
Nis Jorgensen
|
Nis Jorgensen
|
||||||
|
Nobuhiro Ban
|
||||||
Nodak Sodak
|
Nodak Sodak
|
||||||
Norbert Frese
|
Norbert Frese
|
||||||
|
Norbert Kett
|
||||||
Norbert Novotny
|
Norbert Novotny
|
||||||
|
Octavio Schroeder
|
||||||
Ofer
|
Ofer
|
||||||
|
Ola Mork
|
||||||
Olaf Flebbe
|
Olaf Flebbe
|
||||||
Olaf Stueben
|
|
||||||
Olaf Stüben
|
Olaf Stüben
|
||||||
Oliver Gondža
|
Oliver Gondža
|
||||||
|
Oliver Graute
|
||||||
Oliver Kuckertz
|
Oliver Kuckertz
|
||||||
|
Oliver Schindler
|
||||||
Olivier Berger
|
Olivier Berger
|
||||||
|
Orange Tsai
|
||||||
|
Oren Souroujon
|
||||||
Oren Tirosh
|
Oren Tirosh
|
||||||
|
Orgad Shaneh
|
||||||
Ori Avtalion
|
Ori Avtalion
|
||||||
Oscar Koeroo
|
Oscar Koeroo
|
||||||
Oscar Norlander
|
Oscar Norlander
|
||||||
@@ -818,11 +968,14 @@ Paolo Piacentini
|
|||||||
Paras Sethia
|
Paras Sethia
|
||||||
Pascal Terjan
|
Pascal Terjan
|
||||||
Pasha Kuznetsov
|
Pasha Kuznetsov
|
||||||
|
Pasi Karkkainen
|
||||||
Pat Ray
|
Pat Ray
|
||||||
Patrice Guerin
|
Patrice Guerin
|
||||||
Patricia Muscalu
|
Patricia Muscalu
|
||||||
Patrick Bihan-Faou
|
Patrick Bihan-Faou
|
||||||
|
Patrick McManus
|
||||||
Patrick Monnerat
|
Patrick Monnerat
|
||||||
|
Patrick Rapin
|
||||||
Patrick Scott
|
Patrick Scott
|
||||||
Patrick Smith
|
Patrick Smith
|
||||||
Patrick Watson
|
Patrick Watson
|
||||||
@@ -835,7 +988,9 @@ Paul Marks
|
|||||||
Paul Marquis
|
Paul Marquis
|
||||||
Paul Moore
|
Paul Moore
|
||||||
Paul Nolan
|
Paul Nolan
|
||||||
|
Paul Oliver
|
||||||
Paul Querna
|
Paul Querna
|
||||||
|
Paul Saab
|
||||||
Pavel Cenek
|
Pavel Cenek
|
||||||
Pavel Orehov
|
Pavel Orehov
|
||||||
Pavel Raiskup
|
Pavel Raiskup
|
||||||
@@ -843,7 +998,6 @@ Pawel A. Gajda
|
|||||||
Pawel Kierski
|
Pawel Kierski
|
||||||
Pedro Larroy
|
Pedro Larroy
|
||||||
Pedro Neves
|
Pedro Neves
|
||||||
Pete Su
|
|
||||||
Peter Bray
|
Peter Bray
|
||||||
Peter Forret
|
Peter Forret
|
||||||
Peter Gal
|
Peter Gal
|
||||||
@@ -851,6 +1005,7 @@ Peter Heuchert
|
|||||||
Peter Hjalmarsson
|
Peter Hjalmarsson
|
||||||
Peter Korsgaard
|
Peter Korsgaard
|
||||||
Peter Lamberg
|
Peter Lamberg
|
||||||
|
Peter Laser
|
||||||
Peter O'Gorman
|
Peter O'Gorman
|
||||||
Peter Pentchev
|
Peter Pentchev
|
||||||
Peter Silva
|
Peter Silva
|
||||||
@@ -858,6 +1013,8 @@ Peter Su
|
|||||||
Peter Sylvester
|
Peter Sylvester
|
||||||
Peter Todd
|
Peter Todd
|
||||||
Peter Verhas
|
Peter Verhas
|
||||||
|
Peter Wang
|
||||||
|
Peter Wu
|
||||||
Peter Wullinger
|
Peter Wullinger
|
||||||
Peteris Krumins
|
Peteris Krumins
|
||||||
Petr Bahula
|
Petr Bahula
|
||||||
@@ -888,11 +1045,15 @@ Quanah Gibson-Mount
|
|||||||
Quinn Slack
|
Quinn Slack
|
||||||
Radu Simionescu
|
Radu Simionescu
|
||||||
Rafa Muyo
|
Rafa Muyo
|
||||||
|
Rafael Antonio
|
||||||
Rafael Sagula
|
Rafael Sagula
|
||||||
|
Rafayel Mkrtchyan
|
||||||
|
Rafaël Carré
|
||||||
Rainer Canavan
|
Rainer Canavan
|
||||||
Rainer Jung
|
Rainer Jung
|
||||||
Rainer Koenig
|
Rainer Koenig
|
||||||
Rajesh Naganathan
|
Rajesh Naganathan
|
||||||
|
Rajkumar Mandal
|
||||||
Ralf S. Engelschall
|
Ralf S. Engelschall
|
||||||
Ralph Beckmann
|
Ralph Beckmann
|
||||||
Ralph Mitchell
|
Ralph Mitchell
|
||||||
@@ -901,6 +1062,8 @@ Randy McMurchy
|
|||||||
Ravi Pratap
|
Ravi Pratap
|
||||||
Ray Dassen
|
Ray Dassen
|
||||||
Ray Pekowski
|
Ray Pekowski
|
||||||
|
Ray Satiro
|
||||||
|
Razvan Cojocaru
|
||||||
Reinout van Schouwen
|
Reinout van Schouwen
|
||||||
Remi Gacogne
|
Remi Gacogne
|
||||||
Renato Botelho
|
Renato Botelho
|
||||||
@@ -912,6 +1075,7 @@ Rene Rebe
|
|||||||
Reuven Wachtfogel
|
Reuven Wachtfogel
|
||||||
Reza Arbab
|
Reza Arbab
|
||||||
Ricardo Cadime
|
Ricardo Cadime
|
||||||
|
Rich Burridge
|
||||||
Rich Gray
|
Rich Gray
|
||||||
Rich Rauenzahn
|
Rich Rauenzahn
|
||||||
Richard Archer
|
Richard Archer
|
||||||
@@ -920,9 +1084,12 @@ Richard Bramante
|
|||||||
Richard Clayton
|
Richard Clayton
|
||||||
Richard Cooper
|
Richard Cooper
|
||||||
Richard Gorton
|
Richard Gorton
|
||||||
|
Richard Hosking
|
||||||
Richard Michael
|
Richard Michael
|
||||||
|
Richard Moore
|
||||||
Richard Prescott
|
Richard Prescott
|
||||||
Richard Silverman
|
Richard Silverman
|
||||||
|
Richard van den Berg
|
||||||
Rick Jones
|
Rick Jones
|
||||||
Rick Richardson
|
Rick Richardson
|
||||||
Rob Crittenden
|
Rob Crittenden
|
||||||
@@ -944,7 +1111,9 @@ Robin Johnson
|
|||||||
Robin Kay
|
Robin Kay
|
||||||
Robson Braga Araujo
|
Robson Braga Araujo
|
||||||
Rodney Simmons
|
Rodney Simmons
|
||||||
|
Rodric Glaser
|
||||||
Rodrigo Silva
|
Rodrigo Silva
|
||||||
|
Roger Leigh
|
||||||
Roland Blom
|
Roland Blom
|
||||||
Roland Krikava
|
Roland Krikava
|
||||||
Roland Zimmermann
|
Roland Zimmermann
|
||||||
@@ -952,6 +1121,7 @@ Rolland Dudemaine
|
|||||||
Roman Koifman
|
Roman Koifman
|
||||||
Roman Mamedov
|
Roman Mamedov
|
||||||
Romulo A. Ceccon
|
Romulo A. Ceccon
|
||||||
|
Ron Parker
|
||||||
Ron Zapp
|
Ron Zapp
|
||||||
Rosimildo da Silva
|
Rosimildo da Silva
|
||||||
Roy Shan
|
Roy Shan
|
||||||
@@ -967,7 +1137,9 @@ S. Moonesamy
|
|||||||
Salvador Dávila
|
Salvador Dávila
|
||||||
Salvatore Sorrentino
|
Salvatore Sorrentino
|
||||||
Sam Deane
|
Sam Deane
|
||||||
Sam Listopad
|
Sam Hurst
|
||||||
|
Sam Roth
|
||||||
|
Sam Schanken
|
||||||
Sampo Kellomaki
|
Sampo Kellomaki
|
||||||
Samuel Díaz García
|
Samuel Díaz García
|
||||||
Samuel Listopad
|
Samuel Listopad
|
||||||
@@ -978,25 +1150,29 @@ Santhana Todatry
|
|||||||
Saqib Ali
|
Saqib Ali
|
||||||
Sara Golemon
|
Sara Golemon
|
||||||
Saran Neti
|
Saran Neti
|
||||||
|
Sascha Swiercy
|
||||||
Saul good
|
Saul good
|
||||||
Scott Bailey
|
Scott Bailey
|
||||||
Scott Barrett
|
Scott Barrett
|
||||||
Scott Cantor
|
Scott Cantor
|
||||||
Scott Davis
|
Scott Davis
|
||||||
Scott McCreary
|
Scott McCreary
|
||||||
|
Sean Boudreau
|
||||||
|
Sebastian Pohlschmidt
|
||||||
Sebastian Rasmussen
|
Sebastian Rasmussen
|
||||||
Sebastien Willemijns
|
|
||||||
Senthil Raja Velu
|
Senthil Raja Velu
|
||||||
Sergei Nikulov
|
Sergei Nikulov
|
||||||
Sergey Tatarincev
|
Sergey Tatarincev
|
||||||
Sergio Ballestrero
|
Sergio Ballestrero
|
||||||
Seshubabu Pasam
|
Seshubabu Pasam
|
||||||
|
Seth Mos
|
||||||
Sh Diao
|
Sh Diao
|
||||||
Shao Shuchao
|
Shao Shuchao
|
||||||
Sharad Gupta
|
Sharad Gupta
|
||||||
Shard
|
Shard
|
||||||
Shawn Landden
|
Shawn Landden
|
||||||
Shawn Poulson
|
Shawn Poulson
|
||||||
|
Shine Fan
|
||||||
Shmulik Regev
|
Shmulik Regev
|
||||||
Siddhartha Prakash Jain
|
Siddhartha Prakash Jain
|
||||||
Sidney San Martin
|
Sidney San Martin
|
||||||
@@ -1008,15 +1184,19 @@ Song Ma
|
|||||||
Sonia Subramanian
|
Sonia Subramanian
|
||||||
Spacen Jasset
|
Spacen Jasset
|
||||||
Spiridonoff A.V
|
Spiridonoff A.V
|
||||||
|
Spork Schivago
|
||||||
Stadler Stephan
|
Stadler Stephan
|
||||||
Stan van de Burgt
|
Stan van de Burgt
|
||||||
Stanislav Ivochkin
|
Stanislav Ivochkin
|
||||||
|
Stefan Bühler
|
||||||
|
Stefan Eissing
|
||||||
Stefan Esser
|
Stefan Esser
|
||||||
Stefan Krause
|
Stefan Krause
|
||||||
Stefan Neis
|
Stefan Neis
|
||||||
Stefan Teleman
|
Stefan Teleman
|
||||||
Stefan Tomanek
|
Stefan Tomanek
|
||||||
Stefan Ulrich
|
Stefan Ulrich
|
||||||
|
Steinar H. Gunderson
|
||||||
Stephan Bergmann
|
Stephan Bergmann
|
||||||
Stephen Collyer
|
Stephen Collyer
|
||||||
Stephen Kick
|
Stephen Kick
|
||||||
@@ -1024,6 +1204,7 @@ Stephen More
|
|||||||
Sterling Hughes
|
Sterling Hughes
|
||||||
Steve Green
|
Steve Green
|
||||||
Steve H Truong
|
Steve H Truong
|
||||||
|
Steve Havelka
|
||||||
Steve Holme
|
Steve Holme
|
||||||
Steve Lhomme
|
Steve Lhomme
|
||||||
Steve Little
|
Steve Little
|
||||||
@@ -1036,23 +1217,32 @@ Steven Gu
|
|||||||
Steven M. Schweda
|
Steven M. Schweda
|
||||||
Steven Parkes
|
Steven Parkes
|
||||||
Stoned Elipot
|
Stoned Elipot
|
||||||
|
Sune Ahlgren
|
||||||
Sven Anders
|
Sven Anders
|
||||||
Sven Neuhaus
|
Sven Neuhaus
|
||||||
Sven Wegener
|
Sven Wegener
|
||||||
|
Svyatoslav Mishyn
|
||||||
|
Symeon Paraschoudis
|
||||||
Sébastien Willemijns
|
Sébastien Willemijns
|
||||||
T. Bharath
|
T. Bharath
|
||||||
T. Yamada
|
T. Yamada
|
||||||
|
TJ Saunders
|
||||||
|
Tae Hyoung Ahn
|
||||||
Taneli Vahakangas
|
Taneli Vahakangas
|
||||||
Tanguy Fautre
|
Tanguy Fautre
|
||||||
Tatsuhiro Tsujikawa
|
Tatsuhiro Tsujikawa
|
||||||
Temprimus
|
Temprimus
|
||||||
|
Terri Oda
|
||||||
Thomas Braun
|
Thomas Braun
|
||||||
|
Thomas Glanzmann
|
||||||
Thomas J. Moore
|
Thomas J. Moore
|
||||||
Thomas Klausner
|
Thomas Klausner
|
||||||
Thomas L. Shinnick
|
Thomas L. Shinnick
|
||||||
Thomas Lopatic
|
Thomas Lopatic
|
||||||
|
Thomas Ruecker
|
||||||
Thomas Schwinge
|
Thomas Schwinge
|
||||||
Thomas Tonino
|
Thomas Tonino
|
||||||
|
Thorsten Schöning
|
||||||
Tiit Pikma
|
Tiit Pikma
|
||||||
Till Maas
|
Till Maas
|
||||||
Tim Ansell
|
Tim Ansell
|
||||||
@@ -1063,15 +1253,19 @@ Tim Costello
|
|||||||
Tim Harder
|
Tim Harder
|
||||||
Tim Heckman
|
Tim Heckman
|
||||||
Tim Newsome
|
Tim Newsome
|
||||||
|
Tim Rühsen
|
||||||
Tim Sneddon
|
Tim Sneddon
|
||||||
|
Tim Stack
|
||||||
|
Tim Starling
|
||||||
Timo Sirainen
|
Timo Sirainen
|
||||||
|
Timotej Lazar
|
||||||
Tinus van den Berg
|
Tinus van den Berg
|
||||||
Tobias Markus
|
Tobias Markus
|
||||||
Tobias Rundström
|
Tobias Rundström
|
||||||
|
Tobias Stoeckmann
|
||||||
Toby Peterson
|
Toby Peterson
|
||||||
Todd A Ouska
|
Todd A Ouska
|
||||||
Todd Kulesza
|
Todd Kulesza
|
||||||
Todd Ouska
|
|
||||||
Todd Vierling
|
Todd Vierling
|
||||||
Tom Benoist
|
Tom Benoist
|
||||||
Tom Donovan
|
Tom Donovan
|
||||||
@@ -1088,6 +1282,8 @@ Tomas Hoger
|
|||||||
Tomas Mlcoch
|
Tomas Mlcoch
|
||||||
Tomas Pospisek
|
Tomas Pospisek
|
||||||
Tomas Szepe
|
Tomas Szepe
|
||||||
|
Tomas Tomecek
|
||||||
|
Tomasz Kojm
|
||||||
Tomasz Lacki
|
Tomasz Lacki
|
||||||
Tommie Gannert
|
Tommie Gannert
|
||||||
Tommy Tam
|
Tommy Tam
|
||||||
@@ -1107,12 +1303,14 @@ Török Edwin
|
|||||||
Ulf Härnhammar
|
Ulf Härnhammar
|
||||||
Ulf Samuelsson
|
Ulf Samuelsson
|
||||||
Ulrich Doehner
|
Ulrich Doehner
|
||||||
|
Ulrich Telle
|
||||||
Ulrich Zadow
|
Ulrich Zadow
|
||||||
Venkat Akella
|
Venkat Akella
|
||||||
Victor Snezhko
|
Victor Snezhko
|
||||||
Vijay Panghal
|
Vijay Panghal
|
||||||
Vikram Saxena
|
Vikram Saxena
|
||||||
Viktor Szakáts
|
Viktor Szakáts
|
||||||
|
Ville Skyttä
|
||||||
Vilmos Nebehaj
|
Vilmos Nebehaj
|
||||||
Vincent Bronner
|
Vincent Bronner
|
||||||
Vincent Le Normand
|
Vincent Le Normand
|
||||||
@@ -1125,9 +1323,13 @@ Vladimir Grishchenko
|
|||||||
Vladimir Lazarenko
|
Vladimir Lazarenko
|
||||||
Vojtech Janota
|
Vojtech Janota
|
||||||
Vojtech Minarik
|
Vojtech Minarik
|
||||||
|
Vojtěch Král
|
||||||
Vsevolod Novikov
|
Vsevolod Novikov
|
||||||
|
W. Mark Kubacki
|
||||||
|
Waldek Kozba
|
||||||
Walter J. Mack
|
Walter J. Mack
|
||||||
Ward Willats
|
Ward Willats
|
||||||
|
Warren Menzer
|
||||||
Wayne Haigh
|
Wayne Haigh
|
||||||
Werner Koch
|
Werner Koch
|
||||||
Wesley Laxton
|
Wesley Laxton
|
||||||
@@ -1136,19 +1338,24 @@ Wez Furlong
|
|||||||
Wilfredo Sanchez
|
Wilfredo Sanchez
|
||||||
Will Dietz
|
Will Dietz
|
||||||
Willem Sparreboom
|
Willem Sparreboom
|
||||||
|
William Ahern
|
||||||
Wojciech Zwiefka
|
Wojciech Zwiefka
|
||||||
Wouter Van Rooy
|
Wouter Van Rooy
|
||||||
Wu Yongzheng
|
Wu Yongzheng
|
||||||
Xavier Bouchoux
|
Xavier Bouchoux
|
||||||
|
Xiangbin Li
|
||||||
Yaakov Selkowitz
|
Yaakov Selkowitz
|
||||||
Yamada Yasuharu
|
Yamada Yasuharu
|
||||||
Yang Tse
|
Yang Tse
|
||||||
Yarram Sunil
|
Yarram Sunil
|
||||||
|
Yasuharu Yamada
|
||||||
Yehezkel Horowitz
|
Yehezkel Horowitz
|
||||||
Yehoshua Hershberg
|
Yehoshua Hershberg
|
||||||
Yi Huang
|
Yi Huang
|
||||||
Yingwei Liu
|
Yingwei Liu
|
||||||
|
Yousuke Kimoto
|
||||||
Yukihiro Kawada
|
Yukihiro Kawada
|
||||||
|
Yun SangHo
|
||||||
Yuriy Sosov
|
Yuriy Sosov
|
||||||
Yves Arrouye
|
Yves Arrouye
|
||||||
Yves Lejeune
|
Yves Lejeune
|
||||||
@@ -1159,3 +1366,5 @@ Zvi Har'El
|
|||||||
nk
|
nk
|
||||||
swalkaus at yahoo.com
|
swalkaus at yahoo.com
|
||||||
tommink[at]post.pl
|
tommink[at]post.pl
|
||||||
|
Štefan Kremeň
|
||||||
|
Никита Дорохин
|
||||||
|
|||||||
55
docs/THANKS-filter
Normal file
55
docs/THANKS-filter
Normal file
@@ -0,0 +1,55 @@
|
|||||||
|
# This is a list of names we have recorded that already are thanked
|
||||||
|
# appropriately in THANKS. This list contains variations of their names and
|
||||||
|
# their "canonical" name. This file is used for scripting purposes to avoid
|
||||||
|
# duplicate entries and will not be included in release tarballs.
|
||||||
|
# When removing dupes that aren't identical names from THANKS, add a line
|
||||||
|
# here!
|
||||||
|
#
|
||||||
|
# Used-by: contributor.sh
|
||||||
|
s/Andres Garcia/Andrés García/
|
||||||
|
s/Chris Conroy/Christopher Conroy/
|
||||||
|
s/Francois Charlier/François Charlier/
|
||||||
|
s/Gokhan Sengun/Gökhan Şengün/
|
||||||
|
s/John Malmberg/John E. Malmberg/
|
||||||
|
s/Luca Alteas/Luca Altea/
|
||||||
|
s/Michal Gorny/Michał Górny/
|
||||||
|
s/Michal Górny/Michał Górny/
|
||||||
|
s/Moonesamy/S. Moonesamy/
|
||||||
|
s/Pete Su$/Peter Su/
|
||||||
|
s/Sam Listopad/Samuel Listopad/
|
||||||
|
s/Sebastien Willemijns/Sébastien Willemijns/
|
||||||
|
s/YAMADA Yasuharu/Yasuharu Yamada/
|
||||||
|
s/Karl M$/Karl Moerder/
|
||||||
|
s/Bjorn Stenberg/Björn Stenberg/
|
||||||
|
s/upstream tests 305 and 404//
|
||||||
|
s/Gaël PORTAY/Gaël Portay/
|
||||||
|
s/Romulo Ceccon/Romulo A. Ceccon/
|
||||||
|
s/Nach M. S$/Nach M. S./
|
||||||
|
s/Jay Satiro/Ray Satiro/
|
||||||
|
s/Richard J. Moore/Richard Moore/
|
||||||
|
s/Sergey Nikulov/Sergei Nikulov/
|
||||||
|
s/Petr Písař/Petr Pisar/
|
||||||
|
s/Nick Zitzmann (originally)/Nick Zitzmann/
|
||||||
|
s/product-security at Apple//
|
||||||
|
s/IT DOES NOT WORK//
|
||||||
|
s/Albert Chin/Albert Chin-A-Young/
|
||||||
|
s/Paras S\z/Paras Sethia/
|
||||||
|
s/Paras Sethiaethia/Paras Sethia/
|
||||||
|
s/Дмитрий Фалько/Dmitry Falko/
|
||||||
|
s/byte_bucket in the #curl IRC channel//
|
||||||
|
s/Michal Górny and Anthony G. Basile//
|
||||||
|
s/Alejandro Alvarez$/Alejandro Alvarez Ayllon/
|
||||||
|
s/Ant Bryan/Anthony Bryan/
|
||||||
|
s/Cédric Deltheil/Cédric Deltheil/
|
||||||
|
s/Christian Hagele/Christian Hägele/
|
||||||
|
s/douglas steinwand/Douglas Steinwand/
|
||||||
|
s/Frank Van Uffelen and Fabian Hiernaux//
|
||||||
|
s/Rodrigo Silva (MestreLion)/Rodrigo Silva/
|
||||||
|
s/tetetest tetetest//
|
||||||
|
s/Jiří Hruška/Jiri Hruska/
|
||||||
|
s/Viktor Szakats/Viktor Szakáts/
|
||||||
|
s/Jonathan Cardoso/Jonathan Cardoso Machado/
|
||||||
|
s/Linus Nielsen/Linus Nielsen Feltzing/
|
||||||
|
s/Todd Ouska$/Todd A Ouska/
|
||||||
|
s/Tim Ruehsen/Tim Rühsen/
|
||||||
|
s/Michael Koenig/Michael König/
|
||||||
516
docs/TODO
516
docs/TODO
@@ -9,6 +9,11 @@
|
|||||||
Things to do in project cURL. Please tell us what you think, contribute and
|
Things to do in project cURL. Please tell us what you think, contribute and
|
||||||
send us patches that improve things!
|
send us patches that improve things!
|
||||||
|
|
||||||
|
Be aware that these are things that we could do, or have once been considered
|
||||||
|
things we could do. If you want to work on any of these areas, please
|
||||||
|
consider bringing it up for discussions first on the mailing list so that we
|
||||||
|
all agree it is still a good idea for the project!
|
||||||
|
|
||||||
All bugs documented in the KNOWN_BUGS document are subject for fixing!
|
All bugs documented in the KNOWN_BUGS document are subject for fixing!
|
||||||
|
|
||||||
1. libcurl
|
1. libcurl
|
||||||
@@ -19,10 +24,20 @@
|
|||||||
1.6 Modified buffer size approach
|
1.6 Modified buffer size approach
|
||||||
1.7 Detect when called from within callbacks
|
1.7 Detect when called from within callbacks
|
||||||
1.8 Allow SSL (HTTPS) to proxy
|
1.8 Allow SSL (HTTPS) to proxy
|
||||||
|
1.9 Cache negative name resolves
|
||||||
|
1.10 Support IDNA2008
|
||||||
|
1.11 minimize dependencies with dynamicly loaded modules
|
||||||
|
1.12 have form functions use CURL handle argument
|
||||||
|
1.13 Add CURLOPT_MAIL_CLIENT option
|
||||||
|
1.14 Typesafe curl_easy_setopt()
|
||||||
|
1.15 TCP Fast Open
|
||||||
|
1.16 Try to URL encode given URL
|
||||||
|
|
||||||
2. libcurl - multi interface
|
2. libcurl - multi interface
|
||||||
2.1 More non-blocking
|
2.1 More non-blocking
|
||||||
2.2 Fix HTTP Pipelining for PUT
|
2.2 Better support for same name resolves
|
||||||
|
2.3 Non-blocking curl_multi_remove_handle()
|
||||||
|
2.4 Split connect and authentication process
|
||||||
|
|
||||||
3. Documentation
|
3. Documentation
|
||||||
3.1 Update date and version in man pages
|
3.1 Update date and version in man pages
|
||||||
@@ -33,6 +48,8 @@
|
|||||||
4.3 Earlier bad letter detection
|
4.3 Earlier bad letter detection
|
||||||
4.4 REST for large files
|
4.4 REST for large files
|
||||||
4.5 ASCII support
|
4.5 ASCII support
|
||||||
|
4.6 GSSAPI via Windows SSPI
|
||||||
|
4.7 STAT for LIST without data connection
|
||||||
|
|
||||||
5. HTTP
|
5. HTTP
|
||||||
5.1 Better persistency for HTTP 1.0
|
5.1 Better persistency for HTTP 1.0
|
||||||
@@ -40,6 +57,8 @@
|
|||||||
5.3 Rearrange request header order
|
5.3 Rearrange request header order
|
||||||
5.4 SPDY
|
5.4 SPDY
|
||||||
5.5 auth= in URLs
|
5.5 auth= in URLs
|
||||||
|
5.6 Refuse "downgrade" redirects
|
||||||
|
5.7 More compressions
|
||||||
|
|
||||||
6. TELNET
|
6. TELNET
|
||||||
6.1 ditch stdin
|
6.1 ditch stdin
|
||||||
@@ -61,60 +80,77 @@
|
|||||||
10. LDAP
|
10. LDAP
|
||||||
10.1 SASL based authentication mechanisms
|
10.1 SASL based authentication mechanisms
|
||||||
|
|
||||||
11. New protocols
|
11. SMB
|
||||||
11.1 RSYNC
|
11.1 File listing support
|
||||||
|
11.2 Honor file timestamps
|
||||||
|
11.3 Use NTLMv2
|
||||||
|
11.4 Create remote directories
|
||||||
|
|
||||||
12. SSL
|
12. New protocols
|
||||||
12.1 Disable specific versions
|
12.1 RSYNC
|
||||||
12.2 Provide mutex locking API
|
|
||||||
12.3 Evaluate SSL patches
|
|
||||||
12.4 Cache OpenSSL contexts
|
|
||||||
12.5 Export session ids
|
|
||||||
12.6 Provide callback for cert verification
|
|
||||||
12.7 improve configure --with-ssl
|
|
||||||
12.8 Support DANE
|
|
||||||
|
|
||||||
13. GnuTLS
|
13. SSL
|
||||||
13.1 SSL engine stuff
|
13.1 Disable specific versions
|
||||||
13.2 check connection
|
13.2 Provide mutex locking API
|
||||||
|
13.3 Evaluate SSL patches
|
||||||
|
13.4 Cache OpenSSL contexts
|
||||||
|
13.5 Export session ids
|
||||||
|
13.6 Provide callback for cert verification
|
||||||
|
13.7 improve configure --with-ssl
|
||||||
|
13.8 Support DANE
|
||||||
|
|
||||||
14. SASL
|
14. GnuTLS
|
||||||
14.1 Other authentication mechanisms
|
14.1 SSL engine stuff
|
||||||
|
14.2 check connection
|
||||||
|
|
||||||
15. Client
|
15. WinSSL/SChannel
|
||||||
15.1 sync
|
15.1 Add support for client certificate authentication
|
||||||
15.2 glob posts
|
15.2 Add support for custom server certificate validation
|
||||||
15.3 prevent file overwriting
|
15.3 Add support for the --ciphers option
|
||||||
15.4 simultaneous parallel transfers
|
|
||||||
15.5 provide formpost headers
|
|
||||||
15.6 warning when setting an option
|
|
||||||
|
|
||||||
16. Build
|
16. SASL
|
||||||
16.1 roffit
|
16.1 Other authentication mechanisms
|
||||||
|
16.2 Add QOP support to GSSAPI authentication
|
||||||
|
|
||||||
17. Test suite
|
17. Command line tool
|
||||||
17.1 SSL tunnel
|
17.1 sync
|
||||||
17.2 nicer lacking perl message
|
17.2 glob posts
|
||||||
17.3 more protocols supported
|
17.3 prevent file overwriting
|
||||||
17.4 more platforms supported
|
17.4 simultaneous parallel transfers
|
||||||
17.5 Add support for concurrent connections
|
17.5 provide formpost headers
|
||||||
|
17.6 warning when setting an option
|
||||||
|
17.7 warning when sending binary output to terminal
|
||||||
|
17.8 offer color-coded HTTP header output
|
||||||
|
17.9 Choose the name of file in braces for complex URLs
|
||||||
|
17.10 improve how curl works in a windows console window
|
||||||
|
17.11 -w output to stderr
|
||||||
|
17.12 keep running, read instructions from pipe/socket
|
||||||
|
|
||||||
18. Next SONAME bump
|
18. Build
|
||||||
18.1 http-style HEAD output for FTP
|
18.1 roffit
|
||||||
18.2 combine error codes
|
|
||||||
18.3 extend CURLOPT_SOCKOPTFUNCTION prototype
|
|
||||||
|
|
||||||
19. Next major release
|
19. Test suite
|
||||||
19.1 cleanup return codes
|
19.1 SSL tunnel
|
||||||
19.2 remove obsolete defines
|
19.2 nicer lacking perl message
|
||||||
19.3 size_t
|
19.3 more protocols supported
|
||||||
19.4 remove several functions
|
19.4 more platforms supported
|
||||||
19.5 remove CURLOPT_FAILONERROR
|
19.5 Add support for concurrent connections
|
||||||
19.6 remove CURLOPT_DNS_USE_GLOBAL_CACHE
|
19.6 Use the RFC6265 test suite
|
||||||
19.7 remove progress meter from libcurl
|
|
||||||
19.8 remove 'curl_httppost' from public
|
20. Next SONAME bump
|
||||||
19.9 have form functions use CURL handle argument
|
20.1 http-style HEAD output for FTP
|
||||||
19.10 Add CURLOPT_MAIL_CLIENT option
|
20.2 combine error codes
|
||||||
|
20.3 extend CURLOPT_SOCKOPTFUNCTION prototype
|
||||||
|
|
||||||
|
21. Next major release
|
||||||
|
21.1 cleanup return codes
|
||||||
|
21.2 remove obsolete defines
|
||||||
|
21.3 size_t
|
||||||
|
21.4 remove several functions
|
||||||
|
21.5 remove CURLOPT_FAILONERROR
|
||||||
|
21.6 remove CURLOPT_DNS_USE_GLOBAL_CACHE
|
||||||
|
21.7 remove progress meter from libcurl
|
||||||
|
21.8 remove 'curl_httppost' from public
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
|
|
||||||
@@ -130,7 +166,7 @@
|
|||||||
|
|
||||||
Use 'struct lifreq' and SIOCGLIFADDR instead of 'struct ifreq' and
|
Use 'struct lifreq' and SIOCGLIFADDR instead of 'struct ifreq' and
|
||||||
SIOCGIFADDR on newer Solaris versions as they claim the latter is obsolete.
|
SIOCGIFADDR on newer Solaris versions as they claim the latter is obsolete.
|
||||||
To support ipv6 interface addresses for network interfaces properly.
|
To support IPv6 interface addresses for network interfaces properly.
|
||||||
|
|
||||||
1.4 signal-based resolver timeouts
|
1.4 signal-based resolver timeouts
|
||||||
|
|
||||||
@@ -139,7 +175,7 @@
|
|||||||
signal handler back into the library with a sigsetjmp, which effectively
|
signal handler back into the library with a sigsetjmp, which effectively
|
||||||
causes libcurl to continue running within the signal handler. This is
|
causes libcurl to continue running within the signal handler. This is
|
||||||
non-portable and could cause problems on some platforms. A discussion on the
|
non-portable and could cause problems on some platforms. A discussion on the
|
||||||
problem is available at http://curl.haxx.se/mail/lib-2008-09/0197.html
|
problem is available at https://curl.haxx.se/mail/lib-2008-09/0197.html
|
||||||
|
|
||||||
Also, alarm() provides timeout resolution only to the nearest second. alarm
|
Also, alarm() provides timeout resolution only to the nearest second. alarm
|
||||||
ought to be replaced by setitimer on systems that support it.
|
ought to be replaced by setitimer on systems that support it.
|
||||||
@@ -184,11 +220,83 @@
|
|||||||
|
|
||||||
To prevent local users from snooping on your traffic to the proxy. Supported
|
To prevent local users from snooping on your traffic to the proxy. Supported
|
||||||
by Chrome already:
|
by Chrome already:
|
||||||
http://www.chromium.org/developers/design-documents/secure-web-proxy
|
https://www.chromium.org/developers/design-documents/secure-web-proxy
|
||||||
|
|
||||||
...and by Firefox soon:
|
...and by Firefox soon:
|
||||||
https://bugzilla.mozilla.org/show_bug.cgi?id=378637
|
https://bugzilla.mozilla.org/show_bug.cgi?id=378637
|
||||||
|
|
||||||
|
1.9 Cache negative name resolves
|
||||||
|
|
||||||
|
A name resolve that has failed is likely to fail when made again within a
|
||||||
|
short period of time. Currently we only cache positive responses.
|
||||||
|
|
||||||
|
1.10 Support IDNA2008
|
||||||
|
|
||||||
|
International Domain Names are supported in libcurl since years back, powered
|
||||||
|
by libidn. libidn implements IDNA2003 which has been superseded by IDNA2008.
|
||||||
|
libidn2 is an existing library offering support for IDNA2008.
|
||||||
|
|
||||||
|
1.11 minimize dependencies with dynamicly loaded modules
|
||||||
|
|
||||||
|
We can create a system with loadable modules/plug-ins, where these modules
|
||||||
|
would be the ones that link to 3rd party libs. That would allow us to avoid
|
||||||
|
having to load ALL dependencies since only the necessary ones for this
|
||||||
|
app/invoke/used protocols would be necessary to load. See
|
||||||
|
https://github.com/curl/curl/issues/349
|
||||||
|
|
||||||
|
1.12 have form functions use CURL handle argument
|
||||||
|
|
||||||
|
curl_formadd() and curl_formget() both currently have no CURL handle
|
||||||
|
argument, but both can use a callback that is set in the easy handle, and
|
||||||
|
thus curl_formget() with callback cannot function without first having
|
||||||
|
curl_easy_perform() (or similar) called - which is hard to grasp and a design
|
||||||
|
mistake.
|
||||||
|
|
||||||
|
The curl_formadd() design can probably also be reconsidered to make it easier
|
||||||
|
to use and less error-prone. Probably easiest by splitting it into several
|
||||||
|
function calls.
|
||||||
|
|
||||||
|
1.13 Add CURLOPT_MAIL_CLIENT option
|
||||||
|
|
||||||
|
Rather than use the URL to specify the mail client string to present in the
|
||||||
|
HELO and EHLO commands, libcurl should support a new CURLOPT specifically for
|
||||||
|
specifying this data as the URL is non-standard and to be honest a bit of a
|
||||||
|
hack ;-)
|
||||||
|
|
||||||
|
Please see the following thread for more information:
|
||||||
|
https://curl.haxx.se/mail/lib-2012-05/0178.html
|
||||||
|
|
||||||
|
1.14 Typesafe curl_easy_setopt()
|
||||||
|
|
||||||
|
One of the most common problems in libcurl using applications is the lack of
|
||||||
|
type checks for curl_easy_setopt() which happens because it accepts varargs
|
||||||
|
and thus can take any type.
|
||||||
|
|
||||||
|
One possible solution to this is to introduce a few different versions of the
|
||||||
|
setopt version for the different kinds of data you can set.
|
||||||
|
|
||||||
|
curl_easy_set_num() - sets a long value
|
||||||
|
|
||||||
|
curl_easy_set_large() - sets a curl_off_t value
|
||||||
|
|
||||||
|
curl_easy_set_ptr() - sets a pointer
|
||||||
|
|
||||||
|
curl_easy_set_cb() - sets a callback PLUS its callback data
|
||||||
|
|
||||||
|
1.15 TCP Fast Open
|
||||||
|
|
||||||
|
RFC 7413 defines how to include data already in the TCP SYN handshake to
|
||||||
|
reduce latency.
|
||||||
|
|
||||||
|
1.16 Try to URL encode given URL
|
||||||
|
|
||||||
|
Given a URL that for example contains spaces, libcurl could have an option
|
||||||
|
that would try somewhat harder than it does now and convert spaces to %20 and
|
||||||
|
perhaps URL encoded byte values over 128 etc (basically do what the redirect
|
||||||
|
following code already does).
|
||||||
|
|
||||||
|
https://github.com/curl/curl/issues/514
|
||||||
|
|
||||||
2. libcurl - multi interface
|
2. libcurl - multi interface
|
||||||
|
|
||||||
2.1 More non-blocking
|
2.1 More non-blocking
|
||||||
@@ -205,11 +313,28 @@
|
|||||||
- The "DONE" operation (post transfer protocol-specific actions) for the
|
- The "DONE" operation (post transfer protocol-specific actions) for the
|
||||||
protocols SFTP, SMTP, FTP. Fixing Curl_done() for this is a worthy task.
|
protocols SFTP, SMTP, FTP. Fixing Curl_done() for this is a worthy task.
|
||||||
|
|
||||||
2.2 Fix HTTP Pipelining for PUT
|
2.2 Better support for same name resolves
|
||||||
|
|
||||||
HTTP Pipelining can be a way to greatly enhance performance for multiple
|
If a name resolve has been initiated for name NN and a second easy handle
|
||||||
serial requests and currently libcurl only supports that for HEAD and GET
|
wants to resolve that name as well, make it wait for the first resolve to end
|
||||||
requests but it should also be possible for PUT.
|
up in the cache instead of doing a second separate resolve. This is
|
||||||
|
especially needed when adding many simultaneous handles using the same host
|
||||||
|
name when the DNS resolver can get flooded.
|
||||||
|
|
||||||
|
2.3 Non-blocking curl_multi_remove_handle()
|
||||||
|
|
||||||
|
The multi interface has a few API calls that assume a blocking behavior, like
|
||||||
|
add_handle() and remove_handle() which limits what we can do internally. The
|
||||||
|
multi API need to be moved even more into a single function that "drives"
|
||||||
|
everything in a non-blocking manner and signals when something is done. A
|
||||||
|
remove or add would then only ask for the action to get started and then
|
||||||
|
multi_perform() etc still be called until the add/remove is completed.
|
||||||
|
|
||||||
|
2.4 Split connect and authentication process
|
||||||
|
|
||||||
|
The multi interface treats the authentication process as part of the connect
|
||||||
|
phase. As such any failures during authentication won't trigger the relevant
|
||||||
|
QUIT or LOGOFF for protocols such as IMAP, POP3 and SMTP.
|
||||||
|
|
||||||
3. Documentation
|
3. Documentation
|
||||||
|
|
||||||
@@ -226,14 +351,14 @@
|
|||||||
HOST is a command for a client to tell which host name to use, to offer FTP
|
HOST is a command for a client to tell which host name to use, to offer FTP
|
||||||
servers named-based virtual hosting:
|
servers named-based virtual hosting:
|
||||||
|
|
||||||
http://tools.ietf.org/html/rfc7151
|
https://tools.ietf.org/html/rfc7151
|
||||||
|
|
||||||
4.2 Alter passive/active on failure and retry
|
4.2 Alter passive/active on failure and retry
|
||||||
|
|
||||||
When trying to connect passively to a server which only supports active
|
When trying to connect passively to a server which only supports active
|
||||||
connections, libcurl returns CURLE_FTP_WEIRD_PASV_REPLY and closes the
|
connections, libcurl returns CURLE_FTP_WEIRD_PASV_REPLY and closes the
|
||||||
connection. There could be a way to fallback to an active connection (and
|
connection. There could be a way to fallback to an active connection (and
|
||||||
vice versa). http://curl.haxx.se/bug/feature.cgi?id=1754793
|
vice versa). https://curl.haxx.se/bug/feature.cgi?id=1754793
|
||||||
|
|
||||||
4.3 Earlier bad letter detection
|
4.3 Earlier bad letter detection
|
||||||
|
|
||||||
@@ -251,18 +376,32 @@
|
|||||||
FTP ASCII transfers do not follow RFC959. They don't convert the data
|
FTP ASCII transfers do not follow RFC959. They don't convert the data
|
||||||
accordingly.
|
accordingly.
|
||||||
|
|
||||||
|
4.6 GSSAPI via Windows SSPI
|
||||||
|
|
||||||
|
In addition to currently supporting the SASL GSSAPI mechanism (Kerberos V5)
|
||||||
|
via third-party GSS-API libraries, such as Heimdal or MIT Kerberos, also add
|
||||||
|
support for GSSAPI authentication via Windows SSPI.
|
||||||
|
|
||||||
|
4.7 STAT for LIST without data connection
|
||||||
|
|
||||||
|
Some FTP servers allow STAT for listing directories instead of using LIST, and
|
||||||
|
the response is then sent over the control connection instead of as the
|
||||||
|
otherwise usedw data connection: http://www.nsftools.com/tips/RawFTP.htm#STAT
|
||||||
|
|
||||||
|
This is not detailed in any FTP specification.
|
||||||
|
|
||||||
5. HTTP
|
5. HTTP
|
||||||
|
|
||||||
5.1 Better persistency for HTTP 1.0
|
5.1 Better persistency for HTTP 1.0
|
||||||
|
|
||||||
"Better" support for persistent connections over HTTP 1.0
|
"Better" support for persistent connections over HTTP 1.0
|
||||||
http://curl.haxx.se/bug/feature.cgi?id=1089001
|
https://curl.haxx.se/bug/feature.cgi?id=1089001
|
||||||
|
|
||||||
5.2 support FF3 sqlite cookie files
|
5.2 support FF3 sqlite cookie files
|
||||||
|
|
||||||
Firefox 3 is changing from its former format to a a sqlite database instead.
|
Firefox 3 is changing from its former format to a a sqlite database instead.
|
||||||
We should consider how (lib)curl can/should support this.
|
We should consider how (lib)curl can/should support this.
|
||||||
http://curl.haxx.se/bug/feature.cgi?id=1871388
|
https://curl.haxx.se/bug/feature.cgi?id=1871388
|
||||||
|
|
||||||
5.3 Rearrange request header order
|
5.3 Rearrange request header order
|
||||||
|
|
||||||
@@ -296,6 +435,22 @@
|
|||||||
|
|
||||||
Additionally this should be implemented for proxy base URLs as well.
|
Additionally this should be implemented for proxy base URLs as well.
|
||||||
|
|
||||||
|
5.6 Refuse "downgrade" redirects
|
||||||
|
|
||||||
|
See https://github.com/curl/curl/issues/226
|
||||||
|
|
||||||
|
Consider a way to tell curl to refuse to "downgrade" protocol with a redirect
|
||||||
|
and/or possibly a bit that refuses redirect to change protocol completely.
|
||||||
|
|
||||||
|
5.7 More compressions
|
||||||
|
|
||||||
|
Compression algorithms that perform better than gzip are being considered for
|
||||||
|
use and inclusion in existing browsers. For example 'brotli'. If servers
|
||||||
|
follow along it is a good reason for us to also allow users to take advantage
|
||||||
|
of this. The algorithm: https://github.com/google/brotli The Firefox bug:
|
||||||
|
https://bugzilla.mozilla.org/show_bug.cgi?id=366559
|
||||||
|
|
||||||
|
|
||||||
6. TELNET
|
6. TELNET
|
||||||
|
|
||||||
6.1 ditch stdin
|
6.1 ditch stdin
|
||||||
@@ -359,32 +514,52 @@ to provide the data to send.
|
|||||||
be possible to use ldap_bind_s() instead specifying the security context
|
be possible to use ldap_bind_s() instead specifying the security context
|
||||||
information ourselves.
|
information ourselves.
|
||||||
|
|
||||||
11. New protocols
|
11. SMB
|
||||||
|
|
||||||
11.1 RSYNC
|
11.1 File listing support
|
||||||
|
|
||||||
|
Add support for listing the contents of a SMB share. The output should probably
|
||||||
|
be the same as/similar to FTP.
|
||||||
|
|
||||||
|
11.2 Honor file timestamps
|
||||||
|
|
||||||
|
The timestamp of the transferred file should reflect that of the original file.
|
||||||
|
|
||||||
|
11.3 Use NTLMv2
|
||||||
|
|
||||||
|
Currently the SMB authentication uses NTLMv1.
|
||||||
|
|
||||||
|
11.4 Create remote directories
|
||||||
|
|
||||||
|
Support for creating remote directories when uploading a file to a directory
|
||||||
|
that doesn't exist on the server, just like --ftp-create-dirs.
|
||||||
|
|
||||||
|
12. New protocols
|
||||||
|
|
||||||
|
12.1 RSYNC
|
||||||
|
|
||||||
There's no RFC for the protocol or an URI/URL format. An implementation
|
There's no RFC for the protocol or an URI/URL format. An implementation
|
||||||
should most probably use an existing rsync library, such as librsync.
|
should most probably use an existing rsync library, such as librsync.
|
||||||
|
|
||||||
12. SSL
|
13. SSL
|
||||||
|
|
||||||
12.1 Disable specific versions
|
13.1 Disable specific versions
|
||||||
|
|
||||||
Provide an option that allows for disabling specific SSL versions, such as
|
Provide an option that allows for disabling specific SSL versions, such as
|
||||||
SSLv2 http://curl.haxx.se/bug/feature.cgi?id=1767276
|
SSLv2 https://curl.haxx.se/bug/feature.cgi?id=1767276
|
||||||
|
|
||||||
12.2 Provide mutex locking API
|
13.2 Provide mutex locking API
|
||||||
|
|
||||||
Provide a libcurl API for setting mutex callbacks in the underlying SSL
|
Provide a libcurl API for setting mutex callbacks in the underlying SSL
|
||||||
library, so that the same application code can use mutex-locking
|
library, so that the same application code can use mutex-locking
|
||||||
independently of OpenSSL or GnutTLS being used.
|
independently of OpenSSL or GnutTLS being used.
|
||||||
|
|
||||||
12.3 Evaluate SSL patches
|
13.3 Evaluate SSL patches
|
||||||
|
|
||||||
Evaluate/apply Gertjan van Wingerde's SSL patches:
|
Evaluate/apply Gertjan van Wingerde's SSL patches:
|
||||||
http://curl.haxx.se/mail/lib-2004-03/0087.html
|
https://curl.haxx.se/mail/lib-2004-03/0087.html
|
||||||
|
|
||||||
12.4 Cache OpenSSL contexts
|
13.4 Cache OpenSSL contexts
|
||||||
|
|
||||||
"Look at SSL cafile - quick traces look to me like these are done on every
|
"Look at SSL cafile - quick traces look to me like these are done on every
|
||||||
request as well, when they should only be necessary once per SSL context (or
|
request as well, when they should only be necessary once per SSL context (or
|
||||||
@@ -394,7 +569,7 @@ to provide the data to send.
|
|||||||
style connections are re-used. It will make us use slightly more memory but
|
style connections are re-used. It will make us use slightly more memory but
|
||||||
it will libcurl do less creations and deletions of SSL contexts.
|
it will libcurl do less creations and deletions of SSL contexts.
|
||||||
|
|
||||||
12.5 Export session ids
|
13.5 Export session ids
|
||||||
|
|
||||||
Add an interface to libcurl that enables "session IDs" to get
|
Add an interface to libcurl that enables "session IDs" to get
|
||||||
exported/imported. Cris Bailiff said: "OpenSSL has functions which can
|
exported/imported. Cris Bailiff said: "OpenSSL has functions which can
|
||||||
@@ -402,49 +577,92 @@ to provide the data to send.
|
|||||||
the state from such a buffer at a later date - this is used by mod_ssl for
|
the state from such a buffer at a later date - this is used by mod_ssl for
|
||||||
apache to implement and SSL session ID cache".
|
apache to implement and SSL session ID cache".
|
||||||
|
|
||||||
12.6 Provide callback for cert verification
|
13.6 Provide callback for cert verification
|
||||||
|
|
||||||
OpenSSL supports a callback for customised verification of the peer
|
OpenSSL supports a callback for customised verification of the peer
|
||||||
certificate, but this doesn't seem to be exposed in the libcurl APIs. Could
|
certificate, but this doesn't seem to be exposed in the libcurl APIs. Could
|
||||||
it be? There's so much that could be done if it were!
|
it be? There's so much that could be done if it were!
|
||||||
|
|
||||||
12.7 improve configure --with-ssl
|
13.7 improve configure --with-ssl
|
||||||
|
|
||||||
make the configure --with-ssl option first check for OpenSSL, then GnuTLS,
|
make the configure --with-ssl option first check for OpenSSL, then GnuTLS,
|
||||||
then NSS...
|
then NSS...
|
||||||
|
|
||||||
12.8 Support DANE
|
13.8 Support DANE
|
||||||
|
|
||||||
DNS-Based Authentication of Named Entities (DANE) is a way to provide SSL
|
DNS-Based Authentication of Named Entities (DANE) is a way to provide SSL
|
||||||
keys and certs over DNS using DNSSEC as an alternative to the CA model.
|
keys and certs over DNS using DNSSEC as an alternative to the CA model.
|
||||||
http://www.rfc-editor.org/rfc/rfc6698.txt
|
https://www.rfc-editor.org/rfc/rfc6698.txt
|
||||||
|
|
||||||
An initial patch was posted by Suresh Krishnaswamy on March 7th 2013
|
An initial patch was posted by Suresh Krishnaswamy on March 7th 2013
|
||||||
(http://curl.haxx.se/mail/lib-2013-03/0075.html) but it was a too simple
|
(https://curl.haxx.se/mail/lib-2013-03/0075.html) but it was a too simple
|
||||||
approach. See Daniel's comments:
|
approach. See Daniel's comments:
|
||||||
http://curl.haxx.se/mail/lib-2013-03/0103.html . libunbound may be the
|
https://curl.haxx.se/mail/lib-2013-03/0103.html . libunbound may be the
|
||||||
correct library to base this development on.
|
correct library to base this development on.
|
||||||
|
|
||||||
13. GnuTLS
|
14. GnuTLS
|
||||||
|
|
||||||
13.1 SSL engine stuff
|
14.1 SSL engine stuff
|
||||||
|
|
||||||
Is this even possible?
|
Is this even possible?
|
||||||
|
|
||||||
13.2 check connection
|
14.2 check connection
|
||||||
|
|
||||||
Add a way to check if the connection seems to be alive, to correspond to the
|
Add a way to check if the connection seems to be alive, to correspond to the
|
||||||
SSL_peak() way we use with OpenSSL.
|
SSL_peak() way we use with OpenSSL.
|
||||||
|
|
||||||
14. SASL
|
15. WinSSL/SChannel
|
||||||
|
|
||||||
14.1 Other authentication mechanisms
|
15.1 Add support for client certificate authentication
|
||||||
|
|
||||||
Add support for GSSAPI to SMTP, POP3 and IMAP.
|
WinSSL/SChannel currently makes use of the OS-level system and user
|
||||||
|
certificate and private key stores. This does not allow the application
|
||||||
|
or the user to supply a custom client certificate using curl or libcurl.
|
||||||
|
|
||||||
15. Client
|
Therefore support for the existing -E/--cert and --key options should be
|
||||||
|
implemented by supplying a custom certificate to the SChannel APIs, see:
|
||||||
|
- Getting a Certificate for Schannel
|
||||||
|
https://msdn.microsoft.com/en-us/library/windows/desktop/aa375447.aspx
|
||||||
|
|
||||||
15.1 sync
|
15.2 Add support for custom server certificate validation
|
||||||
|
|
||||||
|
WinSSL/SChannel currently makes use of the OS-level system and user
|
||||||
|
certificate trust store. This does not allow the application or user to
|
||||||
|
customize the server certificate validation process using curl or libcurl.
|
||||||
|
|
||||||
|
Therefore support for the existing --cacert or --capath options should be
|
||||||
|
implemented by supplying a custom certificate to the SChannel APIs, see:
|
||||||
|
- Getting a Certificate for Schannel
|
||||||
|
https://msdn.microsoft.com/en-us/library/windows/desktop/aa375447.aspx
|
||||||
|
|
||||||
|
15.3 Add support for the --ciphers option
|
||||||
|
|
||||||
|
The cipher suites used by WinSSL/SChannel are configured on an OS-level
|
||||||
|
instead of an application-level. This does not allow the application or
|
||||||
|
the user to customize the configured cipher suites using curl or libcurl.
|
||||||
|
|
||||||
|
Therefore support for the existing --ciphers option should be implemented
|
||||||
|
by mapping the OpenSSL/GnuTLS cipher suites to the SChannel APIs, see
|
||||||
|
- Specifying Schannel Ciphers and Cipher Strengths
|
||||||
|
https://msdn.microsoft.com/en-us/library/windows/desktop/aa380161.aspx
|
||||||
|
|
||||||
|
16. SASL
|
||||||
|
|
||||||
|
16.1 Other authentication mechanisms
|
||||||
|
|
||||||
|
Add support for other authentication mechanisms such as OLP,
|
||||||
|
GSS-SPNEGO and others.
|
||||||
|
|
||||||
|
16.2 Add QOP support to GSSAPI authentication
|
||||||
|
|
||||||
|
Currently the GSSAPI authentication only supports the default QOP of auth
|
||||||
|
(Authentication), whilst Kerberos V5 supports both auth-int (Authentication
|
||||||
|
with integrity protection) and auth-conf (Authentication with integrity and
|
||||||
|
privacy protection).
|
||||||
|
|
||||||
|
17. Command line tool
|
||||||
|
|
||||||
|
17.1 sync
|
||||||
|
|
||||||
"curl --sync http://example.com/feed[1-100].rss" or
|
"curl --sync http://example.com/feed[1-100].rss" or
|
||||||
"curl --sync http://example.net/{index,calendar,history}.html"
|
"curl --sync http://example.net/{index,calendar,history}.html"
|
||||||
@@ -453,12 +671,12 @@ to provide the data to send.
|
|||||||
remote file is newer than the local file. A Last-Modified HTTP date header
|
remote file is newer than the local file. A Last-Modified HTTP date header
|
||||||
should also be used to set the mod date on the downloaded file.
|
should also be used to set the mod date on the downloaded file.
|
||||||
|
|
||||||
15.2 glob posts
|
17.2 glob posts
|
||||||
|
|
||||||
Globbing support for -d and -F, as in 'curl -d "name=foo[0-9]" URL'.
|
Globbing support for -d and -F, as in 'curl -d "name=foo[0-9]" URL'.
|
||||||
This is easily scripted though.
|
This is easily scripted though.
|
||||||
|
|
||||||
15.3 prevent file overwriting
|
17.3 prevent file overwriting
|
||||||
|
|
||||||
Add an option that prevents cURL from overwriting existing local files. When
|
Add an option that prevents cURL from overwriting existing local files. When
|
||||||
used, and there already is an existing file with the target file name
|
used, and there already is an existing file with the target file name
|
||||||
@@ -466,14 +684,14 @@ to provide the data to send.
|
|||||||
existing). So that index.html becomes first index.html.1 and then
|
existing). So that index.html becomes first index.html.1 and then
|
||||||
index.html.2 etc.
|
index.html.2 etc.
|
||||||
|
|
||||||
15.4 simultaneous parallel transfers
|
17.4 simultaneous parallel transfers
|
||||||
|
|
||||||
The client could be told to use maximum N simultaneous parallel transfers and
|
The client could be told to use maximum N simultaneous parallel transfers and
|
||||||
then just make sure that happens. It should of course not make more than one
|
then just make sure that happens. It should of course not make more than one
|
||||||
connection to the same remote host. This would require the client to use the
|
connection to the same remote host. This would require the client to use the
|
||||||
multi interface. http://curl.haxx.se/bug/feature.cgi?id=1558595
|
multi interface. https://curl.haxx.se/bug/feature.cgi?id=1558595
|
||||||
|
|
||||||
15.5 provide formpost headers
|
17.5 provide formpost headers
|
||||||
|
|
||||||
Extending the capabilities of the multipart formposting. How about leaving
|
Extending the capabilities of the multipart formposting. How about leaving
|
||||||
the ';type=foo' syntax as it is and adding an extra tag (headers) which
|
the ';type=foo' syntax as it is and adding an extra tag (headers) which
|
||||||
@@ -487,43 +705,88 @@ to provide the data to send.
|
|||||||
which should overwrite the program reasonable defaults (plain/text,
|
which should overwrite the program reasonable defaults (plain/text,
|
||||||
8bit...)
|
8bit...)
|
||||||
|
|
||||||
15.6 warning when setting an option
|
17.6 warning when setting an option
|
||||||
|
|
||||||
Display a warning when libcurl returns an error when setting an option.
|
Display a warning when libcurl returns an error when setting an option.
|
||||||
This can be useful to tell when support for a particular feature hasn't been
|
This can be useful to tell when support for a particular feature hasn't been
|
||||||
compiled into the library.
|
compiled into the library.
|
||||||
|
|
||||||
16. Build
|
17.7 warning when sending binary output to terminal
|
||||||
|
|
||||||
16.1 roffit
|
Provide a way that prompts the user for confirmation before binary data is
|
||||||
|
sent to the terminal, much in the style 'less' does it.
|
||||||
|
|
||||||
|
17.8 offer color-coded HTTP header output
|
||||||
|
|
||||||
|
By offering different color output on the header name and the header
|
||||||
|
contents, they could be made more readable and thus help users working on
|
||||||
|
HTTP services.
|
||||||
|
|
||||||
|
17.9 Choose the name of file in braces for complex URLs
|
||||||
|
|
||||||
|
When using braces to download a list of URLs and you use complicated names
|
||||||
|
in the list of alternatives, it could be handy to allow curl to use other
|
||||||
|
names when saving.
|
||||||
|
|
||||||
|
Consider a way to offer that. Possibly like
|
||||||
|
{partURL1:name1,partURL2:name2,partURL3:name3} where the name following the
|
||||||
|
colon is the output name.
|
||||||
|
|
||||||
|
See https://github.com/curl/curl/issues/221
|
||||||
|
|
||||||
|
17.10 improve how curl works in a windows console window
|
||||||
|
|
||||||
|
If you pull the scrollbar when transferring with curl in a Windows console
|
||||||
|
window, the transfer is interrupted and can get disconnected. This can
|
||||||
|
probably be improved. See https://github.com/curl/curl/issues/322
|
||||||
|
|
||||||
|
17.11 -w output to stderr
|
||||||
|
|
||||||
|
-w is quite useful, but not to those of us who use curl without -o or -O
|
||||||
|
(such as for scripting through a higher level language). It would be nice to
|
||||||
|
have an option that is exactly like -w but sends it to stderr
|
||||||
|
instead. Proposed name: --write-stderr. See
|
||||||
|
https://github.com/curl/curl/issues/613
|
||||||
|
|
||||||
|
17.12 keep running, read instructions from pipe/socket
|
||||||
|
|
||||||
|
Provide an option that makes curl not exit after the last URL (or even work
|
||||||
|
without a given URL), and then make it read instructions passed on a pipe or
|
||||||
|
over a socket to make further instructions so that a second subsequent curl
|
||||||
|
invoke can talk to the still running instance and ask for transfers to get
|
||||||
|
done, and thus maintain its connection pool, DNS cache and more.
|
||||||
|
|
||||||
|
18. Build
|
||||||
|
|
||||||
|
18.1 roffit
|
||||||
|
|
||||||
Consider extending 'roffit' to produce decent ASCII output, and use that
|
Consider extending 'roffit' to produce decent ASCII output, and use that
|
||||||
instead of (g)nroff when building src/tool_hugehelp.c
|
instead of (g)nroff when building src/tool_hugehelp.c
|
||||||
|
|
||||||
17. Test suite
|
19. Test suite
|
||||||
|
|
||||||
17.1 SSL tunnel
|
19.1 SSL tunnel
|
||||||
|
|
||||||
Make our own version of stunnel for simple port forwarding to enable HTTPS
|
Make our own version of stunnel for simple port forwarding to enable HTTPS
|
||||||
and FTP-SSL tests without the stunnel dependency, and it could allow us to
|
and FTP-SSL tests without the stunnel dependency, and it could allow us to
|
||||||
provide test tools built with either OpenSSL or GnuTLS
|
provide test tools built with either OpenSSL or GnuTLS
|
||||||
|
|
||||||
17.2 nicer lacking perl message
|
19.2 nicer lacking perl message
|
||||||
|
|
||||||
If perl wasn't found by the configure script, don't attempt to run the tests
|
If perl wasn't found by the configure script, don't attempt to run the tests
|
||||||
but explain something nice why it doesn't.
|
but explain something nice why it doesn't.
|
||||||
|
|
||||||
17.3 more protocols supported
|
19.3 more protocols supported
|
||||||
|
|
||||||
Extend the test suite to include more protocols. The telnet could just do FTP
|
Extend the test suite to include more protocols. The telnet could just do FTP
|
||||||
or http operations (for which we have test servers).
|
or http operations (for which we have test servers).
|
||||||
|
|
||||||
17.4 more platforms supported
|
19.4 more platforms supported
|
||||||
|
|
||||||
Make the test suite work on more platforms. OpenBSD and Mac OS. Remove
|
Make the test suite work on more platforms. OpenBSD and Mac OS. Remove
|
||||||
fork()s and it should become even more portable.
|
fork()s and it should become even more portable.
|
||||||
|
|
||||||
17.5 Add support for concurrent connections
|
19.5 Add support for concurrent connections
|
||||||
|
|
||||||
Tests 836, 882 and 938 were designed to verify that separate connections aren't
|
Tests 836, 882 and 938 were designed to verify that separate connections aren't
|
||||||
used when using different login credentials in protocols that shouldn't re-use
|
used when using different login credentials in protocols that shouldn't re-use
|
||||||
@@ -537,14 +800,24 @@ to provide the data to send.
|
|||||||
and thus the wait for connections loop is never entered to receive the second
|
and thus the wait for connections loop is never entered to receive the second
|
||||||
connection.
|
connection.
|
||||||
|
|
||||||
18. Next SONAME bump
|
19.6 Use the RFC6265 test suite
|
||||||
|
|
||||||
18.1 http-style HEAD output for FTP
|
A test suite made for HTTP cookies (RFC 6265) by Adam Barth is available at
|
||||||
|
https://github.com/abarth/http-state/tree/master/tests
|
||||||
|
|
||||||
|
It'd be really awesome if someone would write a script/setup that would run
|
||||||
|
curl with that test suite and detect deviances. Ideally, that would even be
|
||||||
|
incorporated into our regular test suite.
|
||||||
|
|
||||||
|
|
||||||
|
20. Next SONAME bump
|
||||||
|
|
||||||
|
20.1 http-style HEAD output for FTP
|
||||||
|
|
||||||
#undef CURL_FTP_HTTPSTYLE_HEAD in lib/ftp.c to remove the HTTP-style headers
|
#undef CURL_FTP_HTTPSTYLE_HEAD in lib/ftp.c to remove the HTTP-style headers
|
||||||
from being output in NOBODY requests over FTP
|
from being output in NOBODY requests over FTP
|
||||||
|
|
||||||
18.2 combine error codes
|
20.2 combine error codes
|
||||||
|
|
||||||
Combine some of the error codes to remove duplicates. The original
|
Combine some of the error codes to remove duplicates. The original
|
||||||
numbering should not be changed, and the old identifiers would be
|
numbering should not be changed, and the old identifiers would be
|
||||||
@@ -569,29 +842,29 @@ to provide the data to send.
|
|||||||
|
|
||||||
CURLE_TFTP_PERM => CURLE_REMOTE_ACCESS_DENIED
|
CURLE_TFTP_PERM => CURLE_REMOTE_ACCESS_DENIED
|
||||||
|
|
||||||
18.3 extend CURLOPT_SOCKOPTFUNCTION prototype
|
20.3 extend CURLOPT_SOCKOPTFUNCTION prototype
|
||||||
|
|
||||||
The current prototype only provides 'purpose' that tells what the
|
The current prototype only provides 'purpose' that tells what the
|
||||||
connection/socket is for, but not any protocol or similar. It makes it hard
|
connection/socket is for, but not any protocol or similar. It makes it hard
|
||||||
for applications to differentiate on TCP vs UDP and even HTTP vs FTP and
|
for applications to differentiate on TCP vs UDP and even HTTP vs FTP and
|
||||||
similar.
|
similar.
|
||||||
|
|
||||||
19. Next major release
|
21. Next major release
|
||||||
|
|
||||||
19.1 cleanup return codes
|
21.1 cleanup return codes
|
||||||
|
|
||||||
curl_easy_cleanup() returns void, but curl_multi_cleanup() returns a
|
curl_easy_cleanup() returns void, but curl_multi_cleanup() returns a
|
||||||
CURLMcode. These should be changed to be the same.
|
CURLMcode. These should be changed to be the same.
|
||||||
|
|
||||||
19.2 remove obsolete defines
|
21.2 remove obsolete defines
|
||||||
|
|
||||||
remove obsolete defines from curl/curl.h
|
remove obsolete defines from curl/curl.h
|
||||||
|
|
||||||
19.3 size_t
|
21.3 size_t
|
||||||
|
|
||||||
make several functions use size_t instead of int in their APIs
|
make several functions use size_t instead of int in their APIs
|
||||||
|
|
||||||
19.4 remove several functions
|
21.4 remove several functions
|
||||||
|
|
||||||
remove the following functions from the public API:
|
remove the following functions from the public API:
|
||||||
|
|
||||||
@@ -612,18 +885,18 @@ to provide the data to send.
|
|||||||
|
|
||||||
curl_multi_socket_all
|
curl_multi_socket_all
|
||||||
|
|
||||||
19.5 remove CURLOPT_FAILONERROR
|
21.5 remove CURLOPT_FAILONERROR
|
||||||
|
|
||||||
Remove support for CURLOPT_FAILONERROR, it has gotten too kludgy and weird
|
Remove support for CURLOPT_FAILONERROR, it has gotten too kludgy and weird
|
||||||
internally. Let the app judge success or not for itself.
|
internally. Let the app judge success or not for itself.
|
||||||
|
|
||||||
19.6 remove CURLOPT_DNS_USE_GLOBAL_CACHE
|
21.6 remove CURLOPT_DNS_USE_GLOBAL_CACHE
|
||||||
|
|
||||||
Remove support for a global DNS cache. Anything global is silly, and we
|
Remove support for a global DNS cache. Anything global is silly, and we
|
||||||
already offer the share interface for the same functionality but done
|
already offer the share interface for the same functionality but done
|
||||||
"right".
|
"right".
|
||||||
|
|
||||||
19.7 remove progress meter from libcurl
|
21.7 remove progress meter from libcurl
|
||||||
|
|
||||||
The internally provided progress meter output doesn't belong in the library.
|
The internally provided progress meter output doesn't belong in the library.
|
||||||
Basically no application wants it (apart from curl) but instead applications
|
Basically no application wants it (apart from curl) but instead applications
|
||||||
@@ -633,7 +906,7 @@ to provide the data to send.
|
|||||||
variable types passed to it instead of doubles so that big files work
|
variable types passed to it instead of doubles so that big files work
|
||||||
correctly.
|
correctly.
|
||||||
|
|
||||||
19.8 remove 'curl_httppost' from public
|
21.8 remove 'curl_httppost' from public
|
||||||
|
|
||||||
curl_formadd() was made to fill in a public struct, but the fact that the
|
curl_formadd() was made to fill in a public struct, but the fact that the
|
||||||
struct is public is never really used by application for their own advantage
|
struct is public is never really used by application for their own advantage
|
||||||
@@ -641,22 +914,3 @@ to provide the data to send.
|
|||||||
|
|
||||||
Changing them to return a private handle will benefit the implementation and
|
Changing them to return a private handle will benefit the implementation and
|
||||||
allow us much greater freedoms while still maintaining a solid API and ABI.
|
allow us much greater freedoms while still maintaining a solid API and ABI.
|
||||||
|
|
||||||
19.9 have form functions use CURL handle argument
|
|
||||||
|
|
||||||
curl_formadd() and curl_formget() both currently have no CURL handle
|
|
||||||
argument, but both can use a callback that is set in the easy handle, and
|
|
||||||
thus curl_formget() with callback cannot function without first having
|
|
||||||
curl_easy_perform() (or similar) called - which is hard to grasp and a design
|
|
||||||
mistake.
|
|
||||||
|
|
||||||
19.10 Add CURLOPT_MAIL_CLIENT option
|
|
||||||
|
|
||||||
Rather than use the URL to specify the mail client string to present in the
|
|
||||||
HELO and EHLO commands, libcurl should support a new CURLOPT specifically for
|
|
||||||
specifying this data as the URL is non-standard and to be honest a bit of a
|
|
||||||
hack ;-)
|
|
||||||
|
|
||||||
Please see the following thread for more information:
|
|
||||||
http://curl.haxx.se/mail/lib-2012-05/0178.html
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
Updated: Dec 24, 2013 (http://curl.haxx.se/docs/httpscripting.html)
|
|
||||||
_ _ ____ _
|
_ _ ____ _
|
||||||
___| | | | _ \| |
|
___| | | | _ \| |
|
||||||
/ __| | | | |_) | |
|
/ __| | | | |_) | |
|
||||||
@@ -23,6 +22,8 @@ The Art Of Scripting HTTP Requests Using Curl
|
|||||||
3. Fetch a page
|
3. Fetch a page
|
||||||
3.1 GET
|
3.1 GET
|
||||||
3.2 HEAD
|
3.2 HEAD
|
||||||
|
3.3 Multiple URLs in a single command line
|
||||||
|
3.4 Multiple HTTP methods in a single command line
|
||||||
4. HTML forms
|
4. HTML forms
|
||||||
4.1 Forms explained
|
4.1 Forms explained
|
||||||
4.2 GET
|
4.2 GET
|
||||||
@@ -135,8 +136,8 @@ The Art Of Scripting HTTP Requests Using Curl
|
|||||||
|
|
||||||
The Uniform Resource Locator format is how you specify the address of a
|
The Uniform Resource Locator format is how you specify the address of a
|
||||||
particular resource on the Internet. You know these, you've seen URLs like
|
particular resource on the Internet. You know these, you've seen URLs like
|
||||||
http://curl.haxx.se or https://yourbank.com a million times. RFC 3986 is the
|
https://curl.haxx.se or https://yourbank.com a million times. RFC 3986 is the
|
||||||
canonical spec.
|
canonical spec. And yeah, the formal name is not URL, it is URI.
|
||||||
|
|
||||||
2.2 Host
|
2.2 Host
|
||||||
|
|
||||||
@@ -193,7 +194,6 @@ The Art Of Scripting HTTP Requests Using Curl
|
|||||||
the associated response. The path is what is to the right side of the slash
|
the associated response. The path is what is to the right side of the slash
|
||||||
that follows the host name and possibly port number.
|
that follows the host name and possibly port number.
|
||||||
|
|
||||||
|
|
||||||
3. Fetch a page
|
3. Fetch a page
|
||||||
|
|
||||||
3.1 GET
|
3.1 GET
|
||||||
@@ -203,7 +203,7 @@ The Art Of Scripting HTTP Requests Using Curl
|
|||||||
issues a GET request to the server and receives the document it asked for.
|
issues a GET request to the server and receives the document it asked for.
|
||||||
If you issue the command line
|
If you issue the command line
|
||||||
|
|
||||||
curl http://curl.haxx.se
|
curl https://curl.haxx.se
|
||||||
|
|
||||||
you get a web page returned in your terminal window. The entire HTML document
|
you get a web page returned in your terminal window. The entire HTML document
|
||||||
that that URL holds.
|
that that URL holds.
|
||||||
@@ -224,6 +224,46 @@ The Art Of Scripting HTTP Requests Using Curl
|
|||||||
may see a Content-Length: in the response headers, but there must not be an
|
may see a Content-Length: in the response headers, but there must not be an
|
||||||
actual body in the HEAD response.
|
actual body in the HEAD response.
|
||||||
|
|
||||||
|
3.3 Multiple URLs in a single command line
|
||||||
|
|
||||||
|
A single curl command line may involve one or many URLs. The most common case
|
||||||
|
is probably to just use one, but you can specify any amount of URLs. Yes
|
||||||
|
any. No limits. You'll then get requests repeated over and over for all the
|
||||||
|
given URLs.
|
||||||
|
|
||||||
|
Example, send two GETs:
|
||||||
|
|
||||||
|
curl http://url1.example.com http://url2.example.com
|
||||||
|
|
||||||
|
If you use --data to POST to the URL, using multiple URLs means that you send
|
||||||
|
that same POST to all the given URLs.
|
||||||
|
|
||||||
|
Example, send two POSTs:
|
||||||
|
|
||||||
|
curl --data name=curl http://url1.example.com http://url2.example.com
|
||||||
|
|
||||||
|
|
||||||
|
3.4 Multiple HTTP methods in a single command line
|
||||||
|
|
||||||
|
Sometimes you need to operate on several URLs in a single command line and do
|
||||||
|
different HTTP methods on each. For this, you'll enjoy the --next option. It
|
||||||
|
is basically a separator that separates a bunch of options from the next. All
|
||||||
|
the URLs before --next will get the same method and will get all the POST
|
||||||
|
data merged into one.
|
||||||
|
|
||||||
|
When curl reaches the --next on the command line, it'll sort of reset the
|
||||||
|
method and the POST data and allow a new set.
|
||||||
|
|
||||||
|
Perhaps this is best shown with a few examples. To send first a HEAD and then
|
||||||
|
a GET:
|
||||||
|
|
||||||
|
curl -I http://example.com --next http://example.com
|
||||||
|
|
||||||
|
To first send a POST and then a GET:
|
||||||
|
|
||||||
|
curl -d score=10 http://example.com/post.cgi --next http://example.com/results.html
|
||||||
|
|
||||||
|
|
||||||
4. HTML forms
|
4. HTML forms
|
||||||
|
|
||||||
4.1 Forms explained
|
4.1 Forms explained
|
||||||
@@ -302,6 +342,10 @@ The Art Of Scripting HTTP Requests Using Curl
|
|||||||
|
|
||||||
curl --data-urlencode "name=I am Daniel" http://www.example.com
|
curl --data-urlencode "name=I am Daniel" http://www.example.com
|
||||||
|
|
||||||
|
If you repeat --data several times on the command line, curl will
|
||||||
|
concatenate all the given data pieces - and put a '&' symbol between each
|
||||||
|
data segment.
|
||||||
|
|
||||||
4.4 File Upload POST
|
4.4 File Upload POST
|
||||||
|
|
||||||
Back in late 1995 they defined an additional way to post data over HTTP. It
|
Back in late 1995 they defined an additional way to post data over HTTP. It
|
||||||
@@ -557,8 +601,10 @@ The Art Of Scripting HTTP Requests Using Curl
|
|||||||
truckload of advanced features to allow all those encryptions and key
|
truckload of advanced features to allow all those encryptions and key
|
||||||
infrastructure mechanisms encrypted HTTP requires.
|
infrastructure mechanisms encrypted HTTP requires.
|
||||||
|
|
||||||
Curl supports encrypted fetches thanks to the freely available OpenSSL
|
Curl supports encrypted fetches when built to use a TLS library and it can be
|
||||||
libraries. To get a page from a HTTPS server, simply run curl like:
|
built to use one out of a fairly large set of libraries - "curl -V" will show
|
||||||
|
which one your curl was built to use (if any!). To get a page from a HTTPS
|
||||||
|
server, simply run curl like:
|
||||||
|
|
||||||
curl https://secure.example.com
|
curl https://secure.example.com
|
||||||
|
|
||||||
@@ -582,7 +628,13 @@ The Art Of Scripting HTTP Requests Using Curl
|
|||||||
More about server certificate verification and ca cert bundles can be read
|
More about server certificate verification and ca cert bundles can be read
|
||||||
in the SSLCERTS document, available online here:
|
in the SSLCERTS document, available online here:
|
||||||
|
|
||||||
http://curl.haxx.se/docs/sslcerts.html
|
https://curl.haxx.se/docs/sslcerts.html
|
||||||
|
|
||||||
|
At times you may end up with your own CA cert store and then you can tell
|
||||||
|
curl to use that to verify the server's certificate:
|
||||||
|
|
||||||
|
curl --cacert ca-bundle.pem https://example.com/
|
||||||
|
|
||||||
|
|
||||||
11. Custom Request Elements
|
11. Custom Request Elements
|
||||||
|
|
||||||
@@ -692,7 +744,7 @@ The Art Of Scripting HTTP Requests Using Curl
|
|||||||
|
|
||||||
14.1 Standards
|
14.1 Standards
|
||||||
|
|
||||||
RFC 2616 is a must to read if you want in-depth understanding of the HTTP
|
RFC 7230 is a must to read if you want in-depth understanding of the HTTP
|
||||||
protocol
|
protocol
|
||||||
|
|
||||||
RFC 3986 explains the URL syntax
|
RFC 3986 explains the URL syntax
|
||||||
@@ -703,4 +755,4 @@ The Art Of Scripting HTTP Requests Using Curl
|
|||||||
|
|
||||||
14.2 Sites
|
14.2 Sites
|
||||||
|
|
||||||
http://curl.haxx.se is the home of the cURL project
|
https://curl.haxx.se is the home of the cURL project
|
||||||
|
|||||||
@@ -1,22 +1,18 @@
|
|||||||
_ _ ____ _
|
|
||||||
___| | | | _ \| |
|
|
||||||
/ __| | | | |_) | |
|
|
||||||
| (__| |_| | _ <| |___
|
|
||||||
\___|\___/|_| \_\_____|
|
|
||||||
|
|
||||||
Version Numbers and Releases
|
Version Numbers and Releases
|
||||||
|
============================
|
||||||
|
|
||||||
Curl is not only curl. Curl is also libcurl. They're actually individually
|
Curl is not only curl. Curl is also libcurl. They're actually individually
|
||||||
versioned, but they mostly follow each other rather closely.
|
versioned, but they mostly follow each other rather closely.
|
||||||
|
|
||||||
The version numbering is always built up using the same system:
|
The version numbering is always built up using the same system:
|
||||||
|
|
||||||
X.Y[.Z]
|
X.Y.Z
|
||||||
|
|
||||||
Where
|
- X is main version number
|
||||||
X is main version number
|
- Y is release number
|
||||||
Y is release number
|
- Z is patch number
|
||||||
Z is patch number
|
|
||||||
|
## Bumping numbers
|
||||||
|
|
||||||
One of these numbers will get bumped in each new release. The numbers to the
|
One of these numbers will get bumped in each new release. The numbers to the
|
||||||
right of a bumped number will be reset to zero. If Z is zero, it may not be
|
right of a bumped number will be reset to zero. If Z is zero, it may not be
|
||||||
@@ -57,4 +53,4 @@ Version Numbers and Releases
|
|||||||
release. It makes comparisons with greater than and less than work.
|
release. It makes comparisons with greater than and less than work.
|
||||||
|
|
||||||
This number is also available as three separate defines:
|
This number is also available as three separate defines:
|
||||||
LIBCURL_VERSION_MAJOR, LIBCURL_VERSION_MINOR and LIBCURL_VERSION_PATCH.
|
`LIBCURL_VERSION_MAJOR`, `LIBCURL_VERSION_MINOR` and `LIBCURL_VERSION_PATCH`.
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
.\" *
|
.\" *
|
||||||
.\" * This software is licensed as described in the file COPYING, which
|
.\" * This software is licensed as described in the file COPYING, which
|
||||||
.\" * you should have received as part of this distribution. The terms
|
.\" * you should have received as part of this distribution. The terms
|
||||||
.\" * are also available at http://curl.haxx.se/docs/copyright.html.
|
.\" * are also available at https://curl.haxx.se/docs/copyright.html.
|
||||||
.\" *
|
.\" *
|
||||||
.\" * You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
.\" * You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
||||||
.\" * copies of the Software, and permit persons to whom the Software is
|
.\" * copies of the Software, and permit persons to whom the Software is
|
||||||
|
|||||||
514
docs/curl.1
514
docs/curl.1
@@ -5,11 +5,11 @@
|
|||||||
.\" * | (__| |_| | _ <| |___
|
.\" * | (__| |_| | _ <| |___
|
||||||
.\" * \___|\___/|_| \_\_____|
|
.\" * \___|\___/|_| \_\_____|
|
||||||
.\" *
|
.\" *
|
||||||
.\" * Copyright (C) 1998 - 2014, Daniel Stenberg, <daniel@haxx.se>, et al.
|
.\" * Copyright (C) 1998 - 2016, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
.\" *
|
.\" *
|
||||||
.\" * This software is licensed as described in the file COPYING, which
|
.\" * This software is licensed as described in the file COPYING, which
|
||||||
.\" * you should have received as part of this distribution. The terms
|
.\" * you should have received as part of this distribution. The terms
|
||||||
.\" * are also available at http://curl.haxx.se/docs/copyright.html.
|
.\" * are also available at https://curl.haxx.se/docs/copyright.html.
|
||||||
.\" *
|
.\" *
|
||||||
.\" * You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
.\" * You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
||||||
.\" * copies of the Software, and permit persons to whom the Software is
|
.\" * copies of the Software, and permit persons to whom the Software is
|
||||||
@@ -20,7 +20,7 @@
|
|||||||
.\" *
|
.\" *
|
||||||
.\" **************************************************************************
|
.\" **************************************************************************
|
||||||
.\"
|
.\"
|
||||||
.TH curl 1 "27 July 2012" "Curl 7.27.0" "Curl Manual"
|
.TH curl 1 "30 Nov 2014" "Curl 7.40.0" "Curl Manual"
|
||||||
.SH NAME
|
.SH NAME
|
||||||
curl \- transfer a URL
|
curl \- transfer a URL
|
||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
@@ -30,8 +30,8 @@ curl \- transfer a URL
|
|||||||
.B curl
|
.B curl
|
||||||
is a tool to transfer data from or to a server, using one of the supported
|
is a tool to transfer data from or to a server, using one of the supported
|
||||||
protocols (DICT, FILE, FTP, FTPS, GOPHER, HTTP, HTTPS, IMAP, IMAPS, LDAP,
|
protocols (DICT, FILE, FTP, FTPS, GOPHER, HTTP, HTTPS, IMAP, IMAPS, LDAP,
|
||||||
LDAPS, POP3, POP3S, RTMP, RTSP, SCP, SFTP, SMTP, SMTPS, TELNET and TFTP). The
|
LDAPS, POP3, POP3S, RTMP, RTSP, SCP, SFTP, SMB, SMBS, SMTP, SMTPS, TELNET
|
||||||
command is designed to work without user interaction.
|
and TFTP). The command is designed to work without user interaction.
|
||||||
|
|
||||||
curl offers a busload of useful tricks like proxy support, user
|
curl offers a busload of useful tricks like proxy support, user
|
||||||
authentication, FTP upload, HTTP post, SSL connections, cookies, file transfer
|
authentication, FTP upload, HTTP post, SSL connections, cookies, file transfer
|
||||||
@@ -39,8 +39,7 @@ resume, Metalink, and more. As you will see below, the number of features will
|
|||||||
make your head spin!
|
make your head spin!
|
||||||
|
|
||||||
curl is powered by libcurl for all transfer-related features. See
|
curl is powered by libcurl for all transfer-related features. See
|
||||||
.BR libcurl (3)
|
\fIlibcurl(3)\fP for details.
|
||||||
for details.
|
|
||||||
.SH URL
|
.SH URL
|
||||||
The URL syntax is protocol-dependent. You'll find a detailed description in
|
The URL syntax is protocol-dependent. You'll find a detailed description in
|
||||||
RFC 3986.
|
RFC 3986.
|
||||||
@@ -48,18 +47,20 @@ RFC 3986.
|
|||||||
You can specify multiple URLs or parts of URLs by writing part sets within
|
You can specify multiple URLs or parts of URLs by writing part sets within
|
||||||
braces as in:
|
braces as in:
|
||||||
|
|
||||||
http://site.{one,two,three}.com
|
http://site.{one,two,three}.com
|
||||||
|
|
||||||
or you can get sequences of alphanumeric series by using [] as in:
|
or you can get sequences of alphanumeric series by using [] as in:
|
||||||
|
|
||||||
ftp://ftp.numericals.com/file[1-100].txt
|
ftp://ftp.numericals.com/file[1-100].txt
|
||||||
ftp://ftp.numericals.com/file[001-100].txt (with leading zeros)
|
|
||||||
ftp://ftp.letters.com/file[a-z].txt
|
ftp://ftp.numericals.com/file[001-100].txt (with leading zeros)
|
||||||
|
|
||||||
|
ftp://ftp.letters.com/file[a-z].txt
|
||||||
|
|
||||||
Nested sequences are not supported, but you can use several ones next to each
|
Nested sequences are not supported, but you can use several ones next to each
|
||||||
other:
|
other:
|
||||||
|
|
||||||
http://any.org/archive[1996-1999]/vol[1-4]/part{a,b,c}.html
|
http://any.org/archive[1996-1999]/vol[1-4]/part{a,b,c}.html
|
||||||
|
|
||||||
You can specify any amount of URLs on the command line. They will be fetched
|
You can specify any amount of URLs on the command line. They will be fetched
|
||||||
in a sequential manner in the specified order.
|
in a sequential manner in the specified order.
|
||||||
@@ -67,8 +68,19 @@ in a sequential manner in the specified order.
|
|||||||
You can specify a step counter for the ranges to get every Nth number or
|
You can specify a step counter for the ranges to get every Nth number or
|
||||||
letter:
|
letter:
|
||||||
|
|
||||||
http://www.numericals.com/file[1-100:10].txt
|
http://www.numericals.com/file[1-100:10].txt
|
||||||
http://www.letters.com/file[a-z:2].txt
|
|
||||||
|
http://www.letters.com/file[a-z:2].txt
|
||||||
|
|
||||||
|
When using [] or {} sequences when invoked from a command line prompt, you
|
||||||
|
probably have to put the full URL within double quotes to avoid the shell from
|
||||||
|
interfering with it. This also goes for other characters treated special, like
|
||||||
|
for example '&', '?' and '*'.
|
||||||
|
|
||||||
|
Provide the IPv6 zone index in the URL with an escaped percentage sign and the
|
||||||
|
interface name. Like in
|
||||||
|
|
||||||
|
http://[fe80::3%25eth0]/
|
||||||
|
|
||||||
If you specify URL without protocol:// prefix, curl will attempt to guess what
|
If you specify URL without protocol:// prefix, curl will attempt to guess what
|
||||||
protocol you might want. It will then default to HTTP but try other protocols
|
protocol you might want. It will then default to HTTP but try other protocols
|
||||||
@@ -103,8 +115,8 @@ any response data to the terminal.
|
|||||||
If you prefer a progress "bar" instead of the regular meter, \fI-#\fP is your
|
If you prefer a progress "bar" instead of the regular meter, \fI-#\fP is your
|
||||||
friend.
|
friend.
|
||||||
.SH OPTIONS
|
.SH OPTIONS
|
||||||
Options start with one or two dashes. Many of the options require an addition
|
Options start with one or two dashes. Many of the options require an
|
||||||
value next to it.
|
additional value next to them.
|
||||||
|
|
||||||
The short "single-dash" form of the options, -d for example, may be used with
|
The short "single-dash" form of the options, -d for example, may be used with
|
||||||
or without a space between it and its value, although a space is a recommended
|
or without a space between it and its value, although a space is a recommended
|
||||||
@@ -157,23 +169,24 @@ You can use options \fI--tlsv1.0\fP, \fI--tlsv1.1\fP, and \fI--tlsv1.2\fP to
|
|||||||
control the TLS version more precisely (if the SSL backend in use supports such
|
control the TLS version more precisely (if the SSL backend in use supports such
|
||||||
a level of control).
|
a level of control).
|
||||||
.IP "-2, --sslv2"
|
.IP "-2, --sslv2"
|
||||||
(SSL)
|
(SSL) Forces curl to use SSL version 2 when negotiating with a remote SSL
|
||||||
Forces curl to use SSL version 2 when negotiating with a remote SSL server.
|
server. Sometimes curl is built without SSLv2 support. SSLv2 is widely
|
||||||
|
considered insecure (see RFC 6176).
|
||||||
.IP "-3, --sslv3"
|
.IP "-3, --sslv3"
|
||||||
(SSL)
|
(SSL) Forces curl to use SSL version 3 when negotiating with a remote SSL
|
||||||
Forces curl to use SSL version 3 when negotiating with a remote SSL server.
|
server. Sometimes curl is built without SSLv3 support. SSLv3 is widely
|
||||||
|
considered insecure (see RFC 7568).
|
||||||
.IP "-4, --ipv4"
|
.IP "-4, --ipv4"
|
||||||
If curl is capable of resolving an address to multiple IP versions (which it
|
This option tells curl to resolve names to IPv4 addresses only, and not for
|
||||||
is if it is IPv6-capable), this option tells curl to resolve names to IPv4
|
example try IPv6.
|
||||||
addresses only.
|
|
||||||
.IP "-6, --ipv6"
|
.IP "-6, --ipv6"
|
||||||
If curl is capable of resolving an address to multiple IP versions (which it
|
This option tells curl to resolve names to IPv6 addresses only, and not for
|
||||||
is if it is IPv6-capable), this option tells curl to resolve names to IPv6
|
example try IPv4.
|
||||||
addresses only.
|
|
||||||
.IP "-a, --append"
|
.IP "-a, --append"
|
||||||
(FTP/SFTP) When used in an upload, this will tell curl to append to the target
|
(FTP/SFTP) When used in an upload, this makes curl append to the target file
|
||||||
file instead of overwriting it. If the file doesn't exist, it will be created.
|
instead of overwriting it. If the remote file doesn't exist, it will be
|
||||||
Note that this flag is ignored by some SSH servers (including OpenSSH).
|
created. Note that this flag is ignored by some SFTP servers (including
|
||||||
|
OpenSSH).
|
||||||
.IP "-A, --user-agent <agent string>"
|
.IP "-A, --user-agent <agent string>"
|
||||||
(HTTP) Specify the User-Agent string to send to the HTTP server. Some badly
|
(HTTP) Specify the User-Agent string to send to the HTTP server. Some badly
|
||||||
done CGIs fail if this field isn't set to "Mozilla/4.0". To encode blanks in
|
done CGIs fail if this field isn't set to "Mozilla/4.0". To encode blanks in
|
||||||
@@ -194,39 +207,50 @@ since it may require data to be sent twice and then the client must be able to
|
|||||||
rewind. If the need should arise when uploading from stdin, the upload
|
rewind. If the need should arise when uploading from stdin, the upload
|
||||||
operation will fail.
|
operation will fail.
|
||||||
.IP "-b, --cookie <name=data>"
|
.IP "-b, --cookie <name=data>"
|
||||||
(HTTP)
|
(HTTP) Pass the data to the HTTP server as a cookie. It is supposedly the data
|
||||||
Pass the data to the HTTP server as a cookie. It is supposedly the
|
previously received from the server in a "Set-Cookie:" line. The data should
|
||||||
data previously received from the server in a "Set-Cookie:" line.
|
be in the format "NAME1=VALUE1; NAME2=VALUE2".
|
||||||
The data should be in the format "NAME1=VALUE1; NAME2=VALUE2".
|
|
||||||
|
|
||||||
If no '=' symbol is used in the line, it is treated as a filename to use to
|
If no '=' symbol is used in the line, it is treated as a filename to use to
|
||||||
read previously stored cookie lines from, which should be used in this session
|
read previously stored cookie lines from, which should be used in this session
|
||||||
if they match. Using this method also activates the "cookie parser" which will
|
if they match. Using this method also activates the cookie engine which will
|
||||||
make curl record incoming cookies too, which may be handy if you're using this
|
make curl record incoming cookies too, which may be handy if you're using this
|
||||||
in combination with the \fI-L, --location\fP option. The file format of the
|
in combination with the \fI-L, --location\fP option. The file format of the
|
||||||
file to read cookies from should be plain HTTP headers or the Netscape/Mozilla
|
file to read cookies from should be plain HTTP headers (Set-Cookie style) or
|
||||||
cookie file format.
|
the Netscape/Mozilla cookie file format.
|
||||||
|
|
||||||
\fBNOTE\fP that the file specified with \fI-b, --cookie\fP is only used as
|
The file specified with \fI-b, --cookie\fP is only used as input. No cookies
|
||||||
input. No cookies will be stored in the file. To store cookies, use the
|
will be written to the file. To store cookies, use the \fI-c, --cookie-jar\fP
|
||||||
\fI-c, --cookie-jar\fP option or you could even save the HTTP headers to a file
|
option.
|
||||||
using \fI-D, --dump-header\fP!
|
|
||||||
|
Exercise caution if you are using this option and multiple transfers may occur.
|
||||||
|
If you use the NAME1=VALUE1; format, or in a file use the Set-Cookie format and
|
||||||
|
don't specify a domain, then the cookie is sent for any domain (even after
|
||||||
|
redirects are followed) and cannot be modified by a server-set cookie. If the
|
||||||
|
cookie engine is enabled and a server sets a cookie of the same name then both
|
||||||
|
will be sent on a future transfer to that server, likely not what you intended.
|
||||||
|
To address these issues set a domain in Set-Cookie (doing that will include
|
||||||
|
sub-domains) or use the Netscape format.
|
||||||
|
|
||||||
If this option is used several times, the last one will be used.
|
If this option is used several times, the last one will be used.
|
||||||
.IP "-B, --use-ascii"
|
.IP "-B, --use-ascii"
|
||||||
(FTP/LDAP) Enable ASCII transfer. For FTP, this can also be
|
(FTP/LDAP) Enable ASCII transfer. For FTP, this can also be enforced by using
|
||||||
enforced by using an URL that ends with ";type=A". This option causes data
|
an URL that ends with ";type=A". This option causes data sent to stdout to be
|
||||||
sent to stdout to be in text mode for win32 systems.
|
in text mode for win32 systems.
|
||||||
.IP "--basic"
|
.IP "--basic"
|
||||||
(HTTP) Tells curl to use HTTP Basic authentication. This is the default and
|
(HTTP) Tells curl to use HTTP Basic authentication with the remote host. This
|
||||||
this option is usually pointless, unless you use it to override a previously
|
is the default and this option is usually pointless, unless you use it to
|
||||||
set option that sets a different authentication method (such as \fI--ntlm\fP,
|
override a previously set option that sets a different authentication method
|
||||||
\fI--digest\fP, or \fI--negotiate\fP).
|
(such as \fI--ntlm\fP, \fI--digest\fP, or \fI--negotiate\fP).
|
||||||
|
|
||||||
|
Used together with \fI-u, --user\fP and \fI-x, --proxy\fP.
|
||||||
|
|
||||||
|
See also \fI--proxy-basic\fP.
|
||||||
.IP "-c, --cookie-jar <file name>"
|
.IP "-c, --cookie-jar <file name>"
|
||||||
(HTTP) Specify to which file you want curl to write all cookies after a
|
(HTTP) Specify to which file you want curl to write all cookies after a
|
||||||
completed operation. Curl writes all cookies previously read from a specified
|
completed operation. Curl writes all cookies previously read from a specified
|
||||||
file as well as all cookies received from remote server(s). If no cookies are
|
file as well as all cookies received from remote server(s). If no cookies are
|
||||||
known, no file will be written. The file will be written using the Netscape
|
known, no data will be written. The file will be written using the Netscape
|
||||||
cookie file format. If you set the file name to a single dash, "-", the
|
cookie file format. If you set the file name to a single dash, "-", the
|
||||||
cookies will be written to stdout.
|
cookies will be written to stdout.
|
||||||
|
|
||||||
@@ -239,6 +263,9 @@ won't fail or even report an error clearly. Using -v will get a warning
|
|||||||
displayed, but that is the only visible feedback you get about this possibly
|
displayed, but that is the only visible feedback you get about this possibly
|
||||||
lethal situation.
|
lethal situation.
|
||||||
|
|
||||||
|
Since 7.43.0 cookies that were imported in the Set-Cookie format without a
|
||||||
|
domain name are not exported by this option.
|
||||||
|
|
||||||
If this option is used several times, the last specified file name will be
|
If this option is used several times, the last specified file name will be
|
||||||
used.
|
used.
|
||||||
.IP "-C, --continue-at <offset>"
|
.IP "-C, --continue-at <offset>"
|
||||||
@@ -254,11 +281,11 @@ If this option is used several times, the last one will be used.
|
|||||||
.IP "--ciphers <list of ciphers>"
|
.IP "--ciphers <list of ciphers>"
|
||||||
(SSL) Specifies which ciphers to use in the connection. The list of ciphers
|
(SSL) Specifies which ciphers to use in the connection. The list of ciphers
|
||||||
must specify valid ciphers. Read up on SSL cipher list details on this URL:
|
must specify valid ciphers. Read up on SSL cipher list details on this URL:
|
||||||
\fIhttp://www.openssl.org/docs/apps/ciphers.html\fP
|
\fIhttps://www.openssl.org/docs/apps/ciphers.html\fP
|
||||||
|
|
||||||
NSS ciphers are done differently than OpenSSL and GnuTLS. The full list of NSS
|
NSS ciphers are done differently than OpenSSL and GnuTLS. The full list of NSS
|
||||||
ciphers is in the NSSCipherSuite entry at this URL:
|
ciphers is in the NSSCipherSuite entry at this URL:
|
||||||
\fIhttp://git.fedorahosted.org/cgit/mod_nss.git/plain/docs/mod_nss.html#Directives\fP
|
\fIhttps://git.fedorahosted.org/cgit/mod_nss.git/plain/docs/mod_nss.html#Directives\fP
|
||||||
|
|
||||||
If this option is used several times, the last one will be used.
|
If this option is used several times, the last one will be used.
|
||||||
.IP "--compressed"
|
.IP "--compressed"
|
||||||
@@ -266,11 +293,12 @@ If this option is used several times, the last one will be used.
|
|||||||
supports, and save the uncompressed document. If this option is used and the
|
supports, and save the uncompressed document. If this option is used and the
|
||||||
server sends an unsupported encoding, curl will report an error.
|
server sends an unsupported encoding, curl will report an error.
|
||||||
.IP "--connect-timeout <seconds>"
|
.IP "--connect-timeout <seconds>"
|
||||||
Maximum time in seconds that you allow the connection to the server to take.
|
Maximum time in seconds that you allow curl's connection to take. This only
|
||||||
This only limits the connection phase, once curl has connected this option is
|
limits the connection phase, so if curl connects within the given period it
|
||||||
of no more use. Since 7.32.0, this option accepts decimal values, but the
|
will continue - if not it will exit. Since version 7.32.0, this option
|
||||||
actual timeout will decrease in accuracy as the specified timeout increases in
|
accepts decimal values.
|
||||||
decimal precision. See also the \fI-m, --max-time\fP option.
|
|
||||||
|
See also the \fI-m, --max-time\fP option.
|
||||||
|
|
||||||
If this option is used several times, the last one will be used.
|
If this option is used several times, the last one will be used.
|
||||||
.IP "--create-dirs"
|
.IP "--create-dirs"
|
||||||
@@ -282,7 +310,9 @@ uses no dir or if the dirs it mentions already exist, no dir will be created.
|
|||||||
To create remote directories when using FTP or SFTP, try
|
To create remote directories when using FTP or SFTP, try
|
||||||
\fI--ftp-create-dirs\fP.
|
\fI--ftp-create-dirs\fP.
|
||||||
.IP "--crlf"
|
.IP "--crlf"
|
||||||
(FTP) Convert LF to CRLF in upload. Useful for MVS (OS/390).
|
Convert LF to CRLF in upload. Useful for MVS (OS/390).
|
||||||
|
|
||||||
|
(SMTP added in 7.40.0)
|
||||||
.IP "--crlfile <file>"
|
.IP "--crlfile <file>"
|
||||||
(HTTPS/FTPS) Provide a file using PEM format with a Certificate Revocation
|
(HTTPS/FTPS) Provide a file using PEM format with a Certificate Revocation
|
||||||
List that may specify peer certificates that are to be considered revoked.
|
List that may specify peer certificates that are to be considered revoked.
|
||||||
@@ -297,9 +327,10 @@ presses the submit button. This will cause curl to pass the data to the server
|
|||||||
using the content-type application/x-www-form-urlencoded. Compare to
|
using the content-type application/x-www-form-urlencoded. Compare to
|
||||||
\fI-F, --form\fP.
|
\fI-F, --form\fP.
|
||||||
|
|
||||||
\fI-d, --data\fP is the same as \fI--data-ascii\fP. To post data purely binary,
|
\fI-d, --data\fP is the same as \fI--data-ascii\fP. \fI--data-raw\fP is almost
|
||||||
you should instead use the \fI--data-binary\fP option. To URL-encode the value
|
the same but does not have a special interpretation of the @ character. To
|
||||||
of a form field you may use \fI--data-urlencode\fP.
|
post data purely binary, you should instead use the \fI--data-binary\fP option.
|
||||||
|
To URL-encode the value of a form field you may use \fI--data-urlencode\fP.
|
||||||
|
|
||||||
If any of these options is used more than once on the same command line, the
|
If any of these options is used more than once on the same command line, the
|
||||||
data pieces specified will be merged together with a separating
|
data pieces specified will be merged together with a separating
|
||||||
@@ -311,20 +342,20 @@ read the data from, or - if you want curl to read the data from
|
|||||||
stdin. Multiple files can also be specified. Posting data from a file
|
stdin. Multiple files can also be specified. Posting data from a file
|
||||||
named 'foobar' would thus be done with \fI--data\fP @foobar. When --data is
|
named 'foobar' would thus be done with \fI--data\fP @foobar. When --data is
|
||||||
told to read from a file like that, carriage returns and newlines will be
|
told to read from a file like that, carriage returns and newlines will be
|
||||||
stripped out.
|
stripped out. If you don't want the @ character to have a special
|
||||||
|
interpretation use \fI--data-raw\fP instead.
|
||||||
.IP "-D, --dump-header <file>"
|
.IP "-D, --dump-header <file>"
|
||||||
Write the protocol headers to the specified file.
|
Write the protocol headers to the specified file.
|
||||||
|
|
||||||
This option is handy to use when you want to store the headers that an HTTP
|
This option is handy to use when you want to store the headers that an HTTP
|
||||||
site sends to you. Cookies from the headers could then be read in a second
|
site sends to you. Cookies from the headers could then be read in a second
|
||||||
curl invocation by using the \fI-b, --cookie\fP option! The
|
curl invocation by using the \fI-b, --cookie\fP option! The
|
||||||
\fI-c, --cookie-jar\fP option is however a better way to store cookies.
|
\fI-c, --cookie-jar\fP option is a better way to store cookies.
|
||||||
|
|
||||||
When used in FTP, the FTP server response lines are considered being "headers"
|
When used in FTP, the FTP server response lines are considered being "headers"
|
||||||
and thus are saved there.
|
and thus are saved there.
|
||||||
|
|
||||||
If this option is used several times, the last one will be used.
|
If this option is used several times, the last one will be used.
|
||||||
|
|
||||||
.IP "--data-ascii <data>"
|
.IP "--data-ascii <data>"
|
||||||
See \fI-d, --data\fP.
|
See \fI-d, --data\fP.
|
||||||
.IP "--data-binary <data>"
|
.IP "--data-binary <data>"
|
||||||
@@ -337,6 +368,10 @@ and carriage returns are preserved and conversions are never done.
|
|||||||
|
|
||||||
If this option is used several times, the ones following the first will append
|
If this option is used several times, the ones following the first will append
|
||||||
data as described in \fI-d, --data\fP.
|
data as described in \fI-d, --data\fP.
|
||||||
|
.IP "--data-raw <data>"
|
||||||
|
(HTTP) This posts data similarly to \fI--data\fP but without the special
|
||||||
|
interpretation of the @ character. See \fI-d, --data\fP.
|
||||||
|
(Added in 7.43.0)
|
||||||
.IP "--data-urlencode <data>"
|
.IP "--data-urlencode <data>"
|
||||||
(HTTP) This posts data, similar to the other --data options with the exception
|
(HTTP) This posts data, similar to the other --data options with the exception
|
||||||
that this performs URL-encoding. (Added in 7.18.0)
|
that this performs URL-encoding. (Added in 7.18.0)
|
||||||
@@ -395,6 +430,9 @@ the traditional PORT command.
|
|||||||
\fB--eprt\fP can be used to explicitly enable EPRT again and \fB--no-eprt\fP
|
\fB--eprt\fP can be used to explicitly enable EPRT again and \fB--no-eprt\fP
|
||||||
is an alias for \fB--disable-eprt\fP.
|
is an alias for \fB--disable-eprt\fP.
|
||||||
|
|
||||||
|
If the server is an IPv6 host, this option will have no effect as EPRT is
|
||||||
|
necessary then.
|
||||||
|
|
||||||
Disabling EPRT only changes the active behavior. If you want to switch to
|
Disabling EPRT only changes the active behavior. If you want to switch to
|
||||||
passive mode you need to not use \fI-P, --ftp-port\fP or force it with
|
passive mode you need to not use \fI-P, --ftp-port\fP or force it with
|
||||||
\fI--ftp-pasv\fP.
|
\fI--ftp-pasv\fP.
|
||||||
@@ -406,6 +444,9 @@ but with this option, it will not try using EPSV.
|
|||||||
\fB--epsv\fP can be used to explicitly enable EPSV again and \fB--no-epsv\fP
|
\fB--epsv\fP can be used to explicitly enable EPSV again and \fB--no-epsv\fP
|
||||||
is an alias for \fB--disable-epsv\fP.
|
is an alias for \fB--disable-epsv\fP.
|
||||||
|
|
||||||
|
If the server is an IPv6 host, this option will have no effect as EPSV is
|
||||||
|
necessary then.
|
||||||
|
|
||||||
Disabling EPSV only changes the passive behavior. If you want to switch to
|
Disabling EPSV only changes the passive behavior. If you want to switch to
|
||||||
active mode you need to use \fI-P, --ftp-port\fP.
|
active mode you need to use \fI-P, --ftp-port\fP.
|
||||||
.IP "--dns-interface <interface>"
|
.IP "--dns-interface <interface>"
|
||||||
@@ -453,10 +494,10 @@ If this option is used several times, the last one will be used.
|
|||||||
(SSL) Tells curl to use the specified client certificate file when getting a
|
(SSL) Tells curl to use the specified client certificate file when getting a
|
||||||
file with HTTPS, FTPS or another SSL-based protocol. The certificate must be
|
file with HTTPS, FTPS or another SSL-based protocol. The certificate must be
|
||||||
in PKCS#12 format if using Secure Transport, or PEM format if using any other
|
in PKCS#12 format if using Secure Transport, or PEM format if using any other
|
||||||
engine. If the optional password isn't specified, it will be queried
|
engine. If the optional password isn't specified, it will be queried for on
|
||||||
for on the terminal. Note that this option assumes a \&"certificate" file that
|
the terminal. Note that this option assumes a \&"certificate" file that is the
|
||||||
is the private key and the private certificate concatenated! See \fI--cert\fP
|
private key and the client certificate concatenated! See \fI--cert\fP and
|
||||||
and \fI--key\fP to specify them independently.
|
\fI--key\fP to specify them independently.
|
||||||
|
|
||||||
If curl is built against the NSS SSL library then this option can tell
|
If curl is built against the NSS SSL library then this option can tell
|
||||||
curl the nickname of the certificate to use within the NSS database defined
|
curl the nickname of the certificate to use within the NSS database defined
|
||||||
@@ -488,6 +529,13 @@ after having run curl.
|
|||||||
(SSL) Specify the path name to the Entropy Gathering Daemon socket. The socket
|
(SSL) Specify the path name to the Entropy Gathering Daemon socket. The socket
|
||||||
is used to seed the random engine for SSL connections. See also the
|
is used to seed the random engine for SSL connections. See also the
|
||||||
\fI--random-file\fP option.
|
\fI--random-file\fP option.
|
||||||
|
.IP "--expect100-timeout <seconds>"
|
||||||
|
(HTTP) Maximum time in seconds that you allow curl to wait for a 100-continue
|
||||||
|
response when curl emits an Expects: 100-continue header in its request. By
|
||||||
|
default curl will wait one second. This option accepts decimal values! When
|
||||||
|
curl stops waiting, it will continue as if the response has been received.
|
||||||
|
|
||||||
|
(Added in 7.47.0)
|
||||||
.IP "--cert-type <type>"
|
.IP "--cert-type <type>"
|
||||||
(SSL) Tells curl what certificate type the provided certificate is in. PEM,
|
(SSL) Tells curl what certificate type the provided certificate is in. PEM,
|
||||||
DER and ENG are recognized types. If not specified, PEM is assumed.
|
DER and ENG are recognized types. If not specified, PEM is assumed.
|
||||||
@@ -522,12 +570,48 @@ OpenSSL-powered curl to make SSL-connections much more efficiently than using
|
|||||||
|
|
||||||
If this option is set, the default capath value will be ignored, and if it is
|
If this option is set, the default capath value will be ignored, and if it is
|
||||||
used several times, the last one will be used.
|
used several times, the last one will be used.
|
||||||
|
.IP "--pinnedpubkey <pinned public key (hashes)>"
|
||||||
|
(SSL) Tells curl to use the specified public key file (or hashes) to verify the
|
||||||
|
peer. This can be a path to a file which contains a single public key in PEM or
|
||||||
|
DER format, or any number of base64 encoded sha256 hashes preceded by
|
||||||
|
\'sha256//\' and separated by \';\'
|
||||||
|
|
||||||
|
When negotiating a TLS or SSL connection, the server sends a certificate
|
||||||
|
indicating its identity. A public key is extracted from this certificate and
|
||||||
|
if it does not exactly match the public key provided to this option, curl will
|
||||||
|
abort the connection before sending or receiving any data.
|
||||||
|
|
||||||
|
Added in 7.39.0 for OpenSSL, GnuTLS and GSKit. Added in 7.43.0 for NSS and
|
||||||
|
wolfSSL/CyaSSL. sha256 support added in 7.44.0 for OpenSSL,
|
||||||
|
GnuTLS, NSS and wolfSSL/CyaSSL. Other SSL backends not supported.
|
||||||
|
|
||||||
|
If this option is used several times, the last one will be used.
|
||||||
|
.IP "--cert-status"
|
||||||
|
(SSL) Tells curl to verify the status of the server certificate by using the
|
||||||
|
Certificate Status Request (aka. OCSP stapling) TLS extension.
|
||||||
|
|
||||||
|
If this option is enabled and the server sends an invalid (e.g. expired)
|
||||||
|
response, if the response suggests that the server certificate has been revoked,
|
||||||
|
or no response at all is received, the verification fails.
|
||||||
|
|
||||||
|
This is currently only implemented in the OpenSSL, GnuTLS and NSS backends.
|
||||||
|
(Added in 7.41.0)
|
||||||
|
.IP "--false-start"
|
||||||
|
|
||||||
|
(SSL) Tells curl to use false start during the TLS handshake. False start is a
|
||||||
|
mode where a TLS client will start sending application data before verifying
|
||||||
|
the server's Finished message, thus saving a round trip when performing a full
|
||||||
|
handshake.
|
||||||
|
|
||||||
|
This is currently only implemented in the NSS and Secure Transport (on iOS 7.0
|
||||||
|
or later, or OS X 10.9 or later) backends.
|
||||||
|
(Added in 7.42.0)
|
||||||
.IP "-f, --fail"
|
.IP "-f, --fail"
|
||||||
(HTTP) Fail silently (no output at all) on server errors. This is mostly done
|
(HTTP) Fail silently (no output at all) on server errors. This is mostly done
|
||||||
to better enable scripts etc to better deal with failed attempts. In
|
to better enable scripts etc to better deal with failed attempts. In normal
|
||||||
normal cases when an HTTP server fails to deliver a document, it returns an
|
cases when an HTTP server fails to deliver a document, it returns an HTML
|
||||||
HTML document stating so (which often also describes why and more). This flag
|
document stating so (which often also describes why and more). This flag will
|
||||||
will prevent curl from outputting that and return error 22.
|
prevent curl from outputting that and return error 22.
|
||||||
|
|
||||||
This method is not fail-safe and there are occasions where non-successful
|
This method is not fail-safe and there are occasions where non-successful
|
||||||
response codes will slip through, especially when authentication is involved
|
response codes will slip through, especially when authentication is involved
|
||||||
@@ -536,11 +620,11 @@ response codes will slip through, especially when authentication is involved
|
|||||||
(HTTP) This lets curl emulate a filled-in form in which a user has pressed the
|
(HTTP) This lets curl emulate a filled-in form in which a user has pressed the
|
||||||
submit button. This causes curl to POST data using the Content-Type
|
submit button. This causes curl to POST data using the Content-Type
|
||||||
multipart/form-data according to RFC 2388. This enables uploading of binary
|
multipart/form-data according to RFC 2388. This enables uploading of binary
|
||||||
files etc. To force the 'content' part to be a file, prefix the file name
|
files etc. To force the 'content' part to be a file, prefix the file name with
|
||||||
with an @ sign. To just get the content part from a file, prefix the file name
|
an @ sign. To just get the content part from a file, prefix the file name with
|
||||||
with the symbol <. The difference between @ and < is then that @ makes a file
|
the symbol <. The difference between @ and < is then that @ makes a file get
|
||||||
get attached in the post as a file upload, while the < makes a text field and
|
attached in the post as a file upload, while the < makes a text field and just
|
||||||
just get the contents for that text field from a file.
|
get the contents for that text field from a file.
|
||||||
|
|
||||||
Example, to send your password file to the server, where
|
Example, to send your password file to the server, where
|
||||||
\&'password' is the name of the form-field to which /etc/passwd will be the
|
\&'password' is the name of the form-field to which /etc/passwd will be the
|
||||||
@@ -549,7 +633,9 @@ input:
|
|||||||
\fBcurl\fP -F password=@/etc/passwd www.mypasswords.com
|
\fBcurl\fP -F password=@/etc/passwd www.mypasswords.com
|
||||||
|
|
||||||
To read content from stdin instead of a file, use - as the filename. This goes
|
To read content from stdin instead of a file, use - as the filename. This goes
|
||||||
for both @ and < constructs.
|
for both @ and < constructs. Unfortunately it does not support reading the
|
||||||
|
file from a named pipe or similar, as it needs the full size before the
|
||||||
|
transfer starts.
|
||||||
|
|
||||||
You can also tell curl what Content-Type to use by using 'type=', in a manner
|
You can also tell curl what Content-Type to use by using 'type=', in a manner
|
||||||
similar to:
|
similar to:
|
||||||
@@ -611,6 +697,7 @@ curl does one CWD with the full target directory and then operates on the file
|
|||||||
\&"normally" (like in the multicwd case). This is somewhat more standards
|
\&"normally" (like in the multicwd case). This is somewhat more standards
|
||||||
compliant than 'nocwd' but without the full penalty of 'multicwd'.
|
compliant than 'nocwd' but without the full penalty of 'multicwd'.
|
||||||
.RE
|
.RE
|
||||||
|
.IP
|
||||||
(Added in 7.15.1)
|
(Added in 7.15.1)
|
||||||
.IP "--ftp-pasv"
|
.IP "--ftp-pasv"
|
||||||
(FTP) Use passive mode for the data connection. Passive is the internal default
|
(FTP) Use passive mode for the data connection. Passive is the internal default
|
||||||
@@ -699,16 +786,28 @@ See also the \fI-A, --user-agent\fP and \fI-e, --referer\fP options.
|
|||||||
Starting in 7.37.0, you need \fI--proxy-header\fP to send custom headers
|
Starting in 7.37.0, you need \fI--proxy-header\fP to send custom headers
|
||||||
intended for a proxy.
|
intended for a proxy.
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
|
\&# curl -H "X-First-Name: Joe" http://192.168.0.1/
|
||||||
|
|
||||||
|
\fBWARNING\fP: headers set with this option will be set in all requests - even
|
||||||
|
after redirects are followed, like when told with \fB-L, --location\fP. This
|
||||||
|
can lead to the header being sent to other hosts than the original host, so
|
||||||
|
sensitive headers should be used with caution combined with following
|
||||||
|
redirects.
|
||||||
|
|
||||||
This option can be used multiple times to add/replace/remove multiple headers.
|
This option can be used multiple times to add/replace/remove multiple headers.
|
||||||
.IP "--hostpubmd5 <md5>"
|
.IP "--hostpubmd5 <md5>"
|
||||||
(SCP/SFTP) Pass a string containing 32 hexadecimal digits. The string should
|
(SCP/SFTP) Pass a string containing 32 hexadecimal digits. The string should
|
||||||
be the 128 bit MD5 checksum of the remote host's public key, curl will refuse
|
be the 128 bit MD5 checksum of the remote host's public key, curl will refuse
|
||||||
the connection with the host unless the md5sums match. (Added in 7.17.1)
|
the connection with the host unless the md5sums match. (Added in 7.17.1)
|
||||||
.IP "--ignore-content-length"
|
.IP "--ignore-content-length"
|
||||||
(HTTP)
|
For HTTP, Ignore the Content-Length header. This is particularly useful for
|
||||||
Ignore the Content-Length header. This is particularly useful for servers
|
servers running Apache 1.x, which will report incorrect Content-Length for
|
||||||
running Apache 1.x, which will report incorrect Content-Length for files
|
files larger than 2 gigabytes.
|
||||||
larger than 2 gigabytes.
|
|
||||||
|
For FTP (since 7.46.0), skip the RETR command to figure out the size before
|
||||||
|
downloading a file.
|
||||||
.IP "-i, --include"
|
.IP "-i, --include"
|
||||||
(HTTP) Include the HTTP-header in the output. The HTTP-header includes things
|
(HTTP) Include the HTTP-header in the output. The HTTP-header includes things
|
||||||
like server-name, date of the document, HTTP-version and more...
|
like server-name, date of the document, HTTP-version and more...
|
||||||
@@ -735,8 +834,17 @@ cookies when they're closed down.
|
|||||||
server-specified Content-Disposition filename instead of extracting a filename
|
server-specified Content-Disposition filename instead of extracting a filename
|
||||||
from the URL.
|
from the URL.
|
||||||
|
|
||||||
|
If the server specifies a file name and a file with that name already exists
|
||||||
|
in the current working directory it will not be overwritten and an error will
|
||||||
|
occur. If the server doesn't specify a file name then this option has no
|
||||||
|
effect.
|
||||||
|
|
||||||
There's no attempt to decode %-sequences (yet) in the provided file name, so
|
There's no attempt to decode %-sequences (yet) in the provided file name, so
|
||||||
this option may provide you with rather unexpected file names.
|
this option may provide you with rather unexpected file names.
|
||||||
|
|
||||||
|
\fBWARNING\fP: Exercise judicious use of this option, especially on Windows. A
|
||||||
|
rogue server could send you the name of a DLL or other file that could possibly
|
||||||
|
be loaded automatically by Windows or some third party software.
|
||||||
.IP "-k, --insecure"
|
.IP "-k, --insecure"
|
||||||
(SSL) This option explicitly allows curl to perform "insecure" SSL connections
|
(SSL) This option explicitly allows curl to perform "insecure" SSL connections
|
||||||
and transfers. All SSL connections are attempted to be made secure by using
|
and transfers. All SSL connections are attempted to be made secure by using
|
||||||
@@ -744,7 +852,7 @@ the CA certificate bundle installed by default. This makes all connections
|
|||||||
considered "insecure" fail unless \fI-k, --insecure\fP is used.
|
considered "insecure" fail unless \fI-k, --insecure\fP is used.
|
||||||
|
|
||||||
See this online resource for further details:
|
See this online resource for further details:
|
||||||
\fBhttp://curl.haxx.se/docs/sslcerts.html\fP
|
\fBhttps://curl.haxx.se/docs/sslcerts.html\fP
|
||||||
.IP "-K, --config <config file>"
|
.IP "-K, --config <config file>"
|
||||||
Specify which config file to read curl arguments from. The config file is a
|
Specify which config file to read curl arguments from. The config file is a
|
||||||
text file in which command line arguments can be written which then will be
|
text file in which command line arguments can be written which then will be
|
||||||
@@ -771,7 +879,7 @@ Note that to be able to specify a URL in the config file, you need to specify
|
|||||||
it using the \fI--url\fP option, and not by simply writing the URL on its own
|
it using the \fI--url\fP option, and not by simply writing the URL on its own
|
||||||
line. So, it could look similar to this:
|
line. So, it could look similar to this:
|
||||||
|
|
||||||
url = "http://curl.haxx.se/docs/"
|
url = "https://curl.haxx.se/docs/"
|
||||||
|
|
||||||
When curl is invoked, it always (unless \fI-q\fP is used) checks for a default
|
When curl is invoked, it always (unless \fI-q\fP is used) checks for a default
|
||||||
config file and uses it if found. The default config file is checked for in
|
config file and uses it if found. The default config file is checked for in
|
||||||
@@ -779,12 +887,12 @@ the following places in this order:
|
|||||||
|
|
||||||
1) curl tries to find the "home dir": It first checks for the CURL_HOME and
|
1) curl tries to find the "home dir": It first checks for the CURL_HOME and
|
||||||
then the HOME environment variables. Failing that, it uses getpwuid() on
|
then the HOME environment variables. Failing that, it uses getpwuid() on
|
||||||
UNIX-like systems (which returns the home dir given the current user in your
|
Unix-like systems (which returns the home dir given the current user in your
|
||||||
system). On Windows, it then checks for the APPDATA variable, or as a last
|
system). On Windows, it then checks for the APPDATA variable, or as a last
|
||||||
resort the '%USERPROFILE%\\Application Data'.
|
resort the '%USERPROFILE%\\Application Data'.
|
||||||
|
|
||||||
2) On windows, if there is no _curlrc file in the home dir, it checks for one
|
2) On windows, if there is no _curlrc file in the home dir, it checks for one
|
||||||
in the same dir the curl executable is placed. On UNIX-like systems, it will
|
in the same dir the curl executable is placed. On Unix-like systems, it will
|
||||||
simply try to load .curlrc from the determined home dir.
|
simply try to load .curlrc from the determined home dir.
|
||||||
|
|
||||||
.nf
|
.nf
|
||||||
@@ -813,7 +921,8 @@ If this option is used several times, the last one will be used. If
|
|||||||
unspecified, the option defaults to 60 seconds.
|
unspecified, the option defaults to 60 seconds.
|
||||||
.IP "--key <key>"
|
.IP "--key <key>"
|
||||||
(SSL/SSH) Private key file name. Allows you to provide your private key in this
|
(SSL/SSH) Private key file name. Allows you to provide your private key in this
|
||||||
separate file.
|
separate file. For SSH, if not specified, curl tries the following candidates
|
||||||
|
in order: '~/.ssh/id_rsa', '~/.ssh/id_dsa', './id_rsa', './id_dsa'.
|
||||||
|
|
||||||
If this option is used several times, the last one will be used.
|
If this option is used several times, the last one will be used.
|
||||||
.IP "--key-type <type>"
|
.IP "--key-type <type>"
|
||||||
@@ -827,9 +936,8 @@ If this option is used several times, the last one will be used.
|
|||||||
should be one of 'clear', 'safe', 'confidential', or 'private'. Should you use
|
should be one of 'clear', 'safe', 'confidential', or 'private'. Should you use
|
||||||
a level that is not one of these, 'private' will instead be used.
|
a level that is not one of these, 'private' will instead be used.
|
||||||
|
|
||||||
This option requires a library built with kerberos4 or GSSAPI
|
This option requires a library built with kerberos4 support. This is not
|
||||||
(GSS-Negotiate) support. This is not very common. Use \fI-V, --version\fP to
|
very common. Use \fI-V, --version\fP to see if your curl supports it.
|
||||||
see if your curl supports it.
|
|
||||||
|
|
||||||
If this option is used several times, the last one will be used.
|
If this option is used several times, the last one will be used.
|
||||||
.IP "-l, --list-only"
|
.IP "-l, --list-only"
|
||||||
@@ -866,6 +974,10 @@ When curl follows a redirect and the request is not a plain GET (for example
|
|||||||
POST or PUT), it will do the following request with a GET if the HTTP response
|
POST or PUT), it will do the following request with a GET if the HTTP response
|
||||||
was 301, 302, or 303. If the response code was any other 3xx code, curl will
|
was 301, 302, or 303. If the response code was any other 3xx code, curl will
|
||||||
re-send the following request using the same unmodified method.
|
re-send the following request using the same unmodified method.
|
||||||
|
|
||||||
|
You can tell curl to not change the non-GET request method to GET after a 30x
|
||||||
|
response by using the dedicated options for that: \fI--post301\fP,
|
||||||
|
\fI--post302\fP and \fI--post303\fP.
|
||||||
.IP "--libcurl <file>"
|
.IP "--libcurl <file>"
|
||||||
Append this option to any ordinary curl command line, and you will get a
|
Append this option to any ordinary curl command line, and you will get a
|
||||||
libcurl-using C source code written to the file that does the equivalent
|
libcurl-using C source code written to the file that does the equivalent
|
||||||
@@ -874,9 +986,10 @@ of what your command-line operation does!
|
|||||||
If this option is used several times, the last given file name will be
|
If this option is used several times, the last given file name will be
|
||||||
used. (Added in 7.16.1)
|
used. (Added in 7.16.1)
|
||||||
.IP "--limit-rate <speed>"
|
.IP "--limit-rate <speed>"
|
||||||
Specify the maximum transfer rate you want curl to use. This feature is useful
|
Specify the maximum transfer rate you want curl to use - for both downloads
|
||||||
if you have a limited pipe and you'd like your transfer not to use your entire
|
and uploads. This feature is useful if you have a limited pipe and you'd like
|
||||||
bandwidth.
|
your transfer not to use your entire bandwidth. To make it slower than it
|
||||||
|
otherwise would be.
|
||||||
|
|
||||||
The given speed is measured in bytes/second, unless a suffix is appended.
|
The given speed is measured in bytes/second, unless a suffix is appended.
|
||||||
Appending 'k' or 'K' will count the number as kilobytes, 'm' or M' makes it
|
Appending 'k' or 'K' will count the number as kilobytes, 'm' or M' makes it
|
||||||
@@ -987,14 +1100,11 @@ in Metalink file, hash check will fail.
|
|||||||
.IP "-n, --netrc"
|
.IP "-n, --netrc"
|
||||||
Makes curl scan the \fI.netrc\fP (\fI_netrc\fP on Windows) file in the user's
|
Makes curl scan the \fI.netrc\fP (\fI_netrc\fP on Windows) file in the user's
|
||||||
home directory for login name and password. This is typically used for FTP on
|
home directory for login name and password. This is typically used for FTP on
|
||||||
UNIX. If used with HTTP, curl will enable user authentication. See
|
Unix. If used with HTTP, curl will enable user authentication. See
|
||||||
.BR netrc(4)
|
\fInetrc(5)\fP \fIftp(1)\fP for details on the file format. Curl will not
|
||||||
or
|
complain if that file doesn't have the right permissions (it should not be
|
||||||
.BR ftp(1)
|
either world- or group-readable). The environment variable "HOME" is used to
|
||||||
for details on the file format. Curl will not complain if that file
|
find the home directory.
|
||||||
doesn't have the right permissions (it should not be either world- or
|
|
||||||
group-readable). The environment variable "HOME" is used to find the home
|
|
||||||
directory.
|
|
||||||
|
|
||||||
A quick and very simple example of how to setup a \fI.netrc\fP to allow curl
|
A quick and very simple example of how to setup a \fI.netrc\fP to allow curl
|
||||||
to FTP to the machine host.domain.com with user name \&'myself' and password
|
to FTP to the machine host.domain.com with user name \&'myself' and password
|
||||||
@@ -1024,18 +1134,13 @@ Very similar to \fI--netrc\fP, but this option makes the .netrc usage
|
|||||||
\fBoptional\fP and not mandatory as the \fI--netrc\fP option does.
|
\fBoptional\fP and not mandatory as the \fI--netrc\fP option does.
|
||||||
|
|
||||||
.IP "--negotiate"
|
.IP "--negotiate"
|
||||||
(HTTP) Enables GSS-Negotiate authentication. The GSS-Negotiate method was
|
(HTTP) Enables Negotiate (SPNEGO) authentication.
|
||||||
designed by Microsoft and is used in their web applications. It is primarily
|
|
||||||
meant as a support for Kerberos5 authentication but may be also used along
|
|
||||||
with another authentication method. For more information see IETF draft
|
|
||||||
draft-brezak-spnego-http-04.txt.
|
|
||||||
|
|
||||||
If you want to enable Negotiate for your proxy authentication, then use
|
If you want to enable Negotiate (SPNEGO) for proxy authentication, then use
|
||||||
\fI--proxy-negotiate\fP.
|
\fI--proxy-negotiate\fP.
|
||||||
|
|
||||||
This option requires a library built with GSSAPI support. This is
|
This option requires a library built with GSS-API or SSPI support. Use \fI-V,
|
||||||
not very common. Use \fI-V, --version\fP to see if your version supports
|
--version\fP to see if your curl supports GSS-API/SSPI and SPNEGO.
|
||||||
GSS-Negotiate.
|
|
||||||
|
|
||||||
When using this option, you must also provide a fake \fI-u, --user\fP option to
|
When using this option, you must also provide a fake \fI-u, --user\fP option to
|
||||||
activate the authentication code properly. Sending a '-u :' is enough as the
|
activate the authentication code properly. Sending a '-u :' is enough as the
|
||||||
@@ -1100,12 +1205,15 @@ output to be done to stdout.
|
|||||||
Write output to a local file named like the remote file we get. (Only the file
|
Write output to a local file named like the remote file we get. (Only the file
|
||||||
part of the remote file is used, the path is cut off.)
|
part of the remote file is used, the path is cut off.)
|
||||||
|
|
||||||
The remote file name to use for saving is extracted from the given URL,
|
The file will be saved in the current working directory. If you want the file
|
||||||
nothing else.
|
saved in a different directory, make sure you change the current working
|
||||||
|
directory before invoking curl with this option.
|
||||||
|
|
||||||
Consequentially, the file will be saved in the current working directory. If
|
The remote file name to use for saving is extracted from the given URL, nothing
|
||||||
you want the file saved in a different directory, make sure you change current
|
else, and if it already exists it will be overwritten. If you want the server
|
||||||
working directory before you invoke curl with the \fB-O, --remote-name\fP flag!
|
to be able to choose the file name refer to \fI-J, --remote-header-name\fP
|
||||||
|
which can be used in addition to this option. If the server chooses a file name
|
||||||
|
and that name already exists it will not be overwritten.
|
||||||
|
|
||||||
There is no URL decoding done on the file name. If it has %20 or other URL
|
There is no URL decoding done on the file name. If it has %20 or other URL
|
||||||
encoded parts of the name, they will end up as-is as file name.
|
encoded parts of the name, they will end up as-is as file name.
|
||||||
@@ -1161,7 +1269,7 @@ i.e "my.host.domain" to specify the machine
|
|||||||
make curl pick the same IP address that is already used for the control
|
make curl pick the same IP address that is already used for the control
|
||||||
connection
|
connection
|
||||||
.RE
|
.RE
|
||||||
|
.IP
|
||||||
If this option is used several times, the last one will be used. Disable the
|
If this option is used several times, the last one will be used. Disable the
|
||||||
use of PORT with \fI--ftp-pasv\fP. Disable the attempt to use the EPRT command
|
use of PORT with \fI--ftp-pasv\fP. Disable the attempt to use the EPRT command
|
||||||
instead of PORT by using \fI--disable-eprt\fP. EPRT is really PORT++.
|
instead of PORT by using \fI--disable-eprt\fP. EPRT is really PORT++.
|
||||||
@@ -1175,22 +1283,28 @@ available.
|
|||||||
(SSL/SSH) Passphrase for the private key
|
(SSL/SSH) Passphrase for the private key
|
||||||
|
|
||||||
If this option is used several times, the last one will be used.
|
If this option is used several times, the last one will be used.
|
||||||
|
.IP "--path-as-is"
|
||||||
|
Tell curl to not handle sequences of /../ or /./ in the given URL
|
||||||
|
path. Normally curl will squash or merge them according to standards but with
|
||||||
|
this option set you tell it not to do that.
|
||||||
|
|
||||||
|
(Added in 7.42.0)
|
||||||
.IP "--post301"
|
.IP "--post301"
|
||||||
(HTTP) Tells curl to respect RFC 2616/10.3.2 and not convert POST requests
|
(HTTP) Tells curl to respect RFC 7230/6.4.2 and not convert POST requests
|
||||||
into GET requests when following a 301 redirection. The non-RFC behaviour is
|
into GET requests when following a 301 redirection. The non-RFC behaviour is
|
||||||
ubiquitous in web browsers, so curl does the conversion by default to maintain
|
ubiquitous in web browsers, so curl does the conversion by default to maintain
|
||||||
consistency. However, a server may require a POST to remain a POST after such
|
consistency. However, a server may require a POST to remain a POST after such
|
||||||
a redirection. This option is meaningful only when using \fI-L, --location\fP
|
a redirection. This option is meaningful only when using \fI-L, --location\fP
|
||||||
(Added in 7.17.1)
|
(Added in 7.17.1)
|
||||||
.IP "--post302"
|
.IP "--post302"
|
||||||
(HTTP) Tells curl to respect RFC 2616/10.3.2 and not convert POST requests
|
(HTTP) Tells curl to respect RFC 7230/6.4.3 and not convert POST requests
|
||||||
into GET requests when following a 302 redirection. The non-RFC behaviour is
|
into GET requests when following a 302 redirection. The non-RFC behaviour is
|
||||||
ubiquitous in web browsers, so curl does the conversion by default to maintain
|
ubiquitous in web browsers, so curl does the conversion by default to maintain
|
||||||
consistency. However, a server may require a POST to remain a POST after such
|
consistency. However, a server may require a POST to remain a POST after such
|
||||||
a redirection. This option is meaningful only when using \fI-L, --location\fP
|
a redirection. This option is meaningful only when using \fI-L, --location\fP
|
||||||
(Added in 7.19.1)
|
(Added in 7.19.1)
|
||||||
.IP "--post303"
|
.IP "--post303"
|
||||||
(HTTP) Tells curl to respect RFC 2616/10.3.2 and not convert POST requests
|
(HTTP) Tells curl to respect RFC 7230/6.4.4 and not convert POST requests
|
||||||
into GET requests when following a 303 redirection. The non-RFC behaviour is
|
into GET requests when following a 303 redirection. The non-RFC behaviour is
|
||||||
ubiquitous in web browsers, so curl does the conversion by default to maintain
|
ubiquitous in web browsers, so curl does the conversion by default to maintain
|
||||||
consistency. However, a server may require a POST to remain a POST after such
|
consistency. However, a server may require a POST to remain a POST after such
|
||||||
@@ -1237,9 +1351,40 @@ This option can be used multiple times, in which case the effect is the same
|
|||||||
as concatenating the protocols into one instance of the option.
|
as concatenating the protocols into one instance of the option.
|
||||||
|
|
||||||
(Added in 7.20.2)
|
(Added in 7.20.2)
|
||||||
|
.IP "--proto-default <protocol>"
|
||||||
|
Tells curl to use \fIprotocol\fP for any URL missing a scheme name.
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
|
.RS
|
||||||
|
.IP "--proto-default https ftp.mozilla.org"
|
||||||
|
https://ftp.mozilla.org
|
||||||
|
.RE
|
||||||
|
|
||||||
|
An unknown or unsupported protocol causes error
|
||||||
|
\fICURLE_UNSUPPORTED_PROTOCOL\fP.
|
||||||
|
|
||||||
|
This option does not change the default proxy protocol (http).
|
||||||
|
|
||||||
|
Without this option curl would make a guess based on the host, see \fI--url\fP
|
||||||
|
for details.
|
||||||
|
|
||||||
|
(Added in 7.45.0)
|
||||||
.IP "--proto-redir <protocols>"
|
.IP "--proto-redir <protocols>"
|
||||||
Tells curl to use the listed protocols after a redirect. See --proto for
|
Tells curl to use the listed protocols on redirect. See --proto for how
|
||||||
how protocols are represented.
|
protocols are represented.
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
|
.RS
|
||||||
|
.IP "--proto-redir -all,http,https"
|
||||||
|
Allow only HTTP and HTTPS on redirect.
|
||||||
|
.RE
|
||||||
|
|
||||||
|
By default curl will allow all protocols on redirect except several disabled
|
||||||
|
for security reasons: Since 7.19.4 FILE and SCP are disabled, and since 7.40.0
|
||||||
|
SMB and SMBS are also disabled. Specifying \fIall\fP or \fI+all\fP enables all
|
||||||
|
protocols on redirect, including those disabled for security.
|
||||||
|
|
||||||
(Added in 7.20.2)
|
(Added in 7.20.2)
|
||||||
.IP "--proxy-anyauth"
|
.IP "--proxy-anyauth"
|
||||||
@@ -1254,12 +1399,17 @@ the default authentication method curl uses with proxies.
|
|||||||
Tells curl to use HTTP Digest authentication when communicating with the given
|
Tells curl to use HTTP Digest authentication when communicating with the given
|
||||||
proxy. Use \fI--digest\fP for enabling HTTP Digest with a remote host.
|
proxy. Use \fI--digest\fP for enabling HTTP Digest with a remote host.
|
||||||
.IP "--proxy-negotiate"
|
.IP "--proxy-negotiate"
|
||||||
Tells curl to use HTTP Negotiate authentication when communicating
|
Tells curl to use HTTP Negotiate (SPNEGO) authentication when communicating
|
||||||
with the given proxy. Use \fI--negotiate\fP for enabling HTTP Negotiate
|
with the given proxy. Use \fI--negotiate\fP for enabling HTTP Negotiate (SPNEGO)
|
||||||
with a remote host. (Added in 7.17.1)
|
with a remote host. (Added in 7.17.1)
|
||||||
.IP "--proxy-ntlm"
|
.IP "--proxy-ntlm"
|
||||||
Tells curl to use HTTP NTLM authentication when communicating with the given
|
Tells curl to use HTTP NTLM authentication when communicating with the given
|
||||||
proxy. Use \fI--ntlm\fP for enabling NTLM with a remote host.
|
proxy. Use \fI--ntlm\fP for enabling NTLM with a remote host.
|
||||||
|
.IP "--proxy-service-name <servicename>"
|
||||||
|
This option allows you to change the service name for proxy negotiation.
|
||||||
|
|
||||||
|
Examples: --proxy-negotiate proxy-name \fI--proxy-service-name\fP sockd would use
|
||||||
|
sockd/proxy-name. (Added in 7.43.0).
|
||||||
.IP "--proxy1.0 <proxyhost[:port]>"
|
.IP "--proxy1.0 <proxyhost[:port]>"
|
||||||
Use the specified HTTP 1.0 proxy. If the port number is not specified, it is
|
Use the specified HTTP 1.0 proxy. If the port number is not specified, it is
|
||||||
assumed at port 1080.
|
assumed at port 1080.
|
||||||
@@ -1272,6 +1422,11 @@ protocol instead of the default HTTP 1.1.
|
|||||||
separate file.
|
separate file.
|
||||||
|
|
||||||
If this option is used several times, the last one will be used.
|
If this option is used several times, the last one will be used.
|
||||||
|
|
||||||
|
(As of 7.39.0, curl attempts to automatically extract the public key from the
|
||||||
|
private key file, so passing this option is generally not required. Note that
|
||||||
|
this public key extraction requires libcurl to be linked against a copy of
|
||||||
|
libssh2 1.2.8 or higher that is itself linked against OpenSSL.)
|
||||||
.IP "-q"
|
.IP "-q"
|
||||||
If used as the first parameter on the command line, the \fIcurlrc\fP config
|
If used as the first parameter on the command line, the \fIcurlrc\fP config
|
||||||
file will not be read and used. See the \fI-K, --config\fP for details on the
|
file will not be read and used. See the \fI-K, --config\fP for details on the
|
||||||
@@ -1344,15 +1499,12 @@ specifies the last 500 bytes
|
|||||||
specifies the bytes from offset 9500 and forward
|
specifies the bytes from offset 9500 and forward
|
||||||
.TP
|
.TP
|
||||||
.B 0-0,-1
|
.B 0-0,-1
|
||||||
specifies the first and last byte only(*)(H)
|
specifies the first and last byte only(*)(HTTP)
|
||||||
.TP
|
|
||||||
.B 500-700,600-799
|
|
||||||
specifies 300 bytes from offset 500(H)
|
|
||||||
.TP
|
.TP
|
||||||
.B 100-199,500-599
|
.B 100-199,500-599
|
||||||
specifies two separate 100-byte ranges(*)(H)
|
specifies two separate 100-byte ranges(*) (HTTP)
|
||||||
.RE
|
.RE
|
||||||
|
.IP
|
||||||
(*) = NOTE that this will cause the server to reply with a multipart
|
(*) = NOTE that this will cause the server to reply with a multipart
|
||||||
response!
|
response!
|
||||||
|
|
||||||
@@ -1436,6 +1588,11 @@ terminal/stdout unless you redirect it.
|
|||||||
.IP "--sasl-ir"
|
.IP "--sasl-ir"
|
||||||
Enable initial response in SASL authentication.
|
Enable initial response in SASL authentication.
|
||||||
(Added in 7.31.0)
|
(Added in 7.31.0)
|
||||||
|
.IP "--service-name <servicename>"
|
||||||
|
This option allows you to change the service name for SPNEGO.
|
||||||
|
|
||||||
|
Examples: --negotiate \fI--service-name\fP sockd would use
|
||||||
|
sockd/server-name. (Added in 7.43.0).
|
||||||
.IP "-S, --show-error"
|
.IP "-S, --show-error"
|
||||||
When used with \fI-s\fP it makes curl show an error message if it fails.
|
When used with \fI-s\fP it makes curl show an error message if it fails.
|
||||||
.IP "--ssl"
|
.IP "--ssl"
|
||||||
@@ -1458,6 +1615,10 @@ and TLS1.0 protocols known as BEAST. If this option isn't used, the SSL layer
|
|||||||
may use workarounds known to cause interoperability problems with some older
|
may use workarounds known to cause interoperability problems with some older
|
||||||
SSL implementations. WARNING: this option loosens the SSL security, and by
|
SSL implementations. WARNING: this option loosens the SSL security, and by
|
||||||
using this flag you ask for exactly that. (Added in 7.25.0)
|
using this flag you ask for exactly that. (Added in 7.25.0)
|
||||||
|
.IP "--ssl-no-revoke"
|
||||||
|
(WinSSL) This option tells curl to disable certificate revocation checks.
|
||||||
|
WARNING: this option loosens the SSL security, and by using this flag you ask
|
||||||
|
for exactly that. (Added in 7.44.0)
|
||||||
.IP "--socks4 <host[:port]>"
|
.IP "--socks4 <host[:port]>"
|
||||||
Use the specified SOCKS4 proxy. If the port number is not specified, it is
|
Use the specified SOCKS4 proxy. If the port number is not specified, it is
|
||||||
assumed at port 1080. (Added in 7.15.2)
|
assumed at port 1080. (Added in 7.15.2)
|
||||||
@@ -1518,7 +1679,7 @@ sockd/proxy-name --socks5 proxy-name \fI--socks5-gssapi-service\fP
|
|||||||
sockd/real-name would use sockd/real-name for cases where the proxy-name does
|
sockd/real-name would use sockd/real-name for cases where the proxy-name does
|
||||||
not match the principal name. (Added in 7.19.4).
|
not match the principal name. (Added in 7.19.4).
|
||||||
.IP "--socks5-gssapi-nec"
|
.IP "--socks5-gssapi-nec"
|
||||||
As part of the gssapi negotiation a protection mode is negotiated. RFC 1961
|
As part of the GSS-API negotiation a protection mode is negotiated. RFC 1961
|
||||||
says in section 4.3/4.4 it should be protected, but the NEC reference
|
says in section 4.3/4.4 it should be protected, but the NEC reference
|
||||||
implementation does not. The option \fI--socks5-gssapi-nec\fP allows the
|
implementation does not. The option \fI--socks5-gssapi-nec\fP allows the
|
||||||
unprotected exchange of the protection mode negotiation. (Added in 7.19.4).
|
unprotected exchange of the protection mode negotiation. (Added in 7.19.4).
|
||||||
@@ -1569,6 +1730,14 @@ default 512 bytes will be used.
|
|||||||
If this option is used several times, the last one will be used.
|
If this option is used several times, the last one will be used.
|
||||||
|
|
||||||
(Added in 7.20.0)
|
(Added in 7.20.0)
|
||||||
|
.IP "--tftp-no-options"
|
||||||
|
(TFTP) Tells curl not to send TFTP options requests.
|
||||||
|
|
||||||
|
This option improves interop with some legacy servers that do not acknowledge
|
||||||
|
or properly implement TFTP options. When this option is used
|
||||||
|
\fI--tftp-blksize\fP is ignored.
|
||||||
|
|
||||||
|
(Added in 7.48.0)
|
||||||
.IP "--tlsauthtype <authtype>"
|
.IP "--tlsauthtype <authtype>"
|
||||||
Set TLS authentication type. Currently, the only supported option is "SRP",
|
Set TLS authentication type. Currently, the only supported option is "SRP",
|
||||||
for TLS-SRP (RFC 5054). If \fI--tlsuser\fP and \fI--tlspassword\fP are
|
for TLS-SRP (RFC 5054). If \fI--tlsuser\fP and \fI--tlspassword\fP are
|
||||||
@@ -1623,36 +1792,64 @@ If this option is used several times, the last one will be used.
|
|||||||
.IP "--trace-time"
|
.IP "--trace-time"
|
||||||
Prepends a time stamp to each trace or verbose line that curl displays.
|
Prepends a time stamp to each trace or verbose line that curl displays.
|
||||||
(Added in 7.14.0)
|
(Added in 7.14.0)
|
||||||
|
.IP "--unix-socket <path>"
|
||||||
|
(HTTP) Connect through this Unix domain socket, instead of using the
|
||||||
|
network. (Added in 7.40.0)
|
||||||
.IP "-u, --user <user:password>"
|
.IP "-u, --user <user:password>"
|
||||||
Specify the user name and password to use for server authentication. Overrides
|
Specify the user name and password to use for server authentication. Overrides
|
||||||
\fI-n, --netrc\fP and \fI--netrc-optional\fP.
|
\fI-n, --netrc\fP and \fI--netrc-optional\fP.
|
||||||
|
|
||||||
If you simply specify the user name, curl will prompt for a password.
|
If you simply specify the user name, curl will prompt for a password.
|
||||||
|
|
||||||
If you use an SSPI-enabled curl binary and perform NTLM authentication, you
|
The user name and passwords are split up on the first colon, which makes it
|
||||||
can force curl to select the user name and password from your environment by
|
impossible to use a colon in the user name with this option. The password can,
|
||||||
specifying a single colon with this option: "-u :".
|
still.
|
||||||
|
|
||||||
|
When using Kerberos V5 with a Windows based server you should include the
|
||||||
|
Windows domain name in the user name, in order for the server to successfully
|
||||||
|
obtain a Kerberos Ticket. If you don't then the initial authentication
|
||||||
|
handshake may fail.
|
||||||
|
|
||||||
|
When using NTLM, the user name can be specified simply as the user name,
|
||||||
|
without the domain, if there is a single domain and forest in your setup
|
||||||
|
for example.
|
||||||
|
|
||||||
|
To specify the domain name use either Down-Level Logon Name or UPN (User
|
||||||
|
Principal Name) formats. For example, EXAMPLE\\user and user@example.com
|
||||||
|
respectively.
|
||||||
|
|
||||||
|
If you use a Windows SSPI-enabled curl binary and perform Kerberos V5,
|
||||||
|
Negotiate, NTLM or Digest authentication then you can tell curl to select
|
||||||
|
the user name and password from your environment by specifying a single colon
|
||||||
|
with this option: "-u :".
|
||||||
|
|
||||||
If this option is used several times, the last one will be used.
|
If this option is used several times, the last one will be used.
|
||||||
.IP "-U, --proxy-user <user:password>"
|
.IP "-U, --proxy-user <user:password>"
|
||||||
Specify the user name and password to use for proxy authentication.
|
Specify the user name and password to use for proxy authentication.
|
||||||
|
|
||||||
If you use an SSPI-enabled curl binary and do NTLM authentication, you can
|
If you use a Windows SSPI-enabled curl binary and do either Negotiate or NTLM
|
||||||
force curl to pick up the user name and password from your environment by
|
authentication then you can tell curl to select the user name and password
|
||||||
simply specifying a single colon with this option: "-U :".
|
from your environment by specifying a single colon with this option: "-U :".
|
||||||
|
|
||||||
If this option is used several times, the last one will be used.
|
If this option is used several times, the last one will be used.
|
||||||
.IP "--url <URL>"
|
.IP "--url <URL>"
|
||||||
Specify a URL to fetch. This option is mostly handy when you want to specify
|
Specify a URL to fetch. This option is mostly handy when you want to specify
|
||||||
URL(s) in a config file.
|
URL(s) in a config file.
|
||||||
|
|
||||||
|
If the given URL is missing a scheme name (such as "http://" or "ftp://" etc)
|
||||||
|
then curl will make a guess based on the host. If the outermost sub-domain name
|
||||||
|
matches DICT, FTP, IMAP, LDAP, POP3 or SMTP then that protocol will be used,
|
||||||
|
otherwise HTTP will be used. Since 7.45.0 guessing can be disabled by setting a
|
||||||
|
default protocol, see \fI--proto-default\fP for details.
|
||||||
|
|
||||||
This option may be used any number of times. To control where this URL is
|
This option may be used any number of times. To control where this URL is
|
||||||
written, use the \fI-o, --output\fP or the \fI-O, --remote-name\fP options.
|
written, use the \fI-o, --output\fP or the \fI-O, --remote-name\fP options.
|
||||||
.IP "-v, --verbose"
|
.IP "-v, --verbose"
|
||||||
Makes the fetching more verbose/talkative. Mostly useful for debugging. A line
|
Be more verbose/talkative during the operation. Useful for debugging and
|
||||||
starting with '>' means "header data" sent by curl, '<' means "header data"
|
seeing what's going on "under the hood". A line starting with '>' means
|
||||||
received by curl that is hidden in normal cases, and a line starting with '*'
|
"header data" sent by curl, '<' means "header data" received by curl that is
|
||||||
means additional info provided by curl.
|
hidden in normal cases, and a line starting with '*' means additional info
|
||||||
|
provided by curl.
|
||||||
|
|
||||||
Note that if you only want HTTP headers in the output, \fI-i, --include\fP
|
Note that if you only want HTTP headers in the output, \fI-i, --include\fP
|
||||||
might be the option you're looking for.
|
might be the option you're looking for.
|
||||||
@@ -1664,10 +1861,10 @@ This option overrides previous uses of \fI--trace-ascii\fP or \fI--trace\fP.
|
|||||||
|
|
||||||
Use \fI-s, --silent\fP to make curl quiet.
|
Use \fI-s, --silent\fP to make curl quiet.
|
||||||
.IP "-w, --write-out <format>"
|
.IP "-w, --write-out <format>"
|
||||||
Defines what to display on stdout after a completed and successful
|
Make curl display information on stdout after a completed transfer. The format
|
||||||
operation. The format is a string that may contain plain text mixed with any
|
is a string that may contain plain text mixed with any number of
|
||||||
number of variables. The string can be specified as "string", to get read from
|
variables. The format can be specified as a literal "string", or you can have
|
||||||
a particular file you specify it "@filename" and to tell curl to read the
|
curl read the format from a file with "@filename" and to tell curl to read the
|
||||||
format from stdin you write "@-".
|
format from stdin you write "@-".
|
||||||
|
|
||||||
The variables present in the output format will be substituted by the value or
|
The variables present in the output format will be substituted by the value or
|
||||||
@@ -1789,7 +1986,7 @@ displayed with millisecond resolution.
|
|||||||
The URL that was fetched last. This is most meaningful if you've told curl
|
The URL that was fetched last. This is most meaningful if you've told curl
|
||||||
to follow location: headers.
|
to follow location: headers.
|
||||||
.RE
|
.RE
|
||||||
|
.IP
|
||||||
If this option is used several times, the last one will be used.
|
If this option is used several times, the last one will be used.
|
||||||
.IP "-x, --proxy <[protocol://][user:password@]proxyhost[:port]>"
|
.IP "-x, --proxy <[protocol://][user:password@]proxyhost[:port]>"
|
||||||
Use the specified proxy.
|
Use the specified proxy.
|
||||||
@@ -1823,7 +2020,7 @@ password.
|
|||||||
If this option is used several times, the last one will be used.
|
If this option is used several times, the last one will be used.
|
||||||
.IP "-X, --request <command>"
|
.IP "-X, --request <command>"
|
||||||
(HTTP) Specifies a custom request method to use when communicating with the
|
(HTTP) Specifies a custom request method to use when communicating with the
|
||||||
HTTP server. The specified request will be used instead of the method
|
HTTP server. The specified request method will be used instead of the method
|
||||||
otherwise used (which defaults to GET). Read the HTTP 1.1 specification for
|
otherwise used (which defaults to GET). Read the HTTP 1.1 specification for
|
||||||
details and explanations. Common additional HTTP requests include PUT and
|
details and explanations. Common additional HTTP requests include PUT and
|
||||||
DELETE, but related technologies like WebDAV offers PROPFIND, COPY, MOVE and
|
DELETE, but related technologies like WebDAV offers PROPFIND, COPY, MOVE and
|
||||||
@@ -1837,6 +2034,11 @@ alter the way curl behaves. So for example if you want to make a proper HEAD
|
|||||||
request, using -X HEAD will not suffice. You need to use the \fI-I, --head\fP
|
request, using -X HEAD will not suffice. You need to use the \fI-I, --head\fP
|
||||||
option.
|
option.
|
||||||
|
|
||||||
|
The method string you set with -X will be used for all requests, which if you
|
||||||
|
for example use \fB-L, --location\fP may cause unintended side-effects when
|
||||||
|
curl doesn't change request method according to the HTTP 30x response codes -
|
||||||
|
and similar.
|
||||||
|
|
||||||
(FTP)
|
(FTP)
|
||||||
Specifies a custom FTP command to use instead of LIST when doing file lists
|
Specifies a custom FTP command to use instead of LIST when doing file lists
|
||||||
with FTP.
|
with FTP.
|
||||||
@@ -1888,7 +2090,8 @@ than the specified date/time.
|
|||||||
|
|
||||||
If this option is used several times, the last one will be used.
|
If this option is used several times, the last one will be used.
|
||||||
.IP "-h, --help"
|
.IP "-h, --help"
|
||||||
Usage help.
|
Usage help. This lists all current command line options with a short
|
||||||
|
description.
|
||||||
.IP "-M, --manual"
|
.IP "-M, --manual"
|
||||||
Manual. Display the huge help text.
|
Manual. Display the huge help text.
|
||||||
.IP "-V, --version"
|
.IP "-V, --version"
|
||||||
@@ -1908,29 +2111,32 @@ You can use IPv6 with this.
|
|||||||
.IP "krb4"
|
.IP "krb4"
|
||||||
Krb4 for FTP is supported.
|
Krb4 for FTP is supported.
|
||||||
.IP "SSL"
|
.IP "SSL"
|
||||||
HTTPS and FTPS are supported.
|
SSL versions of various protocols are supported, such as HTTPS, FTPS, POP3S
|
||||||
|
and so on.
|
||||||
.IP "libz"
|
.IP "libz"
|
||||||
Automatic decompression of compressed files over HTTP is supported.
|
Automatic decompression of compressed files over HTTP is supported.
|
||||||
.IP "NTLM"
|
.IP "NTLM"
|
||||||
NTLM authentication is supported.
|
NTLM authentication is supported.
|
||||||
.IP "GSS-Negotiate"
|
|
||||||
Negotiate authentication and krb5 for FTP is supported.
|
|
||||||
.IP "Debug"
|
.IP "Debug"
|
||||||
This curl uses a libcurl built with Debug. This enables more error-tracking
|
This curl uses a libcurl built with Debug. This enables more error-tracking
|
||||||
and memory debugging etc. For curl-developers only!
|
and memory debugging etc. For curl-developers only!
|
||||||
.IP "AsynchDNS"
|
.IP "AsynchDNS"
|
||||||
This curl uses asynchronous name resolves.
|
This curl uses asynchronous name resolves. Asynchronous name resolves can be
|
||||||
|
done using either the c-ares or the threaded resolver backends.
|
||||||
.IP "SPNEGO"
|
.IP "SPNEGO"
|
||||||
SPNEGO Negotiate authentication is supported.
|
SPNEGO authentication is supported.
|
||||||
.IP "Largefile"
|
.IP "Largefile"
|
||||||
This curl supports transfers of large files, files larger than 2GB.
|
This curl supports transfers of large files, files larger than 2GB.
|
||||||
.IP "IDN"
|
.IP "IDN"
|
||||||
This curl supports IDN - international domain names.
|
This curl supports IDN - international domain names.
|
||||||
|
.IP "GSS-API"
|
||||||
|
GSS-API is supported.
|
||||||
.IP "SSPI"
|
.IP "SSPI"
|
||||||
SSPI is supported. If you use NTLM and set a blank user name, curl will
|
SSPI is supported.
|
||||||
authenticate with your current user and password.
|
|
||||||
.IP "TLS-SRP"
|
.IP "TLS-SRP"
|
||||||
SRP (Secure Remote Password) authentication is supported for TLS.
|
SRP (Secure Remote Password) authentication is supported for TLS.
|
||||||
|
.IP "HTTP2"
|
||||||
|
HTTP/2 support has been built-in.
|
||||||
.IP "Metalink"
|
.IP "Metalink"
|
||||||
This curl supports Metalink (both version 3 and 4 (RFC 5854)), which
|
This curl supports Metalink (both version 3 and 4 (RFC 5854)), which
|
||||||
describes mirrors and hashes. curl will use mirrors for failover if
|
describes mirrors and hashes. curl will use mirrors for failover if
|
||||||
@@ -2146,6 +2352,8 @@ unable to parse FTP file list
|
|||||||
FTP chunk callback reported error
|
FTP chunk callback reported error
|
||||||
.IP 89
|
.IP 89
|
||||||
No connection available, the session will be queued
|
No connection available, the session will be queued
|
||||||
|
.IP 90
|
||||||
|
SSL public key does not matched pinned public key
|
||||||
.IP XX
|
.IP XX
|
||||||
More error codes will appear here in future releases. The existing ones
|
More error codes will appear here in future releases. The existing ones
|
||||||
are meant to never change.
|
are meant to never change.
|
||||||
@@ -2153,7 +2361,7 @@ are meant to never change.
|
|||||||
Daniel Stenberg is the main author, but the whole list of contributors is
|
Daniel Stenberg is the main author, but the whole list of contributors is
|
||||||
found in the separate THANKS file.
|
found in the separate THANKS file.
|
||||||
.SH WWW
|
.SH WWW
|
||||||
http://curl.haxx.se
|
https://curl.haxx.se
|
||||||
.SH FTP
|
.SH FTP
|
||||||
ftp://ftp.sunet.se/pub/www/utilities/curl/
|
ftp://ftp.sunet.se/pub/www/utilities/curl/
|
||||||
.SH "SEE ALSO"
|
.SH "SEE ALSO"
|
||||||
|
|||||||
4
docs/examples/.gitignore
vendored
4
docs/examples/.gitignore
vendored
@@ -73,3 +73,7 @@ smtp-vrfy
|
|||||||
url2file
|
url2file
|
||||||
usercertinmem
|
usercertinmem
|
||||||
xmlstream
|
xmlstream
|
||||||
|
http2-download
|
||||||
|
http2-serverpush
|
||||||
|
http2-upload
|
||||||
|
imap-lsub
|
||||||
|
|||||||
@@ -5,11 +5,11 @@
|
|||||||
* | (__| |_| | _ <| |___
|
* | (__| |_| | _ <| |___
|
||||||
* \___|\___/|_| \_\_____|
|
* \___|\___/|_| \_\_____|
|
||||||
*
|
*
|
||||||
* Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al.
|
* Copyright (C) 1998 - 2016, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
*
|
*
|
||||||
* This software is licensed as described in the file COPYING, which
|
* This software is licensed as described in the file COPYING, which
|
||||||
* you should have received as part of this distribution. The terms
|
* you should have received as part of this distribution. The terms
|
||||||
* are also available at http://curl.haxx.se/docs/copyright.html.
|
* are also available at https://curl.haxx.se/docs/copyright.html.
|
||||||
*
|
*
|
||||||
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
||||||
* copies of the Software, and permit persons to whom the Software is
|
* copies of the Software, and permit persons to whom the Software is
|
||||||
@@ -19,9 +19,10 @@
|
|||||||
* KIND, either express or implied.
|
* KIND, either express or implied.
|
||||||
*
|
*
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
/* Example application source code using the multi interface to download many
|
/* <DESC>
|
||||||
* files, but with a capped maximum amount of simultaneous transfers.
|
* Source code using the multi interface to download many
|
||||||
*
|
* files, with a capped maximum amount of simultaneous transfers.
|
||||||
|
* </DESC>
|
||||||
* Written by Michael Wallner
|
* Written by Michael Wallner
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@@ -62,7 +63,6 @@ static const char *urls[] = {
|
|||||||
"http://www.uefa.com",
|
"http://www.uefa.com",
|
||||||
"http://www.ieee.org",
|
"http://www.ieee.org",
|
||||||
"http://www.apple.com",
|
"http://www.apple.com",
|
||||||
"http://www.sony.com",
|
|
||||||
"http://www.symantec.com",
|
"http://www.symantec.com",
|
||||||
"http://www.zdnet.com",
|
"http://www.zdnet.com",
|
||||||
"http://www.fujitsu.com",
|
"http://www.fujitsu.com",
|
||||||
@@ -127,41 +127,42 @@ int main(void)
|
|||||||
uses */
|
uses */
|
||||||
curl_multi_setopt(cm, CURLMOPT_MAXCONNECTS, (long)MAX);
|
curl_multi_setopt(cm, CURLMOPT_MAXCONNECTS, (long)MAX);
|
||||||
|
|
||||||
for (C = 0; C < MAX; ++C) {
|
for(C = 0; C < MAX; ++C) {
|
||||||
init(cm, C);
|
init(cm, C);
|
||||||
}
|
}
|
||||||
|
|
||||||
while (U) {
|
while(U) {
|
||||||
curl_multi_perform(cm, &U);
|
curl_multi_perform(cm, &U);
|
||||||
|
|
||||||
if (U) {
|
if(U) {
|
||||||
FD_ZERO(&R);
|
FD_ZERO(&R);
|
||||||
FD_ZERO(&W);
|
FD_ZERO(&W);
|
||||||
FD_ZERO(&E);
|
FD_ZERO(&E);
|
||||||
|
|
||||||
if (curl_multi_fdset(cm, &R, &W, &E, &M)) {
|
if(curl_multi_fdset(cm, &R, &W, &E, &M)) {
|
||||||
fprintf(stderr, "E: curl_multi_fdset\n");
|
fprintf(stderr, "E: curl_multi_fdset\n");
|
||||||
return EXIT_FAILURE;
|
return EXIT_FAILURE;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (curl_multi_timeout(cm, &L)) {
|
if(curl_multi_timeout(cm, &L)) {
|
||||||
fprintf(stderr, "E: curl_multi_timeout\n");
|
fprintf(stderr, "E: curl_multi_timeout\n");
|
||||||
return EXIT_FAILURE;
|
return EXIT_FAILURE;
|
||||||
}
|
}
|
||||||
if (L == -1)
|
if(L == -1)
|
||||||
L = 100;
|
L = 100;
|
||||||
|
|
||||||
if (M == -1) {
|
if(M == -1) {
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
Sleep(L);
|
Sleep(L);
|
||||||
#else
|
#else
|
||||||
sleep(L / 1000);
|
sleep((unsigned int)L / 1000);
|
||||||
#endif
|
#endif
|
||||||
} else {
|
}
|
||||||
|
else {
|
||||||
T.tv_sec = L/1000;
|
T.tv_sec = L/1000;
|
||||||
T.tv_usec = (L%1000)*1000;
|
T.tv_usec = (L%1000)*1000;
|
||||||
|
|
||||||
if (0 > select(M+1, &R, &W, &E, &T)) {
|
if(0 > select(M+1, &R, &W, &E, &T)) {
|
||||||
fprintf(stderr, "E: select(%i,,,,%li): %i: %s\n",
|
fprintf(stderr, "E: select(%i,,,,%li): %i: %s\n",
|
||||||
M+1, L, errno, strerror(errno));
|
M+1, L, errno, strerror(errno));
|
||||||
return EXIT_FAILURE;
|
return EXIT_FAILURE;
|
||||||
@@ -169,8 +170,8 @@ int main(void)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
while ((msg = curl_multi_info_read(cm, &Q))) {
|
while((msg = curl_multi_info_read(cm, &Q))) {
|
||||||
if (msg->msg == CURLMSG_DONE) {
|
if(msg->msg == CURLMSG_DONE) {
|
||||||
char *url;
|
char *url;
|
||||||
CURL *e = msg->easy_handle;
|
CURL *e = msg->easy_handle;
|
||||||
curl_easy_getinfo(msg->easy_handle, CURLINFO_PRIVATE, &url);
|
curl_easy_getinfo(msg->easy_handle, CURLINFO_PRIVATE, &url);
|
||||||
@@ -182,7 +183,7 @@ int main(void)
|
|||||||
else {
|
else {
|
||||||
fprintf(stderr, "E: CURLMsg (%d)\n", msg->msg);
|
fprintf(stderr, "E: CURLMsg (%d)\n", msg->msg);
|
||||||
}
|
}
|
||||||
if (C < CNT) {
|
if(C < CNT) {
|
||||||
init(cm, C++);
|
init(cm, C++);
|
||||||
U++; /* just to prevent it from remaining at 0 if there are more
|
U++; /* just to prevent it from remaining at 0 if there are more
|
||||||
URLs to get */
|
URLs to get */
|
||||||
|
|||||||
@@ -5,11 +5,11 @@
|
|||||||
# | (__| |_| | _ <| |___
|
# | (__| |_| | _ <| |___
|
||||||
# \___|\___/|_| \_\_____|
|
# \___|\___/|_| \_\_____|
|
||||||
#
|
#
|
||||||
# Copyright (C) 1998 - 2012, Daniel Stenberg, <daniel@haxx.se>, et al.
|
# Copyright (C) 1998 - 2016, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
#
|
#
|
||||||
# This software is licensed as described in the file COPYING, which
|
# This software is licensed as described in the file COPYING, which
|
||||||
# you should have received as part of this distribution. The terms
|
# you should have received as part of this distribution. The terms
|
||||||
# are also available at http://curl.haxx.se/docs/copyright.html.
|
# are also available at https://curl.haxx.se/docs/copyright.html.
|
||||||
#
|
#
|
||||||
# You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
# You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
||||||
# copies of the Software, and permit persons to whom the Software is
|
# copies of the Software, and permit persons to whom the Software is
|
||||||
@@ -61,3 +61,6 @@ endif
|
|||||||
include Makefile.inc
|
include Makefile.inc
|
||||||
|
|
||||||
all: $(check_PROGRAMS)
|
all: $(check_PROGRAMS)
|
||||||
|
|
||||||
|
checksrc:
|
||||||
|
@@PERL@ $(top_srcdir)/lib/checksrc.pl -D$(top_srcdir)/docs/examples *.c
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
#
|
#
|
||||||
# This software is licensed as described in the file COPYING, which
|
# This software is licensed as described in the file COPYING, which
|
||||||
# you should have received as part of this distribution. The terms
|
# you should have received as part of this distribution. The terms
|
||||||
# are also available at http://curl.haxx.se/docs/copyright.html.
|
# are also available at https://curl.haxx.se/docs/copyright.html.
|
||||||
#
|
#
|
||||||
# You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
# You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
||||||
# copies of the Software, and permit persons to whom the Software is
|
# copies of the Software, and permit persons to whom the Software is
|
||||||
|
|||||||
@@ -1,20 +1,43 @@
|
|||||||
|
#***************************************************************************
|
||||||
|
# _ _ ____ _
|
||||||
|
# Project ___| | | | _ \| |
|
||||||
|
# / __| | | | |_) | |
|
||||||
|
# | (__| |_| | _ <| |___
|
||||||
|
# \___|\___/|_| \_\_____|
|
||||||
|
#
|
||||||
|
# Copyright (C) 1998 - 2016, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
|
#
|
||||||
|
# This software is licensed as described in the file COPYING, which
|
||||||
|
# you should have received as part of this distribution. The terms
|
||||||
|
# are also available at https://curl.haxx.se/docs/copyright.html.
|
||||||
|
#
|
||||||
|
# You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
||||||
|
# copies of the Software, and permit persons to whom the Software is
|
||||||
|
# furnished to do so, under the terms of the COPYING file.
|
||||||
|
#
|
||||||
|
# This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
||||||
|
# KIND, either express or implied.
|
||||||
|
#
|
||||||
|
###########################################################################
|
||||||
|
|
||||||
# These are all libcurl example programs to be test compiled
|
# These are all libcurl example programs to be test compiled
|
||||||
check_PROGRAMS = 10-at-a-time anyauthput cookie_interface debug fileupload \
|
check_PROGRAMS = 10-at-a-time anyauthput cookie_interface debug fileupload \
|
||||||
fopen ftpget ftpgetresp ftpupload getinfo getinmemory http-post httpput \
|
fopen ftpget ftpgetresp ftpupload getinfo getinmemory http-post httpput \
|
||||||
https multi-app multi-debugcallback multi-double multi-post multi-single \
|
https multi-app multi-debugcallback multi-double multi-post multi-single \
|
||||||
persistant post-callback postit2 sepheaders simple simplepost simplessl \
|
persistant post-callback postit2 sepheaders simple simplepost simplessl \
|
||||||
sendrecv httpcustomheader certinfo chkspeed ftpgetinfo ftp-wildcard \
|
sendrecv httpcustomheader certinfo chkspeed ftpgetinfo ftp-wildcard \
|
||||||
smtp-mail smtp-multi smtp-ssl smtp-tls smtp-vrfy smtp-expn rtsp \
|
smtp-mail smtp-multi smtp-ssl smtp-tls smtp-vrfy smtp-expn rtsp \
|
||||||
externalsocket resolve progressfunc pop3-retr pop3-list pop3-uidl pop3-dele \
|
externalsocket resolve progressfunc pop3-retr pop3-list pop3-uidl \
|
||||||
pop3-top pop3-stat pop3-noop pop3-ssl pop3-tls pop3-multi imap-list \
|
pop3-dele pop3-top pop3-stat pop3-noop pop3-ssl pop3-tls pop3-multi \
|
||||||
imap-lsub imap-fetch imap-store imap-append imap-examine imap-search \
|
imap-list imap-lsub imap-fetch imap-store imap-append imap-examine \
|
||||||
imap-create imap-delete imap-copy imap-noop imap-ssl imap-tls imap-multi \
|
imap-search imap-create imap-delete imap-copy imap-noop imap-ssl \
|
||||||
url2file sftpget ftpsget postinmemory
|
imap-tls imap-multi url2file sftpget ftpsget postinmemory http2-download \
|
||||||
|
http2-upload http2-serverpush getredirect
|
||||||
|
|
||||||
# These examples require external dependencies that may not be commonly
|
# These examples require external dependencies that may not be commonly
|
||||||
# available on POSIX systems, so don't bother attempting to compile them here.
|
# available on POSIX systems, so don't bother attempting to compile them here.
|
||||||
COMPLICATED_EXAMPLES = curlgtk.c curlx.c htmltitle.cpp cacertinmem.c \
|
COMPLICATED_EXAMPLES = curlgtk.c curlx.c htmltitle.cpp cacertinmem.c \
|
||||||
ftpuploadresume.c ghiper.c hiperfifo.c htmltidy.c multithread.c \
|
ftpuploadresume.c ghiper.c hiperfifo.c htmltidy.c multithread.c \
|
||||||
opensslthreadlock.c sampleconv.c synctime.c threaded-ssl.c evhiperfifo.c \
|
opensslthreadlock.c sampleconv.c synctime.c threaded-ssl.c evhiperfifo.c \
|
||||||
smooth-gtk-thread.c version-check.pl href_extractor.c asiohiper.cpp \
|
smooth-gtk-thread.c version-check.pl href_extractor.c asiohiper.cpp \
|
||||||
multi-uv.c xmlstream.c usercertinmem.c sessioninfo.c
|
multi-uv.c xmlstream.c usercertinmem.c sessioninfo.c
|
||||||
|
|||||||
@@ -5,11 +5,11 @@
|
|||||||
# | (__| |_| | _ <| |___
|
# | (__| |_| | _ <| |___
|
||||||
# \___|\___/|_| \_\_____|
|
# \___|\___/|_| \_\_____|
|
||||||
#
|
#
|
||||||
# Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al.
|
# Copyright (C) 1998 - 2015, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
#
|
#
|
||||||
# This software is licensed as described in the file COPYING, which
|
# This software is licensed as described in the file COPYING, which
|
||||||
# you should have received as part of this distribution. The terms
|
# you should have received as part of this distribution. The terms
|
||||||
# are also available at http://curl.haxx.se/docs/copyright.html.
|
# are also available at https://curl.haxx.se/docs/copyright.html.
|
||||||
#
|
#
|
||||||
# You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
# You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
||||||
# copies of the Software, and permit persons to whom the Software is
|
# copies of the Software, and permit persons to whom the Software is
|
||||||
@@ -21,7 +21,7 @@
|
|||||||
###########################################################################
|
###########################################################################
|
||||||
#
|
#
|
||||||
## Makefile for building curl examples with MingW (GCC-3.2 or later)
|
## Makefile for building curl examples with MingW (GCC-3.2 or later)
|
||||||
## and optionally OpenSSL (0.9.8), libssh2 (1.3), zlib (1.2.5), librtmp (2.3)
|
## and optionally OpenSSL (1.0.2a), libssh2 (1.5), zlib (1.2.8), librtmp (2.4)
|
||||||
##
|
##
|
||||||
## Usage: mingw32-make -f Makefile.m32 CFG=-feature1[-feature2][-feature3][...]
|
## Usage: mingw32-make -f Makefile.m32 CFG=-feature1[-feature2][-feature3][...]
|
||||||
## Example: mingw32-make -f Makefile.m32 CFG=-zlib-ssl-spi-winidn
|
## Example: mingw32-make -f Makefile.m32 CFG=-zlib-ssl-spi-winidn
|
||||||
@@ -38,23 +38,23 @@ ZLIB_PATH = ../../../zlib-1.2.8
|
|||||||
endif
|
endif
|
||||||
# Edit the path below to point to the base of your OpenSSL package.
|
# Edit the path below to point to the base of your OpenSSL package.
|
||||||
ifndef OPENSSL_PATH
|
ifndef OPENSSL_PATH
|
||||||
OPENSSL_PATH = ../../../openssl-0.9.8y
|
OPENSSL_PATH = ../../../openssl-1.0.2a
|
||||||
endif
|
endif
|
||||||
# Edit the path below to point to the base of your LibSSH2 package.
|
# Edit the path below to point to the base of your LibSSH2 package.
|
||||||
ifndef LIBSSH2_PATH
|
ifndef LIBSSH2_PATH
|
||||||
LIBSSH2_PATH = ../../../libssh2-1.4.3
|
LIBSSH2_PATH = ../../../libssh2-1.5.0
|
||||||
endif
|
endif
|
||||||
# Edit the path below to point to the base of your librtmp package.
|
# Edit the path below to point to the base of your librtmp package.
|
||||||
ifndef LIBRTMP_PATH
|
ifndef LIBRTMP_PATH
|
||||||
LIBRTMP_PATH = ../../../librtmp-2.3
|
LIBRTMP_PATH = ../../../librtmp-2.4
|
||||||
endif
|
endif
|
||||||
# Edit the path below to point to the base of your libidn package.
|
# Edit the path below to point to the base of your libidn package.
|
||||||
ifndef LIBIDN_PATH
|
ifndef LIBIDN_PATH
|
||||||
LIBIDN_PATH = ../../../libidn-1.18
|
LIBIDN_PATH = ../../../libidn-1.32
|
||||||
endif
|
endif
|
||||||
# Edit the path below to point to the base of your MS IDN package.
|
# Edit the path below to point to the base of your MS IDN package.
|
||||||
# Microsoft Internationalized Domain Names (IDN) Mitigation APIs 1.1
|
# Microsoft Internationalized Domain Names (IDN) Mitigation APIs 1.1
|
||||||
# http://www.microsoft.com/downloads/en/details.aspx?FamilyID=ad6158d7-ddba-416a-9109-07607425a815
|
# https://www.microsoft.com/en-us/download/details.aspx?id=734
|
||||||
ifndef WINIDN_PATH
|
ifndef WINIDN_PATH
|
||||||
WINIDN_PATH = ../../../Microsoft IDN Mitigation APIs
|
WINIDN_PATH = ../../../Microsoft IDN Mitigation APIs
|
||||||
endif
|
endif
|
||||||
@@ -62,6 +62,10 @@ endif
|
|||||||
ifndef LDAP_SDK
|
ifndef LDAP_SDK
|
||||||
LDAP_SDK = c:/novell/ndk/cldapsdk/win32
|
LDAP_SDK = c:/novell/ndk/cldapsdk/win32
|
||||||
endif
|
endif
|
||||||
|
# Edit the path below to point to the base of your nghttp2 package.
|
||||||
|
ifndef NGHTTP2_PATH
|
||||||
|
NGHTTP2_PATH = ../../../nghttp2-1.0.0
|
||||||
|
endif
|
||||||
|
|
||||||
PROOT = ../..
|
PROOT = ../..
|
||||||
|
|
||||||
@@ -72,14 +76,24 @@ endif
|
|||||||
|
|
||||||
# Edit the var below to set to your architecture or set environment var.
|
# Edit the var below to set to your architecture or set environment var.
|
||||||
ifndef ARCH
|
ifndef ARCH
|
||||||
ARCH = w32
|
ifeq ($(findstring x86_64,$(shell $(CC) -dumpmachine)),x86_64)
|
||||||
|
ARCH = w64
|
||||||
|
else
|
||||||
|
ARCH = w32
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
CC = $(CROSSPREFIX)gcc
|
CC = $(CROSSPREFIX)gcc
|
||||||
CFLAGS = -g -O2 -Wall
|
CFLAGS = -g -O2 -Wall
|
||||||
CFLAGS += -fno-strict-aliasing
|
CFLAGS += -fno-strict-aliasing
|
||||||
ifeq ($(ARCH),w64)
|
ifeq ($(ARCH),w64)
|
||||||
CFLAGS += -D_AMD64_
|
CFLAGS += -m64 -D_AMD64_
|
||||||
|
LDFLAGS += -m64
|
||||||
|
RCFLAGS += -F pe-x86-64
|
||||||
|
else
|
||||||
|
CFLAGS += -m32
|
||||||
|
LDFLAGS += -m32
|
||||||
|
RCFLAGS += -F pe-i386
|
||||||
endif
|
endif
|
||||||
# comment LDFLAGS below to keep debug info
|
# comment LDFLAGS below to keep debug info
|
||||||
LDFLAGS = -s
|
LDFLAGS = -s
|
||||||
@@ -148,9 +162,6 @@ endif
|
|||||||
ifeq ($(findstring -sspi,$(CFG)),-sspi)
|
ifeq ($(findstring -sspi,$(CFG)),-sspi)
|
||||||
SSPI = 1
|
SSPI = 1
|
||||||
endif
|
endif
|
||||||
ifeq ($(findstring -spnego,$(CFG)),-spnego)
|
|
||||||
SPNEGO = 1
|
|
||||||
endif
|
|
||||||
ifeq ($(findstring -ldaps,$(CFG)),-ldaps)
|
ifeq ($(findstring -ldaps,$(CFG)),-ldaps)
|
||||||
LDAPS = 1
|
LDAPS = 1
|
||||||
endif
|
endif
|
||||||
@@ -161,9 +172,12 @@ ifeq ($(findstring -metalink,$(CFG)),-metalink)
|
|||||||
METALINK = 1
|
METALINK = 1
|
||||||
endif
|
endif
|
||||||
ifeq ($(findstring -winssl,$(CFG)),-winssl)
|
ifeq ($(findstring -winssl,$(CFG)),-winssl)
|
||||||
SCHANNEL = 1
|
WINSSL = 1
|
||||||
SSPI = 1
|
SSPI = 1
|
||||||
endif
|
endif
|
||||||
|
ifeq ($(findstring -nghttp2,$(CFG)),-nghttp2)
|
||||||
|
NGHTTP2 = 1
|
||||||
|
endif
|
||||||
|
|
||||||
INCLUDES = -I. -I$(PROOT) -I$(PROOT)/include -I$(PROOT)/lib
|
INCLUDES = -I. -I$(PROOT) -I$(PROOT)/include -I$(PROOT)/lib
|
||||||
|
|
||||||
@@ -187,6 +201,10 @@ ifdef RTMP
|
|||||||
CFLAGS += -DUSE_LIBRTMP
|
CFLAGS += -DUSE_LIBRTMP
|
||||||
curl_LDADD += -L"$(LIBRTMP_PATH)/librtmp" -lrtmp -lwinmm
|
curl_LDADD += -L"$(LIBRTMP_PATH)/librtmp" -lrtmp -lwinmm
|
||||||
endif
|
endif
|
||||||
|
ifdef NGHTTP2
|
||||||
|
CFLAGS += -DUSE_NGHTTP2
|
||||||
|
curl_LDADD += -L"$(NGHTTP2_PATH)/lib" -lnghttp2
|
||||||
|
endif
|
||||||
ifdef SSH2
|
ifdef SSH2
|
||||||
CFLAGS += -DUSE_LIBSSH2 -DHAVE_LIBSSH2_H
|
CFLAGS += -DUSE_LIBSSH2 -DHAVE_LIBSSH2_H
|
||||||
curl_LDADD += -L"$(LIBSSH2_PATH)/win32" -lssh2
|
curl_LDADD += -L"$(LIBSSH2_PATH)/win32" -lssh2
|
||||||
@@ -207,7 +225,7 @@ ifdef SSL
|
|||||||
ifndef DYN
|
ifndef DYN
|
||||||
OPENSSL_LIBS += -lgdi32 -lcrypt32
|
OPENSSL_LIBS += -lgdi32 -lcrypt32
|
||||||
endif
|
endif
|
||||||
CFLAGS += -DUSE_SSLEAY
|
CFLAGS += -DUSE_OPENSSL
|
||||||
curl_LDADD += -L"$(OPENSSL_LIBPATH)" $(OPENSSL_LIBS)
|
curl_LDADD += -L"$(OPENSSL_LIBPATH)" $(OPENSSL_LIBS)
|
||||||
endif
|
endif
|
||||||
ifdef ZLIB
|
ifdef ZLIB
|
||||||
@@ -226,13 +244,10 @@ endif
|
|||||||
endif
|
endif
|
||||||
ifdef SSPI
|
ifdef SSPI
|
||||||
CFLAGS += -DUSE_WINDOWS_SSPI
|
CFLAGS += -DUSE_WINDOWS_SSPI
|
||||||
ifdef SCHANNEL
|
ifdef WINSSL
|
||||||
CFLAGS += -DUSE_SCHANNEL
|
CFLAGS += -DUSE_SCHANNEL
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
ifdef SPNEGO
|
|
||||||
CFLAGS += -DHAVE_SPNEGO
|
|
||||||
endif
|
|
||||||
ifdef IPV6
|
ifdef IPV6
|
||||||
CFLAGS += -DENABLE_IPV6 -D_WIN32_WINNT=0x0501
|
CFLAGS += -DENABLE_IPV6 -D_WIN32_WINNT=0x0501
|
||||||
endif
|
endif
|
||||||
|
|||||||
@@ -19,12 +19,12 @@ endif
|
|||||||
|
|
||||||
# Edit the path below to point to the base of your OpenSSL package.
|
# Edit the path below to point to the base of your OpenSSL package.
|
||||||
ifndef OPENSSL_PATH
|
ifndef OPENSSL_PATH
|
||||||
OPENSSL_PATH = ../../../openssl-0.9.8y
|
OPENSSL_PATH = ../../../openssl-1.0.2a
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# Edit the path below to point to the base of your LibSSH2 package.
|
# Edit the path below to point to the base of your LibSSH2 package.
|
||||||
ifndef LIBSSH2_PATH
|
ifndef LIBSSH2_PATH
|
||||||
LIBSSH2_PATH = ../../../libssh2-1.4.3
|
LIBSSH2_PATH = ../../../libssh2-1.5.0
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# Edit the path below to point to the base of your axTLS package.
|
# Edit the path below to point to the base of your axTLS package.
|
||||||
@@ -34,12 +34,12 @@ endif
|
|||||||
|
|
||||||
# Edit the path below to point to the base of your libidn package.
|
# Edit the path below to point to the base of your libidn package.
|
||||||
ifndef LIBIDN_PATH
|
ifndef LIBIDN_PATH
|
||||||
LIBIDN_PATH = ../../../libidn-1.18
|
LIBIDN_PATH = ../../../libidn-1.32
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# Edit the path below to point to the base of your librtmp package.
|
# Edit the path below to point to the base of your librtmp package.
|
||||||
ifndef LIBRTMP_PATH
|
ifndef LIBRTMP_PATH
|
||||||
LIBRTMP_PATH = ../../../librtmp-2.3
|
LIBRTMP_PATH = ../../../librtmp-2.4
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# Edit the path below to point to the base of your fbopenssl package.
|
# Edit the path below to point to the base of your fbopenssl package.
|
||||||
@@ -211,9 +211,6 @@ endif
|
|||||||
ifeq ($(findstring -idn,$(CFG)),-idn)
|
ifeq ($(findstring -idn,$(CFG)),-idn)
|
||||||
WITH_IDN = 1
|
WITH_IDN = 1
|
||||||
endif
|
endif
|
||||||
ifeq ($(findstring -spnego,$(CFG)),-spnego)
|
|
||||||
WITH_SPNEGO = 1
|
|
||||||
endif
|
|
||||||
ifeq ($(findstring -ipv6,$(CFG)),-ipv6)
|
ifeq ($(findstring -ipv6,$(CFG)),-ipv6)
|
||||||
ENABLE_IPV6 = 1
|
ENABLE_IPV6 = 1
|
||||||
endif
|
endif
|
||||||
@@ -247,10 +244,6 @@ ifdef WITH_SSL
|
|||||||
LDLIBS += $(OPENSSL_PATH)/out_nw_$(LIBARCH_L)/ssl.$(LIBEXT)
|
LDLIBS += $(OPENSSL_PATH)/out_nw_$(LIBARCH_L)/ssl.$(LIBEXT)
|
||||||
LDLIBS += $(OPENSSL_PATH)/out_nw_$(LIBARCH_L)/crypto.$(LIBEXT)
|
LDLIBS += $(OPENSSL_PATH)/out_nw_$(LIBARCH_L)/crypto.$(LIBEXT)
|
||||||
IMPORTS += GetProcessSwitchCount RunningProcess
|
IMPORTS += GetProcessSwitchCount RunningProcess
|
||||||
ifdef WITH_SPNEGO
|
|
||||||
# INCLUDES += -I$(FBOPENSSL_PATH)/include
|
|
||||||
LDLIBS += $(FBOPENSSL_PATH)/nw/fbopenssl.$(LIBEXT)
|
|
||||||
endif
|
|
||||||
else
|
else
|
||||||
ifdef WITH_AXTLS
|
ifdef WITH_AXTLS
|
||||||
INCLUDES += -I$(AXTLS_PATH)/inc
|
INCLUDES += -I$(AXTLS_PATH)/inc
|
||||||
|
|||||||
@@ -32,51 +32,7 @@ actually torture our web site with your tests! Thanks.
|
|||||||
|
|
||||||
EXAMPLES
|
EXAMPLES
|
||||||
|
|
||||||
anyauthput.c - HTTP PUT using "any" authentication method
|
Each example source code file is designed to be and work stand-alone and
|
||||||
cacertinmem.c - Use a built-in PEM certificate to retrieve a https page
|
rather self-explanatory. The examples may at times lack the level of error
|
||||||
cookie_interface.c - shows usage of simple cookie interface
|
checks you need in a real world, but that is then only for the sake of
|
||||||
curlgtk.c - download using a GTK progress bar
|
readability: to make the code smaller and easier to follow.
|
||||||
curlx.c - getting file info from the remote cert data
|
|
||||||
debug.c - showing how to use the debug callback
|
|
||||||
fileupload.c - uploading to a file:// URL
|
|
||||||
fopen.c - fopen() layer that supports opening URLs and files
|
|
||||||
ftpget.c - simple getting a file from FTP
|
|
||||||
ftpgetresp.c - get the response strings from the FTP server
|
|
||||||
ftpupload.c - upload a file to an FTP server
|
|
||||||
ftpuploadresume.c - resume an upload to an FTP server
|
|
||||||
getinfo.c - get the Content-Type from the recent transfer
|
|
||||||
getinmemory.c - download a file to memory only
|
|
||||||
ghiper.c - curl_multi_socket() using code with glib-2
|
|
||||||
hiperfifo.c - downloads all URLs written to the fifo, using
|
|
||||||
curl_multi_socket() and libevent
|
|
||||||
htmltidy.c - download a document and use libtidy to parse the HTML
|
|
||||||
htmltitle.cc - download a HTML file and extract the <title> tag from a HTML
|
|
||||||
page using libxml
|
|
||||||
http-post.c - HTTP POST
|
|
||||||
httpput.c - HTTP PUT a local file
|
|
||||||
https.c - simple HTTPS transfer
|
|
||||||
imap.c - simple IMAP transfer
|
|
||||||
multi-app.c - a multi-interface app
|
|
||||||
multi-debugcallback.c - a multi-interface app using the debug callback
|
|
||||||
multi-double.c - a multi-interface app doing two simultaneous transfers
|
|
||||||
multi-post.c - a multi-interface app doing a multipart formpost
|
|
||||||
multi-single.c - a multi-interface app getting a single file
|
|
||||||
multi-uv.c - a multi-interface app using libuv
|
|
||||||
multithread.c - an example using multi-treading transferring multiple files
|
|
||||||
opensslthreadlock.c - show how to do locking when using OpenSSL multi-threaded
|
|
||||||
persistant.c - request two URLs with a persistent connection
|
|
||||||
pop3s.c - POP3S transfer
|
|
||||||
pop3slist.c - POP3S LIST
|
|
||||||
post-callback.c - send a HTTP POST using a callback
|
|
||||||
postit2.c - send a HTTP multipart formpost
|
|
||||||
sampleconv.c - showing how a program on a non-ASCII platform would invoke
|
|
||||||
callbacks to do its own codeset conversions instead of using
|
|
||||||
the built-in iconv functions in libcurl
|
|
||||||
sepheaders.c - download headers to a separate file
|
|
||||||
simple.c - the most simple download a URL source
|
|
||||||
simplepost.c - HTTP POST
|
|
||||||
simplessl.c - HTTPS example with certificates many options set
|
|
||||||
synctime.c - Sync local time by extracting date from remote HTTP servers
|
|
||||||
url2file.c - download a document and store it in a file
|
|
||||||
xmlstream.c - Stream-parse a document using the streaming Expat parser
|
|
||||||
10-at-a-time.c - Download many files simultaneously, 10 at a time.
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
# pass files as argument(s)
|
# pass files as argument(s)
|
||||||
|
|
||||||
my $docroot="http://curl.haxx.se/libcurl/c";
|
my $docroot="https://curl.haxx.se/libcurl/c";
|
||||||
|
|
||||||
for $f (@ARGV) {
|
for $f (@ARGV) {
|
||||||
open(NEW, ">$f.new");
|
open(NEW, ">$f.new");
|
||||||
|
|||||||
@@ -5,11 +5,11 @@
|
|||||||
* | (__| |_| | _ <| |___
|
* | (__| |_| | _ <| |___
|
||||||
* \___|\___/|_| \_\_____|
|
* \___|\___/|_| \_\_____|
|
||||||
*
|
*
|
||||||
* Copyright (C) 1998 - 2012, Daniel Stenberg, <daniel@haxx.se>, et al.
|
* Copyright (C) 1998 - 2016, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
*
|
*
|
||||||
* This software is licensed as described in the file COPYING, which
|
* This software is licensed as described in the file COPYING, which
|
||||||
* you should have received as part of this distribution. The terms
|
* you should have received as part of this distribution. The terms
|
||||||
* are also available at http://curl.haxx.se/docs/copyright.html.
|
* are also available at https://curl.haxx.se/docs/copyright.html.
|
||||||
*
|
*
|
||||||
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
||||||
* copies of the Software, and permit persons to whom the Software is
|
* copies of the Software, and permit persons to whom the Software is
|
||||||
@@ -19,6 +19,11 @@
|
|||||||
* KIND, either express or implied.
|
* KIND, either express or implied.
|
||||||
*
|
*
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
/* <DESC>
|
||||||
|
* HTTP PUT upload with authentiction using "any" method. libcurl picks the
|
||||||
|
* one the server supports/wants.
|
||||||
|
* </DESC>
|
||||||
|
*/
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
@@ -73,7 +78,8 @@
|
|||||||
/* ioctl callback function */
|
/* ioctl callback function */
|
||||||
static curlioerr my_ioctl(CURL *handle, curliocmd cmd, void *userp)
|
static curlioerr my_ioctl(CURL *handle, curliocmd cmd, void *userp)
|
||||||
{
|
{
|
||||||
intptr_t fd = (intptr_t)userp;
|
int *fdp = (int *)userp;
|
||||||
|
int fd = *fdp;
|
||||||
|
|
||||||
(void)handle; /* not used in here */
|
(void)handle; /* not used in here */
|
||||||
|
|
||||||
@@ -95,10 +101,11 @@ static curlioerr my_ioctl(CURL *handle, curliocmd cmd, void *userp)
|
|||||||
/* read callback function, fread() look alike */
|
/* read callback function, fread() look alike */
|
||||||
static size_t read_callback(void *ptr, size_t size, size_t nmemb, void *stream)
|
static size_t read_callback(void *ptr, size_t size, size_t nmemb, void *stream)
|
||||||
{
|
{
|
||||||
size_t retcode;
|
ssize_t retcode;
|
||||||
curl_off_t nread;
|
curl_off_t nread;
|
||||||
|
|
||||||
intptr_t fd = (intptr_t)stream;
|
int *fdp = (int *)stream;
|
||||||
|
int fd = *fdp;
|
||||||
|
|
||||||
retcode = read(fd, ptr, size * nmemb);
|
retcode = read(fd, ptr, size * nmemb);
|
||||||
|
|
||||||
@@ -114,7 +121,7 @@ int main(int argc, char **argv)
|
|||||||
{
|
{
|
||||||
CURL *curl;
|
CURL *curl;
|
||||||
CURLcode res;
|
CURLcode res;
|
||||||
intptr_t hd ;
|
int hd;
|
||||||
struct stat file_info;
|
struct stat file_info;
|
||||||
|
|
||||||
char *file;
|
char *file;
|
||||||
@@ -127,7 +134,7 @@ int main(int argc, char **argv)
|
|||||||
url = argv[2];
|
url = argv[2];
|
||||||
|
|
||||||
/* get the file size of the local file */
|
/* get the file size of the local file */
|
||||||
hd = open(file, O_RDONLY) ;
|
hd = open(file, O_RDONLY);
|
||||||
fstat(hd, &file_info);
|
fstat(hd, &file_info);
|
||||||
|
|
||||||
/* In windows, this will init the winsock stuff */
|
/* In windows, this will init the winsock stuff */
|
||||||
@@ -140,20 +147,20 @@ int main(int argc, char **argv)
|
|||||||
curl_easy_setopt(curl, CURLOPT_READFUNCTION, read_callback);
|
curl_easy_setopt(curl, CURLOPT_READFUNCTION, read_callback);
|
||||||
|
|
||||||
/* which file to upload */
|
/* which file to upload */
|
||||||
curl_easy_setopt(curl, CURLOPT_READDATA, (void*)hd);
|
curl_easy_setopt(curl, CURLOPT_READDATA, (void*)&hd);
|
||||||
|
|
||||||
/* set the ioctl function */
|
/* set the ioctl function */
|
||||||
curl_easy_setopt(curl, CURLOPT_IOCTLFUNCTION, my_ioctl);
|
curl_easy_setopt(curl, CURLOPT_IOCTLFUNCTION, my_ioctl);
|
||||||
|
|
||||||
/* pass the file descriptor to the ioctl callback as well */
|
/* pass the file descriptor to the ioctl callback as well */
|
||||||
curl_easy_setopt(curl, CURLOPT_IOCTLDATA, (void*)hd);
|
curl_easy_setopt(curl, CURLOPT_IOCTLDATA, (void*)&hd);
|
||||||
|
|
||||||
/* enable "uploading" (which means PUT when doing HTTP) */
|
/* enable "uploading" (which means PUT when doing HTTP) */
|
||||||
curl_easy_setopt(curl, CURLOPT_UPLOAD, 1L) ;
|
curl_easy_setopt(curl, CURLOPT_UPLOAD, 1L);
|
||||||
|
|
||||||
/* specify target URL, and note that this URL should also include a file
|
/* specify target URL, and note that this URL should also include a file
|
||||||
name, not only a directory (as you can do with GTP uploads) */
|
name, not only a directory (as you can do with GTP uploads) */
|
||||||
curl_easy_setopt(curl,CURLOPT_URL, url);
|
curl_easy_setopt(curl, CURLOPT_URL, url);
|
||||||
|
|
||||||
/* and give the size of the upload, this supports large file sizes
|
/* and give the size of the upload, this supports large file sizes
|
||||||
on systems that have general support for it */
|
on systems that have general support for it */
|
||||||
|
|||||||
@@ -5,11 +5,11 @@
|
|||||||
* | (__| |_| | _ <| |___
|
* | (__| |_| | _ <| |___
|
||||||
* \___|\___/|_| \_\_____|
|
* \___|\___/|_| \_\_____|
|
||||||
*
|
*
|
||||||
* Copyright (C) 2012, Daniel Stenberg, <daniel@haxx.se>, et al.
|
* Copyright (C) 2012 - 2015, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
*
|
*
|
||||||
* This software is licensed as described in the file COPYING, which
|
* This software is licensed as described in the file COPYING, which
|
||||||
* you should have received as part of this distribution. The terms
|
* you should have received as part of this distribution. The terms
|
||||||
* are also available at http://curl.haxx.se/docs/copyright.html.
|
* are also available at https://curl.haxx.se/docs/copyright.html.
|
||||||
*
|
*
|
||||||
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
||||||
* copies of the Software, and permit persons to whom the Software is
|
* copies of the Software, and permit persons to whom the Software is
|
||||||
@@ -20,11 +20,11 @@
|
|||||||
*
|
*
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
|
/* <DESC>
|
||||||
|
* demonstrate the use of multi socket interface with boost::asio
|
||||||
|
* </DESC>
|
||||||
|
*/
|
||||||
/*
|
/*
|
||||||
* file: asiohiper.cpp
|
|
||||||
* Example program to demonstrate the use of multi socket interface
|
|
||||||
* with boost::asio
|
|
||||||
*
|
|
||||||
* This program is in c++ and uses boost::asio instead of libevent/libev.
|
* This program is in c++ and uses boost::asio instead of libevent/libev.
|
||||||
* Requires boost::asio, boost::bind and boost::system
|
* Requires boost::asio, boost::bind and boost::system
|
||||||
*
|
*
|
||||||
@@ -48,6 +48,7 @@
|
|||||||
#include <curl/curl.h>
|
#include <curl/curl.h>
|
||||||
#include <boost/asio.hpp>
|
#include <boost/asio.hpp>
|
||||||
#include <boost/bind.hpp>
|
#include <boost/bind.hpp>
|
||||||
|
#include <iostream>
|
||||||
|
|
||||||
#define MSG_OUT stdout /* Send info to stdout, change to stderr if you want */
|
#define MSG_OUT stdout /* Send info to stdout, change to stderr if you want */
|
||||||
|
|
||||||
@@ -84,7 +85,7 @@ static int multi_timer_cb(CURLM *multi, long timeout_ms, GlobalInfo *g)
|
|||||||
/* cancel running timer */
|
/* cancel running timer */
|
||||||
timer.cancel();
|
timer.cancel();
|
||||||
|
|
||||||
if ( timeout_ms > 0 )
|
if(timeout_ms > 0)
|
||||||
{
|
{
|
||||||
/* update timer */
|
/* update timer */
|
||||||
timer.expires_from_now(boost::posix_time::millisec(timeout_ms));
|
timer.expires_from_now(boost::posix_time::millisec(timeout_ms));
|
||||||
@@ -103,26 +104,44 @@ static int multi_timer_cb(CURLM *multi, long timeout_ms, GlobalInfo *g)
|
|||||||
/* Die if we get a bad CURLMcode somewhere */
|
/* Die if we get a bad CURLMcode somewhere */
|
||||||
static void mcode_or_die(const char *where, CURLMcode code)
|
static void mcode_or_die(const char *where, CURLMcode code)
|
||||||
{
|
{
|
||||||
if ( CURLM_OK != code )
|
if(CURLM_OK != code)
|
||||||
{
|
{
|
||||||
const char *s;
|
const char *s;
|
||||||
switch ( code )
|
switch(code)
|
||||||
{
|
{
|
||||||
case CURLM_CALL_MULTI_PERFORM: s="CURLM_CALL_MULTI_PERFORM"; break;
|
case CURLM_CALL_MULTI_PERFORM:
|
||||||
case CURLM_BAD_HANDLE: s="CURLM_BAD_HANDLE"; break;
|
s = "CURLM_CALL_MULTI_PERFORM";
|
||||||
case CURLM_BAD_EASY_HANDLE: s="CURLM_BAD_EASY_HANDLE"; break;
|
|
||||||
case CURLM_OUT_OF_MEMORY: s="CURLM_OUT_OF_MEMORY"; break;
|
|
||||||
case CURLM_INTERNAL_ERROR: s="CURLM_INTERNAL_ERROR"; break;
|
|
||||||
case CURLM_UNKNOWN_OPTION: s="CURLM_UNKNOWN_OPTION"; break;
|
|
||||||
case CURLM_LAST: s="CURLM_LAST"; break;
|
|
||||||
default: s="CURLM_unknown";
|
|
||||||
break;
|
break;
|
||||||
case CURLM_BAD_SOCKET: s="CURLM_BAD_SOCKET";
|
case CURLM_BAD_HANDLE:
|
||||||
|
s = "CURLM_BAD_HANDLE";
|
||||||
|
break;
|
||||||
|
case CURLM_BAD_EASY_HANDLE:
|
||||||
|
s = "CURLM_BAD_EASY_HANDLE";
|
||||||
|
break;
|
||||||
|
case CURLM_OUT_OF_MEMORY:
|
||||||
|
s = "CURLM_OUT_OF_MEMORY";
|
||||||
|
break;
|
||||||
|
case CURLM_INTERNAL_ERROR:
|
||||||
|
s = "CURLM_INTERNAL_ERROR";
|
||||||
|
break;
|
||||||
|
case CURLM_UNKNOWN_OPTION:
|
||||||
|
s = "CURLM_UNKNOWN_OPTION";
|
||||||
|
break;
|
||||||
|
case CURLM_LAST:
|
||||||
|
s = "CURLM_LAST";
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
s = "CURLM_unknown";
|
||||||
|
break;
|
||||||
|
case CURLM_BAD_SOCKET:
|
||||||
|
s = "CURLM_BAD_SOCKET";
|
||||||
fprintf(MSG_OUT, "\nERROR: %s returns %s", where, s);
|
fprintf(MSG_OUT, "\nERROR: %s returns %s", where, s);
|
||||||
/* ignore this error */
|
/* ignore this error */
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
fprintf(MSG_OUT, "\nERROR: %s returns %s", where, s);
|
fprintf(MSG_OUT, "\nERROR: %s returns %s", where, s);
|
||||||
|
|
||||||
exit(code);
|
exit(code);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -139,9 +158,9 @@ static void check_multi_info(GlobalInfo *g)
|
|||||||
|
|
||||||
fprintf(MSG_OUT, "\nREMAINING: %d", g->still_running);
|
fprintf(MSG_OUT, "\nREMAINING: %d", g->still_running);
|
||||||
|
|
||||||
while ((msg = curl_multi_info_read(g->multi, &msgs_left)))
|
while((msg = curl_multi_info_read(g->multi, &msgs_left)))
|
||||||
{
|
{
|
||||||
if (msg->msg == CURLMSG_DONE)
|
if(msg->msg == CURLMSG_DONE)
|
||||||
{
|
{
|
||||||
easy = msg->easy_handle;
|
easy = msg->easy_handle;
|
||||||
res = msg->data.result;
|
res = msg->data.result;
|
||||||
@@ -157,17 +176,19 @@ static void check_multi_info(GlobalInfo *g)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Called by asio when there is an action on a socket */
|
/* Called by asio when there is an action on a socket */
|
||||||
static void event_cb(GlobalInfo * g, boost::asio::ip::tcp::socket * tcp_socket, int action)
|
static void event_cb(GlobalInfo *g, boost::asio::ip::tcp::socket *tcp_socket,
|
||||||
|
int action)
|
||||||
{
|
{
|
||||||
fprintf(MSG_OUT, "\nevent_cb: action=%d", action);
|
fprintf(MSG_OUT, "\nevent_cb: action=%d", action);
|
||||||
|
|
||||||
CURLMcode rc;
|
CURLMcode rc;
|
||||||
rc = curl_multi_socket_action(g->multi, tcp_socket->native_handle(), action, &g->still_running);
|
rc = curl_multi_socket_action(g->multi, tcp_socket->native_handle(), action,
|
||||||
|
&g->still_running);
|
||||||
|
|
||||||
mcode_or_die("event_cb: curl_multi_socket_action", rc);
|
mcode_or_die("event_cb: curl_multi_socket_action", rc);
|
||||||
check_multi_info(g);
|
check_multi_info(g);
|
||||||
|
|
||||||
if ( g->still_running <= 0 )
|
if(g->still_running <= 0)
|
||||||
{
|
{
|
||||||
fprintf(MSG_OUT, "\nlast transfer done, kill timeout");
|
fprintf(MSG_OUT, "\nlast transfer done, kill timeout");
|
||||||
timer.cancel();
|
timer.cancel();
|
||||||
@@ -177,7 +198,7 @@ static void event_cb(GlobalInfo * g, boost::asio::ip::tcp::socket * tcp_socket,
|
|||||||
/* Called by asio when our timeout expires */
|
/* Called by asio when our timeout expires */
|
||||||
static void timer_cb(const boost::system::error_code & error, GlobalInfo *g)
|
static void timer_cb(const boost::system::error_code & error, GlobalInfo *g)
|
||||||
{
|
{
|
||||||
if ( !error)
|
if(!error)
|
||||||
{
|
{
|
||||||
fprintf(MSG_OUT, "\ntimer_cb: ");
|
fprintf(MSG_OUT, "\ntimer_cb: ");
|
||||||
|
|
||||||
@@ -194,7 +215,7 @@ static void remsock(int *f, GlobalInfo *g)
|
|||||||
{
|
{
|
||||||
fprintf(MSG_OUT, "\nremsock: ");
|
fprintf(MSG_OUT, "\nremsock: ");
|
||||||
|
|
||||||
if ( f )
|
if(f)
|
||||||
{
|
{
|
||||||
free(f);
|
free(f);
|
||||||
}
|
}
|
||||||
@@ -206,9 +227,10 @@ static void setsock(int *fdp, curl_socket_t s, CURL*e, int act, GlobalInfo*g)
|
|||||||
|
|
||||||
std::map<curl_socket_t, boost::asio::ip::tcp::socket *>::iterator it = socket_map.find(s);
|
std::map<curl_socket_t, boost::asio::ip::tcp::socket *>::iterator it = socket_map.find(s);
|
||||||
|
|
||||||
if ( it == socket_map.end() )
|
if(it == socket_map.end())
|
||||||
{
|
{
|
||||||
fprintf(MSG_OUT, "\nsocket %d is a c-ares socket, ignoring", s);
|
fprintf(MSG_OUT, "\nsocket %d is a c-ares socket, ignoring", s);
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -216,44 +238,36 @@ static void setsock(int *fdp, curl_socket_t s, CURL*e, int act, GlobalInfo*g)
|
|||||||
|
|
||||||
*fdp = act;
|
*fdp = act;
|
||||||
|
|
||||||
if ( act == CURL_POLL_IN )
|
if(act == CURL_POLL_IN)
|
||||||
{
|
{
|
||||||
fprintf(MSG_OUT, "\nwatching for socket to become readable");
|
fprintf(MSG_OUT, "\nwatching for socket to become readable");
|
||||||
|
|
||||||
tcp_socket->async_read_some(boost::asio::null_buffers(),
|
tcp_socket->async_read_some(boost::asio::null_buffers(),
|
||||||
boost::bind(&event_cb, g,
|
boost::bind(&event_cb, g, tcp_socket, act));
|
||||||
tcp_socket,
|
|
||||||
act));
|
|
||||||
}
|
}
|
||||||
else if ( act == CURL_POLL_OUT )
|
else if (act == CURL_POLL_OUT)
|
||||||
{
|
{
|
||||||
fprintf(MSG_OUT, "\nwatching for socket to become writable");
|
fprintf(MSG_OUT, "\nwatching for socket to become writable");
|
||||||
|
|
||||||
tcp_socket->async_write_some(boost::asio::null_buffers(),
|
tcp_socket->async_write_some(boost::asio::null_buffers(),
|
||||||
boost::bind(&event_cb, g,
|
boost::bind(&event_cb, g, tcp_socket, act));
|
||||||
tcp_socket,
|
|
||||||
act));
|
|
||||||
}
|
}
|
||||||
else if ( act == CURL_POLL_INOUT )
|
else if(act == CURL_POLL_INOUT)
|
||||||
{
|
{
|
||||||
fprintf(MSG_OUT, "\nwatching for socket to become readable & writable");
|
fprintf(MSG_OUT, "\nwatching for socket to become readable & writable");
|
||||||
|
|
||||||
tcp_socket->async_read_some(boost::asio::null_buffers(),
|
tcp_socket->async_read_some(boost::asio::null_buffers(),
|
||||||
boost::bind(&event_cb, g,
|
boost::bind(&event_cb, g, tcp_socket, act));
|
||||||
tcp_socket,
|
|
||||||
act));
|
|
||||||
|
|
||||||
tcp_socket->async_write_some(boost::asio::null_buffers(),
|
tcp_socket->async_write_some(boost::asio::null_buffers(),
|
||||||
boost::bind(&event_cb, g,
|
boost::bind(&event_cb, g, tcp_socket, act));
|
||||||
tcp_socket,
|
|
||||||
act));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static void addsock(curl_socket_t s, CURL *easy, int action, GlobalInfo *g)
|
static void addsock(curl_socket_t s, CURL *easy, int action, GlobalInfo *g)
|
||||||
{
|
{
|
||||||
int *fdp = (int *)calloc(sizeof(int), 1); /* fdp is used to store current action */
|
/* fdp is used to store current action */
|
||||||
|
int *fdp = (int *) calloc(sizeof(int), 1);
|
||||||
|
|
||||||
setsock(fdp, s, easy, action, g);
|
setsock(fdp, s, easy, action, g);
|
||||||
curl_multi_assign(g->multi, s, fdp);
|
curl_multi_assign(g->multi, s, fdp);
|
||||||
@@ -265,20 +279,20 @@ static int sock_cb(CURL *e, curl_socket_t s, int what, void *cbp, void *sockp)
|
|||||||
fprintf(MSG_OUT, "\nsock_cb: socket=%d, what=%d, sockp=%p", s, what, sockp);
|
fprintf(MSG_OUT, "\nsock_cb: socket=%d, what=%d, sockp=%p", s, what, sockp);
|
||||||
|
|
||||||
GlobalInfo *g = (GlobalInfo*) cbp;
|
GlobalInfo *g = (GlobalInfo*) cbp;
|
||||||
int *actionp = (int*) sockp;
|
int *actionp = (int *) sockp;
|
||||||
const char *whatstr[]={ "none", "IN", "OUT", "INOUT", "REMOVE"};
|
const char *whatstr[] = { "none", "IN", "OUT", "INOUT", "REMOVE"};
|
||||||
|
|
||||||
fprintf(MSG_OUT,
|
fprintf(MSG_OUT,
|
||||||
"\nsocket callback: s=%d e=%p what=%s ", s, e, whatstr[what]);
|
"\nsocket callback: s=%d e=%p what=%s ", s, e, whatstr[what]);
|
||||||
|
|
||||||
if ( what == CURL_POLL_REMOVE )
|
if(what == CURL_POLL_REMOVE)
|
||||||
{
|
{
|
||||||
fprintf(MSG_OUT, "\n");
|
fprintf(MSG_OUT, "\n");
|
||||||
remsock(actionp, g);
|
remsock(actionp, g);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if ( !actionp )
|
if(!actionp)
|
||||||
{
|
{
|
||||||
fprintf(MSG_OUT, "\nAdding data: %s", whatstr[what]);
|
fprintf(MSG_OUT, "\nAdding data: %s", whatstr[what]);
|
||||||
addsock(s, e, what, g);
|
addsock(s, e, what, g);
|
||||||
@@ -291,19 +305,19 @@ static int sock_cb(CURL *e, curl_socket_t s, int what, void *cbp, void *sockp)
|
|||||||
setsock(actionp, s, e, what, g);
|
setsock(actionp, s, e, what, g);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* CURLOPT_WRITEFUNCTION */
|
/* CURLOPT_WRITEFUNCTION */
|
||||||
static size_t write_cb(void *ptr, size_t size, size_t nmemb, void *data)
|
static size_t write_cb(void *ptr, size_t size, size_t nmemb, void *data)
|
||||||
{
|
{
|
||||||
|
|
||||||
size_t written = size * nmemb;
|
size_t written = size * nmemb;
|
||||||
char* pBuffer = (char*)malloc(written + 1);
|
char* pBuffer = (char *) malloc(written + 1);
|
||||||
|
|
||||||
strncpy(pBuffer, (const char *)ptr, written);
|
strncpy(pBuffer, (const char *)ptr, written);
|
||||||
pBuffer [written] = '\0';
|
pBuffer[written] = '\0';
|
||||||
|
|
||||||
fprintf(MSG_OUT, "%s", pBuffer);
|
fprintf(MSG_OUT, "%s", pBuffer);
|
||||||
|
|
||||||
@@ -312,12 +326,12 @@ static size_t write_cb(void *ptr, size_t size, size_t nmemb, void *data)
|
|||||||
return written;
|
return written;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* CURLOPT_PROGRESSFUNCTION */
|
/* CURLOPT_PROGRESSFUNCTION */
|
||||||
static int prog_cb (void *p, double dltotal, double dlnow, double ult,
|
static int prog_cb(void *p, double dltotal, double dlnow, double ult,
|
||||||
double uln)
|
double uln)
|
||||||
{
|
{
|
||||||
ConnInfo *conn = (ConnInfo *)p;
|
ConnInfo *conn = (ConnInfo *)p;
|
||||||
|
|
||||||
(void)ult;
|
(void)ult;
|
||||||
(void)uln;
|
(void)uln;
|
||||||
|
|
||||||
@@ -328,16 +342,15 @@ static int prog_cb (void *p, double dltotal, double dlnow, double ult,
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* CURLOPT_OPENSOCKETFUNCTION */
|
/* CURLOPT_OPENSOCKETFUNCTION */
|
||||||
static curl_socket_t opensocket(void *clientp,
|
static curl_socket_t opensocket(void *clientp, curlsocktype purpose,
|
||||||
curlsocktype purpose,
|
|
||||||
struct curl_sockaddr *address)
|
struct curl_sockaddr *address)
|
||||||
{
|
{
|
||||||
fprintf(MSG_OUT, "\nopensocket :");
|
fprintf(MSG_OUT, "\nopensocket :");
|
||||||
|
|
||||||
curl_socket_t sockfd = CURL_SOCKET_BAD;
|
curl_socket_t sockfd = CURL_SOCKET_BAD;
|
||||||
|
|
||||||
/* restrict to ipv4 */
|
/* restrict to IPv4 */
|
||||||
if (purpose == CURLSOCKTYPE_IPCXN && address->family == AF_INET)
|
if(purpose == CURLSOCKTYPE_IPCXN && address->family == AF_INET)
|
||||||
{
|
{
|
||||||
/* create a tcp socket object */
|
/* create a tcp socket object */
|
||||||
boost::asio::ip::tcp::socket *tcp_socket = new boost::asio::ip::tcp::socket(io_service);
|
boost::asio::ip::tcp::socket *tcp_socket = new boost::asio::ip::tcp::socket(io_service);
|
||||||
@@ -346,9 +359,9 @@ static curl_socket_t opensocket(void *clientp,
|
|||||||
boost::system::error_code ec;
|
boost::system::error_code ec;
|
||||||
tcp_socket->open(boost::asio::ip::tcp::v4(), ec);
|
tcp_socket->open(boost::asio::ip::tcp::v4(), ec);
|
||||||
|
|
||||||
if (ec)
|
if(ec)
|
||||||
{
|
{
|
||||||
//An error occurred
|
/* An error occurred */
|
||||||
std::cout << std::endl << "Couldn't open socket [" << ec << "][" << ec.message() << "]";
|
std::cout << std::endl << "Couldn't open socket [" << ec << "][" << ec.message() << "]";
|
||||||
fprintf(MSG_OUT, "\nERROR: Returning CURL_SOCKET_BAD to signal error");
|
fprintf(MSG_OUT, "\nERROR: Returning CURL_SOCKET_BAD to signal error");
|
||||||
}
|
}
|
||||||
@@ -366,13 +379,13 @@ static curl_socket_t opensocket(void *clientp,
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* CURLOPT_CLOSESOCKETFUNCTION */
|
/* CURLOPT_CLOSESOCKETFUNCTION */
|
||||||
static int closesocket(void *clientp, curl_socket_t item)
|
static int close_socket(void *clientp, curl_socket_t item)
|
||||||
{
|
{
|
||||||
fprintf(MSG_OUT, "\nclosesocket : %d", item);
|
fprintf(MSG_OUT, "\nclose_socket : %d", item);
|
||||||
|
|
||||||
std::map<curl_socket_t, boost::asio::ip::tcp::socket *>::iterator it = socket_map.find(item);
|
std::map<curl_socket_t, boost::asio::ip::tcp::socket *>::iterator it = socket_map.find(item);
|
||||||
|
|
||||||
if ( it != socket_map.end() )
|
if(it != socket_map.end())
|
||||||
{
|
{
|
||||||
delete it->second;
|
delete it->second;
|
||||||
socket_map.erase(it);
|
socket_map.erase(it);
|
||||||
@@ -382,22 +395,21 @@ static int closesocket(void *clientp, curl_socket_t item)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Create a new easy handle, and add it to the global curl_multi */
|
/* Create a new easy handle, and add it to the global curl_multi */
|
||||||
static void new_conn(char *url, GlobalInfo *g )
|
static void new_conn(char *url, GlobalInfo *g)
|
||||||
{
|
{
|
||||||
ConnInfo *conn;
|
ConnInfo *conn;
|
||||||
CURLMcode rc;
|
CURLMcode rc;
|
||||||
|
|
||||||
conn = (ConnInfo *)calloc(1, sizeof(ConnInfo));
|
conn = (ConnInfo *) calloc(1, sizeof(ConnInfo));
|
||||||
memset(conn, 0, sizeof(ConnInfo));
|
|
||||||
conn->error[0]='\0';
|
|
||||||
|
|
||||||
conn->easy = curl_easy_init();
|
conn->easy = curl_easy_init();
|
||||||
|
if(!conn->easy)
|
||||||
if ( !conn->easy )
|
|
||||||
{
|
{
|
||||||
fprintf(MSG_OUT, "\ncurl_easy_init() failed, exiting!");
|
fprintf(MSG_OUT, "\ncurl_easy_init() failed, exiting!");
|
||||||
|
|
||||||
exit(2);
|
exit(2);
|
||||||
}
|
}
|
||||||
|
|
||||||
conn->global = g;
|
conn->global = g;
|
||||||
conn->url = strdup(url);
|
conn->url = strdup(url);
|
||||||
curl_easy_setopt(conn->easy, CURLOPT_URL, conn->url);
|
curl_easy_setopt(conn->easy, CURLOPT_URL, conn->url);
|
||||||
@@ -416,7 +428,7 @@ static void new_conn(char *url, GlobalInfo *g )
|
|||||||
curl_easy_setopt(conn->easy, CURLOPT_OPENSOCKETFUNCTION, opensocket);
|
curl_easy_setopt(conn->easy, CURLOPT_OPENSOCKETFUNCTION, opensocket);
|
||||||
|
|
||||||
/* call this function to close a socket */
|
/* call this function to close a socket */
|
||||||
curl_easy_setopt(conn->easy, CURLOPT_CLOSESOCKETFUNCTION, closesocket);
|
curl_easy_setopt(conn->easy, CURLOPT_CLOSESOCKETFUNCTION, close_socket);
|
||||||
|
|
||||||
fprintf(MSG_OUT,
|
fprintf(MSG_OUT,
|
||||||
"\nAdding easy %p to multi %p (%s)", conn->easy, g->multi, url);
|
"\nAdding easy %p to multi %p (%s)", conn->easy, g->multi, url);
|
||||||
@@ -430,7 +442,7 @@ static void new_conn(char *url, GlobalInfo *g )
|
|||||||
int main(int argc, char **argv)
|
int main(int argc, char **argv)
|
||||||
{
|
{
|
||||||
GlobalInfo g;
|
GlobalInfo g;
|
||||||
CURLMcode rc;
|
|
||||||
(void)argc;
|
(void)argc;
|
||||||
(void)argv;
|
(void)argv;
|
||||||
|
|
||||||
@@ -450,5 +462,6 @@ int main(int argc, char **argv)
|
|||||||
curl_multi_cleanup(g.multi);
|
curl_multi_cleanup(g.multi);
|
||||||
|
|
||||||
fprintf(MSG_OUT, "\ndone.\n");
|
fprintf(MSG_OUT, "\ndone.\n");
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,11 +5,11 @@
|
|||||||
* | (__| |_| | _ <| |___
|
* | (__| |_| | _ <| |___
|
||||||
* \___|\___/|_| \_\_____|
|
* \___|\___/|_| \_\_____|
|
||||||
*
|
*
|
||||||
* Copyright (C) 1998 - 2014, Daniel Stenberg, <daniel@haxx.se>, et al.
|
* Copyright (C) 1998 - 2016, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
*
|
*
|
||||||
* This software is licensed as described in the file COPYING, which
|
* This software is licensed as described in the file COPYING, which
|
||||||
* you should have received as part of this distribution. The terms
|
* you should have received as part of this distribution. The terms
|
||||||
* are also available at http://curl.haxx.se/docs/copyright.html.
|
* are also available at https://curl.haxx.se/docs/copyright.html.
|
||||||
*
|
*
|
||||||
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
||||||
* copies of the Software, and permit persons to whom the Software is
|
* copies of the Software, and permit persons to whom the Software is
|
||||||
@@ -19,25 +19,19 @@
|
|||||||
* KIND, either express or implied.
|
* KIND, either express or implied.
|
||||||
*
|
*
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
/* Example using a "in core" PEM certificate to retrieve a https page.
|
/* <DESC>
|
||||||
* Written by Theo Borm
|
* CA cert in memory with OpenSSL to get a HTTPS page.
|
||||||
|
* </DESC>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* on a netBSD system with OPENSSL& LIBCURL installed from
|
|
||||||
* pkgsrc (using default paths) this program can be compiled using:
|
|
||||||
* gcc -I/usr/pkg/include -L/usr/pkg/lib -lcurl -Wl,-R/usr/pkg/lib -lssl
|
|
||||||
* -lcrypto -lz -o curlcacerttest curlcacerttest.c
|
|
||||||
* on other operating systems you may want to change paths to headers
|
|
||||||
* and libraries
|
|
||||||
*/
|
|
||||||
#include <openssl/ssl.h>
|
#include <openssl/ssl.h>
|
||||||
#include <curl/curl.h>
|
#include <curl/curl.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
size_t writefunction( void *ptr, size_t size, size_t nmemb, void *stream)
|
size_t writefunction( void *ptr, size_t size, size_t nmemb, void *stream)
|
||||||
{
|
{
|
||||||
fwrite(ptr,size,nmemb,stream);
|
fwrite(ptr, size, nmemb, stream);
|
||||||
return(nmemb*size);
|
return (nmemb*size);
|
||||||
}
|
}
|
||||||
|
|
||||||
static CURLcode sslctx_function(CURL * curl, void * sslctx, void * parm)
|
static CURLcode sslctx_function(CURL * curl, void * sslctx, void * parm)
|
||||||
@@ -93,14 +87,14 @@ static CURLcode sslctx_function(CURL * curl, void * sslctx, void * parm)
|
|||||||
* structure that SSL can use
|
* structure that SSL can use
|
||||||
*/
|
*/
|
||||||
PEM_read_bio_X509(bio, &cert, 0, NULL);
|
PEM_read_bio_X509(bio, &cert, 0, NULL);
|
||||||
if (cert == NULL)
|
if(cert == NULL)
|
||||||
printf("PEM_read_bio_X509 failed...\n");
|
printf("PEM_read_bio_X509 failed...\n");
|
||||||
|
|
||||||
/* get a pointer to the X509 certificate store (which may be empty!) */
|
/* get a pointer to the X509 certificate store (which may be empty!) */
|
||||||
store=SSL_CTX_get_cert_store((SSL_CTX *)sslctx);
|
store=SSL_CTX_get_cert_store((SSL_CTX *)sslctx);
|
||||||
|
|
||||||
/* add our certificate to this store */
|
/* add our certificate to this store */
|
||||||
if (X509_STORE_add_cert(store, cert)==0)
|
if(X509_STORE_add_cert(store, cert)==0)
|
||||||
printf("error adding certificate\n");
|
printf("error adding certificate\n");
|
||||||
|
|
||||||
/* decrease reference counts */
|
/* decrease reference counts */
|
||||||
@@ -108,7 +102,7 @@ static CURLcode sslctx_function(CURL * curl, void * sslctx, void * parm)
|
|||||||
BIO_free(bio);
|
BIO_free(bio);
|
||||||
|
|
||||||
/* all set to go */
|
/* all set to go */
|
||||||
return CURLE_OK ;
|
return CURLE_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int main(void)
|
int main(void)
|
||||||
@@ -118,22 +112,22 @@ int main(void)
|
|||||||
|
|
||||||
rv=curl_global_init(CURL_GLOBAL_ALL);
|
rv=curl_global_init(CURL_GLOBAL_ALL);
|
||||||
ch=curl_easy_init();
|
ch=curl_easy_init();
|
||||||
rv=curl_easy_setopt(ch,CURLOPT_VERBOSE, 0L);
|
rv=curl_easy_setopt(ch, CURLOPT_VERBOSE, 0L);
|
||||||
rv=curl_easy_setopt(ch,CURLOPT_HEADER, 0L);
|
rv=curl_easy_setopt(ch, CURLOPT_HEADER, 0L);
|
||||||
rv=curl_easy_setopt(ch,CURLOPT_NOPROGRESS, 1L);
|
rv=curl_easy_setopt(ch, CURLOPT_NOPROGRESS, 1L);
|
||||||
rv=curl_easy_setopt(ch,CURLOPT_NOSIGNAL, 1L);
|
rv=curl_easy_setopt(ch, CURLOPT_NOSIGNAL, 1L);
|
||||||
rv=curl_easy_setopt(ch,CURLOPT_WRITEFUNCTION, *writefunction);
|
rv=curl_easy_setopt(ch, CURLOPT_WRITEFUNCTION, *writefunction);
|
||||||
rv=curl_easy_setopt(ch,CURLOPT_WRITEDATA, stdout);
|
rv=curl_easy_setopt(ch, CURLOPT_WRITEDATA, stdout);
|
||||||
rv=curl_easy_setopt(ch,CURLOPT_HEADERFUNCTION, *writefunction);
|
rv=curl_easy_setopt(ch, CURLOPT_HEADERFUNCTION, *writefunction);
|
||||||
rv=curl_easy_setopt(ch,CURLOPT_WRITEHEADER, stderr);
|
rv=curl_easy_setopt(ch, CURLOPT_HEADERDATA, stderr);
|
||||||
rv=curl_easy_setopt(ch,CURLOPT_SSLCERTTYPE,"PEM");
|
rv=curl_easy_setopt(ch, CURLOPT_SSLCERTTYPE, "PEM");
|
||||||
rv=curl_easy_setopt(ch,CURLOPT_SSL_VERIFYPEER,1L);
|
rv=curl_easy_setopt(ch, CURLOPT_SSL_VERIFYPEER, 1L);
|
||||||
rv=curl_easy_setopt(ch, CURLOPT_URL, "https://www.example.com/");
|
rv=curl_easy_setopt(ch, CURLOPT_URL, "https://www.example.com/");
|
||||||
|
|
||||||
/* first try: retrieve page without cacerts' certificate -> will fail
|
/* first try: retrieve page without cacerts' certificate -> will fail
|
||||||
*/
|
*/
|
||||||
rv=curl_easy_perform(ch);
|
rv=curl_easy_perform(ch);
|
||||||
if (rv==CURLE_OK)
|
if(rv==CURLE_OK)
|
||||||
printf("*** transfer succeeded ***\n");
|
printf("*** transfer succeeded ***\n");
|
||||||
else
|
else
|
||||||
printf("*** transfer failed ***\n");
|
printf("*** transfer failed ***\n");
|
||||||
@@ -142,9 +136,9 @@ int main(void)
|
|||||||
* load the certificate by installing a function doing the nescessary
|
* load the certificate by installing a function doing the nescessary
|
||||||
* "modifications" to the SSL CONTEXT just before link init
|
* "modifications" to the SSL CONTEXT just before link init
|
||||||
*/
|
*/
|
||||||
rv=curl_easy_setopt(ch,CURLOPT_SSL_CTX_FUNCTION, *sslctx_function);
|
rv=curl_easy_setopt(ch, CURLOPT_SSL_CTX_FUNCTION, *sslctx_function);
|
||||||
rv=curl_easy_perform(ch);
|
rv=curl_easy_perform(ch);
|
||||||
if (rv==CURLE_OK)
|
if(rv==CURLE_OK)
|
||||||
printf("*** transfer succeeded ***\n");
|
printf("*** transfer succeeded ***\n");
|
||||||
else
|
else
|
||||||
printf("*** transfer failed ***\n");
|
printf("*** transfer failed ***\n");
|
||||||
|
|||||||
@@ -5,11 +5,11 @@
|
|||||||
* | (__| |_| | _ <| |___
|
* | (__| |_| | _ <| |___
|
||||||
* \___|\___/|_| \_\_____|
|
* \___|\___/|_| \_\_____|
|
||||||
*
|
*
|
||||||
* Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al.
|
* Copyright (C) 1998 - 2015, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
*
|
*
|
||||||
* This software is licensed as described in the file COPYING, which
|
* This software is licensed as described in the file COPYING, which
|
||||||
* you should have received as part of this distribution. The terms
|
* you should have received as part of this distribution. The terms
|
||||||
* are also available at http://curl.haxx.se/docs/copyright.html.
|
* are also available at https://curl.haxx.se/docs/copyright.html.
|
||||||
*
|
*
|
||||||
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
||||||
* copies of the Software, and permit persons to whom the Software is
|
* copies of the Software, and permit persons to whom the Software is
|
||||||
@@ -19,6 +19,10 @@
|
|||||||
* KIND, either express or implied.
|
* KIND, either express or implied.
|
||||||
*
|
*
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
/* <DESC>
|
||||||
|
* Extract lots of TLS certificate info.
|
||||||
|
* </DESC>
|
||||||
|
*/
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
#include <curl/curl.h>
|
#include <curl/curl.h>
|
||||||
|
|||||||
@@ -5,11 +5,11 @@
|
|||||||
* | (__| |_| | _ <| |___
|
* | (__| |_| | _ <| |___
|
||||||
* \___|\___/|_| \_\_____|
|
* \___|\___/|_| \_\_____|
|
||||||
*
|
*
|
||||||
* Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al.
|
* Copyright (C) 1998 - 2016, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
*
|
*
|
||||||
* This software is licensed as described in the file COPYING, which
|
* This software is licensed as described in the file COPYING, which
|
||||||
* you should have received as part of this distribution. The terms
|
* you should have received as part of this distribution. The terms
|
||||||
* are also available at http://curl.haxx.se/docs/copyright.html.
|
* are also available at https://curl.haxx.se/docs/copyright.html.
|
||||||
*
|
*
|
||||||
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
||||||
* copies of the Software, and permit persons to whom the Software is
|
* copies of the Software, and permit persons to whom the Software is
|
||||||
@@ -19,6 +19,10 @@
|
|||||||
* KIND, either express or implied.
|
* KIND, either express or implied.
|
||||||
*
|
*
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
/* <DESC>
|
||||||
|
* Show transfer timing info after download completes.
|
||||||
|
* </DESC>
|
||||||
|
*/
|
||||||
/* Example source code to show how the callback function can be used to
|
/* Example source code to show how the callback function can be used to
|
||||||
* download data into a chunk of memory instead of storing it in a file.
|
* download data into a chunk of memory instead of storing it in a file.
|
||||||
* After successful download we use curl_easy_getinfo() calls to get the
|
* After successful download we use curl_easy_getinfo() calls to get the
|
||||||
@@ -64,63 +68,78 @@ int main(int argc, char *argv[])
|
|||||||
const char *url = URL_1M;
|
const char *url = URL_1M;
|
||||||
char *appname = argv[0];
|
char *appname = argv[0];
|
||||||
|
|
||||||
if (argc > 1) {
|
if(argc > 1) {
|
||||||
/* parse input parameters */
|
/* parse input parameters */
|
||||||
for (argc--, argv++; *argv; argc--, argv++) {
|
for(argc--, argv++; *argv; argc--, argv++) {
|
||||||
if (strncasecmp(*argv, "-", 1) == 0) {
|
if(strncasecmp(*argv, "-", 1) == 0) {
|
||||||
if (strncasecmp(*argv, "-H", 2) == 0) {
|
if(strncasecmp(*argv, "-H", 2) == 0) {
|
||||||
fprintf(stderr,
|
fprintf(stderr,
|
||||||
"\rUsage: %s [-m=1|2|5|10|20|50|100] [-t] [-x] [url]\n",
|
"\rUsage: %s [-m=1|2|5|10|20|50|100] [-t] [-x] [url]\n",
|
||||||
appname);
|
appname);
|
||||||
exit(1);
|
exit(1);
|
||||||
} else if (strncasecmp(*argv, "-V", 2) == 0) {
|
}
|
||||||
|
else if(strncasecmp(*argv, "-V", 2) == 0) {
|
||||||
fprintf(stderr, "\r%s %s - %s\n",
|
fprintf(stderr, "\r%s %s - %s\n",
|
||||||
appname, CHKSPEED_VERSION, curl_version());
|
appname, CHKSPEED_VERSION, curl_version());
|
||||||
exit(1);
|
exit(1);
|
||||||
} else if (strncasecmp(*argv, "-A", 2) == 0) {
|
}
|
||||||
|
else if(strncasecmp(*argv, "-A", 2) == 0) {
|
||||||
prtall = 1;
|
prtall = 1;
|
||||||
} else if (strncasecmp(*argv, "-X", 2) == 0) {
|
}
|
||||||
|
else if(strncasecmp(*argv, "-X", 2) == 0) {
|
||||||
prtsep = 1;
|
prtsep = 1;
|
||||||
} else if (strncasecmp(*argv, "-T", 2) == 0) {
|
}
|
||||||
|
else if(strncasecmp(*argv, "-T", 2) == 0) {
|
||||||
prttime = 1;
|
prttime = 1;
|
||||||
} else if (strncasecmp(*argv, "-M=", 3) == 0) {
|
}
|
||||||
|
else if(strncasecmp(*argv, "-M=", 3) == 0) {
|
||||||
long m = strtol((*argv)+3, NULL, 10);
|
long m = strtol((*argv)+3, NULL, 10);
|
||||||
switch(m) {
|
switch(m) {
|
||||||
case 1: url = URL_1M;
|
case 1:
|
||||||
break;
|
url = URL_1M;
|
||||||
case 2: url = URL_2M;
|
break;
|
||||||
break;
|
case 2:
|
||||||
case 5: url = URL_5M;
|
url = URL_2M;
|
||||||
break;
|
break;
|
||||||
case 10: url = URL_10M;
|
case 5:
|
||||||
break;
|
url = URL_5M;
|
||||||
case 20: url = URL_20M;
|
break;
|
||||||
break;
|
case 10:
|
||||||
case 50: url = URL_50M;
|
url = URL_10M;
|
||||||
break;
|
break;
|
||||||
case 100: url = URL_100M;
|
case 20:
|
||||||
break;
|
url = URL_20M;
|
||||||
default: fprintf(stderr, "\r%s: invalid parameter %s\n",
|
break;
|
||||||
appname, *argv + 3);
|
case 50:
|
||||||
exit(1);
|
url = URL_50M;
|
||||||
|
break;
|
||||||
|
case 100:
|
||||||
|
url = URL_100M;
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
fprintf(stderr, "\r%s: invalid parameter %s\n",
|
||||||
|
appname, *argv + 3);
|
||||||
|
exit(1);
|
||||||
}
|
}
|
||||||
} else {
|
}
|
||||||
|
else {
|
||||||
fprintf(stderr, "\r%s: invalid or unknown option %s\n",
|
fprintf(stderr, "\r%s: invalid or unknown option %s\n",
|
||||||
appname, *argv);
|
appname, *argv);
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
} else {
|
}
|
||||||
|
else {
|
||||||
url = *argv;
|
url = *argv;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* print separator line */
|
/* print separator line */
|
||||||
if (prtsep) {
|
if(prtsep) {
|
||||||
printf("-------------------------------------------------\n");
|
printf("-------------------------------------------------\n");
|
||||||
}
|
}
|
||||||
/* print localtime */
|
/* print localtime */
|
||||||
if (prttime) {
|
if(prttime) {
|
||||||
time_t t = time(NULL);
|
time_t t = time(NULL);
|
||||||
printf("Localtime: %s", ctime(&t));
|
printf("Localtime: %s", ctime(&t));
|
||||||
}
|
}
|
||||||
@@ -163,7 +182,7 @@ int main(int argc, char *argv[])
|
|||||||
if((CURLE_OK == res) && (val>0))
|
if((CURLE_OK == res) && (val>0))
|
||||||
printf("Average download speed: %0.3f kbyte/sec.\n", val / 1024);
|
printf("Average download speed: %0.3f kbyte/sec.\n", val / 1024);
|
||||||
|
|
||||||
if (prtall) {
|
if(prtall) {
|
||||||
/* check for name resolution time */
|
/* check for name resolution time */
|
||||||
res = curl_easy_getinfo(curl_handle, CURLINFO_NAMELOOKUP_TIME, &val);
|
res = curl_easy_getinfo(curl_handle, CURLINFO_NAMELOOKUP_TIME, &val);
|
||||||
if((CURLE_OK == res) && (val>0))
|
if((CURLE_OK == res) && (val>0))
|
||||||
@@ -174,8 +193,8 @@ int main(int argc, char *argv[])
|
|||||||
if((CURLE_OK == res) && (val>0))
|
if((CURLE_OK == res) && (val>0))
|
||||||
printf("Connect time: %0.3f sec.\n", val);
|
printf("Connect time: %0.3f sec.\n", val);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
} else {
|
else {
|
||||||
fprintf(stderr, "Error while fetching '%s' : %s\n",
|
fprintf(stderr, "Error while fetching '%s' : %s\n",
|
||||||
url, curl_easy_strerror(res));
|
url, curl_easy_strerror(res));
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,11 +5,11 @@
|
|||||||
* | (__| |_| | _ <| |___
|
* | (__| |_| | _ <| |___
|
||||||
* \___|\___/|_| \_\_____|
|
* \___|\___/|_| \_\_____|
|
||||||
*
|
*
|
||||||
* Copyright (C) 1998 - 2012, Daniel Stenberg, <daniel@haxx.se>, et al.
|
* Copyright (C) 1998 - 2016, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
*
|
*
|
||||||
* This software is licensed as described in the file COPYING, which
|
* This software is licensed as described in the file COPYING, which
|
||||||
* you should have received as part of this distribution. The terms
|
* you should have received as part of this distribution. The terms
|
||||||
* are also available at http://curl.haxx.se/docs/copyright.html.
|
* are also available at https://curl.haxx.se/docs/copyright.html.
|
||||||
*
|
*
|
||||||
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
||||||
* copies of the Software, and permit persons to whom the Software is
|
* copies of the Software, and permit persons to whom the Software is
|
||||||
@@ -19,7 +19,10 @@
|
|||||||
* KIND, either express or implied.
|
* KIND, either express or implied.
|
||||||
*
|
*
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
/* This example shows usage of simple cookie interface. */
|
/* <DESC>
|
||||||
|
* Import and export cookies with COOKIELIST.
|
||||||
|
* </DESC>
|
||||||
|
*/
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
@@ -39,17 +42,18 @@ print_cookies(CURL *curl)
|
|||||||
|
|
||||||
printf("Cookies, curl knows:\n");
|
printf("Cookies, curl knows:\n");
|
||||||
res = curl_easy_getinfo(curl, CURLINFO_COOKIELIST, &cookies);
|
res = curl_easy_getinfo(curl, CURLINFO_COOKIELIST, &cookies);
|
||||||
if (res != CURLE_OK) {
|
if(res != CURLE_OK) {
|
||||||
fprintf(stderr, "Curl curl_easy_getinfo failed: %s\n", curl_easy_strerror(res));
|
fprintf(stderr, "Curl curl_easy_getinfo failed: %s\n",
|
||||||
|
curl_easy_strerror(res));
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
nc = cookies, i = 1;
|
nc = cookies, i = 1;
|
||||||
while (nc) {
|
while(nc) {
|
||||||
printf("[%d]: %s\n", i, nc->data);
|
printf("[%d]: %s\n", i, nc->data);
|
||||||
nc = nc->next;
|
nc = nc->next;
|
||||||
i++;
|
i++;
|
||||||
}
|
}
|
||||||
if (i == 1) {
|
if(i == 1) {
|
||||||
printf("(none)\n");
|
printf("(none)\n");
|
||||||
}
|
}
|
||||||
curl_slist_free_all(cookies);
|
curl_slist_free_all(cookies);
|
||||||
@@ -63,14 +67,14 @@ main(void)
|
|||||||
|
|
||||||
curl_global_init(CURL_GLOBAL_ALL);
|
curl_global_init(CURL_GLOBAL_ALL);
|
||||||
curl = curl_easy_init();
|
curl = curl_easy_init();
|
||||||
if (curl) {
|
if(curl) {
|
||||||
char nline[256];
|
char nline[256];
|
||||||
|
|
||||||
curl_easy_setopt(curl, CURLOPT_URL, "http://www.example.com/");
|
curl_easy_setopt(curl, CURLOPT_URL, "http://www.example.com/");
|
||||||
curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L);
|
curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L);
|
||||||
curl_easy_setopt(curl, CURLOPT_COOKIEFILE, ""); /* just to start the cookie engine */
|
curl_easy_setopt(curl, CURLOPT_COOKIEFILE, ""); /* start cookie engine */
|
||||||
res = curl_easy_perform(curl);
|
res = curl_easy_perform(curl);
|
||||||
if (res != CURLE_OK) {
|
if(res != CURLE_OK) {
|
||||||
fprintf(stderr, "Curl perform failed: %s\n", curl_easy_strerror(res));
|
fprintf(stderr, "Curl perform failed: %s\n", curl_easy_strerror(res));
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
@@ -89,30 +93,41 @@ main(void)
|
|||||||
#endif
|
#endif
|
||||||
/* Netscape format cookie */
|
/* Netscape format cookie */
|
||||||
snprintf(nline, sizeof(nline), "%s\t%s\t%s\t%s\t%lu\t%s\t%s",
|
snprintf(nline, sizeof(nline), "%s\t%s\t%s\t%s\t%lu\t%s\t%s",
|
||||||
".google.com", "TRUE", "/", "FALSE", (unsigned long)time(NULL) + 31337UL, "PREF", "hello google, i like you very much!");
|
".google.com", "TRUE", "/", "FALSE",
|
||||||
|
(unsigned long)time(NULL) + 31337UL,
|
||||||
|
"PREF", "hello google, i like you very much!");
|
||||||
res = curl_easy_setopt(curl, CURLOPT_COOKIELIST, nline);
|
res = curl_easy_setopt(curl, CURLOPT_COOKIELIST, nline);
|
||||||
if (res != CURLE_OK) {
|
if(res != CURLE_OK) {
|
||||||
fprintf(stderr, "Curl curl_easy_setopt failed: %s\n", curl_easy_strerror(res));
|
fprintf(stderr, "Curl curl_easy_setopt failed: %s\n",
|
||||||
|
curl_easy_strerror(res));
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* HTTP-header style cookie */
|
/* HTTP-header style cookie. If you use the Set-Cookie format and don't
|
||||||
|
specify a domain then the cookie is sent for any domain and will not be
|
||||||
|
modified, likely not what you intended. Starting in 7.43.0 any-domain
|
||||||
|
cookies will not be exported either. For more information refer to the
|
||||||
|
CURLOPT_COOKIELIST documentation.
|
||||||
|
*/
|
||||||
snprintf(nline, sizeof(nline),
|
snprintf(nline, sizeof(nline),
|
||||||
"Set-Cookie: OLD_PREF=3d141414bf4209321; "
|
"Set-Cookie: OLD_PREF=3d141414bf4209321; "
|
||||||
"expires=Sun, 17-Jan-2038 19:14:07 GMT; path=/; domain=.google.com");
|
"expires=Sun, 17-Jan-2038 19:14:07 GMT; path=/; domain=.google.com");
|
||||||
res = curl_easy_setopt(curl, CURLOPT_COOKIELIST, nline);
|
res = curl_easy_setopt(curl, CURLOPT_COOKIELIST, nline);
|
||||||
if (res != CURLE_OK) {
|
if(res != CURLE_OK) {
|
||||||
fprintf(stderr, "Curl curl_easy_setopt failed: %s\n", curl_easy_strerror(res));
|
fprintf(stderr, "Curl curl_easy_setopt failed: %s\n",
|
||||||
|
curl_easy_strerror(res));
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
print_cookies(curl);
|
print_cookies(curl);
|
||||||
|
|
||||||
res = curl_easy_perform(curl);
|
res = curl_easy_perform(curl);
|
||||||
if (res != CURLE_OK) {
|
if(res != CURLE_OK) {
|
||||||
fprintf(stderr, "Curl perform failed: %s\n", curl_easy_strerror(res));
|
fprintf(stderr, "Curl perform failed: %s\n", curl_easy_strerror(res));
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
curl_easy_cleanup(curl);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
fprintf(stderr, "Curl init failed!\n");
|
fprintf(stderr, "Curl init failed!\n");
|
||||||
|
|||||||
@@ -5,9 +5,12 @@
|
|||||||
* | (__| |_| | _ <| |___
|
* | (__| |_| | _ <| |___
|
||||||
* \___|\___/|_| \_\_____|
|
* \___|\___/|_| \_\_____|
|
||||||
*
|
*
|
||||||
|
* Copyright (c) 2000 David Odin (aka DindinX) for MandrakeSoft
|
||||||
|
*/
|
||||||
|
/* <DESC>
|
||||||
|
* use the libcurl in a gtk-threaded application
|
||||||
|
* </DESC>
|
||||||
*/
|
*/
|
||||||
/* Copyright (c) 2000 David Odin (aka DindinX) for MandrakeSoft */
|
|
||||||
/* an attempt to use the curl library in concert with a gtk-threaded application */
|
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <gtk/gtk.h>
|
#include <gtk/gtk.h>
|
||||||
@@ -47,9 +50,9 @@ void *my_thread(void *ptr)
|
|||||||
gchar *url = ptr;
|
gchar *url = ptr;
|
||||||
|
|
||||||
curl = curl_easy_init();
|
curl = curl_easy_init();
|
||||||
if(curl)
|
if(curl) {
|
||||||
{
|
const char *filename = "test.curl";
|
||||||
outfile = fopen("test.curl", "w");
|
outfile = fopen(filename, "wb");
|
||||||
|
|
||||||
curl_easy_setopt(curl, CURLOPT_URL, url);
|
curl_easy_setopt(curl, CURLOPT_URL, url);
|
||||||
curl_easy_setopt(curl, CURLOPT_WRITEDATA, outfile);
|
curl_easy_setopt(curl, CURLOPT_WRITEDATA, outfile);
|
||||||
@@ -94,7 +97,7 @@ int main(int argc, char **argv)
|
|||||||
gtk_container_add(GTK_CONTAINER(Frame2), Bar);
|
gtk_container_add(GTK_CONTAINER(Frame2), Bar);
|
||||||
gtk_widget_show_all(Window);
|
gtk_widget_show_all(Window);
|
||||||
|
|
||||||
if (!g_thread_create(&my_thread, argv[1], FALSE, NULL) != 0)
|
if(!g_thread_create(&my_thread, argv[1], FALSE, NULL) != 0)
|
||||||
g_warning("can't create the thread");
|
g_warning("can't create the thread");
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,10 @@
|
|||||||
certificate presented during ssl session establishment.
|
certificate presented during ssl session establishment.
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
/* <DESC>
|
||||||
|
* demonstrates use of SSL context callback, requires OpenSSL
|
||||||
|
* </DESC>
|
||||||
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2003 The OpenEvidence Project. All rights reserved.
|
* Copyright (c) 2003 The OpenEvidence Project. All rights reserved.
|
||||||
@@ -33,7 +36,7 @@
|
|||||||
* "This product includes software developed by the Openevidence Project
|
* "This product includes software developed by the Openevidence Project
|
||||||
* for use in the OpenEvidence Toolkit. (http://www.openevidence.org/)"
|
* for use in the OpenEvidence Toolkit. (http://www.openevidence.org/)"
|
||||||
* This product includes software developed by the OpenSSL Project
|
* This product includes software developed by the OpenSSL Project
|
||||||
* for use in the OpenSSL Toolkit (http://www.openssl.org/)"
|
* for use in the OpenSSL Toolkit (https://www.openssl.org/)"
|
||||||
* This product includes cryptographic software written by Eric Young
|
* This product includes cryptographic software written by Eric Young
|
||||||
* (eay@cryptsoft.com). This product includes software written by Tim
|
* (eay@cryptsoft.com). This product includes software written by Tim
|
||||||
* Hudson (tjh@cryptsoft.com)."
|
* Hudson (tjh@cryptsoft.com)."
|
||||||
@@ -52,7 +55,7 @@
|
|||||||
* "This product includes software developed by the OpenEvidence Project
|
* "This product includes software developed by the OpenEvidence Project
|
||||||
* for use in the OpenEvidence Toolkit (http://www.openevidence.org/)
|
* for use in the OpenEvidence Toolkit (http://www.openevidence.org/)
|
||||||
* This product includes software developed by the OpenSSL Project
|
* This product includes software developed by the OpenSSL Project
|
||||||
* for use in the OpenSSL Toolkit (http://www.openssl.org/)"
|
* for use in the OpenSSL Toolkit (https://www.openssl.org/)"
|
||||||
* This product includes cryptographic software written by Eric Young
|
* This product includes cryptographic software written by Eric Young
|
||||||
* (eay@cryptsoft.com). This product includes software written by Tim
|
* (eay@cryptsoft.com). This product includes software written by Tim
|
||||||
* Hudson (tjh@cryptsoft.com)."
|
* Hudson (tjh@cryptsoft.com)."
|
||||||
@@ -72,7 +75,7 @@
|
|||||||
* ====================================================================
|
* ====================================================================
|
||||||
*
|
*
|
||||||
* This product includes software developed by the OpenSSL Project
|
* This product includes software developed by the OpenSSL Project
|
||||||
* for use in the OpenSSL Toolkit (http://www.openssl.org/)
|
* for use in the OpenSSL Toolkit (https://www.openssl.org/)
|
||||||
* This product includes cryptographic software written by Eric Young
|
* This product includes cryptographic software written by Eric Young
|
||||||
* (eay@cryptsoft.com). This product includes software written by Tim
|
* (eay@cryptsoft.com). This product includes software written by Tim
|
||||||
* Hudson (tjh@cryptsoft.com).
|
* Hudson (tjh@cryptsoft.com).
|
||||||
@@ -98,13 +101,18 @@
|
|||||||
static const char *curlx_usage[]={
|
static const char *curlx_usage[]={
|
||||||
"usage: curlx args\n",
|
"usage: curlx args\n",
|
||||||
" -p12 arg - tia file ",
|
" -p12 arg - tia file ",
|
||||||
" -envpass arg - environement variable which content the tia private key password",
|
" -envpass arg - environement variable which content the tia private"
|
||||||
|
" key password",
|
||||||
" -out arg - output file (response)- default stdout",
|
" -out arg - output file (response)- default stdout",
|
||||||
" -in arg - input file (request)- default stdin",
|
" -in arg - input file (request)- default stdin",
|
||||||
" -connect arg - URL of the server for the connection ex: www.openevidence.org",
|
" -connect arg - URL of the server for the connection ex:"
|
||||||
" -mimetype arg - MIME type for data in ex : application/timestamp-query or application/dvcs -default application/timestamp-query",
|
" www.openevidence.org",
|
||||||
" -acceptmime arg - MIME type acceptable for the response ex : application/timestamp-response or application/dvcs -default none",
|
" -mimetype arg - MIME type for data in ex : application/timestamp-query"
|
||||||
" -accesstype arg - an Object identifier in an AIA/SIA method, e.g. AD_DVCS or ad_timestamping",
|
" or application/dvcs -default application/timestamp-query",
|
||||||
|
" -acceptmime arg - MIME type acceptable for the response ex : "
|
||||||
|
"application/timestamp-response or application/dvcs -default none",
|
||||||
|
" -accesstype arg - an Object identifier in an AIA/SIA method, e.g."
|
||||||
|
" AD_DVCS or ad_timestamping",
|
||||||
NULL
|
NULL
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -125,22 +133,22 @@ static const char *curlx_usage[]={
|
|||||||
/* This is a context that we pass to all callbacks */
|
/* This is a context that we pass to all callbacks */
|
||||||
|
|
||||||
typedef struct sslctxparm_st {
|
typedef struct sslctxparm_st {
|
||||||
unsigned char * p12file ;
|
unsigned char * p12file;
|
||||||
const char * pst ;
|
const char * pst;
|
||||||
PKCS12 * p12 ;
|
PKCS12 * p12;
|
||||||
EVP_PKEY * pkey ;
|
EVP_PKEY * pkey;
|
||||||
X509 * usercert ;
|
X509 * usercert;
|
||||||
STACK_OF(X509) * ca ;
|
STACK_OF(X509) * ca;
|
||||||
CURL * curl;
|
CURL * curl;
|
||||||
BIO * errorbio;
|
BIO * errorbio;
|
||||||
int accesstype ;
|
int accesstype;
|
||||||
int verbose;
|
int verbose;
|
||||||
|
|
||||||
} sslctxparm;
|
} sslctxparm;
|
||||||
|
|
||||||
/* some helper function. */
|
/* some helper function. */
|
||||||
|
|
||||||
static char *i2s_ASN1_IA5STRING( ASN1_IA5STRING *ia5)
|
static char *ia5string(ASN1_IA5STRING *ia5)
|
||||||
{
|
{
|
||||||
char *tmp;
|
char *tmp;
|
||||||
if(!ia5 || !ia5->length)
|
if(!ia5 || !ia5->length)
|
||||||
@@ -152,20 +160,20 @@ static char *i2s_ASN1_IA5STRING( ASN1_IA5STRING *ia5)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* A conveniance routine to get an access URI. */
|
/* A conveniance routine to get an access URI. */
|
||||||
|
static unsigned char *my_get_ext(X509 *cert, const int type,
|
||||||
static unsigned char *my_get_ext(X509 * cert, const int type, int extensiontype) {
|
int extensiontype)
|
||||||
|
{
|
||||||
int i;
|
int i;
|
||||||
STACK_OF(ACCESS_DESCRIPTION) * accessinfo ;
|
STACK_OF(ACCESS_DESCRIPTION) * accessinfo;
|
||||||
accessinfo = X509_get_ext_d2i(cert, extensiontype, NULL, NULL) ;
|
accessinfo = X509_get_ext_d2i(cert, extensiontype, NULL, NULL);
|
||||||
|
|
||||||
if (!sk_ACCESS_DESCRIPTION_num(accessinfo))
|
if(!sk_ACCESS_DESCRIPTION_num(accessinfo))
|
||||||
return NULL;
|
return NULL;
|
||||||
for (i = 0; i < sk_ACCESS_DESCRIPTION_num(accessinfo); i++) {
|
for(i = 0; i < sk_ACCESS_DESCRIPTION_num(accessinfo); i++) {
|
||||||
ACCESS_DESCRIPTION * ad = sk_ACCESS_DESCRIPTION_value(accessinfo, i);
|
ACCESS_DESCRIPTION * ad = sk_ACCESS_DESCRIPTION_value(accessinfo, i);
|
||||||
if (OBJ_obj2nid(ad->method) == type) {
|
if(OBJ_obj2nid(ad->method) == type) {
|
||||||
if (ad->location->type == GEN_URI) {
|
if(ad->location->type == GEN_URI) {
|
||||||
return i2s_ASN1_IA5STRING(ad->location->d.ia5);
|
return ia5string(ad->location->d.ia5);
|
||||||
}
|
}
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
@@ -184,84 +192,86 @@ static int ssl_app_verify_callback(X509_STORE_CTX *ctx, void *arg)
|
|||||||
sslctxparm * p = (sslctxparm *) arg;
|
sslctxparm * p = (sslctxparm *) arg;
|
||||||
int ok;
|
int ok;
|
||||||
|
|
||||||
if (p->verbose > 2)
|
if(p->verbose > 2)
|
||||||
BIO_printf(p->errorbio,"entering ssl_app_verify_callback\n");
|
BIO_printf(p->errorbio, "entering ssl_app_verify_callback\n");
|
||||||
|
|
||||||
if ((ok= X509_verify_cert(ctx)) && ctx->cert) {
|
if((ok= X509_verify_cert(ctx)) && ctx->cert) {
|
||||||
unsigned char * accessinfo ;
|
unsigned char * accessinfo;
|
||||||
if (p->verbose > 1)
|
if(p->verbose > 1)
|
||||||
X509_print_ex(p->errorbio,ctx->cert,0,0);
|
X509_print_ex(p->errorbio, ctx->cert, 0, 0);
|
||||||
|
|
||||||
if (accessinfo = my_get_ext(ctx->cert,p->accesstype ,NID_sinfo_access)) {
|
if(accessinfo = my_get_ext(ctx->cert, p->accesstype, NID_sinfo_access)) {
|
||||||
if (p->verbose)
|
if(p->verbose)
|
||||||
BIO_printf(p->errorbio,"Setting URL from SIA to: %s\n", accessinfo);
|
BIO_printf(p->errorbio, "Setting URL from SIA to: %s\n", accessinfo);
|
||||||
|
|
||||||
curl_easy_setopt(p->curl, CURLOPT_URL,accessinfo);
|
curl_easy_setopt(p->curl, CURLOPT_URL, accessinfo);
|
||||||
}
|
}
|
||||||
else if (accessinfo = my_get_ext(ctx->cert,p->accesstype,
|
else if(accessinfo = my_get_ext(ctx->cert, p->accesstype,
|
||||||
NID_info_access)) {
|
NID_info_access)) {
|
||||||
if (p->verbose)
|
if(p->verbose)
|
||||||
BIO_printf(p->errorbio,"Setting URL from AIA to: %s\n", accessinfo);
|
BIO_printf(p->errorbio, "Setting URL from AIA to: %s\n", accessinfo);
|
||||||
|
|
||||||
curl_easy_setopt(p->curl, CURLOPT_URL,accessinfo);
|
curl_easy_setopt(p->curl, CURLOPT_URL, accessinfo);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (p->verbose > 2)
|
if(p->verbose > 2)
|
||||||
BIO_printf(p->errorbio,"leaving ssl_app_verify_callback with %d\n", ok);
|
BIO_printf(p->errorbio, "leaving ssl_app_verify_callback with %d\n", ok);
|
||||||
return(ok);
|
|
||||||
|
return ok;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* This is an example of an curl SSL initialisation call back. The callback sets:
|
/* The SSL initialisation callback. The callback sets:
|
||||||
- a private key and certificate
|
- a private key and certificate
|
||||||
- a trusted ca certificate
|
- a trusted ca certificate
|
||||||
- a preferred cipherlist
|
- a preferred cipherlist
|
||||||
- an application verification callback (the function above)
|
- an application verification callback (the function above)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
static CURLcode sslctxfun(CURL * curl, void * sslctx, void * parm) {
|
static CURLcode sslctxfun(CURL * curl, void * sslctx, void * parm)
|
||||||
|
{
|
||||||
sslctxparm * p = (sslctxparm *) parm;
|
sslctxparm * p = (sslctxparm *) parm;
|
||||||
SSL_CTX * ctx = (SSL_CTX *) sslctx ;
|
SSL_CTX * ctx = (SSL_CTX *) sslctx;
|
||||||
|
|
||||||
if (!SSL_CTX_use_certificate(ctx,p->usercert)) {
|
if(!SSL_CTX_use_certificate(ctx, p->usercert)) {
|
||||||
BIO_printf(p->errorbio, "SSL_CTX_use_certificate problem\n"); goto err;
|
BIO_printf(p->errorbio, "SSL_CTX_use_certificate problem\n");
|
||||||
|
goto err;
|
||||||
}
|
}
|
||||||
if (!SSL_CTX_use_PrivateKey(ctx,p->pkey)) {
|
if(!SSL_CTX_use_PrivateKey(ctx, p->pkey)) {
|
||||||
BIO_printf(p->errorbio, "SSL_CTX_use_PrivateKey\n"); goto err;
|
BIO_printf(p->errorbio, "SSL_CTX_use_PrivateKey\n");
|
||||||
|
goto err;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!SSL_CTX_check_private_key(ctx)) {
|
if(!SSL_CTX_check_private_key(ctx)) {
|
||||||
BIO_printf(p->errorbio, "SSL_CTX_check_private_key\n"); goto err;
|
BIO_printf(p->errorbio, "SSL_CTX_check_private_key\n");
|
||||||
|
goto err;
|
||||||
}
|
}
|
||||||
|
|
||||||
SSL_CTX_set_quiet_shutdown(ctx,1);
|
SSL_CTX_set_quiet_shutdown(ctx, 1);
|
||||||
SSL_CTX_set_cipher_list(ctx,"RC4-MD5");
|
SSL_CTX_set_cipher_list(ctx, "RC4-MD5");
|
||||||
SSL_CTX_set_mode(ctx, SSL_MODE_AUTO_RETRY);
|
SSL_CTX_set_mode(ctx, SSL_MODE_AUTO_RETRY);
|
||||||
|
|
||||||
X509_STORE_add_cert(SSL_CTX_get_cert_store(ctx), sk_X509_value(p->ca, sk_X509_num(p->ca)-1));
|
X509_STORE_add_cert(SSL_CTX_get_cert_store(ctx),
|
||||||
|
sk_X509_value(p->ca, sk_X509_num(p->ca)-1));
|
||||||
SSL_CTX_set_verify_depth(ctx,2);
|
|
||||||
|
|
||||||
SSL_CTX_set_verify(ctx,SSL_VERIFY_PEER,ZERO_NULL);
|
|
||||||
|
|
||||||
|
SSL_CTX_set_verify_depth(ctx, 2);
|
||||||
|
SSL_CTX_set_verify(ctx, SSL_VERIFY_PEER, ZERO_NULL);
|
||||||
SSL_CTX_set_cert_verify_callback(ctx, ssl_app_verify_callback, parm);
|
SSL_CTX_set_cert_verify_callback(ctx, ssl_app_verify_callback, parm);
|
||||||
|
|
||||||
|
return CURLE_OK;
|
||||||
return CURLE_OK ;
|
|
||||||
err:
|
err:
|
||||||
ERR_print_errors(p->errorbio);
|
ERR_print_errors(p->errorbio);
|
||||||
return CURLE_SSL_CERTPROBLEM;
|
return CURLE_SSL_CERTPROBLEM;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int main(int argc, char **argv) {
|
int main(int argc, char **argv)
|
||||||
|
{
|
||||||
BIO* in=NULL;
|
BIO* in=NULL;
|
||||||
BIO* out=NULL;
|
BIO* out=NULL;
|
||||||
|
|
||||||
char * outfile = NULL;
|
char * outfile = NULL;
|
||||||
char * infile = NULL ;
|
char * infile = NULL;
|
||||||
|
|
||||||
int tabLength=100;
|
int tabLength=100;
|
||||||
char *binaryptr;
|
char *binaryptr;
|
||||||
@@ -270,7 +280,7 @@ int main(int argc, char **argv) {
|
|||||||
char* contenttype;
|
char* contenttype;
|
||||||
const char** pp;
|
const char** pp;
|
||||||
unsigned char* hostporturl = NULL;
|
unsigned char* hostporturl = NULL;
|
||||||
BIO * p12bio ;
|
BIO * p12bio;
|
||||||
char **args = argv + 1;
|
char **args = argv + 1;
|
||||||
unsigned char * serverurl;
|
unsigned char * serverurl;
|
||||||
sslctxparm p;
|
sslctxparm p;
|
||||||
@@ -293,66 +303,91 @@ int main(int argc, char **argv) {
|
|||||||
OpenSSL_add_all_digests();
|
OpenSSL_add_all_digests();
|
||||||
ERR_load_crypto_strings();
|
ERR_load_crypto_strings();
|
||||||
|
|
||||||
|
while(*args && *args[0] == '-') {
|
||||||
|
if(!strcmp (*args, "-in")) {
|
||||||
while (*args && *args[0] == '-') {
|
if(args[1]) {
|
||||||
if (!strcmp (*args, "-in")) {
|
|
||||||
if (args[1]) {
|
|
||||||
infile=*(++args);
|
infile=*(++args);
|
||||||
} else badarg=1;
|
}
|
||||||
} else if (!strcmp (*args, "-out")) {
|
else
|
||||||
if (args[1]) {
|
badarg=1;
|
||||||
|
}
|
||||||
|
else if(!strcmp (*args, "-out")) {
|
||||||
|
if(args[1]) {
|
||||||
outfile=*(++args);
|
outfile=*(++args);
|
||||||
} else badarg=1;
|
}
|
||||||
} else if (!strcmp (*args, "-p12")) {
|
else
|
||||||
if (args[1]) {
|
badarg=1;
|
||||||
|
}
|
||||||
|
else if(!strcmp (*args, "-p12")) {
|
||||||
|
if(args[1]) {
|
||||||
p.p12file = *(++args);
|
p.p12file = *(++args);
|
||||||
} else badarg=1;
|
}
|
||||||
} else if (strcmp(*args,"-envpass") == 0) {
|
else
|
||||||
if (args[1]) {
|
badarg=1;
|
||||||
|
}
|
||||||
|
else if(strcmp(*args, "-envpass") == 0) {
|
||||||
|
if(args[1]) {
|
||||||
p.pst = getenv(*(++args));
|
p.pst = getenv(*(++args));
|
||||||
} else badarg=1;
|
}
|
||||||
} else if (strcmp(*args,"-connect") == 0) {
|
else
|
||||||
if (args[1]) {
|
badarg=1;
|
||||||
|
}
|
||||||
|
else if(strcmp(*args, "-connect") == 0) {
|
||||||
|
if(args[1]) {
|
||||||
hostporturl = *(++args);
|
hostporturl = *(++args);
|
||||||
} else badarg=1;
|
}
|
||||||
} else if (strcmp(*args,"-mimetype") == 0) {
|
else
|
||||||
if (args[1]) {
|
badarg=1;
|
||||||
|
}
|
||||||
|
else if(strcmp(*args, "-mimetype") == 0) {
|
||||||
|
if(args[1]) {
|
||||||
mimetype = *(++args);
|
mimetype = *(++args);
|
||||||
} else badarg=1;
|
}
|
||||||
} else if (strcmp(*args,"-acceptmime") == 0) {
|
else
|
||||||
if (args[1]) {
|
badarg=1;
|
||||||
|
}
|
||||||
|
else if(strcmp(*args, "-acceptmime") == 0) {
|
||||||
|
if(args[1]) {
|
||||||
mimetypeaccept = *(++args);
|
mimetypeaccept = *(++args);
|
||||||
} else badarg=1;
|
}
|
||||||
} else if (strcmp(*args,"-accesstype") == 0) {
|
else
|
||||||
if (args[1]) {
|
badarg=1;
|
||||||
if ((p.accesstype = OBJ_obj2nid(OBJ_txt2obj(*++args,0))) == 0) badarg=1;
|
}
|
||||||
} else badarg=1;
|
else if(strcmp(*args, "-accesstype") == 0) {
|
||||||
} else if (strcmp(*args,"-verbose") == 0) {
|
if(args[1]) {
|
||||||
|
if((p.accesstype = OBJ_obj2nid(OBJ_txt2obj(*++args, 0))) == 0)
|
||||||
|
badarg=1;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
badarg=1;
|
||||||
|
}
|
||||||
|
else if(strcmp(*args, "-verbose") == 0) {
|
||||||
p.verbose++;
|
p.verbose++;
|
||||||
} else badarg=1;
|
}
|
||||||
|
else
|
||||||
|
badarg=1;
|
||||||
args++;
|
args++;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (mimetype==NULL || mimetypeaccept == NULL) badarg = 1;
|
if(mimetype==NULL || mimetypeaccept == NULL)
|
||||||
|
badarg = 1;
|
||||||
|
|
||||||
if (badarg) {
|
if(badarg) {
|
||||||
for (pp=curlx_usage; (*pp != NULL); pp++)
|
for(pp=curlx_usage; (*pp != NULL); pp++)
|
||||||
BIO_printf(p.errorbio,"%s\n",*pp);
|
BIO_printf(p.errorbio, "%s\n", *pp);
|
||||||
BIO_printf(p.errorbio,"\n");
|
BIO_printf(p.errorbio, "\n");
|
||||||
goto err;
|
goto err;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* set input */
|
/* set input */
|
||||||
|
|
||||||
if ((in=BIO_new(BIO_s_file())) == NULL) {
|
if((in=BIO_new(BIO_s_file())) == NULL) {
|
||||||
BIO_printf(p.errorbio, "Error setting input bio\n");
|
BIO_printf(p.errorbio, "Error setting input bio\n");
|
||||||
goto err;
|
goto err;
|
||||||
} else if (infile == NULL)
|
}
|
||||||
BIO_set_fp(in,stdin,BIO_NOCLOSE|BIO_FP_TEXT);
|
else if(infile == NULL)
|
||||||
else if (BIO_read_filename(in,infile) <= 0) {
|
BIO_set_fp(in, stdin, BIO_NOCLOSE|BIO_FP_TEXT);
|
||||||
|
else if(BIO_read_filename(in, infile) <= 0) {
|
||||||
BIO_printf(p.errorbio, "Error opening input file %s\n", infile);
|
BIO_printf(p.errorbio, "Error opening input file %s\n", infile);
|
||||||
BIO_free(in);
|
BIO_free(in);
|
||||||
goto err;
|
goto err;
|
||||||
@@ -360,12 +395,13 @@ int main(int argc, char **argv) {
|
|||||||
|
|
||||||
/* set output */
|
/* set output */
|
||||||
|
|
||||||
if ((out=BIO_new(BIO_s_file())) == NULL) {
|
if((out=BIO_new(BIO_s_file())) == NULL) {
|
||||||
BIO_printf(p.errorbio, "Error setting output bio.\n");
|
BIO_printf(p.errorbio, "Error setting output bio.\n");
|
||||||
goto err;
|
goto err;
|
||||||
} else if (outfile == NULL)
|
}
|
||||||
BIO_set_fp(out,stdout,BIO_NOCLOSE|BIO_FP_TEXT);
|
else if(outfile == NULL)
|
||||||
else if (BIO_write_filename(out,outfile) <= 0) {
|
BIO_set_fp(out, stdout, BIO_NOCLOSE|BIO_FP_TEXT);
|
||||||
|
else if(BIO_write_filename(out, outfile) <= 0) {
|
||||||
BIO_printf(p.errorbio, "Error opening output file %s\n", outfile);
|
BIO_printf(p.errorbio, "Error opening output file %s\n", outfile);
|
||||||
BIO_free(out);
|
BIO_free(out);
|
||||||
goto err;
|
goto err;
|
||||||
@@ -374,62 +410,66 @@ int main(int argc, char **argv) {
|
|||||||
|
|
||||||
p.errorbio = BIO_new_fp (stderr, BIO_NOCLOSE);
|
p.errorbio = BIO_new_fp (stderr, BIO_NOCLOSE);
|
||||||
|
|
||||||
if (!(p.curl = curl_easy_init())) {
|
if(!(p.curl = curl_easy_init())) {
|
||||||
BIO_printf(p.errorbio, "Cannot init curl lib\n");
|
BIO_printf(p.errorbio, "Cannot init curl lib\n");
|
||||||
goto err;
|
goto err;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(!(p12bio = BIO_new_file(p.p12file , "rb"))) {
|
||||||
|
BIO_printf(p.errorbio, "Error opening P12 file %s\n", p.p12file);
|
||||||
if (!(p12bio = BIO_new_file(p.p12file , "rb"))) {
|
goto err;
|
||||||
BIO_printf(p.errorbio, "Error opening P12 file %s\n", p.p12file); goto err;
|
|
||||||
}
|
}
|
||||||
if (!(p.p12 = d2i_PKCS12_bio (p12bio, NULL))) {
|
if(!(p.p12 = d2i_PKCS12_bio (p12bio, NULL))) {
|
||||||
BIO_printf(p.errorbio, "Cannot decode P12 structure %s\n", p.p12file); goto err;
|
BIO_printf(p.errorbio, "Cannot decode P12 structure %s\n", p.p12file);
|
||||||
|
goto err;
|
||||||
}
|
}
|
||||||
|
|
||||||
p.ca= NULL;
|
p.ca= NULL;
|
||||||
if (!(PKCS12_parse (p.p12, p.pst, &(p.pkey), &(p.usercert), &(p.ca) ) )) {
|
if(!(PKCS12_parse (p.p12, p.pst, &(p.pkey), &(p.usercert), &(p.ca) ) )) {
|
||||||
BIO_printf(p.errorbio,"Invalid P12 structure in %s\n", p.p12file); goto err;
|
BIO_printf(p.errorbio, "Invalid P12 structure in %s\n", p.p12file);
|
||||||
|
goto err;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (sk_X509_num(p.ca) <= 0) {
|
if(sk_X509_num(p.ca) <= 0) {
|
||||||
BIO_printf(p.errorbio,"No trustworthy CA given.%s\n", p.p12file); goto err;
|
BIO_printf(p.errorbio, "No trustworthy CA given.%s\n", p.p12file);
|
||||||
|
goto err;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (p.verbose > 1)
|
if(p.verbose > 1)
|
||||||
X509_print_ex(p.errorbio,p.usercert,0,0);
|
X509_print_ex(p.errorbio, p.usercert, 0, 0);
|
||||||
|
|
||||||
/* determine URL to go */
|
/* determine URL to go */
|
||||||
|
|
||||||
if (hostporturl) {
|
if(hostporturl) {
|
||||||
serverurl = malloc(9+strlen(hostporturl));
|
size_t len = strlen(hostporturl) + 9;
|
||||||
sprintf(serverurl,"https://%s",hostporturl);
|
serverurl = malloc(len);
|
||||||
|
snprintf(serverurl, len, "https://%s", hostporturl);
|
||||||
}
|
}
|
||||||
else if (p.accesstype != 0) { /* see whether we can find an AIA or SIA for a given access type */
|
else if(p.accesstype != 0) { /* see whether we can find an AIA or SIA for a
|
||||||
if (!(serverurl = my_get_ext(p.usercert,p.accesstype,NID_info_access))) {
|
given access type */
|
||||||
|
if(!(serverurl = my_get_ext(p.usercert, p.accesstype, NID_info_access))) {
|
||||||
int j=0;
|
int j=0;
|
||||||
BIO_printf(p.errorbio,"no service URL in user cert "
|
BIO_printf(p.errorbio, "no service URL in user cert "
|
||||||
"cherching in others certificats\n");
|
"cherching in others certificats\n");
|
||||||
for (j=0;j<sk_X509_num(p.ca);j++) {
|
for(j=0; j<sk_X509_num(p.ca); j++) {
|
||||||
if ((serverurl = my_get_ext(sk_X509_value(p.ca,j),p.accesstype,
|
if((serverurl = my_get_ext(sk_X509_value(p.ca, j), p.accesstype,
|
||||||
NID_info_access)))
|
NID_info_access)))
|
||||||
break;
|
break;
|
||||||
if ((serverurl = my_get_ext(sk_X509_value(p.ca,j),p.accesstype,
|
if((serverurl = my_get_ext(sk_X509_value(p.ca, j), p.accesstype,
|
||||||
NID_sinfo_access)))
|
NID_sinfo_access)))
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!serverurl) {
|
if(!serverurl) {
|
||||||
BIO_printf(p.errorbio, "no service URL in certificats,"
|
BIO_printf(p.errorbio, "no service URL in certificats,"
|
||||||
" check '-accesstype (AD_DVCS | ad_timestamping)'"
|
" check '-accesstype (AD_DVCS | ad_timestamping)'"
|
||||||
" or use '-connect'\n");
|
" or use '-connect'\n");
|
||||||
goto err;
|
goto err;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (p.verbose)
|
if(p.verbose)
|
||||||
BIO_printf(p.errorbio, "Service URL: <%s>\n", serverurl);
|
BIO_printf(p.errorbio, "Service URL: <%s>\n", serverurl);
|
||||||
|
|
||||||
curl_easy_setopt(p.curl, CURLOPT_URL, serverurl);
|
curl_easy_setopt(p.curl, CURLOPT_URL, serverurl);
|
||||||
@@ -437,38 +477,39 @@ int main(int argc, char **argv) {
|
|||||||
/* Now specify the POST binary data */
|
/* Now specify the POST binary data */
|
||||||
|
|
||||||
curl_easy_setopt(p.curl, CURLOPT_POSTFIELDS, binaryptr);
|
curl_easy_setopt(p.curl, CURLOPT_POSTFIELDS, binaryptr);
|
||||||
curl_easy_setopt(p.curl, CURLOPT_POSTFIELDSIZE,(long)tabLength);
|
curl_easy_setopt(p.curl, CURLOPT_POSTFIELDSIZE, (long)tabLength);
|
||||||
|
|
||||||
/* pass our list of custom made headers */
|
/* pass our list of custom made headers */
|
||||||
|
|
||||||
contenttype = malloc(15+strlen(mimetype));
|
contenttype = malloc(15+strlen(mimetype));
|
||||||
sprintf(contenttype,"Content-type: %s",mimetype);
|
snprintf(contenttype, 15+strlen(mimetype), "Content-type: %s", mimetype);
|
||||||
headers = curl_slist_append(headers,contenttype);
|
headers = curl_slist_append(headers, contenttype);
|
||||||
curl_easy_setopt(p.curl, CURLOPT_HTTPHEADER, headers);
|
curl_easy_setopt(p.curl, CURLOPT_HTTPHEADER, headers);
|
||||||
|
|
||||||
if (p.verbose)
|
if(p.verbose)
|
||||||
BIO_printf(p.errorbio, "Service URL: <%s>\n", serverurl);
|
BIO_printf(p.errorbio, "Service URL: <%s>\n", serverurl);
|
||||||
|
|
||||||
{
|
{
|
||||||
FILE *outfp;
|
FILE *outfp;
|
||||||
BIO_get_fp(out,&outfp);
|
BIO_get_fp(out, &outfp);
|
||||||
curl_easy_setopt(p.curl, CURLOPT_WRITEDATA, outfp);
|
curl_easy_setopt(p.curl, CURLOPT_WRITEDATA, outfp);
|
||||||
}
|
}
|
||||||
|
|
||||||
res = curl_easy_setopt(p.curl, CURLOPT_SSL_CTX_FUNCTION, sslctxfun) ;
|
res = curl_easy_setopt(p.curl, CURLOPT_SSL_CTX_FUNCTION, sslctxfun);
|
||||||
|
|
||||||
if (res != CURLE_OK)
|
if(res != CURLE_OK)
|
||||||
BIO_printf(p.errorbio,"%d %s=%d %d\n", __LINE__, "CURLOPT_SSL_CTX_FUNCTION",CURLOPT_SSL_CTX_FUNCTION,res);
|
BIO_printf(p.errorbio, "%d %s=%d %d\n", __LINE__,
|
||||||
|
"CURLOPT_SSL_CTX_FUNCTION", CURLOPT_SSL_CTX_FUNCTION, res);
|
||||||
|
|
||||||
curl_easy_setopt(p.curl, CURLOPT_SSL_CTX_DATA, &p);
|
curl_easy_setopt(p.curl, CURLOPT_SSL_CTX_DATA, &p);
|
||||||
|
|
||||||
{
|
{
|
||||||
int lu; int i=0;
|
int lu; int i=0;
|
||||||
while ((lu = BIO_read (in,&binaryptr[i],tabLength-i)) >0 ) {
|
while((lu = BIO_read (in, &binaryptr[i], tabLength-i)) >0 ) {
|
||||||
i+=lu;
|
i+=lu;
|
||||||
if (i== tabLength) {
|
if(i== tabLength) {
|
||||||
tabLength+=100;
|
tabLength+=100;
|
||||||
binaryptr=realloc(binaryptr,tabLength); /* should be more careful */
|
binaryptr=realloc(binaryptr, tabLength); /* should be more careful */
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
tabLength = i;
|
tabLength = i;
|
||||||
@@ -476,23 +517,23 @@ int main(int argc, char **argv) {
|
|||||||
/* Now specify the POST binary data */
|
/* Now specify the POST binary data */
|
||||||
|
|
||||||
curl_easy_setopt(p.curl, CURLOPT_POSTFIELDS, binaryptr);
|
curl_easy_setopt(p.curl, CURLOPT_POSTFIELDS, binaryptr);
|
||||||
curl_easy_setopt(p.curl, CURLOPT_POSTFIELDSIZE,(long)tabLength);
|
curl_easy_setopt(p.curl, CURLOPT_POSTFIELDSIZE, (long)tabLength);
|
||||||
|
|
||||||
|
|
||||||
/* Perform the request, res will get the return code */
|
/* Perform the request, res will get the return code */
|
||||||
|
|
||||||
BIO_printf(p.errorbio,"%d %s %d\n", __LINE__, "curl_easy_perform",
|
BIO_printf(p.errorbio, "%d %s %d\n", __LINE__, "curl_easy_perform",
|
||||||
res = curl_easy_perform(p.curl));
|
res = curl_easy_perform(p.curl));
|
||||||
{
|
{
|
||||||
int result =curl_easy_getinfo(p.curl,CURLINFO_CONTENT_TYPE,&response);
|
int result =curl_easy_getinfo(p.curl, CURLINFO_CONTENT_TYPE, &response);
|
||||||
if( mimetypeaccept && p.verbose)
|
if(mimetypeaccept && p.verbose)
|
||||||
if(!strcmp(mimetypeaccept,response))
|
if(!strcmp(mimetypeaccept, response))
|
||||||
BIO_printf(p.errorbio,"the response has a correct mimetype : %s\n",
|
BIO_printf(p.errorbio, "the response has a correct mimetype : %s\n",
|
||||||
response);
|
response);
|
||||||
else
|
else
|
||||||
BIO_printf(p.errorbio,"the reponse doesn\'t has an acceptable "
|
BIO_printf(p.errorbio, "the response doesn\'t have an acceptable "
|
||||||
"mime type, it is %s instead of %s\n",
|
"mime type, it is %s instead of %s\n",
|
||||||
response,mimetypeaccept);
|
response, mimetypeaccept);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*** code d'erreur si accept mime ***, egalement code return HTTP != 200 ***/
|
/*** code d'erreur si accept mime ***, egalement code return HTTP != 200 ***/
|
||||||
@@ -508,6 +549,6 @@ int main(int argc, char **argv) {
|
|||||||
BIO_free(out);
|
BIO_free(out);
|
||||||
return (EXIT_SUCCESS);
|
return (EXIT_SUCCESS);
|
||||||
|
|
||||||
err: BIO_printf(p.errorbio,"error");
|
err: BIO_printf(p.errorbio, "error");
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,11 +5,11 @@
|
|||||||
* | (__| |_| | _ <| |___
|
* | (__| |_| | _ <| |___
|
||||||
* \___|\___/|_| \_\_____|
|
* \___|\___/|_| \_\_____|
|
||||||
*
|
*
|
||||||
* Copyright (C) 1998 - 2013, Daniel Stenberg, <daniel@haxx.se>, et al.
|
* Copyright (C) 1998 - 2016, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
*
|
*
|
||||||
* This software is licensed as described in the file COPYING, which
|
* This software is licensed as described in the file COPYING, which
|
||||||
* you should have received as part of this distribution. The terms
|
* you should have received as part of this distribution. The terms
|
||||||
* are also available at http://curl.haxx.se/docs/copyright.html.
|
* are also available at https://curl.haxx.se/docs/copyright.html.
|
||||||
*
|
*
|
||||||
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
||||||
* copies of the Software, and permit persons to whom the Software is
|
* copies of the Software, and permit persons to whom the Software is
|
||||||
@@ -19,6 +19,10 @@
|
|||||||
* KIND, either express or implied.
|
* KIND, either express or implied.
|
||||||
*
|
*
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
/* <DESC>
|
||||||
|
* Show how CURLOPT_DEBUGFUNCTION can be used.
|
||||||
|
* </DESC>
|
||||||
|
*/
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <curl/curl.h>
|
#include <curl/curl.h>
|
||||||
|
|
||||||
@@ -58,14 +62,14 @@ void dump(const char *text,
|
|||||||
|
|
||||||
for(c = 0; (c < width) && (i+c < size); c++) {
|
for(c = 0; (c < width) && (i+c < size); c++) {
|
||||||
/* check for 0D0A; if found, skip past and start a new line of output */
|
/* check for 0D0A; if found, skip past and start a new line of output */
|
||||||
if (nohex && (i+c+1 < size) && ptr[i+c]==0x0D && ptr[i+c+1]==0x0A) {
|
if(nohex && (i+c+1 < size) && ptr[i+c]==0x0D && ptr[i+c+1]==0x0A) {
|
||||||
i+=(c+2-width);
|
i+=(c+2-width);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
fprintf(stream, "%c",
|
fprintf(stream, "%c",
|
||||||
(ptr[i+c]>=0x20) && (ptr[i+c]<0x80)?ptr[i+c]:'.');
|
(ptr[i+c]>=0x20) && (ptr[i+c]<0x80)?ptr[i+c]:'.');
|
||||||
/* check again for 0D0A, to avoid an extra \n if it's at width */
|
/* check again for 0D0A, to avoid an extra \n if it's at width */
|
||||||
if (nohex && (i+c+2 < size) && ptr[i+c+1]==0x0D && ptr[i+c+2]==0x0A) {
|
if(nohex && (i+c+2 < size) && ptr[i+c+1]==0x0D && ptr[i+c+2]==0x0A) {
|
||||||
i+=(c+3-width);
|
i+=(c+3-width);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,11 +5,11 @@
|
|||||||
* | (__| |_| | _ <| |___
|
* | (__| |_| | _ <| |___
|
||||||
* \___|\___/|_| \_\_____|
|
* \___|\___/|_| \_\_____|
|
||||||
*
|
*
|
||||||
* Copyright (C) 1998 - 2014, Daniel Stenberg, <daniel@haxx.se>, et al.
|
* Copyright (C) 1998 - 2016, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
*
|
*
|
||||||
* This software is licensed as described in the file COPYING, which
|
* This software is licensed as described in the file COPYING, which
|
||||||
* you should have received as part of this distribution. The terms
|
* you should have received as part of this distribution. The terms
|
||||||
* are also available at http://curl.haxx.se/docs/copyright.html.
|
* are also available at https://curl.haxx.se/docs/copyright.html.
|
||||||
*
|
*
|
||||||
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
||||||
* copies of the Software, and permit persons to whom the Software is
|
* copies of the Software, and permit persons to whom the Software is
|
||||||
@@ -19,6 +19,10 @@
|
|||||||
* KIND, either express or implied.
|
* KIND, either express or implied.
|
||||||
*
|
*
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
/* <DESC>
|
||||||
|
* multi socket interface together with libev
|
||||||
|
* </DESC>
|
||||||
|
*/
|
||||||
/* Example application source code using the multi socket interface to
|
/* Example application source code using the multi socket interface to
|
||||||
* download many files at once.
|
* download many files at once.
|
||||||
*
|
*
|
||||||
@@ -115,12 +119,12 @@ static int multi_timer_cb(CURLM *multi, long timeout_ms, GlobalInfo *g)
|
|||||||
{
|
{
|
||||||
DPRINT("%s %li\n", __PRETTY_FUNCTION__, timeout_ms);
|
DPRINT("%s %li\n", __PRETTY_FUNCTION__, timeout_ms);
|
||||||
ev_timer_stop(g->loop, &g->timer_event);
|
ev_timer_stop(g->loop, &g->timer_event);
|
||||||
if (timeout_ms > 0)
|
if(timeout_ms > 0) {
|
||||||
{
|
|
||||||
double t = timeout_ms / 1000;
|
double t = timeout_ms / 1000;
|
||||||
ev_timer_init(&g->timer_event, timer_cb, t, 0.);
|
ev_timer_init(&g->timer_event, timer_cb, t, 0.);
|
||||||
ev_timer_start(g->loop, &g->timer_event);
|
ev_timer_start(g->loop, &g->timer_event);
|
||||||
}else
|
}
|
||||||
|
else
|
||||||
timer_cb(g->loop, &g->timer_event, 0);
|
timer_cb(g->loop, &g->timer_event, 0);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
@@ -128,20 +132,32 @@ static int multi_timer_cb(CURLM *multi, long timeout_ms, GlobalInfo *g)
|
|||||||
/* Die if we get a bad CURLMcode somewhere */
|
/* Die if we get a bad CURLMcode somewhere */
|
||||||
static void mcode_or_die(const char *where, CURLMcode code)
|
static void mcode_or_die(const char *where, CURLMcode code)
|
||||||
{
|
{
|
||||||
if ( CURLM_OK != code )
|
if(CURLM_OK != code) {
|
||||||
{
|
|
||||||
const char *s;
|
const char *s;
|
||||||
switch ( code )
|
switch (code) {
|
||||||
{
|
case CURLM_BAD_HANDLE:
|
||||||
case CURLM_BAD_HANDLE: s="CURLM_BAD_HANDLE"; break;
|
s="CURLM_BAD_HANDLE";
|
||||||
case CURLM_BAD_EASY_HANDLE: s="CURLM_BAD_EASY_HANDLE"; break;
|
|
||||||
case CURLM_OUT_OF_MEMORY: s="CURLM_OUT_OF_MEMORY"; break;
|
|
||||||
case CURLM_INTERNAL_ERROR: s="CURLM_INTERNAL_ERROR"; break;
|
|
||||||
case CURLM_UNKNOWN_OPTION: s="CURLM_UNKNOWN_OPTION"; break;
|
|
||||||
case CURLM_LAST: s="CURLM_LAST"; break;
|
|
||||||
default: s="CURLM_unknown";
|
|
||||||
break;
|
break;
|
||||||
case CURLM_BAD_SOCKET: s="CURLM_BAD_SOCKET";
|
case CURLM_BAD_EASY_HANDLE:
|
||||||
|
s="CURLM_BAD_EASY_HANDLE";
|
||||||
|
break;
|
||||||
|
case CURLM_OUT_OF_MEMORY:
|
||||||
|
s="CURLM_OUT_OF_MEMORY";
|
||||||
|
break;
|
||||||
|
case CURLM_INTERNAL_ERROR:
|
||||||
|
s="CURLM_INTERNAL_ERROR";
|
||||||
|
break;
|
||||||
|
case CURLM_UNKNOWN_OPTION:
|
||||||
|
s="CURLM_UNKNOWN_OPTION";
|
||||||
|
break;
|
||||||
|
case CURLM_LAST:
|
||||||
|
s="CURLM_LAST";
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
s="CURLM_unknown";
|
||||||
|
break;
|
||||||
|
case CURLM_BAD_SOCKET:
|
||||||
|
s="CURLM_BAD_SOCKET";
|
||||||
fprintf(MSG_OUT, "ERROR: %s returns %s\n", where, s);
|
fprintf(MSG_OUT, "ERROR: %s returns %s\n", where, s);
|
||||||
/* ignore this error */
|
/* ignore this error */
|
||||||
return;
|
return;
|
||||||
@@ -164,8 +180,8 @@ static void check_multi_info(GlobalInfo *g)
|
|||||||
CURLcode res;
|
CURLcode res;
|
||||||
|
|
||||||
fprintf(MSG_OUT, "REMAINING: %d\n", g->still_running);
|
fprintf(MSG_OUT, "REMAINING: %d\n", g->still_running);
|
||||||
while ((msg = curl_multi_info_read(g->multi, &msgs_left))) {
|
while((msg = curl_multi_info_read(g->multi, &msgs_left))) {
|
||||||
if (msg->msg == CURLMSG_DONE) {
|
if(msg->msg == CURLMSG_DONE) {
|
||||||
easy = msg->easy_handle;
|
easy = msg->easy_handle;
|
||||||
res = msg->data.result;
|
res = msg->data.result;
|
||||||
curl_easy_getinfo(easy, CURLINFO_PRIVATE, &conn);
|
curl_easy_getinfo(easy, CURLINFO_PRIVATE, &conn);
|
||||||
@@ -193,8 +209,7 @@ static void event_cb(EV_P_ struct ev_io *w, int revents)
|
|||||||
rc = curl_multi_socket_action(g->multi, w->fd, action, &g->still_running);
|
rc = curl_multi_socket_action(g->multi, w->fd, action, &g->still_running);
|
||||||
mcode_or_die("event_cb: curl_multi_socket_action", rc);
|
mcode_or_die("event_cb: curl_multi_socket_action", rc);
|
||||||
check_multi_info(g);
|
check_multi_info(g);
|
||||||
if ( g->still_running <= 0 )
|
if(g->still_running <= 0) {
|
||||||
{
|
|
||||||
fprintf(MSG_OUT, "last transfer done, kill timeout\n");
|
fprintf(MSG_OUT, "last transfer done, kill timeout\n");
|
||||||
ev_timer_stop(g->loop, &g->timer_event);
|
ev_timer_stop(g->loop, &g->timer_event);
|
||||||
}
|
}
|
||||||
@@ -208,7 +223,8 @@ static void timer_cb(EV_P_ struct ev_timer *w, int revents)
|
|||||||
GlobalInfo *g = (GlobalInfo *)w->data;
|
GlobalInfo *g = (GlobalInfo *)w->data;
|
||||||
CURLMcode rc;
|
CURLMcode rc;
|
||||||
|
|
||||||
rc = curl_multi_socket_action(g->multi, CURL_SOCKET_TIMEOUT, 0, &g->still_running);
|
rc = curl_multi_socket_action(g->multi, CURL_SOCKET_TIMEOUT, 0,
|
||||||
|
&g->still_running);
|
||||||
mcode_or_die("timer_cb: curl_multi_socket_action", rc);
|
mcode_or_die("timer_cb: curl_multi_socket_action", rc);
|
||||||
check_multi_info(g);
|
check_multi_info(g);
|
||||||
}
|
}
|
||||||
@@ -217,9 +233,8 @@ static void timer_cb(EV_P_ struct ev_timer *w, int revents)
|
|||||||
static void remsock(SockInfo *f, GlobalInfo *g)
|
static void remsock(SockInfo *f, GlobalInfo *g)
|
||||||
{
|
{
|
||||||
printf("%s \n", __PRETTY_FUNCTION__);
|
printf("%s \n", __PRETTY_FUNCTION__);
|
||||||
if ( f )
|
if(f) {
|
||||||
{
|
if(f->evset)
|
||||||
if ( f->evset )
|
|
||||||
ev_io_stop(g->loop, &f->ev);
|
ev_io_stop(g->loop, &f->ev);
|
||||||
free(f);
|
free(f);
|
||||||
}
|
}
|
||||||
@@ -237,7 +252,7 @@ static void setsock(SockInfo*f, curl_socket_t s, CURL*e, int act, GlobalInfo*g)
|
|||||||
f->sockfd = s;
|
f->sockfd = s;
|
||||||
f->action = act;
|
f->action = act;
|
||||||
f->easy = e;
|
f->easy = e;
|
||||||
if ( f->evset )
|
if(f->evset)
|
||||||
ev_io_stop(g->loop, &f->ev);
|
ev_io_stop(g->loop, &f->ev);
|
||||||
ev_io_init(&f->ev, event_cb, f->sockfd, kind);
|
ev_io_init(&f->ev, event_cb, f->sockfd, kind);
|
||||||
f->ev.data = g;
|
f->ev.data = g;
|
||||||
@@ -269,18 +284,16 @@ static int sock_cb(CURL *e, curl_socket_t s, int what, void *cbp, void *sockp)
|
|||||||
|
|
||||||
fprintf(MSG_OUT,
|
fprintf(MSG_OUT,
|
||||||
"socket callback: s=%d e=%p what=%s ", s, e, whatstr[what]);
|
"socket callback: s=%d e=%p what=%s ", s, e, whatstr[what]);
|
||||||
if ( what == CURL_POLL_REMOVE )
|
if(what == CURL_POLL_REMOVE) {
|
||||||
{
|
|
||||||
fprintf(MSG_OUT, "\n");
|
fprintf(MSG_OUT, "\n");
|
||||||
remsock(fdp, g);
|
remsock(fdp, g);
|
||||||
} else
|
}
|
||||||
{
|
else {
|
||||||
if ( !fdp )
|
if(!fdp) {
|
||||||
{
|
|
||||||
fprintf(MSG_OUT, "Adding data: %s\n", whatstr[what]);
|
fprintf(MSG_OUT, "Adding data: %s\n", whatstr[what]);
|
||||||
addsock(s, e, what, g);
|
addsock(s, e, what, g);
|
||||||
} else
|
}
|
||||||
{
|
else {
|
||||||
fprintf(MSG_OUT,
|
fprintf(MSG_OUT,
|
||||||
"Changing action from %s to %s\n",
|
"Changing action from %s to %s\n",
|
||||||
whatstr[fdp->action], whatstr[what]);
|
whatstr[fdp->action], whatstr[what]);
|
||||||
@@ -326,8 +339,7 @@ static void new_conn(char *url, GlobalInfo *g )
|
|||||||
conn->error[0]='\0';
|
conn->error[0]='\0';
|
||||||
|
|
||||||
conn->easy = curl_easy_init();
|
conn->easy = curl_easy_init();
|
||||||
if ( !conn->easy )
|
if(!conn->easy) {
|
||||||
{
|
|
||||||
fprintf(MSG_OUT, "curl_easy_init() failed, exiting!\n");
|
fprintf(MSG_OUT, "curl_easy_init() failed, exiting!\n");
|
||||||
exit(2);
|
exit(2);
|
||||||
}
|
}
|
||||||
@@ -362,16 +374,16 @@ static void fifo_cb(EV_P_ struct ev_io *w, int revents)
|
|||||||
int n=0;
|
int n=0;
|
||||||
GlobalInfo *g = (GlobalInfo *)w->data;
|
GlobalInfo *g = (GlobalInfo *)w->data;
|
||||||
|
|
||||||
do
|
do {
|
||||||
{
|
|
||||||
s[0]='\0';
|
s[0]='\0';
|
||||||
rv=fscanf(g->input, "%1023s%n", s, &n);
|
rv=fscanf(g->input, "%1023s%n", s, &n);
|
||||||
s[n]='\0';
|
s[n]='\0';
|
||||||
if ( n && s[0] )
|
if(n && s[0]) {
|
||||||
{
|
new_conn(s, g); /* if we read a URL, go get it! */
|
||||||
new_conn(s,g); /* if we read a URL, go get it! */
|
}
|
||||||
} else break;
|
else
|
||||||
} while ( rv != EOF );
|
break;
|
||||||
|
} while(rv != EOF);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Create a named pipe and tell libevent to monitor it */
|
/* Create a named pipe and tell libevent to monitor it */
|
||||||
@@ -382,24 +394,20 @@ static int init_fifo (GlobalInfo *g)
|
|||||||
curl_socket_t sockfd;
|
curl_socket_t sockfd;
|
||||||
|
|
||||||
fprintf(MSG_OUT, "Creating named pipe \"%s\"\n", fifo);
|
fprintf(MSG_OUT, "Creating named pipe \"%s\"\n", fifo);
|
||||||
if ( lstat (fifo, &st) == 0 )
|
if(lstat (fifo, &st) == 0) {
|
||||||
{
|
if((st.st_mode & S_IFMT) == S_IFREG) {
|
||||||
if ( (st.st_mode & S_IFMT) == S_IFREG )
|
|
||||||
{
|
|
||||||
errno = EEXIST;
|
errno = EEXIST;
|
||||||
perror("lstat");
|
perror("lstat");
|
||||||
exit (1);
|
exit (1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
unlink(fifo);
|
unlink(fifo);
|
||||||
if ( mkfifo (fifo, 0600) == -1 )
|
if(mkfifo (fifo, 0600) == -1) {
|
||||||
{
|
|
||||||
perror("mkfifo");
|
perror("mkfifo");
|
||||||
exit (1);
|
exit (1);
|
||||||
}
|
}
|
||||||
sockfd = open(fifo, O_RDWR | O_NONBLOCK, 0);
|
sockfd = open(fifo, O_RDWR | O_NONBLOCK, 0);
|
||||||
if ( sockfd == -1 )
|
if(sockfd == -1) {
|
||||||
{
|
|
||||||
perror("open");
|
perror("open");
|
||||||
exit (1);
|
exit (1);
|
||||||
}
|
}
|
||||||
@@ -408,7 +416,7 @@ static int init_fifo (GlobalInfo *g)
|
|||||||
fprintf(MSG_OUT, "Now, pipe some URL's into > %s\n", fifo);
|
fprintf(MSG_OUT, "Now, pipe some URL's into > %s\n", fifo);
|
||||||
ev_io_init(&g->fifo_event, fifo_cb, sockfd, EV_READ);
|
ev_io_init(&g->fifo_event, fifo_cb, sockfd, EV_READ);
|
||||||
ev_io_start(g->loop, &g->fifo_event);
|
ev_io_start(g->loop, &g->fifo_event);
|
||||||
return(0);
|
return (0);
|
||||||
}
|
}
|
||||||
|
|
||||||
int main(int argc, char **argv)
|
int main(int argc, char **argv)
|
||||||
|
|||||||
@@ -5,11 +5,11 @@
|
|||||||
* | (__| |_| | _ <| |___
|
* | (__| |_| | _ <| |___
|
||||||
* \___|\___/|_| \_\_____|
|
* \___|\___/|_| \_\_____|
|
||||||
*
|
*
|
||||||
* Copyright (C) 1998 - 2012, Daniel Stenberg, <daniel@haxx.se>, et al.
|
* Copyright (C) 1998 - 2016, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
*
|
*
|
||||||
* This software is licensed as described in the file COPYING, which
|
* This software is licensed as described in the file COPYING, which
|
||||||
* you should have received as part of this distribution. The terms
|
* you should have received as part of this distribution. The terms
|
||||||
* are also available at http://curl.haxx.se/docs/copyright.html.
|
* are also available at https://curl.haxx.se/docs/copyright.html.
|
||||||
*
|
*
|
||||||
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
||||||
* copies of the Software, and permit persons to whom the Software is
|
* copies of the Software, and permit persons to whom the Software is
|
||||||
@@ -19,9 +19,10 @@
|
|||||||
* KIND, either express or implied.
|
* KIND, either express or implied.
|
||||||
*
|
*
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
/*
|
/* <DESC>
|
||||||
* This is an example demonstrating how an application can pass in a custom
|
* An example demonstrating how an application can pass in a custom
|
||||||
* socket to libcurl to use. This example also handles the connect itself.
|
* socket to libcurl to use. This example also handles the connect itself.
|
||||||
|
* </DESC>
|
||||||
*/
|
*/
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
@@ -38,7 +39,7 @@
|
|||||||
#include <sys/socket.h> /* socket definitions */
|
#include <sys/socket.h> /* socket definitions */
|
||||||
#include <netinet/in.h>
|
#include <netinet/in.h>
|
||||||
#include <arpa/inet.h> /* inet (3) funtions */
|
#include <arpa/inet.h> /* inet (3) funtions */
|
||||||
#include <unistd.h> /* misc. UNIX functions */
|
#include <unistd.h> /* misc. Unix functions */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
@@ -53,7 +54,7 @@
|
|||||||
|
|
||||||
static size_t write_data(void *ptr, size_t size, size_t nmemb, void *stream)
|
static size_t write_data(void *ptr, size_t size, size_t nmemb, void *stream)
|
||||||
{
|
{
|
||||||
int written = fwrite(ptr, size, nmemb, (FILE *)stream);
|
size_t written = fwrite(ptr, size, nmemb, (FILE *)stream);
|
||||||
return written;
|
return written;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -91,7 +92,7 @@ int main(void)
|
|||||||
WSADATA wsaData;
|
WSADATA wsaData;
|
||||||
int initwsa;
|
int initwsa;
|
||||||
|
|
||||||
if((initwsa = WSAStartup(MAKEWORD(2,0), &wsaData)) != 0) {
|
if((initwsa = WSAStartup(MAKEWORD(2, 0), &wsaData)) != 0) {
|
||||||
printf("WSAStartup failed: %d\n", initwsa);
|
printf("WSAStartup failed: %d\n", initwsa);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
@@ -106,7 +107,7 @@ int main(void)
|
|||||||
curl_easy_setopt(curl, CURLOPT_URL, "http://99.99.99.99:9999");
|
curl_easy_setopt(curl, CURLOPT_URL, "http://99.99.99.99:9999");
|
||||||
|
|
||||||
/* Create the socket "manually" */
|
/* Create the socket "manually" */
|
||||||
if( (sockfd = socket(AF_INET, SOCK_STREAM, 0)) == CURL_SOCKET_BAD ) {
|
if((sockfd = socket(AF_INET, SOCK_STREAM, 0)) == CURL_SOCKET_BAD ) {
|
||||||
printf("Error creating listening socket.\n");
|
printf("Error creating listening socket.\n");
|
||||||
return 3;
|
return 3;
|
||||||
}
|
}
|
||||||
@@ -115,10 +116,10 @@ int main(void)
|
|||||||
servaddr.sin_family = AF_INET;
|
servaddr.sin_family = AF_INET;
|
||||||
servaddr.sin_port = htons(PORTNUM);
|
servaddr.sin_port = htons(PORTNUM);
|
||||||
|
|
||||||
if (INADDR_NONE == (servaddr.sin_addr.s_addr = inet_addr(IPADDR)))
|
if(INADDR_NONE == (servaddr.sin_addr.s_addr = inet_addr(IPADDR)))
|
||||||
return 2;
|
return 2;
|
||||||
|
|
||||||
if(connect(sockfd,(struct sockaddr *) &servaddr, sizeof(servaddr)) ==
|
if(connect(sockfd, (struct sockaddr *) &servaddr, sizeof(servaddr)) ==
|
||||||
-1) {
|
-1) {
|
||||||
close(sockfd);
|
close(sockfd);
|
||||||
printf("client error: connect: %s\n", strerror(errno));
|
printf("client error: connect: %s\n", strerror(errno));
|
||||||
|
|||||||
@@ -5,11 +5,11 @@
|
|||||||
* | (__| |_| | _ <| |___
|
* | (__| |_| | _ <| |___
|
||||||
* \___|\___/|_| \_\_____|
|
* \___|\___/|_| \_\_____|
|
||||||
*
|
*
|
||||||
* Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al.
|
* Copyright (C) 1998 - 2015, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
*
|
*
|
||||||
* This software is licensed as described in the file COPYING, which
|
* This software is licensed as described in the file COPYING, which
|
||||||
* you should have received as part of this distribution. The terms
|
* you should have received as part of this distribution. The terms
|
||||||
* are also available at http://curl.haxx.se/docs/copyright.html.
|
* are also available at https://curl.haxx.se/docs/copyright.html.
|
||||||
*
|
*
|
||||||
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
||||||
* copies of the Software, and permit persons to whom the Software is
|
* copies of the Software, and permit persons to whom the Software is
|
||||||
@@ -19,6 +19,10 @@
|
|||||||
* KIND, either express or implied.
|
* KIND, either express or implied.
|
||||||
*
|
*
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
/* <DESC>
|
||||||
|
* Upload to a file:// URL
|
||||||
|
* </DESC>
|
||||||
|
*/
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <curl/curl.h>
|
#include <curl/curl.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
|
|||||||
@@ -42,6 +42,10 @@
|
|||||||
*
|
*
|
||||||
* This example requires libcurl 7.9.7 or later.
|
* This example requires libcurl 7.9.7 or later.
|
||||||
*/
|
*/
|
||||||
|
/* <DESC>
|
||||||
|
* implements an fopen() abstraction allowing reading from URLs
|
||||||
|
* </DESC>
|
||||||
|
*/
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
@@ -76,7 +80,7 @@ struct fcurl_data
|
|||||||
typedef struct fcurl_data URL_FILE;
|
typedef struct fcurl_data URL_FILE;
|
||||||
|
|
||||||
/* exported functions */
|
/* exported functions */
|
||||||
URL_FILE *url_fopen(const char *url,const char *operation);
|
URL_FILE *url_fopen(const char *url, const char *operation);
|
||||||
int url_fclose(URL_FILE *file);
|
int url_fclose(URL_FILE *file);
|
||||||
int url_feof(URL_FILE *file);
|
int url_feof(URL_FILE *file);
|
||||||
size_t url_fread(void *ptr, size_t size, size_t nmemb, URL_FILE *file);
|
size_t url_fread(void *ptr, size_t size, size_t nmemb, URL_FILE *file);
|
||||||
@@ -102,13 +106,13 @@ static size_t write_callback(char *buffer,
|
|||||||
|
|
||||||
if(size > rembuff) {
|
if(size > rembuff) {
|
||||||
/* not enough space in buffer */
|
/* not enough space in buffer */
|
||||||
newbuff=realloc(url->buffer,url->buffer_len + (size - rembuff));
|
newbuff=realloc(url->buffer, url->buffer_len + (size - rembuff));
|
||||||
if(newbuff==NULL) {
|
if(newbuff==NULL) {
|
||||||
fprintf(stderr,"callback buffer grow failed\n");
|
fprintf(stderr, "callback buffer grow failed\n");
|
||||||
size=rembuff;
|
size=rembuff;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
/* realloc suceeded increase buffer size*/
|
/* realloc succeeded increase buffer size*/
|
||||||
url->buffer_len+=size - rembuff;
|
url->buffer_len+=size - rembuff;
|
||||||
url->buffer=newbuff;
|
url->buffer=newbuff;
|
||||||
}
|
}
|
||||||
@@ -128,9 +132,10 @@ static int fill_buffer(URL_FILE *file, size_t want)
|
|||||||
fd_set fdexcep;
|
fd_set fdexcep;
|
||||||
struct timeval timeout;
|
struct timeval timeout;
|
||||||
int rc;
|
int rc;
|
||||||
|
CURLMcode mc; /* curl_multi_fdset() return code */
|
||||||
|
|
||||||
/* only attempt to fill buffer if transactions still running and buffer
|
/* only attempt to fill buffer if transactions still running and buffer
|
||||||
* doesnt exceed required size already
|
* doesn't exceed required size already
|
||||||
*/
|
*/
|
||||||
if((!file->still_running) || (file->buffer_pos > want))
|
if((!file->still_running) || (file->buffer_pos > want))
|
||||||
return 0;
|
return 0;
|
||||||
@@ -158,15 +163,34 @@ static int fill_buffer(URL_FILE *file, size_t want)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* get file descriptors from the transfers */
|
/* get file descriptors from the transfers */
|
||||||
curl_multi_fdset(multi_handle, &fdread, &fdwrite, &fdexcep, &maxfd);
|
mc = curl_multi_fdset(multi_handle, &fdread, &fdwrite, &fdexcep, &maxfd);
|
||||||
|
|
||||||
/* In a real-world program you OF COURSE check the return code of the
|
if(mc != CURLM_OK) {
|
||||||
function calls. On success, the value of maxfd is guaranteed to be
|
fprintf(stderr, "curl_multi_fdset() failed, code %d.\n", mc);
|
||||||
greater or equal than -1. We call select(maxfd + 1, ...), specially
|
break;
|
||||||
in case of (maxfd == -1), we call select(0, ...), which is basically
|
}
|
||||||
equal to sleep. */
|
|
||||||
|
|
||||||
rc = select(maxfd+1, &fdread, &fdwrite, &fdexcep, &timeout);
|
/* On success the value of maxfd is guaranteed to be >= -1. We call
|
||||||
|
select(maxfd + 1, ...); specially in case of (maxfd == -1) there are
|
||||||
|
no fds ready yet so we call select(0, ...) --or Sleep() on Windows--
|
||||||
|
to sleep 100ms, which is the minimum suggested value in the
|
||||||
|
curl_multi_fdset() doc. */
|
||||||
|
|
||||||
|
if(maxfd == -1) {
|
||||||
|
#ifdef _WIN32
|
||||||
|
Sleep(100);
|
||||||
|
rc = 0;
|
||||||
|
#else
|
||||||
|
/* Portable sleep for platforms other than Windows. */
|
||||||
|
struct timeval wait = { 0, 100 * 1000 }; /* 100ms */
|
||||||
|
rc = select(0, NULL, NULL, NULL, &wait);
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
/* Note that on some platforms 'timeout' may be modified by select().
|
||||||
|
If you need access to the original value save a copy beforehand. */
|
||||||
|
rc = select(maxfd+1, &fdread, &fdwrite, &fdexcep, &timeout);
|
||||||
|
}
|
||||||
|
|
||||||
switch(rc) {
|
switch(rc) {
|
||||||
case -1:
|
case -1:
|
||||||
@@ -184,14 +208,12 @@ static int fill_buffer(URL_FILE *file, size_t want)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* use to remove want bytes from the front of a files buffer */
|
/* use to remove want bytes from the front of a files buffer */
|
||||||
static int use_buffer(URL_FILE *file,int want)
|
static int use_buffer(URL_FILE *file, size_t want)
|
||||||
{
|
{
|
||||||
/* sort out buffer */
|
/* sort out buffer */
|
||||||
if((file->buffer_pos - want) <=0) {
|
if((file->buffer_pos - want) <=0) {
|
||||||
/* ditch buffer - write will recreate */
|
/* ditch buffer - write will recreate */
|
||||||
if(file->buffer)
|
free(file->buffer);
|
||||||
free(file->buffer);
|
|
||||||
|
|
||||||
file->buffer=NULL;
|
file->buffer=NULL;
|
||||||
file->buffer_pos=0;
|
file->buffer_pos=0;
|
||||||
file->buffer_len=0;
|
file->buffer_len=0;
|
||||||
@@ -207,10 +229,10 @@ static int use_buffer(URL_FILE *file,int want)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
URL_FILE *url_fopen(const char *url,const char *operation)
|
URL_FILE *url_fopen(const char *url, const char *operation)
|
||||||
{
|
{
|
||||||
/* this code could check for URLs or types in the 'url' and
|
/* this code could check for URLs or types in the 'url' and
|
||||||
basicly use the real fopen() for standard files */
|
basically use the real fopen() for standard files */
|
||||||
|
|
||||||
URL_FILE *file;
|
URL_FILE *file;
|
||||||
(void)operation;
|
(void)operation;
|
||||||
@@ -221,7 +243,7 @@ URL_FILE *url_fopen(const char *url,const char *operation)
|
|||||||
|
|
||||||
memset(file, 0, sizeof(URL_FILE));
|
memset(file, 0, sizeof(URL_FILE));
|
||||||
|
|
||||||
if((file->handle.file=fopen(url,operation)))
|
if((file->handle.file=fopen(url, operation)))
|
||||||
file->type = CFTYPE_FILE; /* marked as URL */
|
file->type = CFTYPE_FILE; /* marked as URL */
|
||||||
|
|
||||||
else {
|
else {
|
||||||
@@ -281,9 +303,7 @@ int url_fclose(URL_FILE *file)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(file->buffer)
|
free(file->buffer);/* free any allocated buffer space */
|
||||||
free(file->buffer);/* free any allocated buffer space */
|
|
||||||
|
|
||||||
free(file);
|
free(file);
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
@@ -317,13 +337,13 @@ size_t url_fread(void *ptr, size_t size, size_t nmemb, URL_FILE *file)
|
|||||||
|
|
||||||
switch(file->type) {
|
switch(file->type) {
|
||||||
case CFTYPE_FILE:
|
case CFTYPE_FILE:
|
||||||
want=fread(ptr,size,nmemb,file->handle.file);
|
want=fread(ptr, size, nmemb, file->handle.file);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case CFTYPE_CURL:
|
case CFTYPE_CURL:
|
||||||
want = nmemb * size;
|
want = nmemb * size;
|
||||||
|
|
||||||
fill_buffer(file,want);
|
fill_buffer(file, want);
|
||||||
|
|
||||||
/* check if theres data in the buffer - if not fill_buffer()
|
/* check if theres data in the buffer - if not fill_buffer()
|
||||||
* either errored or EOF */
|
* either errored or EOF */
|
||||||
@@ -337,7 +357,7 @@ size_t url_fread(void *ptr, size_t size, size_t nmemb, URL_FILE *file)
|
|||||||
/* xfer data to caller */
|
/* xfer data to caller */
|
||||||
memcpy(ptr, file->buffer, want);
|
memcpy(ptr, file->buffer, want);
|
||||||
|
|
||||||
use_buffer(file,want);
|
use_buffer(file, want);
|
||||||
|
|
||||||
want = want / size; /* number of items */
|
want = want / size; /* number of items */
|
||||||
break;
|
break;
|
||||||
@@ -358,11 +378,11 @@ char *url_fgets(char *ptr, size_t size, URL_FILE *file)
|
|||||||
|
|
||||||
switch(file->type) {
|
switch(file->type) {
|
||||||
case CFTYPE_FILE:
|
case CFTYPE_FILE:
|
||||||
ptr = fgets(ptr,size,file->handle.file);
|
ptr = fgets(ptr, (int)size, file->handle.file);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case CFTYPE_CURL:
|
case CFTYPE_CURL:
|
||||||
fill_buffer(file,want);
|
fill_buffer(file, want);
|
||||||
|
|
||||||
/* check if theres data in the buffer - if not fill either errored or
|
/* check if theres data in the buffer - if not fill either errored or
|
||||||
* EOF */
|
* EOF */
|
||||||
@@ -386,7 +406,7 @@ char *url_fgets(char *ptr, size_t size, URL_FILE *file)
|
|||||||
memcpy(ptr, file->buffer, want);
|
memcpy(ptr, file->buffer, want);
|
||||||
ptr[want]=0;/* allways null terminate */
|
ptr[want]=0;/* allways null terminate */
|
||||||
|
|
||||||
use_buffer(file,want);
|
use_buffer(file, want);
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@@ -414,9 +434,7 @@ void url_rewind(URL_FILE *file)
|
|||||||
curl_multi_add_handle(multi_handle, file->handle.curl);
|
curl_multi_add_handle(multi_handle, file->handle.curl);
|
||||||
|
|
||||||
/* ditch buffer - write will recreate - resets stream pos*/
|
/* ditch buffer - write will recreate - resets stream pos*/
|
||||||
if(file->buffer)
|
free(file->buffer);
|
||||||
free(file->buffer);
|
|
||||||
|
|
||||||
file->buffer=NULL;
|
file->buffer=NULL;
|
||||||
file->buffer_pos=0;
|
file->buffer_pos=0;
|
||||||
file->buffer_len=0;
|
file->buffer_len=0;
|
||||||
@@ -428,6 +446,10 @@ void url_rewind(URL_FILE *file)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#define FGETSFILE "fgets.test"
|
||||||
|
#define FREADFILE "fread.test"
|
||||||
|
#define REWINDFILE "rewind.test"
|
||||||
|
|
||||||
/* Small main program to retrive from a url using fgets and fread saving the
|
/* Small main program to retrive from a url using fgets and fread saving the
|
||||||
* output to two test files (note the fgets method will corrupt binary files if
|
* output to two test files (note the fgets method will corrupt binary files if
|
||||||
* they contain 0 chars */
|
* they contain 0 chars */
|
||||||
@@ -436,7 +458,7 @@ int main(int argc, char *argv[])
|
|||||||
URL_FILE *handle;
|
URL_FILE *handle;
|
||||||
FILE *outf;
|
FILE *outf;
|
||||||
|
|
||||||
int nread;
|
size_t nread;
|
||||||
char buffer[256];
|
char buffer[256];
|
||||||
const char *url;
|
const char *url;
|
||||||
|
|
||||||
@@ -446,7 +468,7 @@ int main(int argc, char *argv[])
|
|||||||
url=argv[1];/* use passed url */
|
url=argv[1];/* use passed url */
|
||||||
|
|
||||||
/* copy from url line by line with fgets */
|
/* copy from url line by line with fgets */
|
||||||
outf=fopen("fgets.test","w+");
|
outf=fopen(FGETSFILE, "wb+");
|
||||||
if(!outf) {
|
if(!outf) {
|
||||||
perror("couldn't open fgets output file\n");
|
perror("couldn't open fgets output file\n");
|
||||||
return 1;
|
return 1;
|
||||||
@@ -460,8 +482,8 @@ int main(int argc, char *argv[])
|
|||||||
}
|
}
|
||||||
|
|
||||||
while(!url_feof(handle)) {
|
while(!url_feof(handle)) {
|
||||||
url_fgets(buffer,sizeof(buffer),handle);
|
url_fgets(buffer, sizeof(buffer), handle);
|
||||||
fwrite(buffer,1,strlen(buffer),outf);
|
fwrite(buffer, 1, strlen(buffer), outf);
|
||||||
}
|
}
|
||||||
|
|
||||||
url_fclose(handle);
|
url_fclose(handle);
|
||||||
@@ -470,7 +492,7 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
|
|
||||||
/* Copy from url with fread */
|
/* Copy from url with fread */
|
||||||
outf=fopen("fread.test","w+");
|
outf=fopen(FREADFILE, "wb+");
|
||||||
if(!outf) {
|
if(!outf) {
|
||||||
perror("couldn't open fread output file\n");
|
perror("couldn't open fread output file\n");
|
||||||
return 1;
|
return 1;
|
||||||
@@ -484,8 +506,8 @@ int main(int argc, char *argv[])
|
|||||||
}
|
}
|
||||||
|
|
||||||
do {
|
do {
|
||||||
nread = url_fread(buffer, 1,sizeof(buffer), handle);
|
nread = url_fread(buffer, 1, sizeof(buffer), handle);
|
||||||
fwrite(buffer,1,nread,outf);
|
fwrite(buffer, 1, nread, outf);
|
||||||
} while(nread);
|
} while(nread);
|
||||||
|
|
||||||
url_fclose(handle);
|
url_fclose(handle);
|
||||||
@@ -494,7 +516,7 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
|
|
||||||
/* Test rewind */
|
/* Test rewind */
|
||||||
outf=fopen("rewind.test","w+");
|
outf=fopen(REWINDFILE, "wb+");
|
||||||
if(!outf) {
|
if(!outf) {
|
||||||
perror("couldn't open fread output file\n");
|
perror("couldn't open fread output file\n");
|
||||||
return 1;
|
return 1;
|
||||||
@@ -507,21 +529,19 @@ int main(int argc, char *argv[])
|
|||||||
return 2;
|
return 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
nread = url_fread(buffer, 1,sizeof(buffer), handle);
|
nread = url_fread(buffer, 1, sizeof(buffer), handle);
|
||||||
fwrite(buffer,1,nread,outf);
|
fwrite(buffer, 1, nread, outf);
|
||||||
url_rewind(handle);
|
url_rewind(handle);
|
||||||
|
|
||||||
buffer[0]='\n';
|
buffer[0]='\n';
|
||||||
fwrite(buffer,1,1,outf);
|
fwrite(buffer, 1, 1, outf);
|
||||||
|
|
||||||
nread = url_fread(buffer, 1,sizeof(buffer), handle);
|
|
||||||
fwrite(buffer,1,nread,outf);
|
|
||||||
|
|
||||||
|
nread = url_fread(buffer, 1, sizeof(buffer), handle);
|
||||||
|
fwrite(buffer, 1, nread, outf);
|
||||||
|
|
||||||
url_fclose(handle);
|
url_fclose(handle);
|
||||||
|
|
||||||
fclose(outf);
|
fclose(outf);
|
||||||
|
|
||||||
|
|
||||||
return 0;/* all done */
|
return 0;/* all done */
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,11 +5,11 @@
|
|||||||
* | (__| |_| | _ <| |___
|
* | (__| |_| | _ <| |___
|
||||||
* \___|\___/|_| \_\_____|
|
* \___|\___/|_| \_\_____|
|
||||||
*
|
*
|
||||||
* Copyright (C) 1998 - 2012, Daniel Stenberg, <daniel@haxx.se>, et al.
|
* Copyright (C) 1998 - 2016, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
*
|
*
|
||||||
* This software is licensed as described in the file COPYING, which
|
* This software is licensed as described in the file COPYING, which
|
||||||
* you should have received as part of this distribution. The terms
|
* you should have received as part of this distribution. The terms
|
||||||
* are also available at http://curl.haxx.se/docs/copyright.html.
|
* are also available at https://curl.haxx.se/docs/copyright.html.
|
||||||
*
|
*
|
||||||
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
||||||
* copies of the Software, and permit persons to whom the Software is
|
* copies of the Software, and permit persons to whom the Software is
|
||||||
@@ -19,6 +19,10 @@
|
|||||||
* KIND, either express or implied.
|
* KIND, either express or implied.
|
||||||
*
|
*
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
/* <DESC>
|
||||||
|
* FTP wildcard pattern matching
|
||||||
|
* </DESC>
|
||||||
|
*/
|
||||||
#include <curl/curl.h>
|
#include <curl/curl.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
@@ -26,9 +30,9 @@ struct callback_data {
|
|||||||
FILE *output;
|
FILE *output;
|
||||||
};
|
};
|
||||||
|
|
||||||
static long file_is_comming(struct curl_fileinfo *finfo,
|
static long file_is_coming(struct curl_fileinfo *finfo,
|
||||||
struct callback_data *data,
|
struct callback_data *data,
|
||||||
int remains);
|
int remains);
|
||||||
|
|
||||||
static long file_is_downloaded(struct callback_data *data);
|
static long file_is_downloaded(struct callback_data *data);
|
||||||
|
|
||||||
@@ -61,7 +65,7 @@ int main(int argc, char **argv)
|
|||||||
curl_easy_setopt(handle, CURLOPT_WILDCARDMATCH, 1L);
|
curl_easy_setopt(handle, CURLOPT_WILDCARDMATCH, 1L);
|
||||||
|
|
||||||
/* callback is called before download of concrete file started */
|
/* callback is called before download of concrete file started */
|
||||||
curl_easy_setopt(handle, CURLOPT_CHUNK_BGN_FUNCTION, file_is_comming);
|
curl_easy_setopt(handle, CURLOPT_CHUNK_BGN_FUNCTION, file_is_coming);
|
||||||
|
|
||||||
/* callback is called after data from the file have been transferred */
|
/* callback is called after data from the file have been transferred */
|
||||||
curl_easy_setopt(handle, CURLOPT_CHUNK_END_FUNCTION, file_is_downloaded);
|
curl_easy_setopt(handle, CURLOPT_CHUNK_END_FUNCTION, file_is_downloaded);
|
||||||
@@ -89,9 +93,9 @@ int main(int argc, char **argv)
|
|||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
|
||||||
static long file_is_comming(struct curl_fileinfo *finfo,
|
static long file_is_coming(struct curl_fileinfo *finfo,
|
||||||
struct callback_data *data,
|
struct callback_data *data,
|
||||||
int remains)
|
int remains)
|
||||||
{
|
{
|
||||||
printf("%3d %40s %10luB ", remains, finfo->filename,
|
printf("%3d %40s %10luB ", remains, finfo->filename,
|
||||||
(unsigned long)finfo->size);
|
(unsigned long)finfo->size);
|
||||||
@@ -115,7 +119,7 @@ static long file_is_comming(struct curl_fileinfo *finfo,
|
|||||||
return CURL_CHUNK_BGN_FUNC_SKIP;
|
return CURL_CHUNK_BGN_FUNC_SKIP;
|
||||||
}
|
}
|
||||||
|
|
||||||
data->output = fopen(finfo->filename, "w");
|
data->output = fopen(finfo->filename, "wb");
|
||||||
if(!data->output) {
|
if(!data->output) {
|
||||||
return CURL_CHUNK_BGN_FUNC_FAIL;
|
return CURL_CHUNK_BGN_FUNC_FAIL;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,11 +5,11 @@
|
|||||||
* | (__| |_| | _ <| |___
|
* | (__| |_| | _ <| |___
|
||||||
* \___|\___/|_| \_\_____|
|
* \___|\___/|_| \_\_____|
|
||||||
*
|
*
|
||||||
* Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al.
|
* Copyright (C) 1998 - 2016, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
*
|
*
|
||||||
* This software is licensed as described in the file COPYING, which
|
* This software is licensed as described in the file COPYING, which
|
||||||
* you should have received as part of this distribution. The terms
|
* you should have received as part of this distribution. The terms
|
||||||
* are also available at http://curl.haxx.se/docs/copyright.html.
|
* are also available at https://curl.haxx.se/docs/copyright.html.
|
||||||
*
|
*
|
||||||
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
||||||
* copies of the Software, and permit persons to whom the Software is
|
* copies of the Software, and permit persons to whom the Software is
|
||||||
@@ -23,11 +23,9 @@
|
|||||||
|
|
||||||
#include <curl/curl.h>
|
#include <curl/curl.h>
|
||||||
|
|
||||||
/*
|
/* <DESC>
|
||||||
* This is an example showing how to get a single file from an FTP server.
|
* Get a single file from an FTP server.
|
||||||
* It delays the actual destination file creation until the first write
|
* </DESC>
|
||||||
* callback so that it won't create an empty file in case the remote file
|
|
||||||
* doesn't exist or something else fails.
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
struct FtpFile {
|
struct FtpFile {
|
||||||
@@ -53,7 +51,7 @@ int main(void)
|
|||||||
CURL *curl;
|
CURL *curl;
|
||||||
CURLcode res;
|
CURLcode res;
|
||||||
struct FtpFile ftpfile={
|
struct FtpFile ftpfile={
|
||||||
"curl.tar.gz", /* name to store the file as if succesful */
|
"curl.tar.gz", /* name to store the file as if successful */
|
||||||
NULL
|
NULL
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -65,7 +63,7 @@ int main(void)
|
|||||||
* You better replace the URL with one that works!
|
* You better replace the URL with one that works!
|
||||||
*/
|
*/
|
||||||
curl_easy_setopt(curl, CURLOPT_URL,
|
curl_easy_setopt(curl, CURLOPT_URL,
|
||||||
"ftp://ftp.example.com/pub/www/utilities/curl/curl-7.9.2.tar.gz");
|
"ftp://ftp.example.com/curl/curl-7.9.2.tar.gz");
|
||||||
/* Define our callback to get called when there's data to be written */
|
/* Define our callback to get called when there's data to be written */
|
||||||
curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, my_fwrite);
|
curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, my_fwrite);
|
||||||
/* Set a pointer to our struct to pass to the callback */
|
/* Set a pointer to our struct to pass to the callback */
|
||||||
|
|||||||
@@ -5,11 +5,11 @@
|
|||||||
* | (__| |_| | _ <| |___
|
* | (__| |_| | _ <| |___
|
||||||
* \___|\___/|_| \_\_____|
|
* \___|\___/|_| \_\_____|
|
||||||
*
|
*
|
||||||
* Copyright (C) 1998 - 2012, Daniel Stenberg, <daniel@haxx.se>, et al.
|
* Copyright (C) 1998 - 2016, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
*
|
*
|
||||||
* This software is licensed as described in the file COPYING, which
|
* This software is licensed as described in the file COPYING, which
|
||||||
* you should have received as part of this distribution. The terms
|
* you should have received as part of this distribution. The terms
|
||||||
* are also available at http://curl.haxx.se/docs/copyright.html.
|
* are also available at https://curl.haxx.se/docs/copyright.html.
|
||||||
*
|
*
|
||||||
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
||||||
* copies of the Software, and permit persons to whom the Software is
|
* copies of the Software, and permit persons to whom the Software is
|
||||||
@@ -24,9 +24,9 @@
|
|||||||
|
|
||||||
#include <curl/curl.h>
|
#include <curl/curl.h>
|
||||||
|
|
||||||
/*
|
/* <DESC>
|
||||||
* This is an example showing how to check a single file's size and mtime
|
* Checks a single file's size and mtime from an FTP server.
|
||||||
* from an FTP server.
|
* </DESC>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
static size_t throw_away(void *ptr, size_t size, size_t nmemb, void *data)
|
static size_t throw_away(void *ptr, size_t size, size_t nmemb, void *data)
|
||||||
@@ -65,16 +65,18 @@ int main(void)
|
|||||||
res = curl_easy_perform(curl);
|
res = curl_easy_perform(curl);
|
||||||
|
|
||||||
if(CURLE_OK == res) {
|
if(CURLE_OK == res) {
|
||||||
/* http://curl.haxx.se/libcurl/c/curl_easy_getinfo.html */
|
/* https://curl.haxx.se/libcurl/c/curl_easy_getinfo.html */
|
||||||
res = curl_easy_getinfo(curl, CURLINFO_FILETIME, &filetime);
|
res = curl_easy_getinfo(curl, CURLINFO_FILETIME, &filetime);
|
||||||
if((CURLE_OK == res) && (filetime >= 0)) {
|
if((CURLE_OK == res) && (filetime >= 0)) {
|
||||||
time_t file_time = (time_t)filetime;
|
time_t file_time = (time_t)filetime;
|
||||||
printf("filetime %s: %s", filename, ctime(&file_time));
|
printf("filetime %s: %s", filename, ctime(&file_time));
|
||||||
}
|
}
|
||||||
res = curl_easy_getinfo(curl, CURLINFO_CONTENT_LENGTH_DOWNLOAD, &filesize);
|
res = curl_easy_getinfo(curl, CURLINFO_CONTENT_LENGTH_DOWNLOAD,
|
||||||
|
&filesize);
|
||||||
if((CURLE_OK == res) && (filesize>0.0))
|
if((CURLE_OK == res) && (filesize>0.0))
|
||||||
printf("filesize %s: %0.0f bytes\n", filename, filesize);
|
printf("filesize %s: %0.0f bytes\n", filename, filesize);
|
||||||
} else {
|
}
|
||||||
|
else {
|
||||||
/* we failed */
|
/* we failed */
|
||||||
fprintf(stderr, "curl told us %d\n", res);
|
fprintf(stderr, "curl told us %d\n", res);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,11 +5,11 @@
|
|||||||
* | (__| |_| | _ <| |___
|
* | (__| |_| | _ <| |___
|
||||||
* \___|\___/|_| \_\_____|
|
* \___|\___/|_| \_\_____|
|
||||||
*
|
*
|
||||||
* Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al.
|
* Copyright (C) 1998 - 2016, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
*
|
*
|
||||||
* This software is licensed as described in the file COPYING, which
|
* This software is licensed as described in the file COPYING, which
|
||||||
* you should have received as part of this distribution. The terms
|
* you should have received as part of this distribution. The terms
|
||||||
* are also available at http://curl.haxx.se/docs/copyright.html.
|
* are also available at https://curl.haxx.se/docs/copyright.html.
|
||||||
*
|
*
|
||||||
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
||||||
* copies of the Software, and permit persons to whom the Software is
|
* copies of the Software, and permit persons to whom the Software is
|
||||||
@@ -23,13 +23,11 @@
|
|||||||
|
|
||||||
#include <curl/curl.h>
|
#include <curl/curl.h>
|
||||||
|
|
||||||
/*
|
/* <DESC>
|
||||||
* Similar to ftpget.c but this also stores the received response-lines
|
* Similar to ftpget.c but also stores the received response-lines
|
||||||
* in a separate file using our own callback!
|
* in a separate file using our own callback!
|
||||||
*
|
* </DESC>
|
||||||
* This functionality was introduced in libcurl 7.9.3.
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
static size_t
|
static size_t
|
||||||
write_response(void *ptr, size_t size, size_t nmemb, void *data)
|
write_response(void *ptr, size_t size, size_t nmemb, void *data)
|
||||||
{
|
{
|
||||||
@@ -37,6 +35,9 @@ write_response(void *ptr, size_t size, size_t nmemb, void *data)
|
|||||||
return fwrite(ptr, size, nmemb, writehere);
|
return fwrite(ptr, size, nmemb, writehere);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#define FTPBODY "ftp-list"
|
||||||
|
#define FTPHEADERS "ftp-responses"
|
||||||
|
|
||||||
int main(void)
|
int main(void)
|
||||||
{
|
{
|
||||||
CURL *curl;
|
CURL *curl;
|
||||||
@@ -45,10 +46,10 @@ int main(void)
|
|||||||
FILE *respfile;
|
FILE *respfile;
|
||||||
|
|
||||||
/* local file name to store the file as */
|
/* local file name to store the file as */
|
||||||
ftpfile = fopen("ftp-list", "wb"); /* b is binary, needed on win32 */
|
ftpfile = fopen(FTPBODY, "wb"); /* b is binary, needed on win32 */
|
||||||
|
|
||||||
/* local file name to store the FTP server's response lines in */
|
/* local file name to store the FTP server's response lines in */
|
||||||
respfile = fopen("ftp-responses", "wb"); /* b is binary, needed on win32 */
|
respfile = fopen(FTPHEADERS, "wb"); /* b is binary, needed on win32 */
|
||||||
|
|
||||||
curl = curl_easy_init();
|
curl = curl_easy_init();
|
||||||
if(curl) {
|
if(curl) {
|
||||||
@@ -58,7 +59,7 @@ int main(void)
|
|||||||
/* If you intend to use this on windows with a libcurl DLL, you must use
|
/* If you intend to use this on windows with a libcurl DLL, you must use
|
||||||
CURLOPT_WRITEFUNCTION as well */
|
CURLOPT_WRITEFUNCTION as well */
|
||||||
curl_easy_setopt(curl, CURLOPT_HEADERFUNCTION, write_response);
|
curl_easy_setopt(curl, CURLOPT_HEADERFUNCTION, write_response);
|
||||||
curl_easy_setopt(curl, CURLOPT_WRITEHEADER, respfile);
|
curl_easy_setopt(curl, CURLOPT_HEADERDATA, respfile);
|
||||||
res = curl_easy_perform(curl);
|
res = curl_easy_perform(curl);
|
||||||
/* Check for errors */
|
/* Check for errors */
|
||||||
if(res != CURLE_OK)
|
if(res != CURLE_OK)
|
||||||
|
|||||||
@@ -5,11 +5,11 @@
|
|||||||
* | (__| |_| | _ <| |___
|
* | (__| |_| | _ <| |___
|
||||||
* \___|\___/|_| \_\_____|
|
* \___|\___/|_| \_\_____|
|
||||||
*
|
*
|
||||||
* Copyright (C) 1998 - 2012, Daniel Stenberg, <daniel@haxx.se>, et al.
|
* Copyright (C) 1998 - 2015, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
*
|
*
|
||||||
* This software is licensed as described in the file COPYING, which
|
* This software is licensed as described in the file COPYING, which
|
||||||
* you should have received as part of this distribution. The terms
|
* you should have received as part of this distribution. The terms
|
||||||
* are also available at http://curl.haxx.se/docs/copyright.html.
|
* are also available at https://curl.haxx.se/docs/copyright.html.
|
||||||
*
|
*
|
||||||
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
||||||
* copies of the Software, and permit persons to whom the Software is
|
* copies of the Software, and permit persons to whom the Software is
|
||||||
@@ -24,11 +24,9 @@
|
|||||||
|
|
||||||
#include <curl/curl.h>
|
#include <curl/curl.h>
|
||||||
|
|
||||||
/*
|
/* <DESC>
|
||||||
* This is an example showing how to get a single file from an FTPS server.
|
* Get a single file from an FTPS server.
|
||||||
* It delays the actual destination file creation until the first write
|
* </DESC>
|
||||||
* callback so that it won't create an empty file in case the remote file
|
|
||||||
* doesn't exist or something else fails.
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
struct FtpFile {
|
struct FtpFile {
|
||||||
@@ -55,7 +53,7 @@ int main(void)
|
|||||||
CURL *curl;
|
CURL *curl;
|
||||||
CURLcode res;
|
CURLcode res;
|
||||||
struct FtpFile ftpfile={
|
struct FtpFile ftpfile={
|
||||||
"yourfile.bin", /* name to store the file as if succesful */
|
"yourfile.bin", /* name to store the file as if successful */
|
||||||
NULL
|
NULL
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -5,11 +5,11 @@
|
|||||||
* | (__| |_| | _ <| |___
|
* | (__| |_| | _ <| |___
|
||||||
* \___|\___/|_| \_\_____|
|
* \___|\___/|_| \_\_____|
|
||||||
*
|
*
|
||||||
* Copyright (C) 1998 - 2012, Daniel Stenberg, <daniel@haxx.se>, et al.
|
* Copyright (C) 1998 - 2016, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
*
|
*
|
||||||
* This software is licensed as described in the file COPYING, which
|
* This software is licensed as described in the file COPYING, which
|
||||||
* you should have received as part of this distribution. The terms
|
* you should have received as part of this distribution. The terms
|
||||||
* are also available at http://curl.haxx.se/docs/copyright.html.
|
* are also available at https://curl.haxx.se/docs/copyright.html.
|
||||||
*
|
*
|
||||||
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
||||||
* copies of the Software, and permit persons to whom the Software is
|
* copies of the Software, and permit persons to whom the Software is
|
||||||
@@ -33,11 +33,10 @@
|
|||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
/* <DESC>
|
||||||
* This example shows an FTP upload, with a rename of the file just after
|
* Performs an FTP upload and renames the file just after a successful
|
||||||
* a successful upload.
|
* transfer.
|
||||||
*
|
* </DESC>
|
||||||
* Example based on source code provided by Erick Nuwendam. Thanks!
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define LOCAL_FILE "/tmp/uploadthis.txt"
|
#define LOCAL_FILE "/tmp/uploadthis.txt"
|
||||||
@@ -105,7 +104,7 @@ int main(void)
|
|||||||
curl_easy_setopt(curl, CURLOPT_UPLOAD, 1L);
|
curl_easy_setopt(curl, CURLOPT_UPLOAD, 1L);
|
||||||
|
|
||||||
/* specify target */
|
/* specify target */
|
||||||
curl_easy_setopt(curl,CURLOPT_URL, REMOTE_URL);
|
curl_easy_setopt(curl, CURLOPT_URL, REMOTE_URL);
|
||||||
|
|
||||||
/* pass in that last of FTP commands to run after the transfer */
|
/* pass in that last of FTP commands to run after the transfer */
|
||||||
curl_easy_setopt(curl, CURLOPT_POSTQUOTE, headerlist);
|
curl_easy_setopt(curl, CURLOPT_POSTQUOTE, headerlist);
|
||||||
|
|||||||
@@ -5,11 +5,11 @@
|
|||||||
* | (__| |_| | _ <| |___
|
* | (__| |_| | _ <| |___
|
||||||
* \___|\___/|_| \_\_____|
|
* \___|\___/|_| \_\_____|
|
||||||
*
|
*
|
||||||
* Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al.
|
* Copyright (C) 1998 - 2016, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
*
|
*
|
||||||
* This software is licensed as described in the file COPYING, which
|
* This software is licensed as described in the file COPYING, which
|
||||||
* you should have received as part of this distribution. The terms
|
* you should have received as part of this distribution. The terms
|
||||||
* are also available at http://curl.haxx.se/docs/copyright.html.
|
* are also available at https://curl.haxx.se/docs/copyright.html.
|
||||||
*
|
*
|
||||||
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
||||||
* copies of the Software, and permit persons to whom the Software is
|
* copies of the Software, and permit persons to whom the Software is
|
||||||
@@ -19,13 +19,9 @@
|
|||||||
* KIND, either express or implied.
|
* KIND, either express or implied.
|
||||||
*
|
*
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
/* Upload to FTP, resuming failed transfers
|
/* <DESC>
|
||||||
*
|
* Upload to FTP, resuming failed transfers.
|
||||||
* Compile for MinGW like this:
|
* </DESC>
|
||||||
* gcc -Wall -pedantic -std=c99 ftpuploadwithresume.c -o ftpuploadresume.exe
|
|
||||||
* -lcurl -lmsvcr70
|
|
||||||
*
|
|
||||||
* Written by Philip Bock
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
@@ -40,7 +36,8 @@
|
|||||||
/* The MinGW headers are missing a few Win32 function definitions,
|
/* The MinGW headers are missing a few Win32 function definitions,
|
||||||
you shouldn't need this if you use VC++ */
|
you shouldn't need this if you use VC++ */
|
||||||
#if defined(__MINGW32__) && !defined(__MINGW64__)
|
#if defined(__MINGW32__) && !defined(__MINGW64__)
|
||||||
int __cdecl _snscanf(const char * input, size_t length, const char * format, ...);
|
int __cdecl _snscanf(const char * input, size_t length,
|
||||||
|
const char * format, ...);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
@@ -53,7 +50,7 @@ size_t getcontentlengthfunc(void *ptr, size_t size, size_t nmemb, void *stream)
|
|||||||
/* _snscanf() is Win32 specific */
|
/* _snscanf() is Win32 specific */
|
||||||
r = _snscanf(ptr, size * nmemb, "Content-Length: %ld\n", &len);
|
r = _snscanf(ptr, size * nmemb, "Content-Length: %ld\n", &len);
|
||||||
|
|
||||||
if (r) /* Microsoft: we don't read the specs */
|
if(r) /* Microsoft: we don't read the specs */
|
||||||
*((long *) stream) = len;
|
*((long *) stream) = len;
|
||||||
|
|
||||||
return size * nmemb;
|
return size * nmemb;
|
||||||
@@ -71,7 +68,7 @@ size_t readfunc(void *ptr, size_t size, size_t nmemb, void *stream)
|
|||||||
FILE *f = stream;
|
FILE *f = stream;
|
||||||
size_t n;
|
size_t n;
|
||||||
|
|
||||||
if (ferror(f))
|
if(ferror(f))
|
||||||
return CURL_READFUNC_ABORT;
|
return CURL_READFUNC_ABORT;
|
||||||
|
|
||||||
n = fread(ptr, size, nmemb, f) * size;
|
n = fread(ptr, size, nmemb, f) * size;
|
||||||
@@ -89,7 +86,7 @@ int upload(CURL *curlhandle, const char * remotepath, const char * localpath,
|
|||||||
int c;
|
int c;
|
||||||
|
|
||||||
f = fopen(localpath, "rb");
|
f = fopen(localpath, "rb");
|
||||||
if (f == NULL) {
|
if(!f) {
|
||||||
perror(NULL);
|
perror(NULL);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
@@ -98,7 +95,7 @@ int upload(CURL *curlhandle, const char * remotepath, const char * localpath,
|
|||||||
|
|
||||||
curl_easy_setopt(curlhandle, CURLOPT_URL, remotepath);
|
curl_easy_setopt(curlhandle, CURLOPT_URL, remotepath);
|
||||||
|
|
||||||
if (timeout)
|
if(timeout)
|
||||||
curl_easy_setopt(curlhandle, CURLOPT_FTP_RESPONSE_TIMEOUT, timeout);
|
curl_easy_setopt(curlhandle, CURLOPT_FTP_RESPONSE_TIMEOUT, timeout);
|
||||||
|
|
||||||
curl_easy_setopt(curlhandle, CURLOPT_HEADERFUNCTION, getcontentlengthfunc);
|
curl_easy_setopt(curlhandle, CURLOPT_HEADERFUNCTION, getcontentlengthfunc);
|
||||||
@@ -109,14 +106,15 @@ int upload(CURL *curlhandle, const char * remotepath, const char * localpath,
|
|||||||
curl_easy_setopt(curlhandle, CURLOPT_READFUNCTION, readfunc);
|
curl_easy_setopt(curlhandle, CURLOPT_READFUNCTION, readfunc);
|
||||||
curl_easy_setopt(curlhandle, CURLOPT_READDATA, f);
|
curl_easy_setopt(curlhandle, CURLOPT_READDATA, f);
|
||||||
|
|
||||||
curl_easy_setopt(curlhandle, CURLOPT_FTPPORT, "-"); /* disable passive mode */
|
/* disable passive mode */
|
||||||
|
curl_easy_setopt(curlhandle, CURLOPT_FTPPORT, "-");
|
||||||
curl_easy_setopt(curlhandle, CURLOPT_FTP_CREATE_MISSING_DIRS, 1L);
|
curl_easy_setopt(curlhandle, CURLOPT_FTP_CREATE_MISSING_DIRS, 1L);
|
||||||
|
|
||||||
curl_easy_setopt(curlhandle, CURLOPT_VERBOSE, 1L);
|
curl_easy_setopt(curlhandle, CURLOPT_VERBOSE, 1L);
|
||||||
|
|
||||||
for (c = 0; (r != CURLE_OK) && (c < tries); c++) {
|
for(c = 0; (r != CURLE_OK) && (c < tries); c++) {
|
||||||
/* are we resuming? */
|
/* are we resuming? */
|
||||||
if (c) { /* yes */
|
if(c) { /* yes */
|
||||||
/* determine the length of the file already written */
|
/* determine the length of the file already written */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -131,7 +129,7 @@ int upload(CURL *curlhandle, const char * remotepath, const char * localpath,
|
|||||||
curl_easy_setopt(curlhandle, CURLOPT_HEADER, 1L);
|
curl_easy_setopt(curlhandle, CURLOPT_HEADER, 1L);
|
||||||
|
|
||||||
r = curl_easy_perform(curlhandle);
|
r = curl_easy_perform(curlhandle);
|
||||||
if (r != CURLE_OK)
|
if(r != CURLE_OK)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
curl_easy_setopt(curlhandle, CURLOPT_NOBODY, 0L);
|
curl_easy_setopt(curlhandle, CURLOPT_NOBODY, 0L);
|
||||||
@@ -150,7 +148,7 @@ int upload(CURL *curlhandle, const char * remotepath, const char * localpath,
|
|||||||
|
|
||||||
fclose(f);
|
fclose(f);
|
||||||
|
|
||||||
if (r == CURLE_OK)
|
if(r == CURLE_OK)
|
||||||
return 1;
|
return 1;
|
||||||
else {
|
else {
|
||||||
fprintf(stderr, "%s\n", curl_easy_strerror(r));
|
fprintf(stderr, "%s\n", curl_easy_strerror(r));
|
||||||
@@ -165,7 +163,8 @@ int main(int c, char **argv)
|
|||||||
curl_global_init(CURL_GLOBAL_ALL);
|
curl_global_init(CURL_GLOBAL_ALL);
|
||||||
curlhandle = curl_easy_init();
|
curlhandle = curl_easy_init();
|
||||||
|
|
||||||
upload(curlhandle, "ftp://user:pass@example.com/path/file", "C:\\file", 0, 3);
|
upload(curlhandle, "ftp://user:pass@example.com/path/file", "C:\\file",
|
||||||
|
0, 3);
|
||||||
|
|
||||||
curl_easy_cleanup(curlhandle);
|
curl_easy_cleanup(curlhandle);
|
||||||
curl_global_cleanup();
|
curl_global_cleanup();
|
||||||
|
|||||||
@@ -5,11 +5,11 @@
|
|||||||
* | (__| |_| | _ <| |___
|
* | (__| |_| | _ <| |___
|
||||||
* \___|\___/|_| \_\_____|
|
* \___|\___/|_| \_\_____|
|
||||||
*
|
*
|
||||||
* Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al.
|
* Copyright (C) 1998 - 2015, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
*
|
*
|
||||||
* This software is licensed as described in the file COPYING, which
|
* This software is licensed as described in the file COPYING, which
|
||||||
* you should have received as part of this distribution. The terms
|
* you should have received as part of this distribution. The terms
|
||||||
* are also available at http://curl.haxx.se/docs/copyright.html.
|
* are also available at https://curl.haxx.se/docs/copyright.html.
|
||||||
*
|
*
|
||||||
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
||||||
* copies of the Software, and permit persons to whom the Software is
|
* copies of the Software, and permit persons to whom the Software is
|
||||||
@@ -19,6 +19,10 @@
|
|||||||
* KIND, either express or implied.
|
* KIND, either express or implied.
|
||||||
*
|
*
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
/* <DESC>
|
||||||
|
* Use getinfo to get content-type after completed transfer.
|
||||||
|
* </DESC>
|
||||||
|
*/
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <curl/curl.h>
|
#include <curl/curl.h>
|
||||||
|
|
||||||
@@ -27,18 +31,14 @@ int main(void)
|
|||||||
CURL *curl;
|
CURL *curl;
|
||||||
CURLcode res;
|
CURLcode res;
|
||||||
|
|
||||||
/* http://curl.haxx.se/libcurl/c/curl_easy_init.html */
|
|
||||||
curl = curl_easy_init();
|
curl = curl_easy_init();
|
||||||
if(curl) {
|
if(curl) {
|
||||||
/* http://curl.haxx.se/libcurl/c/curl_easy_setopt.html#CURLOPTURL */
|
|
||||||
curl_easy_setopt(curl, CURLOPT_URL, "http://www.example.com/");
|
curl_easy_setopt(curl, CURLOPT_URL, "http://www.example.com/");
|
||||||
/* http://curl.haxx.se/libcurl/c/curl_easy_perform.html */
|
|
||||||
res = curl_easy_perform(curl);
|
res = curl_easy_perform(curl);
|
||||||
|
|
||||||
if(CURLE_OK == res) {
|
if(CURLE_OK == res) {
|
||||||
char *ct;
|
char *ct;
|
||||||
/* ask for the content-type */
|
/* ask for the content-type */
|
||||||
/* http://curl.haxx.se/libcurl/c/curl_easy_getinfo.html */
|
|
||||||
res = curl_easy_getinfo(curl, CURLINFO_CONTENT_TYPE, &ct);
|
res = curl_easy_getinfo(curl, CURLINFO_CONTENT_TYPE, &ct);
|
||||||
|
|
||||||
if((CURLE_OK == res) && ct)
|
if((CURLE_OK == res) && ct)
|
||||||
@@ -46,7 +46,6 @@ int main(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* always cleanup */
|
/* always cleanup */
|
||||||
/* http://curl.haxx.se/libcurl/c/curl_easy_cleanup.html */
|
|
||||||
curl_easy_cleanup(curl);
|
curl_easy_cleanup(curl);
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
|
|||||||
@@ -5,11 +5,11 @@
|
|||||||
* | (__| |_| | _ <| |___
|
* | (__| |_| | _ <| |___
|
||||||
* \___|\___/|_| \_\_____|
|
* \___|\___/|_| \_\_____|
|
||||||
*
|
*
|
||||||
* Copyright (C) 1998 - 2013, Daniel Stenberg, <daniel@haxx.se>, et al.
|
* Copyright (C) 1998 - 2015, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
*
|
*
|
||||||
* This software is licensed as described in the file COPYING, which
|
* This software is licensed as described in the file COPYING, which
|
||||||
* you should have received as part of this distribution. The terms
|
* you should have received as part of this distribution. The terms
|
||||||
* are also available at http://curl.haxx.se/docs/copyright.html.
|
* are also available at https://curl.haxx.se/docs/copyright.html.
|
||||||
*
|
*
|
||||||
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
||||||
* copies of the Software, and permit persons to whom the Software is
|
* copies of the Software, and permit persons to whom the Software is
|
||||||
@@ -19,8 +19,10 @@
|
|||||||
* KIND, either express or implied.
|
* KIND, either express or implied.
|
||||||
*
|
*
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
/* Example source code to show how the callback function can be used to
|
/* <DESC>
|
||||||
* download data into a chunk of memory instead of storing it in a file.
|
* Shows how the write callback function can be used to download data into a
|
||||||
|
* chunk of memory instead of storing it in a file.
|
||||||
|
* </DESC>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
@@ -34,7 +36,6 @@ struct MemoryStruct {
|
|||||||
size_t size;
|
size_t size;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
static size_t
|
static size_t
|
||||||
WriteMemoryCallback(void *contents, size_t size, size_t nmemb, void *userp)
|
WriteMemoryCallback(void *contents, size_t size, size_t nmemb, void *userp)
|
||||||
{
|
{
|
||||||
@@ -55,7 +56,6 @@ WriteMemoryCallback(void *contents, size_t size, size_t nmemb, void *userp)
|
|||||||
return realsize;
|
return realsize;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
int main(void)
|
int main(void)
|
||||||
{
|
{
|
||||||
CURL *curl_handle;
|
CURL *curl_handle;
|
||||||
@@ -106,8 +106,7 @@ int main(void)
|
|||||||
/* cleanup curl stuff */
|
/* cleanup curl stuff */
|
||||||
curl_easy_cleanup(curl_handle);
|
curl_easy_cleanup(curl_handle);
|
||||||
|
|
||||||
if(chunk.memory)
|
free(chunk.memory);
|
||||||
free(chunk.memory);
|
|
||||||
|
|
||||||
/* we're done with libcurl, so clean it up */
|
/* we're done with libcurl, so clean it up */
|
||||||
curl_global_cleanup();
|
curl_global_cleanup();
|
||||||
|
|||||||
70
docs/examples/getredirect.c
Normal file
70
docs/examples/getredirect.c
Normal file
@@ -0,0 +1,70 @@
|
|||||||
|
/***************************************************************************
|
||||||
|
* _ _ ____ _
|
||||||
|
* Project ___| | | | _ \| |
|
||||||
|
* / __| | | | |_) | |
|
||||||
|
* | (__| |_| | _ <| |___
|
||||||
|
* \___|\___/|_| \_\_____|
|
||||||
|
*
|
||||||
|
* Copyright (C) 1998 - 2016, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
|
*
|
||||||
|
* This software is licensed as described in the file COPYING, which
|
||||||
|
* you should have received as part of this distribution. The terms
|
||||||
|
* are also available at https://curl.haxx.se/docs/copyright.html.
|
||||||
|
*
|
||||||
|
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
||||||
|
* copies of the Software, and permit persons to whom the Software is
|
||||||
|
* furnished to do so, under the terms of the COPYING file.
|
||||||
|
*
|
||||||
|
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
||||||
|
* KIND, either express or implied.
|
||||||
|
*
|
||||||
|
***************************************************************************/
|
||||||
|
/* <DESC>
|
||||||
|
* Show how to extract Location: header and URL to redirect to.
|
||||||
|
* </DESC>
|
||||||
|
*/
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <curl/curl.h>
|
||||||
|
|
||||||
|
int main(void)
|
||||||
|
{
|
||||||
|
CURL *curl;
|
||||||
|
CURLcode res;
|
||||||
|
char *location;
|
||||||
|
long response_code;
|
||||||
|
|
||||||
|
curl = curl_easy_init();
|
||||||
|
if(curl) {
|
||||||
|
curl_easy_setopt(curl, CURLOPT_URL, "http://example.com");
|
||||||
|
|
||||||
|
/* example.com is redirected, figure out the redirection! */
|
||||||
|
|
||||||
|
/* Perform the request, res will get the return code */
|
||||||
|
res = curl_easy_perform(curl);
|
||||||
|
/* Check for errors */
|
||||||
|
if(res != CURLE_OK)
|
||||||
|
fprintf(stderr, "curl_easy_perform() failed: %s\n",
|
||||||
|
curl_easy_strerror(res));
|
||||||
|
else {
|
||||||
|
res = curl_easy_getinfo(curl, CURLINFO_RESPONSE_CODE, &response_code);
|
||||||
|
if((res == CURLE_OK) &&
|
||||||
|
((response_code / 100) != 3)) {
|
||||||
|
/* a redirect implies a 3xx response code */
|
||||||
|
fprintf(stderr, "Not a redirect.\n");
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
res = curl_easy_getinfo(curl, CURLINFO_REDIRECT_URL, &location);
|
||||||
|
|
||||||
|
if((res == CURLE_OK) && location) {
|
||||||
|
/* This is the new absolute URL that you could redirect to, even if
|
||||||
|
* the Location: response header may have been a relative URL. */
|
||||||
|
printf("Redirected to: %s\n", location);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* always cleanup */
|
||||||
|
curl_easy_cleanup(curl);
|
||||||
|
}
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
@@ -5,11 +5,11 @@
|
|||||||
* | (__| |_| | _ <| |___
|
* | (__| |_| | _ <| |___
|
||||||
* \___|\___/|_| \_\_____|
|
* \___|\___/|_| \_\_____|
|
||||||
*
|
*
|
||||||
* Copyright (C) 1998 - 2014, Daniel Stenberg, <daniel@haxx.se>, et al.
|
* Copyright (C) 1998 - 2016, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
*
|
*
|
||||||
* This software is licensed as described in the file COPYING, which
|
* This software is licensed as described in the file COPYING, which
|
||||||
* you should have received as part of this distribution. The terms
|
* you should have received as part of this distribution. The terms
|
||||||
* are also available at http://curl.haxx.se/docs/copyright.html.
|
* are also available at https://curl.haxx.se/docs/copyright.html.
|
||||||
*
|
*
|
||||||
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
||||||
* copies of the Software, and permit persons to whom the Software is
|
* copies of the Software, and permit persons to whom the Software is
|
||||||
@@ -19,38 +19,41 @@
|
|||||||
* KIND, either express or implied.
|
* KIND, either express or implied.
|
||||||
*
|
*
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
/* <DESC>
|
||||||
|
* multi socket API usage together with with glib2
|
||||||
|
* </DESC>
|
||||||
|
*/
|
||||||
/* Example application source code using the multi socket interface to
|
/* Example application source code using the multi socket interface to
|
||||||
* download many files at once.
|
* download many files at once.
|
||||||
*
|
*
|
||||||
* Written by Jeff Pohlmeyer
|
* Written by Jeff Pohlmeyer
|
||||||
|
|
||||||
Requires glib-2.x and a (POSIX?) system that has mkfifo().
|
Requires glib-2.x and a (POSIX?) system that has mkfifo().
|
||||||
|
|
||||||
This is an adaptation of libcurl's "hipev.c" and libevent's "event-test.c"
|
This is an adaptation of libcurl's "hipev.c" and libevent's "event-test.c"
|
||||||
sample programs, adapted to use glib's g_io_channel in place of libevent.
|
sample programs, adapted to use glib's g_io_channel in place of libevent.
|
||||||
|
|
||||||
When running, the program creates the named pipe "hiper.fifo"
|
When running, the program creates the named pipe "hiper.fifo"
|
||||||
|
|
||||||
Whenever there is input into the fifo, the program reads the input as a list
|
Whenever there is input into the fifo, the program reads the input as a list
|
||||||
of URL's and creates some new easy handles to fetch each URL via the
|
of URL's and creates some new easy handles to fetch each URL via the
|
||||||
curl_multi "hiper" API.
|
curl_multi "hiper" API.
|
||||||
|
|
||||||
|
|
||||||
Thus, you can try a single URL:
|
Thus, you can try a single URL:
|
||||||
% echo http://www.yahoo.com > hiper.fifo
|
% echo http://www.yahoo.com > hiper.fifo
|
||||||
|
|
||||||
Or a whole bunch of them:
|
Or a whole bunch of them:
|
||||||
% cat my-url-list > hiper.fifo
|
% cat my-url-list > hiper.fifo
|
||||||
|
|
||||||
The fifo buffer is handled almost instantly, so you can even add more URL's
|
The fifo buffer is handled almost instantly, so you can even add more URL's
|
||||||
while the previous requests are still being downloaded.
|
while the previous requests are still being downloaded.
|
||||||
|
|
||||||
This is purely a demo app, all retrieved data is simply discarded by the write
|
This is purely a demo app, all retrieved data is simply discarded by the write
|
||||||
callback.
|
callback.
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
#include <glib.h>
|
#include <glib.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
@@ -60,13 +63,10 @@ callback.
|
|||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <curl/curl.h>
|
#include <curl/curl.h>
|
||||||
|
|
||||||
|
|
||||||
#define MSG_OUT g_print /* Change to "g_error" to write to stderr */
|
#define MSG_OUT g_print /* Change to "g_error" to write to stderr */
|
||||||
#define SHOW_VERBOSE 0 /* Set to non-zero for libcurl messages */
|
#define SHOW_VERBOSE 0 /* Set to non-zero for libcurl messages */
|
||||||
#define SHOW_PROGRESS 0 /* Set to non-zero to enable progress callback */
|
#define SHOW_PROGRESS 0 /* Set to non-zero to enable progress callback */
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* Global information, common to all connections */
|
/* Global information, common to all connections */
|
||||||
typedef struct _GlobalInfo {
|
typedef struct _GlobalInfo {
|
||||||
CURLM *multi;
|
CURLM *multi;
|
||||||
@@ -74,8 +74,6 @@ typedef struct _GlobalInfo {
|
|||||||
int still_running;
|
int still_running;
|
||||||
} GlobalInfo;
|
} GlobalInfo;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* Information associated with a specific easy handle */
|
/* Information associated with a specific easy handle */
|
||||||
typedef struct _ConnInfo {
|
typedef struct _ConnInfo {
|
||||||
CURL *easy;
|
CURL *easy;
|
||||||
@@ -84,7 +82,6 @@ typedef struct _ConnInfo {
|
|||||||
char error[CURL_ERROR_SIZE];
|
char error[CURL_ERROR_SIZE];
|
||||||
} ConnInfo;
|
} ConnInfo;
|
||||||
|
|
||||||
|
|
||||||
/* Information associated with a specific socket */
|
/* Information associated with a specific socket */
|
||||||
typedef struct _SockInfo {
|
typedef struct _SockInfo {
|
||||||
curl_socket_t sockfd;
|
curl_socket_t sockfd;
|
||||||
@@ -96,30 +93,25 @@ typedef struct _SockInfo {
|
|||||||
GlobalInfo *global;
|
GlobalInfo *global;
|
||||||
} SockInfo;
|
} SockInfo;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* Die if we get a bad CURLMcode somewhere */
|
/* Die if we get a bad CURLMcode somewhere */
|
||||||
static void mcode_or_die(const char *where, CURLMcode code) {
|
static void mcode_or_die(const char *where, CURLMcode code) {
|
||||||
if ( CURLM_OK != code ) {
|
if(CURLM_OK != code) {
|
||||||
const char *s;
|
const char *s;
|
||||||
switch (code) {
|
switch (code) {
|
||||||
case CURLM_BAD_HANDLE: s="CURLM_BAD_HANDLE"; break;
|
case CURLM_BAD_HANDLE: s="CURLM_BAD_HANDLE"; break;
|
||||||
case CURLM_BAD_EASY_HANDLE: s="CURLM_BAD_EASY_HANDLE"; break;
|
case CURLM_BAD_EASY_HANDLE: s="CURLM_BAD_EASY_HANDLE"; break;
|
||||||
case CURLM_OUT_OF_MEMORY: s="CURLM_OUT_OF_MEMORY"; break;
|
case CURLM_OUT_OF_MEMORY: s="CURLM_OUT_OF_MEMORY"; break;
|
||||||
case CURLM_INTERNAL_ERROR: s="CURLM_INTERNAL_ERROR"; break;
|
case CURLM_INTERNAL_ERROR: s="CURLM_INTERNAL_ERROR"; break;
|
||||||
case CURLM_BAD_SOCKET: s="CURLM_BAD_SOCKET"; break;
|
case CURLM_BAD_SOCKET: s="CURLM_BAD_SOCKET"; break;
|
||||||
case CURLM_UNKNOWN_OPTION: s="CURLM_UNKNOWN_OPTION"; break;
|
case CURLM_UNKNOWN_OPTION: s="CURLM_UNKNOWN_OPTION"; break;
|
||||||
case CURLM_LAST: s="CURLM_LAST"; break;
|
case CURLM_LAST: s="CURLM_LAST"; break;
|
||||||
default: s="CURLM_unknown";
|
default: s="CURLM_unknown";
|
||||||
}
|
}
|
||||||
MSG_OUT("ERROR: %s returns %s\n", where, s);
|
MSG_OUT("ERROR: %s returns %s\n", where, s);
|
||||||
exit(code);
|
exit(code);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* Check for completed transfers, and remove their easy handles */
|
/* Check for completed transfers, and remove their easy handles */
|
||||||
static void check_multi_info(GlobalInfo *g)
|
static void check_multi_info(GlobalInfo *g)
|
||||||
{
|
{
|
||||||
@@ -131,8 +123,8 @@ static void check_multi_info(GlobalInfo *g)
|
|||||||
CURLcode res;
|
CURLcode res;
|
||||||
|
|
||||||
MSG_OUT("REMAINING: %d\n", g->still_running);
|
MSG_OUT("REMAINING: %d\n", g->still_running);
|
||||||
while ((msg = curl_multi_info_read(g->multi, &msgs_left))) {
|
while((msg = curl_multi_info_read(g->multi, &msgs_left))) {
|
||||||
if (msg->msg == CURLMSG_DONE) {
|
if(msg->msg == CURLMSG_DONE) {
|
||||||
easy = msg->easy_handle;
|
easy = msg->easy_handle;
|
||||||
res = msg->data.result;
|
res = msg->data.result;
|
||||||
curl_easy_getinfo(easy, CURLINFO_PRIVATE, &conn);
|
curl_easy_getinfo(easy, CURLINFO_PRIVATE, &conn);
|
||||||
@@ -146,8 +138,6 @@ static void check_multi_info(GlobalInfo *g)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* Called by glib when our timeout expires */
|
/* Called by glib when our timeout expires */
|
||||||
static gboolean timer_cb(gpointer data)
|
static gboolean timer_cb(gpointer data)
|
||||||
{
|
{
|
||||||
@@ -155,14 +145,12 @@ static gboolean timer_cb(gpointer data)
|
|||||||
CURLMcode rc;
|
CURLMcode rc;
|
||||||
|
|
||||||
rc = curl_multi_socket_action(g->multi,
|
rc = curl_multi_socket_action(g->multi,
|
||||||
CURL_SOCKET_TIMEOUT, 0, &g->still_running);
|
CURL_SOCKET_TIMEOUT, 0, &g->still_running);
|
||||||
mcode_or_die("timer_cb: curl_multi_socket_action", rc);
|
mcode_or_die("timer_cb: curl_multi_socket_action", rc);
|
||||||
check_multi_info(g);
|
check_multi_info(g);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* Update the event timer after curl_multi library calls */
|
/* Update the event timer after curl_multi library calls */
|
||||||
static int update_timeout_cb(CURLM *multi, long timeout_ms, void *userp)
|
static int update_timeout_cb(CURLM *multi, long timeout_ms, void *userp)
|
||||||
{
|
{
|
||||||
@@ -172,15 +160,12 @@ static int update_timeout_cb(CURLM *multi, long timeout_ms, void *userp)
|
|||||||
timeout.tv_usec = (timeout_ms%1000)*1000;
|
timeout.tv_usec = (timeout_ms%1000)*1000;
|
||||||
|
|
||||||
MSG_OUT("*** update_timeout_cb %ld => %ld:%ld ***\n",
|
MSG_OUT("*** update_timeout_cb %ld => %ld:%ld ***\n",
|
||||||
timeout_ms, timeout.tv_sec, timeout.tv_usec);
|
timeout_ms, timeout.tv_sec, timeout.tv_usec);
|
||||||
|
|
||||||
g->timer_event = g_timeout_add(timeout_ms, timer_cb, g);
|
g->timer_event = g_timeout_add(timeout_ms, timer_cb, g);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* Called by glib when we get action on a multi socket */
|
/* Called by glib when we get action on a multi socket */
|
||||||
static gboolean event_cb(GIOChannel *ch, GIOCondition condition, gpointer data)
|
static gboolean event_cb(GIOChannel *ch, GIOCondition condition, gpointer data)
|
||||||
{
|
{
|
||||||
@@ -198,41 +183,43 @@ static gboolean event_cb(GIOChannel *ch, GIOCondition condition, gpointer data)
|
|||||||
check_multi_info(g);
|
check_multi_info(g);
|
||||||
if(g->still_running) {
|
if(g->still_running) {
|
||||||
return TRUE;
|
return TRUE;
|
||||||
} else {
|
}
|
||||||
|
else {
|
||||||
MSG_OUT("last transfer done, kill timeout\n");
|
MSG_OUT("last transfer done, kill timeout\n");
|
||||||
if (g->timer_event) { g_source_remove(g->timer_event); }
|
if(g->timer_event) {
|
||||||
|
g_source_remove(g->timer_event);
|
||||||
|
}
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* Clean up the SockInfo structure */
|
/* Clean up the SockInfo structure */
|
||||||
static void remsock(SockInfo *f)
|
static void remsock(SockInfo *f)
|
||||||
{
|
{
|
||||||
if (!f) { return; }
|
if(!f) {
|
||||||
if (f->ev) { g_source_remove(f->ev); }
|
return;
|
||||||
|
}
|
||||||
|
if(f->ev) {
|
||||||
|
g_source_remove(f->ev);
|
||||||
|
}
|
||||||
g_free(f);
|
g_free(f);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* Assign information to a SockInfo structure */
|
/* Assign information to a SockInfo structure */
|
||||||
static void setsock(SockInfo*f, curl_socket_t s, CURL*e, int act, GlobalInfo*g)
|
static void setsock(SockInfo*f, curl_socket_t s, CURL*e, int act, GlobalInfo*g)
|
||||||
{
|
{
|
||||||
GIOCondition kind =
|
GIOCondition kind =
|
||||||
(act&CURL_POLL_IN?G_IO_IN:0)|(act&CURL_POLL_OUT?G_IO_OUT:0);
|
(act&CURL_POLL_IN?G_IO_IN:0)|(act&CURL_POLL_OUT?G_IO_OUT:0);
|
||||||
|
|
||||||
f->sockfd = s;
|
f->sockfd = s;
|
||||||
f->action = act;
|
f->action = act;
|
||||||
f->easy = e;
|
f->easy = e;
|
||||||
if (f->ev) { g_source_remove(f->ev); }
|
if(f->ev) {
|
||||||
f->ev=g_io_add_watch(f->ch, kind, event_cb,g);
|
g_source_remove(f->ev);
|
||||||
|
}
|
||||||
|
f->ev=g_io_add_watch(f->ch, kind, event_cb, g);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* Initialize a new SockInfo structure */
|
/* Initialize a new SockInfo structure */
|
||||||
static void addsock(curl_socket_t s, CURL *easy, int action, GlobalInfo *g)
|
static void addsock(curl_socket_t s, CURL *easy, int action, GlobalInfo *g)
|
||||||
{
|
{
|
||||||
@@ -244,8 +231,6 @@ static void addsock(curl_socket_t s, CURL *easy, int action, GlobalInfo *g)
|
|||||||
curl_multi_assign(g->multi, s, fdp);
|
curl_multi_assign(g->multi, s, fdp);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* CURLMOPT_SOCKETFUNCTION */
|
/* CURLMOPT_SOCKETFUNCTION */
|
||||||
static int sock_cb(CURL *e, curl_socket_t s, int what, void *cbp, void *sockp)
|
static int sock_cb(CURL *e, curl_socket_t s, int what, void *cbp, void *sockp)
|
||||||
{
|
{
|
||||||
@@ -254,14 +239,15 @@ static int sock_cb(CURL *e, curl_socket_t s, int what, void *cbp, void *sockp)
|
|||||||
static const char *whatstr[]={ "none", "IN", "OUT", "INOUT", "REMOVE" };
|
static const char *whatstr[]={ "none", "IN", "OUT", "INOUT", "REMOVE" };
|
||||||
|
|
||||||
MSG_OUT("socket callback: s=%d e=%p what=%s ", s, e, whatstr[what]);
|
MSG_OUT("socket callback: s=%d e=%p what=%s ", s, e, whatstr[what]);
|
||||||
if (what == CURL_POLL_REMOVE) {
|
if(what == CURL_POLL_REMOVE) {
|
||||||
MSG_OUT("\n");
|
MSG_OUT("\n");
|
||||||
remsock(fdp);
|
remsock(fdp);
|
||||||
} else {
|
}
|
||||||
if (!fdp) {
|
else {
|
||||||
|
if(!fdp) {
|
||||||
MSG_OUT("Adding data: %s%s\n",
|
MSG_OUT("Adding data: %s%s\n",
|
||||||
what&CURL_POLL_IN?"READ":"",
|
what&CURL_POLL_IN?"READ":"",
|
||||||
what&CURL_POLL_OUT?"WRITE":"" );
|
what&CURL_POLL_OUT?"WRITE":"" );
|
||||||
addsock(s, e, what, g);
|
addsock(s, e, what, g);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
@@ -273,8 +259,6 @@ static int sock_cb(CURL *e, curl_socket_t s, int what, void *cbp, void *sockp)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* CURLOPT_WRITEFUNCTION */
|
/* CURLOPT_WRITEFUNCTION */
|
||||||
static size_t write_cb(void *ptr, size_t size, size_t nmemb, void *data)
|
static size_t write_cb(void *ptr, size_t size, size_t nmemb, void *data)
|
||||||
{
|
{
|
||||||
@@ -285,18 +269,15 @@ static size_t write_cb(void *ptr, size_t size, size_t nmemb, void *data)
|
|||||||
return realsize;
|
return realsize;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* CURLOPT_PROGRESSFUNCTION */
|
/* CURLOPT_PROGRESSFUNCTION */
|
||||||
static int prog_cb (void *p, double dltotal, double dlnow, double ult, double uln)
|
static int prog_cb (void *p, double dltotal, double dlnow, double ult,
|
||||||
|
double uln)
|
||||||
{
|
{
|
||||||
ConnInfo *conn = (ConnInfo *)p;
|
ConnInfo *conn = (ConnInfo *)p;
|
||||||
MSG_OUT("Progress: %s (%g/%g)\n", conn->url, dlnow, dltotal);
|
MSG_OUT("Progress: %s (%g/%g)\n", conn->url, dlnow, dltotal);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* Create a new easy handle, and add it to the global curl_multi */
|
/* Create a new easy handle, and add it to the global curl_multi */
|
||||||
static void new_conn(char *url, GlobalInfo *g )
|
static void new_conn(char *url, GlobalInfo *g )
|
||||||
{
|
{
|
||||||
@@ -304,11 +285,9 @@ static void new_conn(char *url, GlobalInfo *g )
|
|||||||
CURLMcode rc;
|
CURLMcode rc;
|
||||||
|
|
||||||
conn = g_malloc0(sizeof(ConnInfo));
|
conn = g_malloc0(sizeof(ConnInfo));
|
||||||
|
|
||||||
conn->error[0]='\0';
|
conn->error[0]='\0';
|
||||||
|
|
||||||
conn->easy = curl_easy_init();
|
conn->easy = curl_easy_init();
|
||||||
if (!conn->easy) {
|
if(!conn->easy) {
|
||||||
MSG_OUT("curl_easy_init() failed, exiting!\n");
|
MSG_OUT("curl_easy_init() failed, exiting!\n");
|
||||||
exit(2);
|
exit(2);
|
||||||
}
|
}
|
||||||
@@ -336,93 +315,90 @@ static void new_conn(char *url, GlobalInfo *g )
|
|||||||
that the necessary socket_action() call will be called by this app */
|
that the necessary socket_action() call will be called by this app */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* This gets called by glib whenever data is received from the fifo */
|
/* This gets called by glib whenever data is received from the fifo */
|
||||||
static gboolean fifo_cb (GIOChannel *ch, GIOCondition condition, gpointer data)
|
static gboolean fifo_cb (GIOChannel *ch, GIOCondition condition, gpointer data)
|
||||||
{
|
{
|
||||||
#define BUF_SIZE 1024
|
#define BUF_SIZE 1024
|
||||||
gsize len, tp;
|
gsize len, tp;
|
||||||
gchar *buf, *tmp, *all=NULL;
|
gchar *buf, *tmp, *all=NULL;
|
||||||
GIOStatus rv;
|
GIOStatus rv;
|
||||||
|
|
||||||
do {
|
do {
|
||||||
GError *err=NULL;
|
GError *err=NULL;
|
||||||
rv = g_io_channel_read_line (ch,&buf,&len,&tp,&err);
|
rv = g_io_channel_read_line(ch, &buf, &len, &tp, &err);
|
||||||
if ( buf ) {
|
if(buf) {
|
||||||
if (tp) { buf[tp]='\0'; }
|
if(tp) {
|
||||||
new_conn(buf,(GlobalInfo*)data);
|
buf[tp]='\0';
|
||||||
|
}
|
||||||
|
new_conn(buf, (GlobalInfo*)data);
|
||||||
g_free(buf);
|
g_free(buf);
|
||||||
} else {
|
}
|
||||||
|
else {
|
||||||
buf = g_malloc(BUF_SIZE+1);
|
buf = g_malloc(BUF_SIZE+1);
|
||||||
while (TRUE) {
|
while(TRUE) {
|
||||||
buf[BUF_SIZE]='\0';
|
buf[BUF_SIZE]='\0';
|
||||||
g_io_channel_read_chars(ch,buf,BUF_SIZE,&len,&err);
|
g_io_channel_read_chars(ch, buf, BUF_SIZE, &len, &err);
|
||||||
if (len) {
|
if(len) {
|
||||||
buf[len]='\0';
|
buf[len]='\0';
|
||||||
if (all) {
|
if(all) {
|
||||||
tmp=all;
|
tmp=all;
|
||||||
all=g_strdup_printf("%s%s", tmp, buf);
|
all=g_strdup_printf("%s%s", tmp, buf);
|
||||||
g_free(tmp);
|
g_free(tmp);
|
||||||
} else {
|
}
|
||||||
|
else {
|
||||||
all = g_strdup(buf);
|
all = g_strdup(buf);
|
||||||
}
|
}
|
||||||
} else {
|
}
|
||||||
break;
|
else {
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (all) {
|
if(all) {
|
||||||
new_conn(all,(GlobalInfo*)data);
|
new_conn(all, (GlobalInfo*)data);
|
||||||
g_free(all);
|
g_free(all);
|
||||||
}
|
}
|
||||||
g_free(buf);
|
g_free(buf);
|
||||||
}
|
}
|
||||||
if ( err ) {
|
if(err) {
|
||||||
g_error("fifo_cb: %s", err->message);
|
g_error("fifo_cb: %s", err->message);
|
||||||
g_free(err);
|
g_free(err);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
} while ( (len) && (rv == G_IO_STATUS_NORMAL) );
|
} while((len) && (rv == G_IO_STATUS_NORMAL));
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
int init_fifo(void)
|
int init_fifo(void)
|
||||||
{
|
{
|
||||||
struct stat st;
|
struct stat st;
|
||||||
const char *fifo = "hiper.fifo";
|
const char *fifo = "hiper.fifo";
|
||||||
int socket;
|
int socket;
|
||||||
|
|
||||||
if (lstat (fifo, &st) == 0) {
|
if(lstat (fifo, &st) == 0) {
|
||||||
if ((st.st_mode & S_IFMT) == S_IFREG) {
|
if((st.st_mode & S_IFMT) == S_IFREG) {
|
||||||
errno = EEXIST;
|
errno = EEXIST;
|
||||||
perror("lstat");
|
perror("lstat");
|
||||||
exit (1);
|
exit (1);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
unlink (fifo);
|
unlink (fifo);
|
||||||
if (mkfifo (fifo, 0600) == -1) {
|
if(mkfifo (fifo, 0600) == -1) {
|
||||||
perror("mkfifo");
|
perror("mkfifo");
|
||||||
exit (1);
|
exit (1);
|
||||||
}
|
}
|
||||||
|
|
||||||
socket = open (fifo, O_RDWR | O_NONBLOCK, 0);
|
socket = open (fifo, O_RDWR | O_NONBLOCK, 0);
|
||||||
|
|
||||||
if (socket == -1) {
|
if(socket == -1) {
|
||||||
perror("open");
|
perror("open");
|
||||||
exit (1);
|
exit (1);
|
||||||
}
|
}
|
||||||
MSG_OUT("Now, pipe some URL's into > %s\n", fifo);
|
MSG_OUT("Now, pipe some URL's into > %s\n", fifo);
|
||||||
|
|
||||||
return socket;
|
|
||||||
|
|
||||||
|
return socket;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
int main(int argc, char **argv)
|
int main(int argc, char **argv)
|
||||||
{
|
{
|
||||||
GlobalInfo *g;
|
GlobalInfo *g;
|
||||||
@@ -434,8 +410,8 @@ int main(int argc, char **argv)
|
|||||||
|
|
||||||
fd=init_fifo();
|
fd=init_fifo();
|
||||||
ch=g_io_channel_unix_new(fd);
|
ch=g_io_channel_unix_new(fd);
|
||||||
g_io_add_watch(ch,G_IO_IN,fifo_cb,g);
|
g_io_add_watch(ch, G_IO_IN, fifo_cb, g);
|
||||||
gmain=g_main_loop_new(NULL,FALSE);
|
gmain=g_main_loop_new(NULL, FALSE);
|
||||||
g->multi = curl_multi_init();
|
g->multi = curl_multi_init();
|
||||||
curl_multi_setopt(g->multi, CURLMOPT_SOCKETFUNCTION, sock_cb);
|
curl_multi_setopt(g->multi, CURLMOPT_SOCKETFUNCTION, sock_cb);
|
||||||
curl_multi_setopt(g->multi, CURLMOPT_SOCKETDATA, g);
|
curl_multi_setopt(g->multi, CURLMOPT_SOCKETDATA, g);
|
||||||
|
|||||||
@@ -5,11 +5,11 @@
|
|||||||
* | (__| |_| | _ <| |___
|
* | (__| |_| | _ <| |___
|
||||||
* \___|\___/|_| \_\_____|
|
* \___|\___/|_| \_\_____|
|
||||||
*
|
*
|
||||||
* Copyright (C) 1998 - 2014, Daniel Stenberg, <daniel@haxx.se>, et al.
|
* Copyright (C) 1998 - 2016, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
*
|
*
|
||||||
* This software is licensed as described in the file COPYING, which
|
* This software is licensed as described in the file COPYING, which
|
||||||
* you should have received as part of this distribution. The terms
|
* you should have received as part of this distribution. The terms
|
||||||
* are also available at http://curl.haxx.se/docs/copyright.html.
|
* are also available at https://curl.haxx.se/docs/copyright.html.
|
||||||
*
|
*
|
||||||
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
||||||
* copies of the Software, and permit persons to whom the Software is
|
* copies of the Software, and permit persons to whom the Software is
|
||||||
@@ -19,6 +19,10 @@
|
|||||||
* KIND, either express or implied.
|
* KIND, either express or implied.
|
||||||
*
|
*
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
/* <DESC>
|
||||||
|
* multi socket API usage with libevent 2
|
||||||
|
* </DESC>
|
||||||
|
*/
|
||||||
/* Example application source code using the multi socket interface to
|
/* Example application source code using the multi socket interface to
|
||||||
download many files at once.
|
download many files at once.
|
||||||
|
|
||||||
@@ -122,7 +126,7 @@ static int multi_timer_cb(CURLM *multi, long timeout_ms, GlobalInfo *g)
|
|||||||
/* Die if we get a bad CURLMcode somewhere */
|
/* Die if we get a bad CURLMcode somewhere */
|
||||||
static void mcode_or_die(const char *where, CURLMcode code)
|
static void mcode_or_die(const char *where, CURLMcode code)
|
||||||
{
|
{
|
||||||
if ( CURLM_OK != code ) {
|
if(CURLM_OK != code) {
|
||||||
const char *s;
|
const char *s;
|
||||||
switch (code) {
|
switch (code) {
|
||||||
case CURLM_BAD_HANDLE: s="CURLM_BAD_HANDLE"; break;
|
case CURLM_BAD_HANDLE: s="CURLM_BAD_HANDLE"; break;
|
||||||
@@ -156,8 +160,8 @@ static void check_multi_info(GlobalInfo *g)
|
|||||||
CURLcode res;
|
CURLcode res;
|
||||||
|
|
||||||
fprintf(MSG_OUT, "REMAINING: %d\n", g->still_running);
|
fprintf(MSG_OUT, "REMAINING: %d\n", g->still_running);
|
||||||
while ((msg = curl_multi_info_read(g->multi, &msgs_left))) {
|
while((msg = curl_multi_info_read(g->multi, &msgs_left))) {
|
||||||
if (msg->msg == CURLMSG_DONE) {
|
if(msg->msg == CURLMSG_DONE) {
|
||||||
easy = msg->easy_handle;
|
easy = msg->easy_handle;
|
||||||
res = msg->data.result;
|
res = msg->data.result;
|
||||||
curl_easy_getinfo(easy, CURLINFO_PRIVATE, &conn);
|
curl_easy_getinfo(easy, CURLINFO_PRIVATE, &conn);
|
||||||
@@ -187,9 +191,9 @@ static void event_cb(int fd, short kind, void *userp)
|
|||||||
mcode_or_die("event_cb: curl_multi_socket_action", rc);
|
mcode_or_die("event_cb: curl_multi_socket_action", rc);
|
||||||
|
|
||||||
check_multi_info(g);
|
check_multi_info(g);
|
||||||
if ( g->still_running <= 0 ) {
|
if(g->still_running <= 0 ) {
|
||||||
fprintf(MSG_OUT, "last transfer done, kill timeout\n");
|
fprintf(MSG_OUT, "last transfer done, kill timeout\n");
|
||||||
if (evtimer_pending(g->timer_event, NULL)) {
|
if(evtimer_pending(g->timer_event, NULL)) {
|
||||||
evtimer_del(g->timer_event);
|
evtimer_del(g->timer_event);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -216,8 +220,8 @@ static void timer_cb(int fd, short kind, void *userp)
|
|||||||
/* Clean up the SockInfo structure */
|
/* Clean up the SockInfo structure */
|
||||||
static void remsock(SockInfo *f)
|
static void remsock(SockInfo *f)
|
||||||
{
|
{
|
||||||
if (f) {
|
if(f) {
|
||||||
if (f->evset)
|
if(f->evset)
|
||||||
event_free(f->ev);
|
event_free(f->ev);
|
||||||
free(f);
|
free(f);
|
||||||
}
|
}
|
||||||
@@ -234,7 +238,7 @@ static void setsock(SockInfo*f, curl_socket_t s, CURL*e, int act, GlobalInfo*g)
|
|||||||
f->sockfd = s;
|
f->sockfd = s;
|
||||||
f->action = act;
|
f->action = act;
|
||||||
f->easy = e;
|
f->easy = e;
|
||||||
if (f->evset)
|
if(f->evset)
|
||||||
event_free(f->ev);
|
event_free(f->ev);
|
||||||
f->ev = event_new(g->evbase, f->sockfd, kind, event_cb, g);
|
f->ev = event_new(g->evbase, f->sockfd, kind, event_cb, g);
|
||||||
f->evset = 1;
|
f->evset = 1;
|
||||||
@@ -262,12 +266,12 @@ static int sock_cb(CURL *e, curl_socket_t s, int what, void *cbp, void *sockp)
|
|||||||
|
|
||||||
fprintf(MSG_OUT,
|
fprintf(MSG_OUT,
|
||||||
"socket callback: s=%d e=%p what=%s ", s, e, whatstr[what]);
|
"socket callback: s=%d e=%p what=%s ", s, e, whatstr[what]);
|
||||||
if (what == CURL_POLL_REMOVE) {
|
if(what == CURL_POLL_REMOVE) {
|
||||||
fprintf(MSG_OUT, "\n");
|
fprintf(MSG_OUT, "\n");
|
||||||
remsock(fdp);
|
remsock(fdp);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if (!fdp) {
|
if(!fdp) {
|
||||||
fprintf(MSG_OUT, "Adding data: %s\n", whatstr[what]);
|
fprintf(MSG_OUT, "Adding data: %s\n", whatstr[what]);
|
||||||
addsock(s, e, what, g);
|
addsock(s, e, what, g);
|
||||||
}
|
}
|
||||||
@@ -318,7 +322,7 @@ static void new_conn(char *url, GlobalInfo *g )
|
|||||||
conn->error[0]='\0';
|
conn->error[0]='\0';
|
||||||
|
|
||||||
conn->easy = curl_easy_init();
|
conn->easy = curl_easy_init();
|
||||||
if (!conn->easy) {
|
if(!conn->easy) {
|
||||||
fprintf(MSG_OUT, "curl_easy_init() failed, exiting!\n");
|
fprintf(MSG_OUT, "curl_easy_init() failed, exiting!\n");
|
||||||
exit(2);
|
exit(2);
|
||||||
}
|
}
|
||||||
@@ -326,7 +330,7 @@ static void new_conn(char *url, GlobalInfo *g )
|
|||||||
conn->url = strdup(url);
|
conn->url = strdup(url);
|
||||||
curl_easy_setopt(conn->easy, CURLOPT_URL, conn->url);
|
curl_easy_setopt(conn->easy, CURLOPT_URL, conn->url);
|
||||||
curl_easy_setopt(conn->easy, CURLOPT_WRITEFUNCTION, write_cb);
|
curl_easy_setopt(conn->easy, CURLOPT_WRITEFUNCTION, write_cb);
|
||||||
curl_easy_setopt(conn->easy, CURLOPT_WRITEDATA, &conn);
|
curl_easy_setopt(conn->easy, CURLOPT_WRITEDATA, conn);
|
||||||
curl_easy_setopt(conn->easy, CURLOPT_VERBOSE, 1L);
|
curl_easy_setopt(conn->easy, CURLOPT_VERBOSE, 1L);
|
||||||
curl_easy_setopt(conn->easy, CURLOPT_ERRORBUFFER, conn->error);
|
curl_easy_setopt(conn->easy, CURLOPT_ERRORBUFFER, conn->error);
|
||||||
curl_easy_setopt(conn->easy, CURLOPT_PRIVATE, conn);
|
curl_easy_setopt(conn->easy, CURLOPT_PRIVATE, conn);
|
||||||
@@ -356,10 +360,12 @@ static void fifo_cb(int fd, short event, void *arg)
|
|||||||
s[0]='\0';
|
s[0]='\0';
|
||||||
rv=fscanf(g->input, "%1023s%n", s, &n);
|
rv=fscanf(g->input, "%1023s%n", s, &n);
|
||||||
s[n]='\0';
|
s[n]='\0';
|
||||||
if ( n && s[0] ) {
|
if(n && s[0] ) {
|
||||||
new_conn(s,arg); /* if we read a URL, go get it! */
|
new_conn(s, arg); /* if we read a URL, go get it! */
|
||||||
} else break;
|
}
|
||||||
} while ( rv != EOF);
|
else
|
||||||
|
break;
|
||||||
|
} while(rv != EOF);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Create a named pipe and tell libevent to monitor it */
|
/* Create a named pipe and tell libevent to monitor it */
|
||||||
@@ -370,20 +376,20 @@ static int init_fifo (GlobalInfo *g)
|
|||||||
curl_socket_t sockfd;
|
curl_socket_t sockfd;
|
||||||
|
|
||||||
fprintf(MSG_OUT, "Creating named pipe \"%s\"\n", fifo);
|
fprintf(MSG_OUT, "Creating named pipe \"%s\"\n", fifo);
|
||||||
if (lstat (fifo, &st) == 0) {
|
if(lstat (fifo, &st) == 0) {
|
||||||
if ((st.st_mode & S_IFMT) == S_IFREG) {
|
if((st.st_mode & S_IFMT) == S_IFREG) {
|
||||||
errno = EEXIST;
|
errno = EEXIST;
|
||||||
perror("lstat");
|
perror("lstat");
|
||||||
exit (1);
|
exit (1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
unlink(fifo);
|
unlink(fifo);
|
||||||
if (mkfifo (fifo, 0600) == -1) {
|
if(mkfifo (fifo, 0600) == -1) {
|
||||||
perror("mkfifo");
|
perror("mkfifo");
|
||||||
exit (1);
|
exit (1);
|
||||||
}
|
}
|
||||||
sockfd = open(fifo, O_RDWR | O_NONBLOCK, 0);
|
sockfd = open(fifo, O_RDWR | O_NONBLOCK, 0);
|
||||||
if (sockfd == -1) {
|
if(sockfd == -1) {
|
||||||
perror("open");
|
perror("open");
|
||||||
exit (1);
|
exit (1);
|
||||||
}
|
}
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user