Compare commits
1630 Commits
curl-7_25_
...
curl-7_31_
Author | SHA1 | Date | |
---|---|---|---|
![]() |
85c710e11e | ||
![]() |
0de7249bb3 | ||
![]() |
192c4f788d | ||
![]() |
da0db499fd | ||
![]() |
88c5c63ffc | ||
![]() |
a9f5ad0e2a | ||
![]() |
e305f5ec71 | ||
![]() |
7ac3e9f1ba | ||
![]() |
03a3dd9ee3 | ||
![]() |
5fc24a5297 | ||
![]() |
b1a295ac4e | ||
![]() |
1826c768ab | ||
![]() |
9c3e098259 | ||
![]() |
0feeab7802 | ||
![]() |
f24dc09d20 | ||
![]() |
9e10963c20 | ||
![]() |
10b6d81c64 | ||
![]() |
8026bd7abd | ||
![]() |
9b8df58169 | ||
![]() |
529a2e9110 | ||
![]() |
21091549c0 | ||
![]() |
7b97f03f09 | ||
![]() |
ce362e8eb9 | ||
![]() |
a4decb49a6 | ||
![]() |
c53fb36b0c | ||
![]() |
dc19e656b5 | ||
![]() |
87cf677eca | ||
![]() |
5657c56f63 | ||
![]() |
51b3445e84 | ||
![]() |
a7452b8b8c | ||
![]() |
0bf5ce77aa | ||
![]() |
159d34b58e | ||
![]() |
29bf0598aa | ||
![]() |
239b58d34d | ||
![]() |
74f1810546 | ||
![]() |
f4b08b8f40 | ||
![]() |
6691fdf517 | ||
![]() |
7d8d2a54ba | ||
![]() |
9986c6cb2b | ||
![]() |
ba9a66663a | ||
![]() |
ac419bf562 | ||
![]() |
520833cbe1 | ||
![]() |
e58d9c87f7 | ||
![]() |
84f7991474 | ||
![]() |
85b9dc8023 | ||
![]() |
7d4d4892d8 | ||
![]() |
fc4759af9d | ||
![]() |
ee84c47655 | ||
![]() |
ce32176db7 | ||
![]() |
04f52e9b4d | ||
![]() |
100a33f7ff | ||
![]() |
7ed25ccf0d | ||
![]() |
01eede2662 | ||
![]() |
ae26ee3489 | ||
![]() |
992bee504d | ||
![]() |
01a2abedd7 | ||
![]() |
a45e3f93e4 | ||
![]() |
bdb396ef2a | ||
![]() |
6add1901a1 | ||
![]() |
51b0f09b5e | ||
![]() |
8dac7be438 | ||
![]() |
bcf1b9dec1 | ||
![]() |
b045d079f8 | ||
![]() |
683f2b8323 | ||
![]() |
2de20dd9a1 | ||
![]() |
b47cf4f688 | ||
![]() |
a15b2b6c62 | ||
![]() |
42e01cff9a | ||
![]() |
865d4138a0 | ||
![]() |
35874298e4 | ||
![]() |
52d72e66c2 | ||
![]() |
f3d10aa0d4 | ||
![]() |
7632bc911b | ||
![]() |
92ef5f19c8 | ||
![]() |
99b4045183 | ||
![]() |
087f9bb20a | ||
![]() |
e2c7e19144 | ||
![]() |
f5c3d95384 | ||
![]() |
6b10f5b963 | ||
![]() |
ee74b77d45 | ||
![]() |
734bdb68c2 | ||
![]() |
514817669e | ||
![]() |
cb9c0ac7d7 | ||
![]() |
1c435295b8 | ||
![]() |
46d26a0e77 | ||
![]() |
f4e3cae8a7 | ||
![]() |
b52cf5d2cd | ||
![]() |
073e83b543 | ||
![]() |
c3e6d69acb | ||
![]() |
b56e3d43e5 | ||
![]() |
f317ffb7bb | ||
![]() |
9ea5145952 | ||
![]() |
1d7c38e1f0 | ||
![]() |
18bfc8f2d7 | ||
![]() |
945246988d | ||
![]() |
a5c0e20939 | ||
![]() |
128517649c | ||
![]() |
219358b93d | ||
![]() |
f133719f73 | ||
![]() |
f4e6e201b1 | ||
![]() |
790b2086d7 | ||
![]() |
f9b691cdb0 | ||
![]() |
4118c30261 | ||
![]() |
dacbdaab94 | ||
![]() |
70e30f6caa | ||
![]() |
7cb6c31370 | ||
![]() |
5d3a031ca7 | ||
![]() |
a846fbbe2a | ||
![]() |
6420672879 | ||
![]() |
c4067a5678 | ||
![]() |
0523152ad6 | ||
![]() |
b37b5233ca | ||
![]() |
c68c7e588e | ||
![]() |
1498a0073e | ||
![]() |
27777949a0 | ||
![]() |
4dc2d965d6 | ||
![]() |
70bbbccc39 | ||
![]() |
0dd470fc61 | ||
![]() |
89acdf50fa | ||
![]() |
c0d502785f | ||
![]() |
a8c92cb608 | ||
![]() |
53fda844cc | ||
![]() |
bbf63b0faa | ||
![]() |
2af9fd4960 | ||
![]() |
2c0d65785f | ||
![]() |
d791179d7f | ||
![]() |
c49ed0b6c0 | ||
![]() |
868d8e6831 | ||
![]() |
e3aca1b2ce | ||
![]() |
ddac43b38e | ||
![]() |
416ecc1584 | ||
![]() |
455ba691a7 | ||
![]() |
11332577b3 | ||
![]() |
702b0dd408 | ||
![]() |
e8a9f794f0 | ||
![]() |
bddf3d4705 | ||
![]() |
e99c81a07c | ||
![]() |
fe880475ed | ||
![]() |
5821d5f111 | ||
![]() |
d535c4a2e1 | ||
![]() |
ca8f17a303 | ||
![]() |
fddb7b44a7 | ||
![]() |
49184c3723 | ||
![]() |
cc7f6a2ddf | ||
![]() |
90fe59b829 | ||
![]() |
7b074a460b | ||
![]() |
993cdcd6ee | ||
![]() |
8763374f0e | ||
![]() |
63388fe1f3 | ||
![]() |
b75a88aa72 | ||
![]() |
bb20989a63 | ||
![]() |
0d49e408a4 | ||
![]() |
90c87f311e | ||
![]() |
da06ac7f3f | ||
![]() |
6d9236e805 | ||
![]() |
c306d2e42f | ||
![]() |
f737e3a3dd | ||
![]() |
686586b0f9 | ||
![]() |
e621a5f6ea | ||
![]() |
8093f9541e | ||
![]() |
68e7fb499d | ||
![]() |
d9569720dd | ||
![]() |
1c40685d32 | ||
![]() |
31c6e7af6a | ||
![]() |
552ba67bb1 | ||
![]() |
651254dcc7 | ||
![]() |
26bdafcbf9 | ||
![]() |
02dc9e788f | ||
![]() |
e11c6e9961 | ||
![]() |
e4eaa92728 | ||
![]() |
577f8e5ac6 | ||
![]() |
95ba6cdd54 | ||
![]() |
7ce6cb9ab4 | ||
![]() |
8723cade21 | ||
![]() |
d956d9db47 | ||
![]() |
ecf93ac986 | ||
![]() |
b3a01be2f3 | ||
![]() |
00045a3009 | ||
![]() |
3f7188dd94 | ||
![]() |
720218fea1 | ||
![]() |
73aa95592f | ||
![]() |
ad3fdbc0a4 | ||
![]() |
73cbd21b5e | ||
![]() |
c5ba0c2f54 | ||
![]() |
edddf394b8 | ||
![]() |
61d259f950 | ||
![]() |
c01735865f | ||
![]() |
ca46c5dbe2 | ||
![]() |
2da127abb5 | ||
![]() |
bc33f2200d | ||
![]() |
fd399cde00 | ||
![]() |
00c74019f4 | ||
![]() |
9d0063befa | ||
![]() |
01e55ebb26 | ||
![]() |
4bbad1dac7 | ||
![]() |
ddbda328b3 | ||
![]() |
8ffbeeda80 | ||
![]() |
1d1ffaf912 | ||
![]() |
e0cff02061 | ||
![]() |
7fe95bb0d5 | ||
![]() |
80d241046e | ||
![]() |
5c5e1a1cd2 | ||
![]() |
2eb8dcf26c | ||
![]() |
96ffe645fd | ||
![]() |
c86ea58304 | ||
![]() |
577703495e | ||
![]() |
f8da49eec0 | ||
![]() |
e0fb2d86c9 | ||
![]() |
658ec97055 | ||
![]() |
88535d593e | ||
![]() |
11dee0bfae | ||
![]() |
4594ee5e14 | ||
![]() |
d7f4c3772e | ||
![]() |
29fdb2700f | ||
![]() |
32144ca241 | ||
![]() |
4990f46856 | ||
![]() |
5e24db0cba | ||
![]() |
638c6da9db | ||
![]() |
9141c75bfb | ||
![]() |
704a5dfca9 | ||
![]() |
6b8c36954f | ||
![]() |
762961fe35 | ||
![]() |
4b643f1ca4 | ||
![]() |
e73db5dcbd | ||
![]() |
25f08de4d6 | ||
![]() |
f3bd2abb61 | ||
![]() |
4e2ed01a2e | ||
![]() |
ae4558dbb4 | ||
![]() |
ee7669ba3a | ||
![]() |
e34bc917d6 | ||
![]() |
2ba0f1373c | ||
![]() |
b4fae9d73f | ||
![]() |
e51b23c925 | ||
![]() |
18f0ab7bd3 | ||
![]() |
57aeabcc1a | ||
![]() |
9474c4a9a5 | ||
![]() |
090b55c100 | ||
![]() |
a181e7b084 | ||
![]() |
34fa8d1e38 | ||
![]() |
a03d0c5b88 | ||
![]() |
ac09b5a92b | ||
![]() |
91252d9fb9 | ||
![]() |
efa5488448 | ||
![]() |
e3787e862f | ||
![]() |
6eb56e72de | ||
![]() |
eeefcdff54 | ||
![]() |
bf7a270e0b | ||
![]() |
5e722b2d09 | ||
![]() |
688124f0e9 | ||
![]() |
247b291b12 | ||
![]() |
e7c56a8406 | ||
![]() |
e5d25b6c68 | ||
![]() |
a6eade56ca | ||
![]() |
5f5e4c92c4 | ||
![]() |
07cca0dc7c | ||
![]() |
ed35e1fa1b | ||
![]() |
e87e76e2dc | ||
![]() |
984e20d6bb | ||
![]() |
fbc35d394c | ||
![]() |
3dcc1a9c19 | ||
![]() |
7ba091ca82 | ||
![]() |
ce8a35c318 | ||
![]() |
c3fa3aaf2c | ||
![]() |
8efd74de46 | ||
![]() |
962eb3d9ed | ||
![]() |
eb25dd3be2 | ||
![]() |
43e045fc3e | ||
![]() |
74467f8e78 | ||
![]() |
cfb7e80991 | ||
![]() |
c7e56db050 | ||
![]() |
0614b90213 | ||
![]() |
c4d7c1514f | ||
![]() |
e839e7c61b | ||
![]() |
ca62ac69bb | ||
![]() |
048726a5a2 | ||
![]() |
b1ce7c5a6b | ||
![]() |
b8c195974c | ||
![]() |
1e29d275c6 | ||
![]() |
142755fa5c | ||
![]() |
acafe9c160 | ||
![]() |
8ec2cb5544 | ||
![]() |
c5eabd48e8 | ||
![]() |
11219b3c93 | ||
![]() |
bc6037ed3e | ||
![]() |
ce2008066a | ||
![]() |
d85647cfdd | ||
![]() |
c0c46c3137 | ||
![]() |
7713e67bc5 | ||
![]() |
9a13a516b4 | ||
![]() |
b8a986be06 | ||
![]() |
1c44f83e54 | ||
![]() |
6f1f7e5de8 | ||
![]() |
91ab2497c6 | ||
![]() |
d1d0ee075f | ||
![]() |
90110a9be0 | ||
![]() |
b0dfbf305a | ||
![]() |
b3440f490f | ||
![]() |
2dd56991f7 | ||
![]() |
ff3444c36d | ||
![]() |
5e2ef3942f | ||
![]() |
f660fc4423 | ||
![]() |
5d4e12bbea | ||
![]() |
91e2ce6e76 | ||
![]() |
2ba5f4bf1c | ||
![]() |
bf4cef1db1 | ||
![]() |
8ce915c7a4 | ||
![]() |
1700668d78 | ||
![]() |
a8f93d4efc | ||
![]() |
e4b733e3f1 | ||
![]() |
b50285d751 | ||
![]() |
001e664ff7 | ||
![]() |
01dc954f8a | ||
![]() |
c2fab66575 | ||
![]() |
0f147887b0 | ||
![]() |
911b2d3f67 | ||
![]() |
ba7fbd0960 | ||
![]() |
ac890cd5f2 | ||
![]() |
308dc625f7 | ||
![]() |
8ae9ee0cf2 | ||
![]() |
17c088fb45 | ||
![]() |
e60bf25107 | ||
![]() |
e450f66a02 | ||
![]() |
57ccdfa8d2 | ||
![]() |
491e026ccd | ||
![]() |
83a42ee20e | ||
![]() |
90d7d1b727 | ||
![]() |
92295aa73c | ||
![]() |
50a83890c9 | ||
![]() |
817f73dcda | ||
![]() |
bd86528e6b | ||
![]() |
25d040035e | ||
![]() |
8dc7393d89 | ||
![]() |
245f522761 | ||
![]() |
90c8386187 | ||
![]() |
263db764c4 | ||
![]() |
3a5530a1f3 | ||
![]() |
0d49f92872 | ||
![]() |
b12ddc4eed | ||
![]() |
c2e2938a7e | ||
![]() |
62b5015796 | ||
![]() |
85e944928c | ||
![]() |
5a6464ae09 | ||
![]() |
fb327e42c6 | ||
![]() |
a1348aa23c | ||
![]() |
ad361d109b | ||
![]() |
1fcf52cae4 | ||
![]() |
cbea345f61 | ||
![]() |
059647f398 | ||
![]() |
136a3a0ee2 | ||
![]() |
64b2d2d77e | ||
![]() |
8826435571 | ||
![]() |
6645d2ae8f | ||
![]() |
cb07bca689 | ||
![]() |
09b2db2dfd | ||
![]() |
ca3c0ed3a9 | ||
![]() |
6bdd3d4a88 | ||
![]() |
69eca5c252 | ||
![]() |
0840f01e99 | ||
![]() |
b4c9b515aa | ||
![]() |
b482417ac4 | ||
![]() |
4838d196fd | ||
![]() |
f691f9609c | ||
![]() |
e5bb4e86ac | ||
![]() |
6d8d306905 | ||
![]() |
1f41772bef | ||
![]() |
21c1de430a | ||
![]() |
c5a08af579 | ||
![]() |
bd649ac1c5 | ||
![]() |
70b5173410 | ||
![]() |
eacfb5d8a6 | ||
![]() |
170ae51c47 | ||
![]() |
cc890906b1 | ||
![]() |
b99c9f7c7f | ||
![]() |
ad2920fa85 | ||
![]() |
67b6fa5f95 | ||
![]() |
3df1e35838 | ||
![]() |
7e6d2fe9ec | ||
![]() |
442084cdb5 | ||
![]() |
7f963a19ec | ||
![]() |
9ceee69ff7 | ||
![]() |
a9cc5ee0c6 | ||
![]() |
c1ce09d470 | ||
![]() |
81408d2111 | ||
![]() |
5c89413b24 | ||
![]() |
37f3fcd631 | ||
![]() |
c9f9f601b8 | ||
![]() |
24ffceed81 | ||
![]() |
acfce19de1 | ||
![]() |
b7f39156d4 | ||
![]() |
9d0af3018c | ||
![]() |
fa9748df11 | ||
![]() |
198012ee13 | ||
![]() |
742544aad0 | ||
![]() |
041754e3fa | ||
![]() |
b960f1e8bd | ||
![]() |
c29346613d | ||
![]() |
172e6378f8 | ||
![]() |
26eaa83830 | ||
![]() |
fadf33c78a | ||
![]() |
298f806d01 | ||
![]() |
e6b7dae947 | ||
![]() |
fa637c6cab | ||
![]() |
036366f1ef | ||
![]() |
757aa7b09d | ||
![]() |
b1ebf4bda1 | ||
![]() |
284ea5f924 | ||
![]() |
c03cad3a61 | ||
![]() |
ad8b76d094 | ||
![]() |
226c1c6876 | ||
![]() |
711065e4df | ||
![]() |
ee7034800d | ||
![]() |
1d3ccf27ec | ||
![]() |
51dbaae432 | ||
![]() |
dcffd936e1 | ||
![]() |
e94fbcabd7 | ||
![]() |
ec38ac38c7 | ||
![]() |
0f64dd086a | ||
![]() |
459e1bffee | ||
![]() |
7b471fb344 | ||
![]() |
f8c8c76d39 | ||
![]() |
90b7d0ea59 | ||
![]() |
1383522e3a | ||
![]() |
d46d107e0c | ||
![]() |
25884aa197 | ||
![]() |
be51a46353 | ||
![]() |
48596f87a9 | ||
![]() |
b06a786226 | ||
![]() |
b4eb08e7fb | ||
![]() |
10549ee08f | ||
![]() |
d9235e74ed | ||
![]() |
6ff7197e70 | ||
![]() |
0be2251394 | ||
![]() |
4cef525992 | ||
![]() |
11a22f3264 | ||
![]() |
025ba6e9be | ||
![]() |
cdea86ff67 | ||
![]() |
974c663471 | ||
![]() |
692ef0e158 | ||
![]() |
17f032c0d9 | ||
![]() |
ad3177da24 | ||
![]() |
afad1ce753 | ||
![]() |
13006f3de9 | ||
![]() |
1d86d813c3 | ||
![]() |
f53ed631b3 | ||
![]() |
5b3736b533 | ||
![]() |
cce08581ac | ||
![]() |
c368fbcb10 | ||
![]() |
b644c47192 | ||
![]() |
d03aa16164 | ||
![]() |
aa44ec62aa | ||
![]() |
05c03e7edd | ||
![]() |
f67bd1a344 | ||
![]() |
a8eb059203 | ||
![]() |
59c71c7fc7 | ||
![]() |
58efa46a5d | ||
![]() |
acd22f05dd | ||
![]() |
ce9a0a6d65 | ||
![]() |
f92f341a3f | ||
![]() |
91b2184e1b | ||
![]() |
1ffdc5058e | ||
![]() |
0ffefefe7f | ||
![]() |
764b818934 | ||
![]() |
9d45391347 | ||
![]() |
a390454728 | ||
![]() |
005ad9e60d | ||
![]() |
a360944ed6 | ||
![]() |
6f02209cc8 | ||
![]() |
015ceb4706 | ||
![]() |
e63c33d88d | ||
![]() |
94336d3c1e | ||
![]() |
cc27aff7b3 | ||
![]() |
d23d2f2bd8 | ||
![]() |
37f0caeabd | ||
![]() |
671f896c0b | ||
![]() |
7f5824a106 | ||
![]() |
797b004738 | ||
![]() |
1ff6a8338d | ||
![]() |
66149248ba | ||
![]() |
c38d69f06a | ||
![]() |
324b7fe47b | ||
![]() |
e87a3ccc62 | ||
![]() |
cb3ae6894f | ||
![]() |
e0cbfe825d | ||
![]() |
04456a74d0 | ||
![]() |
5c5b7c7146 | ||
![]() |
7f6c7331b2 | ||
![]() |
0b795db731 | ||
![]() |
8a468ef222 | ||
![]() |
ed7d438a12 | ||
![]() |
8960d81b0d | ||
![]() |
429820b180 | ||
![]() |
539ed6f02a | ||
![]() |
e756641040 | ||
![]() |
2f638a8f5e | ||
![]() |
b6f32464e9 | ||
![]() |
4afcb77820 | ||
![]() |
0ee79114ef | ||
![]() |
29a4a16db8 | ||
![]() |
e2201dc849 | ||
![]() |
4cfc7f951c | ||
![]() |
fcf02cbb75 | ||
![]() |
419bcf9d60 | ||
![]() |
d415327bd7 | ||
![]() |
35fb6bee0e | ||
![]() |
13625a0d09 | ||
![]() |
2476b34b95 | ||
![]() |
3906353b41 | ||
![]() |
65644b8335 | ||
![]() |
6b7cf6c72d | ||
![]() |
217024a687 | ||
![]() |
c3ea3eb6a3 | ||
![]() |
a5b231acc2 | ||
![]() |
790abe3fbe | ||
![]() |
1a4dd1aa7c | ||
![]() |
296b9a5af0 | ||
![]() |
1dac29fa83 | ||
![]() |
cd65ecb2e8 | ||
![]() |
44a3cdb9db | ||
![]() |
80e2b3edb9 | ||
![]() |
52605e006c | ||
![]() |
6a87ac8c88 | ||
![]() |
79f1bf32d0 | ||
![]() |
a995ea05b3 | ||
![]() |
25e577b33d | ||
![]() |
52b5eadf3c | ||
![]() |
06e6fd1aa7 | ||
![]() |
ed7174c6f6 | ||
![]() |
072b1ad15a | ||
![]() |
10c1b11f88 | ||
![]() |
e52fc1e297 | ||
![]() |
12ea5beffc | ||
![]() |
d4703fa428 | ||
![]() |
5e2e3cb54e | ||
![]() |
39b79c6b75 | ||
![]() |
b0e0f44934 | ||
![]() |
6d7033b48a | ||
![]() |
f10006ee5f | ||
![]() |
c35a10483d | ||
![]() |
db3f3c14f2 | ||
![]() |
1346cb19f2 | ||
![]() |
2dbeaf7dad | ||
![]() |
673b7ba80a | ||
![]() |
154bf3d699 | ||
![]() |
8c2c4e21b3 | ||
![]() |
c25383ae13 | ||
![]() |
6106eeba16 | ||
![]() |
8481386513 | ||
![]() |
2683927756 | ||
![]() |
5d8ec4a634 | ||
![]() |
4f328b85c3 | ||
![]() |
92a537a2bb | ||
![]() |
7ed689d24a | ||
![]() |
a6dca9d28c | ||
![]() |
358c5c0745 | ||
![]() |
d821525cee | ||
![]() |
ad7291c1a9 | ||
![]() |
d09d08dc1f | ||
![]() |
0c6fa0dd64 | ||
![]() |
cc8fad9a7f | ||
![]() |
72da89a74d | ||
![]() |
beae838ed5 | ||
![]() |
7970821117 | ||
![]() |
d713e9a207 | ||
![]() |
508cdf4da4 | ||
![]() |
e6c1e773d9 | ||
![]() |
52281a10aa | ||
![]() |
66aa9bf52d | ||
![]() |
bd93062ee5 | ||
![]() |
b56c9eb48e | ||
![]() |
586f5d3614 | ||
![]() |
de492b31c5 | ||
![]() |
5cd85db9fa | ||
![]() |
9a6e580e3a | ||
![]() |
ff8c5a329e | ||
![]() |
da3fc1ee91 | ||
![]() |
85a2e9ec82 | ||
![]() |
18d1ea4528 | ||
![]() |
566a3638fa | ||
![]() |
e0f4af4032 | ||
![]() |
b50ce1e5ba | ||
![]() |
b333504327 | ||
![]() |
2e0a295e3b | ||
![]() |
f6010d9a03 | ||
![]() |
c76cb3da04 | ||
![]() |
2f66ca11c1 | ||
![]() |
a1701eea28 | ||
![]() |
8170d1f828 | ||
![]() |
92f7606f29 | ||
![]() |
fd52530b50 | ||
![]() |
572f7864b2 | ||
![]() |
62bd217464 | ||
![]() |
f0bfc0fbd7 | ||
![]() |
7f266f1c99 | ||
![]() |
5be2499e16 | ||
![]() |
f44d0aedc1 | ||
![]() |
23d17190ee | ||
![]() |
21657823ea | ||
![]() |
3bb45aa7f5 | ||
![]() |
40f9bb787f | ||
![]() |
dda53476ca | ||
![]() |
463082bea4 | ||
![]() |
72688317ad | ||
![]() |
07f97809b8 | ||
![]() |
9613cf7211 | ||
![]() |
ce4b554e5d | ||
![]() |
6da7dc026c | ||
![]() |
e07385f853 | ||
![]() |
86dfcf737d | ||
![]() |
4ed469a56f | ||
![]() |
7704621f4c | ||
![]() |
542507f316 | ||
![]() |
0e66d5878e | ||
![]() |
cecb9c0f71 | ||
![]() |
632e50ca8d | ||
![]() |
7be925aefc | ||
![]() |
611ec0a190 | ||
![]() |
de0410fe9a | ||
![]() |
12dbb8aedc | ||
![]() |
d23d69e14e | ||
![]() |
2488a01337 | ||
![]() |
0a4bb75bc5 | ||
![]() |
bf633a584d | ||
![]() |
0f1deac71e | ||
![]() |
f206d6c055 | ||
![]() |
add37cc49f | ||
![]() |
85625c5e28 | ||
![]() |
453e821ad7 | ||
![]() |
e0c491026f | ||
![]() |
12f4ea50f7 | ||
![]() |
ae6b5f1772 | ||
![]() |
5f8f20f5e6 | ||
![]() |
33a182e6c2 | ||
![]() |
68de6a0b3e | ||
![]() |
25d13822ae | ||
![]() |
25f351424b | ||
![]() |
cb3e6dfa35 | ||
![]() |
1d22407863 | ||
![]() |
bb7c2ee37c | ||
![]() |
278ab75e9f | ||
![]() |
0d1b754376 | ||
![]() |
4cd027f17e | ||
![]() |
bd1f170a5a | ||
![]() |
03577a355e | ||
![]() |
022e67294e | ||
![]() |
7fd5f680ea | ||
![]() |
9ca812f386 | ||
![]() |
a94a68a3c1 | ||
![]() |
f850abf439 | ||
![]() |
e1cd753e4d | ||
![]() |
4c26ba9cea | ||
![]() |
c0c334b42a | ||
![]() |
b4270a9af1 | ||
![]() |
6b6bdc83bd | ||
![]() |
56b7c87c74 | ||
![]() |
32e8467a66 | ||
![]() |
e243d80dea | ||
![]() |
a33075b8d3 | ||
![]() |
ddd40a43aa | ||
![]() |
38131d415b | ||
![]() |
c7b6e43ef8 | ||
![]() |
3d7b7b6b84 | ||
![]() |
163a1dca5f | ||
![]() |
23a47ef01b | ||
![]() |
38ec16d671 | ||
![]() |
d411402a65 | ||
![]() |
826e1b81fa | ||
![]() |
11dde6ac72 | ||
![]() |
0494da830b | ||
![]() |
5243b18f3d | ||
![]() |
0e5e720c19 | ||
![]() |
3dbf11d0a1 | ||
![]() |
499e30c4bb | ||
![]() |
73fae58132 | ||
![]() |
44cf225f7a | ||
![]() |
d9c3505e83 | ||
![]() |
593f242803 | ||
![]() |
a76ea8b79a | ||
![]() |
c0e8e94ca2 | ||
![]() |
eb2e62c0af | ||
![]() |
2bfb8b6080 | ||
![]() |
fda0f14f73 | ||
![]() |
f8ba1273af | ||
![]() |
8b275718e2 | ||
![]() |
379d63ecc7 | ||
![]() |
b1826d81fb | ||
![]() |
6a55f25f67 | ||
![]() |
f2f897172f | ||
![]() |
aa9e72d358 | ||
![]() |
c527759701 | ||
![]() |
5c28a64e57 | ||
![]() |
8c6c42a67f | ||
![]() |
045c734e16 | ||
![]() |
de991037e4 | ||
![]() |
56d4de468c | ||
![]() |
2698520aef | ||
![]() |
fa176376c8 | ||
![]() |
efe4656656 | ||
![]() |
0ed4a0923c | ||
![]() |
a3e65b1a50 | ||
![]() |
1347b3085c | ||
![]() |
9d1effad05 | ||
![]() |
e5ea45ec2e | ||
![]() |
63605d281f | ||
![]() |
f4cc54cb47 | ||
![]() |
34ae007d4d | ||
![]() |
d90b9aee64 | ||
![]() |
ece8681a60 | ||
![]() |
7b5be79908 | ||
![]() |
446afec71a | ||
![]() |
e2bfae239f | ||
![]() |
ccb34cb46d | ||
![]() |
0e1855d9d3 | ||
![]() |
c43127414d | ||
![]() |
9fd88abb70 | ||
![]() |
4ed6b07d8d | ||
![]() |
533c31b785 | ||
![]() |
7ab3ae0bf0 | ||
![]() |
4b401b2d99 | ||
![]() |
d7f2c3af5f | ||
![]() |
bc682cbd3e | ||
![]() |
26613d7817 | ||
![]() |
18e7c14f30 | ||
![]() |
16abdd4f39 | ||
![]() |
99229b74eb | ||
![]() |
600cbaca6f | ||
![]() |
b36f1d26f8 | ||
![]() |
d17f536688 | ||
![]() |
b35a176c66 | ||
![]() |
a7db42e4f0 | ||
![]() |
308cce8231 | ||
![]() |
a6848250d2 | ||
![]() |
a9ca5e61e5 | ||
![]() |
06558695d5 | ||
![]() |
dd73c924ac | ||
![]() |
5a053ffe80 | ||
![]() |
e2bcd2ab9e | ||
![]() |
fea3a3d569 | ||
![]() |
75fa3542d0 | ||
![]() |
4ffb8a6398 | ||
![]() |
7a6d8b1b1a | ||
![]() |
905d0be509 | ||
![]() |
fd3efca164 | ||
![]() |
825677ad09 | ||
![]() |
561b551deb | ||
![]() |
6a4f5e5268 | ||
![]() |
f6e33cf669 | ||
![]() |
4e6265ea5a | ||
![]() |
494b8664da | ||
![]() |
d6bebd56f7 | ||
![]() |
70dcde78d0 | ||
![]() |
89a3086231 | ||
![]() |
cfb6f03224 | ||
![]() |
11f55a9672 | ||
![]() |
5475ac279d | ||
![]() |
a77d18efaf | ||
![]() |
dd561c3834 | ||
![]() |
db20517796 | ||
![]() |
4a5aa6682d | ||
![]() |
e0ba958e28 | ||
![]() |
8f80f412fb | ||
![]() |
cc4ac82bb6 | ||
![]() |
1795e24176 | ||
![]() |
b708a522a1 | ||
![]() |
65e8ba8e1d | ||
![]() |
0b3180b4f5 | ||
![]() |
8f13e3ddb9 | ||
![]() |
7d83dfff9c | ||
![]() |
dbf93a8973 | ||
![]() |
5b6e7927c6 | ||
![]() |
13606bbfde | ||
![]() |
8f0171bdd4 | ||
![]() |
c087374c64 | ||
![]() |
dfe4769157 | ||
![]() |
404a95b588 | ||
![]() |
bc5298e25c | ||
![]() |
d86503ea82 | ||
![]() |
bd8ae68006 | ||
![]() |
c02449ca53 | ||
![]() |
1576548428 | ||
![]() |
36837c10b2 | ||
![]() |
f947de4bb5 | ||
![]() |
2424b7ab1b | ||
![]() |
c43af566fa | ||
![]() |
488245f99c | ||
![]() |
27f90c0962 | ||
![]() |
ffa62e5bab | ||
![]() |
2255ac52f7 | ||
![]() |
b3204e6d60 | ||
![]() |
f6f6f278e2 | ||
![]() |
167717b806 | ||
![]() |
8177bc262f | ||
![]() |
ffd8e127e7 | ||
![]() |
f871de0064 | ||
![]() |
ec691ca34b | ||
![]() |
709b3506cd | ||
![]() |
2ee2693a47 | ||
![]() |
431ead1c9a | ||
![]() |
e3ed2b82e6 | ||
![]() |
311151beab | ||
![]() |
ae2a2c9931 | ||
![]() |
eb5aa12c8b | ||
![]() |
77b5c0b2cf | ||
![]() |
b44da5a82a | ||
![]() |
219fe7b29c | ||
![]() |
d49531dd3a | ||
![]() |
4a23b19a13 | ||
![]() |
a662f86f6f | ||
![]() |
d335aa2cdc | ||
![]() |
0aabfd9963 | ||
![]() |
14b77db1b9 | ||
![]() |
e125eea5a6 | ||
![]() |
1649e680f6 | ||
![]() |
2897ce7dc2 | ||
![]() |
5ed03ebe52 | ||
![]() |
3456bbc4cc | ||
![]() |
7a09907146 | ||
![]() |
a1fc9b80c8 | ||
![]() |
dfe382c6ae | ||
![]() |
b3d91a147f | ||
![]() |
c59c5e8ea2 | ||
![]() |
0969045b6e | ||
![]() |
c30c557e4d | ||
![]() |
d738adc1fb | ||
![]() |
c691037517 | ||
![]() |
eafccdb315 | ||
![]() |
b7a1eccce8 | ||
![]() |
c91a6cd78f | ||
![]() |
7d49d774fd | ||
![]() |
9ab5f9dd8d | ||
![]() |
b8dde1cf19 | ||
![]() |
57fa576a35 | ||
![]() |
f6af9d9886 | ||
![]() |
87e8691e7c | ||
![]() |
bbb4bbc0f1 | ||
![]() |
0e8e340cba | ||
![]() |
a0b207164c | ||
![]() |
f254c59dc7 | ||
![]() |
568befb6aa | ||
![]() |
f4b60e7f14 | ||
![]() |
85b77209ae | ||
![]() |
e880680fb6 | ||
![]() |
aee540b831 | ||
![]() |
4710d3d969 | ||
![]() |
d758234ade | ||
![]() |
c07a6f3ff3 | ||
![]() |
d021f2e8a0 | ||
![]() |
ca5f4e2135 | ||
![]() |
3c6ea7ca82 | ||
![]() |
8b15c84ea9 | ||
![]() |
60edbf65b6 | ||
![]() |
fe2b2a3b9d | ||
![]() |
7332a7cafb | ||
![]() |
23f8dca6fb | ||
![]() |
b908376bef | ||
![]() |
8b02afd9a9 | ||
![]() |
3202cc6162 | ||
![]() |
068f7ae264 | ||
![]() |
68d2830ee9 | ||
![]() |
2ecdd48683 | ||
![]() |
6bd6b3a8a1 | ||
![]() |
91b57cd6e5 | ||
![]() |
d27a46f09b | ||
![]() |
4abf4fbaac | ||
![]() |
16a8281f71 | ||
![]() |
534d2ca1d7 | ||
![]() |
79954a1b07 | ||
![]() |
b33074d893 | ||
![]() |
0683adbf50 | ||
![]() |
68e2c9a85f | ||
![]() |
616a0099d1 | ||
![]() |
665adcd4b7 | ||
![]() |
91dc73ef44 | ||
![]() |
14dc679ce0 | ||
![]() |
ef6f040355 | ||
![]() |
c1dd687af6 | ||
![]() |
f435d6699d | ||
![]() |
ba33665d1f | ||
![]() |
67f053b672 | ||
![]() |
cfb67752fe | ||
![]() |
ba476bb6d8 | ||
![]() |
7762192ecf | ||
![]() |
b9fdb721f2 | ||
![]() |
c830115c48 | ||
![]() |
52af6e69f0 | ||
![]() |
32be348af2 | ||
![]() |
7e87499213 | ||
![]() |
7719333f55 | ||
![]() |
276452ca10 | ||
![]() |
1b10dd7aae | ||
![]() |
7aebb3cc42 | ||
![]() |
6f444b2761 | ||
![]() |
81d96c4421 | ||
![]() |
10296ac665 | ||
![]() |
ab0fa55780 | ||
![]() |
409f2a041f | ||
![]() |
dd75cba3ef | ||
![]() |
ee588fe088 | ||
![]() |
db4215f14a | ||
![]() |
32afaaef93 | ||
![]() |
0ac827848d | ||
![]() |
c277bd6ce7 | ||
![]() |
6d8443a245 | ||
![]() |
53c83ee3ed | ||
![]() |
fa1ae0abcd | ||
![]() |
38ed72cd37 | ||
![]() |
1099f3a071 | ||
![]() |
6a4bdb027b | ||
![]() |
7c0cbcf2f6 | ||
![]() |
076e1fa348 | ||
![]() |
cd5261ea6d | ||
![]() |
4b994e14fb | ||
![]() |
e62ee60c7a | ||
![]() |
e237402c47 | ||
![]() |
1c23d2b392 | ||
![]() |
7ecd874bce | ||
![]() |
49c37e6c1c | ||
![]() |
dca8ae5f02 | ||
![]() |
cf75a64651 | ||
![]() |
0af1a9d270 | ||
![]() |
1394cad30f | ||
![]() |
18c0e9bd71 | ||
![]() |
c70c1a22d2 | ||
![]() |
5a4f6413d1 | ||
![]() |
6d1b493f3d | ||
![]() |
7840c4c70c | ||
![]() |
9096f4f451 | ||
![]() |
487538e87a | ||
![]() |
e1fa945e7e | ||
![]() |
cda6d891ab | ||
![]() |
473003fbdf | ||
![]() |
3f20303702 | ||
![]() |
a1be8e7f9b | ||
![]() |
8d97bed806 | ||
![]() |
13ce9031cc | ||
![]() |
95326a40ff | ||
![]() |
8e329bb759 | ||
![]() |
da82f59b69 | ||
![]() |
ab1f80200a | ||
![]() |
41eec4efa2 | ||
![]() |
2045d83dd3 | ||
![]() |
0da6c113ce | ||
![]() |
fa6d78829f | ||
![]() |
550e403f00 | ||
![]() |
f99430d89e | ||
![]() |
09a491378a | ||
![]() |
9019a0a86c | ||
![]() |
b2954e66e8 | ||
![]() |
7c0f201075 | ||
![]() |
0ecb57056f | ||
![]() |
3be96564a8 | ||
![]() |
0cb5650386 | ||
![]() |
8f61e5cea7 | ||
![]() |
34ff881ece | ||
![]() |
af121ccad8 | ||
![]() |
c81eb7e226 | ||
![]() |
74fe1b95fb | ||
![]() |
d1c769877a | ||
![]() |
94891ff296 | ||
![]() |
12a40e17a9 | ||
![]() |
8ffc971138 | ||
![]() |
f1d2e18508 | ||
![]() |
1a02e84589 | ||
![]() |
c79c0909d9 | ||
![]() |
3fc5779b91 | ||
![]() |
ff32546d81 | ||
![]() |
99b036c9b2 | ||
![]() |
33c02d4771 | ||
![]() |
8373ca3641 | ||
![]() |
3644a35027 | ||
![]() |
542802af23 | ||
![]() |
9547be37c2 | ||
![]() |
974d5d5921 | ||
![]() |
211605f0c5 | ||
![]() |
a5b6f91e8d | ||
![]() |
fbf3560886 | ||
![]() |
07593b2422 | ||
![]() |
cd423348d9 | ||
![]() |
90821c6202 | ||
![]() |
dee2ef8083 | ||
![]() |
50a7d32af0 | ||
![]() |
a5c6ecba8d | ||
![]() |
7a53474f43 | ||
![]() |
6b18f18b4c | ||
![]() |
971f5bcedd | ||
![]() |
42bbc5ce10 | ||
![]() |
c01b6f4d09 | ||
![]() |
9da2c96039 | ||
![]() |
e8ab9a0d27 | ||
![]() |
628c4e7af1 | ||
![]() |
4ea7a65af7 | ||
![]() |
d89861f651 | ||
![]() |
0c8ccf7207 | ||
![]() |
39dff07a27 | ||
![]() |
84e6c7a9e5 | ||
![]() |
c1400f6f12 | ||
![]() |
889038f668 | ||
![]() |
907a9d25e8 | ||
![]() |
b3d72a95be | ||
![]() |
b78944146a | ||
![]() |
9b25b00fa3 | ||
![]() |
ba41ecfa17 | ||
![]() |
1ab6c35363 | ||
![]() |
5162cb8ad6 | ||
![]() |
8a2be299f4 | ||
![]() |
f73a27cadc | ||
![]() |
f332f14102 | ||
![]() |
775cc1be66 | ||
![]() |
f05e51362f | ||
![]() |
ce515e993f | ||
![]() |
a34197ef77 | ||
![]() |
7f7e2ea72f | ||
![]() |
4d384a8714 | ||
![]() |
c44e6741ce | ||
![]() |
94c3e0f702 | ||
![]() |
c8846c0907 | ||
![]() |
f9da9a0edb | ||
![]() |
6372144be0 | ||
![]() |
ef753b710b | ||
![]() |
e6ba048701 | ||
![]() |
71813f5e46 | ||
![]() |
a6df3550cf | ||
![]() |
8a57b3c972 | ||
![]() |
f665e5d130 | ||
![]() |
fa4b4d2033 | ||
![]() |
a492632022 | ||
![]() |
6c6f1f64c2 | ||
![]() |
160312d945 | ||
![]() |
badb81769a | ||
![]() |
8b5d050267 | ||
![]() |
2e7d2c8f74 | ||
![]() |
3a0b64489f | ||
![]() |
ee3551e45e | ||
![]() |
1b0477a5a9 | ||
![]() |
4ae2f77ba1 | ||
![]() |
0a0f3c63a6 | ||
![]() |
da0d15733c | ||
![]() |
cb2feb9def | ||
![]() |
abb0da9193 | ||
![]() |
b6a141ea8a | ||
![]() |
ca84361e4b | ||
![]() |
09d9dd8873 | ||
![]() |
925707c0f8 | ||
![]() |
de24d7bd4c | ||
![]() |
2f6e1a8cc3 | ||
![]() |
40153716a3 | ||
![]() |
7735141e73 | ||
![]() |
5ede86ae51 | ||
![]() |
3b7d31c1ed | ||
![]() |
d4af0bb8f6 | ||
![]() |
4eec66e479 | ||
![]() |
4c070de4fb | ||
![]() |
54faab69cb | ||
![]() |
8136649e9d | ||
![]() |
71358ddffd | ||
![]() |
be5fbf7372 | ||
![]() |
ba569a27cc | ||
![]() |
0f76e492ae | ||
![]() |
a90492a083 | ||
![]() |
f4b4365c19 | ||
![]() |
d792e75f2c | ||
![]() |
41a3bff3da | ||
![]() |
82b0aebef3 | ||
![]() |
23ef5e4ba2 | ||
![]() |
44154e0733 | ||
![]() |
d22186bbbc | ||
![]() |
b8983aa309 | ||
![]() |
4dcde5aa3d | ||
![]() |
99f0e45b61 | ||
![]() |
7520f9f1c3 | ||
![]() |
f208bf5a2d | ||
![]() |
52b6eda4f2 | ||
![]() |
73342f0ee0 | ||
![]() |
0774386b23 | ||
![]() |
e351972bc8 | ||
![]() |
021e89b8c6 | ||
![]() |
4dd44d9c20 | ||
![]() |
31f39120b7 | ||
![]() |
b9fb9c2380 | ||
![]() |
14afbf361a | ||
![]() |
bf6dc61967 | ||
![]() |
1de496cf0f | ||
![]() |
154fc29f58 | ||
![]() |
52db6e370d | ||
![]() |
672f24b1dc | ||
![]() |
2f02d825f1 | ||
![]() |
15108d6308 | ||
![]() |
c771968ab6 | ||
![]() |
b61e8b81f5 | ||
![]() |
77f72aa6c3 | ||
![]() |
b4a558041f | ||
![]() |
8bad5f2a61 | ||
![]() |
f0d611df9e | ||
![]() |
013d043d22 | ||
![]() |
382429e760 | ||
![]() |
0b08491f83 | ||
![]() |
5fbf4e348c | ||
![]() |
73b1a965f7 | ||
![]() |
42e4c34ff3 | ||
![]() |
0df14c8393 | ||
![]() |
60a2ee88a5 | ||
![]() |
66a77a9b49 | ||
![]() |
3b9103e4a6 | ||
![]() |
77c66e0247 | ||
![]() |
9f304291bd | ||
![]() |
986c7949c0 | ||
![]() |
69f5fe070d | ||
![]() |
5dedda1448 | ||
![]() |
24c43e9d34 | ||
![]() |
50b87c4e68 | ||
![]() |
ce8311c7e4 | ||
![]() |
674da8ae07 | ||
![]() |
84490052d4 | ||
![]() |
19035292d0 | ||
![]() |
81656a8466 | ||
![]() |
76ba591957 | ||
![]() |
1f8518c5d9 | ||
![]() |
a52857cb02 | ||
![]() |
9e01625779 | ||
![]() |
6e1f867523 | ||
![]() |
cd350e3829 | ||
![]() |
0bededd7c5 | ||
![]() |
a797e9efdf | ||
![]() |
27893c64f3 | ||
![]() |
dd4699c111 | ||
![]() |
11a7ac0d6a | ||
![]() |
b13106339e | ||
![]() |
1b1c43a9fe | ||
![]() |
7b5c411f5c | ||
![]() |
7f9f94a1df | ||
![]() |
3b4d430cd8 | ||
![]() |
33b815e894 | ||
![]() |
f92779198d | ||
![]() |
9ac5cdfc2f | ||
![]() |
8a279d2275 | ||
![]() |
c0f8340c7c | ||
![]() |
d317ca50ae | ||
![]() |
487406c3c0 | ||
![]() |
2c7cfd2926 | ||
![]() |
c66f6e60fc | ||
![]() |
b0735f3165 | ||
![]() |
1fc5a41447 | ||
![]() |
cb787b70bf | ||
![]() |
0f15ed1617 | ||
![]() |
5d80017fd6 | ||
![]() |
e1711b0e9a | ||
![]() |
c27cc4cfe0 | ||
![]() |
dc470723b1 | ||
![]() |
da2bde9d62 | ||
![]() |
13abfd997e | ||
![]() |
8276791749 | ||
![]() |
9d11716933 | ||
![]() |
ff318a6302 | ||
![]() |
0e24c1e921 | ||
![]() |
9ca3137987 | ||
![]() |
20ff8a0988 | ||
![]() |
771e91374b | ||
![]() |
1a74e54e8b | ||
![]() |
6e3802a2cf | ||
![]() |
df5a47b819 | ||
![]() |
a39789c85c | ||
![]() |
b7298e49ae | ||
![]() |
be795f90da | ||
![]() |
1c4663bc42 | ||
![]() |
d759a70db8 | ||
![]() |
1dcf4418ba | ||
![]() |
685366006c | ||
![]() |
85ce195f75 | ||
![]() |
18f8b7eb72 | ||
![]() |
0dc1e1e92e | ||
![]() |
0e1f107f83 | ||
![]() |
dfe405076e | ||
![]() |
dce2e1aa0f | ||
![]() |
d8ce83e73a | ||
![]() |
33eac5f7fd | ||
![]() |
0025770a99 | ||
![]() |
d4bade7a4e | ||
![]() |
f9dfd7e4b7 | ||
![]() |
c7106b3eb7 | ||
![]() |
f2b6ebed7b | ||
![]() |
e5843470e8 | ||
![]() |
4ab2d26cb8 | ||
![]() |
40cd996cc0 | ||
![]() |
904346bf88 | ||
![]() |
c42ca3e73a | ||
![]() |
329be28d69 | ||
![]() |
9a158f1ef0 | ||
![]() |
61c7af92f2 | ||
![]() |
59c88da74d | ||
![]() |
bce8bc203f | ||
![]() |
24af69a411 | ||
![]() |
d7c9f2f63a | ||
![]() |
d39bbcfa8d | ||
![]() |
86871577d9 | ||
![]() |
aeca33f96c | ||
![]() |
825fff880e | ||
![]() |
68e6b56a2a | ||
![]() |
5a99bce07d | ||
![]() |
4ac56b9d9f | ||
![]() |
b1f64d3a2a | ||
![]() |
e77d867068 | ||
![]() |
1b27bb446f | ||
![]() |
ed7bfeee7a | ||
![]() |
176f7ea3bb | ||
![]() |
6398c8bba8 | ||
![]() |
c5de48b56c | ||
![]() |
28dc509dde | ||
![]() |
897cf5d117 | ||
![]() |
a3dbbcfd2a | ||
![]() |
6388ac7dc1 | ||
![]() |
304e24e211 | ||
![]() |
6fb0ed88d6 | ||
![]() |
98ca62c2d6 | ||
![]() |
1ba5712f88 | ||
![]() |
1a97fd7b63 | ||
![]() |
32b4896107 | ||
![]() |
c75ece4442 | ||
![]() |
016dabcf04 | ||
![]() |
ae8f08ee59 | ||
![]() |
33ee67112f | ||
![]() |
e0b9d3b2c9 | ||
![]() |
33e19f881e | ||
![]() |
dd302206ad | ||
![]() |
b3ebfc2b74 | ||
![]() |
069b280f63 | ||
![]() |
89b431f60f | ||
![]() |
4e3320a679 | ||
![]() |
39a72bbcd1 | ||
![]() |
696ddf6f0a | ||
![]() |
60d5a16b99 | ||
![]() |
febd598597 | ||
![]() |
7747136421 | ||
![]() |
dd707b746f | ||
![]() |
ac6111aeb0 | ||
![]() |
c0f2bfb2c7 | ||
![]() |
74552acaea | ||
![]() |
5600879a1d | ||
![]() |
bf4580d5fd | ||
![]() |
5439849246 | ||
![]() |
3bda1cef92 | ||
![]() |
e3014dcc01 | ||
![]() |
57d2732ccb | ||
![]() |
e6b2eb78a2 | ||
![]() |
6c09ffaf46 | ||
![]() |
5ce9e7a0b7 | ||
![]() |
3e6dfe138a | ||
![]() |
7aa95afadd | ||
![]() |
dc7dc9786f | ||
![]() |
aed6db2cb9 | ||
![]() |
3a4b28d473 | ||
![]() |
f1474db360 | ||
![]() |
a8478fc8d3 | ||
![]() |
849179ba27 | ||
![]() |
6d1ea388cb | ||
![]() |
07e3ea7f26 | ||
![]() |
4afc33db8d | ||
![]() |
d025af9bb5 | ||
![]() |
f99f02bb05 | ||
![]() |
92c40ce190 | ||
![]() |
1eb74f94c4 | ||
![]() |
a28cda3653 | ||
![]() |
861e1ba604 | ||
![]() |
7731c34d79 | ||
![]() |
14dc361433 | ||
![]() |
7f59577fdd | ||
![]() |
b193ba8a02 | ||
![]() |
53423673ca | ||
![]() |
2f738c7f40 | ||
![]() |
aefb9196cf | ||
![]() |
7292486ec3 | ||
![]() |
7561a0fc83 | ||
![]() |
196c8242ca | ||
![]() |
424bb35877 | ||
![]() |
08e0ad7b39 | ||
![]() |
2ebb87f047 | ||
![]() |
006b83798e | ||
![]() |
293c9288b3 | ||
![]() |
8f92e8be12 | ||
![]() |
a3e3f8ffa0 | ||
![]() |
07086c9487 | ||
![]() |
066811592d | ||
![]() |
72a5813192 | ||
![]() |
99b13f2741 | ||
![]() |
a15378e073 | ||
![]() |
7d2abe27dd | ||
![]() |
64962b0218 | ||
![]() |
75dd191bdf | ||
![]() |
e93e3bcb82 | ||
![]() |
feaf8f9590 | ||
![]() |
8a8829499d | ||
![]() |
1e4c57fa64 | ||
![]() |
29dd7192e6 | ||
![]() |
705330c750 | ||
![]() |
599a2c1f1a | ||
![]() |
5a8649863c | ||
![]() |
05f6f2497a | ||
![]() |
d56e8bcc8a | ||
![]() |
220776de6b | ||
![]() |
3da2c0f6d2 | ||
![]() |
ac3e356c95 | ||
![]() |
a96fa00f38 | ||
![]() |
a5e0583cd3 | ||
![]() |
46480bb9a1 | ||
![]() |
16c725dbc7 | ||
![]() |
0fd5dda99d | ||
![]() |
9d8375c29b | ||
![]() |
508dbb99aa | ||
![]() |
42f0588ea8 | ||
![]() |
6085ca2aed | ||
![]() |
a8259945c4 | ||
![]() |
3af5023a20 | ||
![]() |
2bac074f08 | ||
![]() |
d098cfd8c0 | ||
![]() |
b4b7f6828c | ||
![]() |
0d0893f2b9 | ||
![]() |
2bfa57bc32 | ||
![]() |
b276ac7691 | ||
![]() |
32ce7f19b2 | ||
![]() |
819afe46ee | ||
![]() |
c13af84372 | ||
![]() |
47c1bf9e43 | ||
![]() |
d95b8e0627 | ||
![]() |
1e8e6057ea | ||
![]() |
38f05cea46 | ||
![]() |
7bf910482e | ||
![]() |
b8edf5bbe9 | ||
![]() |
5e7a0fe73b | ||
![]() |
746b80a210 | ||
![]() |
764a5e4a50 | ||
![]() |
af0888aaf6 | ||
![]() |
9c18bb3702 | ||
![]() |
c7cc914961 | ||
![]() |
c45069bfbe | ||
![]() |
9a51c11074 | ||
![]() |
cb142cf217 | ||
![]() |
7da6a9128b | ||
![]() |
61d152384e | ||
![]() |
0c86ccc647 | ||
![]() |
a92df2e007 | ||
![]() |
634f7cfee4 | ||
![]() |
70d56bfe3c | ||
![]() |
bd38ebc697 | ||
![]() |
b15434e749 | ||
![]() |
7047e2ed72 | ||
![]() |
c1311c2b8f | ||
![]() |
0bb5ff5d1a | ||
![]() |
64dc957a41 | ||
![]() |
3d3a3f9e7c | ||
![]() |
8d78848a39 | ||
![]() |
90412c8613 | ||
![]() |
78729e76da | ||
![]() |
f858bb0d1f | ||
![]() |
15ca80c831 | ||
![]() |
ec9e9f38b1 | ||
![]() |
46792af733 | ||
![]() |
445245ca85 | ||
![]() |
f96f1f3165 | ||
![]() |
bead90a837 | ||
![]() |
aaa42aa0d5 | ||
![]() |
1f635608bb | ||
![]() |
9c94236e6c | ||
![]() |
3f9ab7cf5d | ||
![]() |
63e9685470 | ||
![]() |
6cd084a3b5 | ||
![]() |
72c7c1d64e | ||
![]() |
6ea32b8b76 | ||
![]() |
1aaf86a596 | ||
![]() |
6188855b67 | ||
![]() |
a3660127a4 | ||
![]() |
c09c621af7 | ||
![]() |
4e430a8a16 | ||
![]() |
6478e1d7e5 | ||
![]() |
a884ffe430 | ||
![]() |
c29d1f4e3a | ||
![]() |
674e53f40e | ||
![]() |
68857e40d6 | ||
![]() |
dd576194ce | ||
![]() |
870c99b7e7 | ||
![]() |
e3f5e04cf0 | ||
![]() |
0cd8c287a4 | ||
![]() |
eeeba1496c | ||
![]() |
186b101deb | ||
![]() |
d2fc8b4a5f | ||
![]() |
04ca9aecd1 | ||
![]() |
2e48139fbf | ||
![]() |
0636af6131 | ||
![]() |
7352ac408b | ||
![]() |
c41d959ee6 | ||
![]() |
430791616b | ||
![]() |
00fddba672 | ||
![]() |
eef4b3fcfc | ||
![]() |
aaa1e7f9d4 | ||
![]() |
37550c16f9 | ||
![]() |
b1f2a680bd | ||
![]() |
2b56e4c1bb | ||
![]() |
62f374b19e | ||
![]() |
89b5680d81 | ||
![]() |
0f3c330ad8 | ||
![]() |
7157363ab4 | ||
![]() |
c5b66836a5 | ||
![]() |
57e6336794 | ||
![]() |
64510fe917 | ||
![]() |
38dfe52559 | ||
![]() |
7759d10f36 | ||
![]() |
32ab3276ee | ||
![]() |
74a7ee9973 | ||
![]() |
0c460e80ed | ||
![]() |
bf51b8c07a | ||
![]() |
04a6f0a1a4 | ||
![]() |
1fc89eb87f | ||
![]() |
e336bc7c42 | ||
![]() |
b511486fcd | ||
![]() |
3bfff57e1f | ||
![]() |
628e62a966 | ||
![]() |
f087211566 | ||
![]() |
665e16899c | ||
![]() |
58987556d5 | ||
![]() |
79c2af3082 | ||
![]() |
8c0bfd3e0c | ||
![]() |
24f127027b | ||
![]() |
2b9ca12edf | ||
![]() |
3b8cf5bd14 | ||
![]() |
c12a414b21 | ||
![]() |
b5bb61ee69 | ||
![]() |
69f01ec2d1 | ||
![]() |
4cff10af69 | ||
![]() |
c4e3578e4b | ||
![]() |
797315044d | ||
![]() |
08c128bd93 | ||
![]() |
530675a1ad | ||
![]() |
273e9afcc8 | ||
![]() |
9c7016f560 | ||
![]() |
69ba0da827 | ||
![]() |
1fa2af5136 | ||
![]() |
cfa81b8fb0 | ||
![]() |
69f7156ad9 | ||
![]() |
6f964e4f06 | ||
![]() |
d9ca9e9869 | ||
![]() |
2df6e6d9f8 | ||
![]() |
379efd62aa | ||
![]() |
00dd45720e | ||
![]() |
54d484e136 | ||
![]() |
cb3d0ce2cb | ||
![]() |
f86432b119 | ||
![]() |
2c6d32b864 | ||
![]() |
3c14c524c5 | ||
![]() |
8e860c1662 | ||
![]() |
c90acaa77a | ||
![]() |
b420f60a06 | ||
![]() |
7291c1f565 | ||
![]() |
3fa0fbb816 | ||
![]() |
a9d798c4d5 | ||
![]() |
72f4b534c4 | ||
![]() |
a03100c357 | ||
![]() |
a7731673d0 | ||
![]() |
3124a8df93 | ||
![]() |
c267c53017 | ||
![]() |
dc454bd16b | ||
![]() |
c6495bccbf | ||
![]() |
f95f19e854 | ||
![]() |
ca8b4e9742 | ||
![]() |
cd4cf989bb | ||
![]() |
6015b71c4e | ||
![]() |
1bfd750f3f | ||
![]() |
7bdb9fba95 | ||
![]() |
6927153703 | ||
![]() |
6a655ca192 | ||
![]() |
9f7f7925da | ||
![]() |
c3ef63f167 | ||
![]() |
94eb132896 | ||
![]() |
383641d70a | ||
![]() |
963bcde476 | ||
![]() |
dde279ed31 | ||
![]() |
89747794fe | ||
![]() |
462f10f824 | ||
![]() |
8834448cc1 | ||
![]() |
ee483aeca2 | ||
![]() |
fd17cd4d9c | ||
![]() |
53f2c02ac7 | ||
![]() |
1919352a10 | ||
![]() |
9f9f9ed1b2 | ||
![]() |
a0d7a26e32 | ||
![]() |
bb1ce6cc0b | ||
![]() |
b5fdbe848b | ||
![]() |
efb8471a69 | ||
![]() |
25c1b29226 | ||
![]() |
2839c059b1 | ||
![]() |
cb9e2e8466 | ||
![]() |
a379a4c163 | ||
![]() |
b061fed981 | ||
![]() |
9c480490f7 | ||
![]() |
978b808f7d | ||
![]() |
74be993576 | ||
![]() |
4f3ec68dc7 | ||
![]() |
d220834f80 | ||
![]() |
244e966138 | ||
![]() |
c262c35676 | ||
![]() |
ef60fdbd73 | ||
![]() |
b1f081f6e6 | ||
![]() |
6cc066a2c5 | ||
![]() |
0fd7fa7daf | ||
![]() |
9258b84673 | ||
![]() |
fdf2517bd9 | ||
![]() |
cc36756aa2 | ||
![]() |
1c58f291cc | ||
![]() |
8ae1e657e8 | ||
![]() |
7ba07c80a1 | ||
![]() |
fec096f153 | ||
![]() |
499ffe2f8c | ||
![]() |
cf41ee3ac9 | ||
![]() |
e315927a1a | ||
![]() |
03c1bcf4bd | ||
![]() |
92f841aef7 | ||
![]() |
9fafa68533 | ||
![]() |
e7257dcf2e | ||
![]() |
3ebcfdda36 | ||
![]() |
77bac26587 | ||
![]() |
d6773834f2 | ||
![]() |
6f998400d9 | ||
![]() |
64f48e884e | ||
![]() |
e146a5f132 | ||
![]() |
1beda0cbb7 | ||
![]() |
72b72fe8ed | ||
![]() |
bd9eb30ffd | ||
![]() |
dd18e714ff | ||
![]() |
d6c449e3b4 | ||
![]() |
071f8d4182 | ||
![]() |
d83233501f | ||
![]() |
419a50f817 | ||
![]() |
975d23480c | ||
![]() |
13211705cd | ||
![]() |
9ec0b7e0c4 | ||
![]() |
412510f974 | ||
![]() |
683bfa60ad | ||
![]() |
77172a242f | ||
![]() |
46cd5f1dad | ||
![]() |
2976de4808 | ||
![]() |
560cd62272 | ||
![]() |
0f54880277 | ||
![]() |
5cd524df18 | ||
![]() |
94111bbbd4 | ||
![]() |
df4205c10a | ||
![]() |
9421b06397 | ||
![]() |
09690be8de | ||
![]() |
ce8a321dd0 | ||
![]() |
3833765ba5 | ||
![]() |
4d28a59fc2 | ||
![]() |
a498daa0e0 | ||
![]() |
bd12c44d35 | ||
![]() |
4c385cf896 | ||
![]() |
7d4ed0b10e | ||
![]() |
48d13b44c6 | ||
![]() |
8b63b48627 | ||
![]() |
b9ac64c2cb | ||
![]() |
4d2c3f0a4d | ||
![]() |
c156b916a4 | ||
![]() |
865893fb14 | ||
![]() |
a60edcc6d4 | ||
![]() |
20cb12db8d | ||
![]() |
42aa796150 | ||
![]() |
2a902738fb | ||
![]() |
bb5d4234e3 | ||
![]() |
930781e168 | ||
![]() |
1c3a99b52c | ||
![]() |
5f04843e5b | ||
![]() |
8c29bf5640 | ||
![]() |
82306ebfba | ||
![]() |
03d4b9f078 | ||
![]() |
51114f07f1 | ||
![]() |
e19917296f | ||
![]() |
8ed40acac6 | ||
![]() |
38ae6ec1a2 | ||
![]() |
9e24b9c7af | ||
![]() |
a144bb8b76 | ||
![]() |
4d3fb91fb4 | ||
![]() |
bbfe118209 | ||
![]() |
e5c14674f0 | ||
![]() |
6dba7608bf | ||
![]() |
21423497ef | ||
![]() |
01b0f1061d | ||
![]() |
3d8c093145 | ||
![]() |
919c97fa65 | ||
![]() |
376b4d48fe | ||
![]() |
118e73306d | ||
![]() |
1dd69921d3 | ||
![]() |
29e68b200c | ||
![]() |
0b516b7162 | ||
![]() |
a0b3535735 | ||
![]() |
5e852ab9d1 | ||
![]() |
f9bb5d2984 | ||
![]() |
ad595c3ba9 | ||
![]() |
7031ff23bb | ||
![]() |
9753c6bec5 | ||
![]() |
b16e3da12a | ||
![]() |
e7661d198f | ||
![]() |
13c7b91133 | ||
![]() |
950b0b770e | ||
![]() |
15e1227ed4 | ||
![]() |
ddfe821bcf | ||
![]() |
54866b68cd | ||
![]() |
05a443adf2 | ||
![]() |
ebf315e6f3 | ||
![]() |
c44d45db86 | ||
![]() |
7a2647e162 | ||
![]() |
9bae9ddad9 | ||
![]() |
004d7251ab | ||
![]() |
33d044a862 | ||
![]() |
a9086e8a4b | ||
![]() |
761c3c5446 | ||
![]() |
66c0e26e28 | ||
![]() |
7d1b715605 | ||
![]() |
9f494fe423 | ||
![]() |
809c809281 | ||
![]() |
0580b60622 | ||
![]() |
4bdb664c33 | ||
![]() |
459435dca1 | ||
![]() |
3fdb7808ef | ||
![]() |
97ff646fc1 | ||
![]() |
9801596fb3 | ||
![]() |
982315573c | ||
![]() |
9f96e6da28 | ||
![]() |
01690ed2bc | ||
![]() |
2da89708ec | ||
![]() |
5c62a551c4 | ||
![]() |
602a8a565c | ||
![]() |
c4a8446c70 | ||
![]() |
456d8db35e | ||
![]() |
e952a7e710 | ||
![]() |
682f0840e7 | ||
![]() |
f85ec43f24 | ||
![]() |
b5713887ae |
4
.gitattributes
vendored
4
.gitattributes
vendored
@@ -1 +1,5 @@
|
|||||||
*.dsw -crlf
|
*.dsw -crlf
|
||||||
|
buildconf eol=lf
|
||||||
|
configure.ac eol=lf
|
||||||
|
*.m4 eol=lf
|
||||||
|
*.in eol=lf
|
||||||
|
4
.gitignore
vendored
4
.gitignore
vendored
@@ -42,3 +42,7 @@ TAGS
|
|||||||
*~
|
*~
|
||||||
aclocal.m4.bak
|
aclocal.m4.bak
|
||||||
CHANGES.dist
|
CHANGES.dist
|
||||||
|
.project
|
||||||
|
.cproject
|
||||||
|
.settings
|
||||||
|
/[0-9]*.patch
|
||||||
|
@@ -2,17 +2,19 @@
|
|||||||
# Adds OPENSSL_INCLUDE_DIRS and libeay32
|
# Adds OPENSSL_INCLUDE_DIRS and libeay32
|
||||||
include("${CMAKE_ROOT}/Modules/FindOpenSSL.cmake")
|
include("${CMAKE_ROOT}/Modules/FindOpenSSL.cmake")
|
||||||
|
|
||||||
# Bill Hoffman told that libeay32 is necessary for him:
|
# starting 2.8 it is better to use standard modules
|
||||||
find_library(SSL_LIBEAY NAMES libeay32)
|
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(OPENSSL_FOUND)
|
||||||
if(SSL_LIBEAY)
|
if(SSL_LIBEAY)
|
||||||
list(APPEND OPENSSL_LIBRARIES ${SSL_LIBEAY})
|
list(APPEND OPENSSL_LIBRARIES ${SSL_LIBEAY})
|
||||||
else()
|
else()
|
||||||
set(OPENSSL_FOUND FALSE)
|
set(OPENSSL_FOUND FALSE)
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
endif() # if (CMAKE_MAJOR_VERSION EQUAL "2" AND CMAKE_MINOR_VERSION LESS "8")
|
||||||
|
|
||||||
if(OPENSSL_FOUND)
|
if(OPENSSL_FOUND)
|
||||||
set(OPENSSL_INCLUDE_DIRS ${OPENSSL_INCLUDE_DIR})
|
set(OPENSSL_INCLUDE_DIRS ${OPENSSL_INCLUDE_DIR})
|
||||||
|
@@ -1,8 +1,10 @@
|
|||||||
# Locate zlib
|
# Locate zlib
|
||||||
include("${CMAKE_ROOT}/Modules/FindZLIB.cmake")
|
include("${CMAKE_ROOT}/Modules/FindZLIB.cmake")
|
||||||
|
|
||||||
find_library(ZLIB_LIBRARY_DEBUG NAMES zd zlibd zdlld zlib1d )
|
# starting 2.8 it is better to use standard modules
|
||||||
|
if(CMAKE_MAJOR_VERSION EQUAL "2" AND CMAKE_MINOR_VERSION LESS "8")
|
||||||
if(ZLIB_FOUND AND ZLIB_LIBRARY_DEBUG)
|
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})
|
set( ZLIB_LIBRARIES optimized "${ZLIB_LIBRARY}" debug ${ZLIB_LIBRARY_DEBUG})
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
123
CMakeLists.txt
123
CMakeLists.txt
@@ -57,10 +57,6 @@ set(OS "\"${CMAKE_SYSTEM_NAME}\"")
|
|||||||
include_directories(${PROJECT_BINARY_DIR}/include/curl)
|
include_directories(${PROJECT_BINARY_DIR}/include/curl)
|
||||||
include_directories( ${CURL_SOURCE_DIR}/include )
|
include_directories( ${CURL_SOURCE_DIR}/include )
|
||||||
|
|
||||||
if(WIN32)
|
|
||||||
set(NATIVE_WINDOWS ON)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
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)
|
||||||
@@ -113,22 +109,11 @@ 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)
|
||||||
if(WIN32)
|
|
||||||
set(CURL_DEFAULT_DISABLE_LDAP OFF)
|
|
||||||
# some windows compilers do not have wldap32
|
|
||||||
if( NOT HAVE_WLDAP32)
|
|
||||||
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()
|
|
||||||
|
|
||||||
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)
|
||||||
|
set(CURL_DISABLE_LDAPS ON)
|
||||||
set(CURL_DISABLE_TELNET ON)
|
set(CURL_DISABLE_TELNET ON)
|
||||||
set(CURL_DISABLE_DICT ON)
|
set(CURL_DISABLE_DICT ON)
|
||||||
set(CURL_DISABLE_FILE ON)
|
set(CURL_DISABLE_FILE ON)
|
||||||
@@ -147,22 +132,6 @@ 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" OFF)
|
||||||
mark_as_advanced(ENABLE_IPV6)
|
mark_as_advanced(ENABLE_IPV6)
|
||||||
|
|
||||||
if(WIN32)
|
|
||||||
# Windows standard libraries are located in C:/Program Files/Microsoft SDKs/[...]
|
|
||||||
# They are already included in the default MSVC LIBPATH => no find_library is needed!
|
|
||||||
list_spaces_append_once(CMAKE_C_STANDARD_LIBRARIES wsock32.lib ws2_32.lib) # bufferoverflowu.lib
|
|
||||||
if(CURL_DISABLE_LDAP)
|
|
||||||
# Remove wldap32.lib from space-separated list
|
|
||||||
string(REPLACE " " ";" _LIST ${CMAKE_C_STANDARD_LIBRARIES})
|
|
||||||
list(REMOVE_ITEM _LIST "wldap32.lib")
|
|
||||||
to_list_spaces(_LIST CMAKE_C_STANDARD_LIBRARIES)
|
|
||||||
else()
|
|
||||||
# Append wldap32.lib
|
|
||||||
list_spaces_append_once(CMAKE_C_STANDARD_LIBRARIES wldap32.lib)
|
|
||||||
endif()
|
|
||||||
set(CMAKE_C_STANDARD_LIBRARIES "${CMAKE_C_STANDARD_LIBRARIES}" CACHE STRING "" FORCE)
|
|
||||||
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}")
|
||||||
@@ -221,6 +190,20 @@ check_library_exists_concat("ws2_32" getch HAVE_LIBWS2_32)
|
|||||||
check_library_exists_concat("winmm" getch HAVE_LIBWINMM)
|
check_library_exists_concat("winmm" getch HAVE_LIBWINMM)
|
||||||
check_library_exists("wldap32" cldap_open "" HAVE_WLDAP32)
|
check_library_exists("wldap32" cldap_open "" HAVE_WLDAP32)
|
||||||
|
|
||||||
|
if(WIN32)
|
||||||
|
set(CURL_DEFAULT_DISABLE_LDAP OFF)
|
||||||
|
# some windows compilers do not have wldap32
|
||||||
|
if(NOT HAVE_WLDAP32)
|
||||||
|
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()
|
||||||
|
|
||||||
|
|
||||||
# IF(NOT CURL_SPECIAL_LIBZ)
|
# IF(NOT CURL_SPECIAL_LIBZ)
|
||||||
# CHECK_LIBRARY_EXISTS_CONCAT("z" inflateEnd HAVE_LIBZ)
|
# CHECK_LIBRARY_EXISTS_CONCAT("z" inflateEnd HAVE_LIBZ)
|
||||||
# ENDIF(NOT CURL_SPECIAL_LIBZ)
|
# ENDIF(NOT CURL_SPECIAL_LIBZ)
|
||||||
@@ -250,26 +233,28 @@ if(CURL_ZLIB) # AND CURL_CONFIG_HAS_BEEN_RUN_BEFORE
|
|||||||
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})
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
option(CMAKE_USE_OPENSSL "Use OpenSSL code. Experimental" ON)
|
option(CMAKE_USE_OPENSSL "Use OpenSSL code. Experimental" ON)
|
||||||
mark_as_advanced(CMAKE_USE_OPENSSL)
|
mark_as_advanced(CMAKE_USE_OPENSSL)
|
||||||
if(CMAKE_USE_OPENSSL)
|
if(CMAKE_USE_OPENSSL)
|
||||||
if(WIN32)
|
|
||||||
|
set(USE_SSLEAY OFF)
|
||||||
|
set(USE_OPENSSL OFF)
|
||||||
|
set(HAVE_LIBCRYPTO OFF)
|
||||||
|
set(HAVE_LIBSSL OFF)
|
||||||
|
|
||||||
find_package(OpenSSL)
|
find_package(OpenSSL)
|
||||||
if(OPENSSL_FOUND)
|
if(OPENSSL_FOUND)
|
||||||
set(USE_SSLEAY TRUE)
|
list(APPEND CURL_LIBS ${OPENSSL_LIBRARIES})
|
||||||
set(USE_OPENSSL TRUE)
|
list(APPEND CMAKE_REQUIRED_INCLUDES ${OPENSSL_INCLUDE_DIR})
|
||||||
list(APPEND CURL_LIBS ${OPENSSL_LIBRARIES} )
|
set(USE_SSLEAY ON)
|
||||||
else()
|
set(USE_OPENSSL ON)
|
||||||
set(CMAKE_USE_OPENSSL FALSE)
|
set(HAVE_LIBCRYPTO ON)
|
||||||
message(STATUS "OpenSSL NOT Found, disabling CMAKE_USE_OPENSSL")
|
set(HAVE_LIBSSL ON)
|
||||||
endif()
|
endif(OPENSSL_FOUND)
|
||||||
else(WIN32)
|
|
||||||
check_library_exists_concat("crypto" CRYPTO_lock HAVE_LIBCRYPTO)
|
|
||||||
check_library_exists_concat("ssl" SSL_connect HAVE_LIBSSL)
|
|
||||||
endif(WIN32)
|
|
||||||
endif(CMAKE_USE_OPENSSL)
|
endif(CMAKE_USE_OPENSSL)
|
||||||
|
|
||||||
# If we have features.h, then do the _BSD_SOURCE magic
|
# If we have features.h, then do the _BSD_SOURCE magic
|
||||||
@@ -335,14 +320,17 @@ 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)
|
||||||
check_include_file_concat("openssl/crypto.h" HAVE_OPENSSL_CRYPTO_H)
|
if(CMAKE_USE_OPENSSL AND OPENSSL_FOUND)
|
||||||
check_include_file_concat("openssl/engine.h" HAVE_OPENSSL_ENGINE_H)
|
check_include_file_concat("openssl/crypto.h" HAVE_OPENSSL_CRYPTO_H)
|
||||||
check_include_file_concat("openssl/err.h" HAVE_OPENSSL_ERR_H)
|
check_include_file_concat("openssl/engine.h" HAVE_OPENSSL_ENGINE_H)
|
||||||
check_include_file_concat("openssl/pem.h" HAVE_OPENSSL_PEM_H)
|
check_include_file_concat("openssl/err.h" HAVE_OPENSSL_ERR_H)
|
||||||
check_include_file_concat("openssl/pkcs12.h" HAVE_OPENSSL_PKCS12_H)
|
check_include_file_concat("openssl/pem.h" HAVE_OPENSSL_PEM_H)
|
||||||
check_include_file_concat("openssl/rsa.h" HAVE_OPENSSL_RSA_H)
|
check_include_file_concat("openssl/pkcs12.h" HAVE_OPENSSL_PKCS12_H)
|
||||||
check_include_file_concat("openssl/ssl.h" HAVE_OPENSSL_SSL_H)
|
check_include_file_concat("openssl/rsa.h" HAVE_OPENSSL_RSA_H)
|
||||||
check_include_file_concat("openssl/x509.h" HAVE_OPENSSL_X509_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)
|
||||||
@@ -378,15 +366,18 @@ 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(CMAKE_USE_OPENSSL)
|
|
||||||
check_include_file_concat("openssl/rand.h" HAVE_OPENSSL_RAND_H)
|
|
||||||
endif(CMAKE_USE_OPENSSL)
|
|
||||||
|
|
||||||
if(NOT HAVE_LDAP_H)
|
if(NOT HAVE_LDAP_H)
|
||||||
message(STATUS "LDAP_H not found CURL_DISABLE_LDAP set ON")
|
message(STATUS "LDAP_H not found CURL_DISABLE_LDAP set ON")
|
||||||
set(CURL_DISABLE_LDAP ON CACHE BOOL "" FORCE)
|
set(CURL_DISABLE_LDAP ON CACHE BOOL "" FORCE)
|
||||||
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()
|
||||||
|
|
||||||
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)
|
||||||
@@ -426,7 +417,7 @@ if(SIZEOF_LONG EQUAL 8)
|
|||||||
set(CURL_FORMAT_CURL_OFF_TU "lu")
|
set(CURL_FORMAT_CURL_OFF_TU "lu")
|
||||||
set(CURL_FORMAT_OFF_T "%ld")
|
set(CURL_FORMAT_OFF_T "%ld")
|
||||||
set(CURL_SUFFIX_CURL_OFF_T L)
|
set(CURL_SUFFIX_CURL_OFF_T L)
|
||||||
set(CURL_SUFFIX_CURL_OFF_TU LU)
|
set(CURL_SUFFIX_CURL_OFF_TU UL)
|
||||||
endif(SIZEOF_LONG EQUAL 8)
|
endif(SIZEOF_LONG EQUAL 8)
|
||||||
|
|
||||||
if(SIZEOF_LONG_LONG EQUAL 8)
|
if(SIZEOF_LONG_LONG EQUAL 8)
|
||||||
@@ -436,7 +427,7 @@ if(SIZEOF_LONG_LONG EQUAL 8)
|
|||||||
set(CURL_FORMAT_CURL_OFF_TU "llu")
|
set(CURL_FORMAT_CURL_OFF_TU "llu")
|
||||||
set(CURL_FORMAT_OFF_T "%lld")
|
set(CURL_FORMAT_OFF_T "%lld")
|
||||||
set(CURL_SUFFIX_CURL_OFF_T LL)
|
set(CURL_SUFFIX_CURL_OFF_T LL)
|
||||||
set(CURL_SUFFIX_CURL_OFF_TU LLU)
|
set(CURL_SUFFIX_CURL_OFF_TU ULL)
|
||||||
endif(SIZEOF_LONG_LONG EQUAL 8)
|
endif(SIZEOF_LONG_LONG EQUAL 8)
|
||||||
|
|
||||||
if(NOT CURL_TYPEOF_CURL_OFF_T)
|
if(NOT CURL_TYPEOF_CURL_OFF_T)
|
||||||
@@ -810,9 +801,6 @@ endif(MSVC)
|
|||||||
function(SETUP_CURL_DEPENDENCIES TARGET_NAME)
|
function(SETUP_CURL_DEPENDENCIES TARGET_NAME)
|
||||||
if(CURL_ZLIB AND ZLIB_FOUND)
|
if(CURL_ZLIB AND ZLIB_FOUND)
|
||||||
include_directories(${ZLIB_INCLUDE_DIR})
|
include_directories(${ZLIB_INCLUDE_DIR})
|
||||||
endif()
|
|
||||||
if(CURL_ZLIB AND ZLIB_FOUND)
|
|
||||||
target_link_libraries(${TARGET_NAME} ${ZLIB_LIBRARIES})
|
|
||||||
#ADD_DEFINITIONS( -DHAVE_ZLIB_H -DHAVE_ZLIB -DHAVE_LIBZ )
|
#ADD_DEFINITIONS( -DHAVE_ZLIB_H -DHAVE_ZLIB -DHAVE_LIBZ )
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
@@ -820,9 +808,10 @@ function(SETUP_CURL_DEPENDENCIES TARGET_NAME)
|
|||||||
include_directories(${OPENSSL_INCLUDE_DIR})
|
include_directories(${OPENSSL_INCLUDE_DIR})
|
||||||
endif()
|
endif()
|
||||||
if(CMAKE_USE_OPENSSL AND CURL_CONFIG_HAS_BEEN_RUN_BEFORE)
|
if(CMAKE_USE_OPENSSL AND CURL_CONFIG_HAS_BEEN_RUN_BEFORE)
|
||||||
target_link_libraries(${TARGET_NAME} ${OPENSSL_LIBRARIES})
|
|
||||||
#ADD_DEFINITIONS( -DUSE_SSLEAY )
|
#ADD_DEFINITIONS( -DUSE_SSLEAY )
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
target_link_libraries(${TARGET_NAME} ${CURL_LIBS})
|
||||||
endfunction()
|
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).
|
||||||
@@ -863,3 +852,13 @@ install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/include/curl"
|
|||||||
DESTINATION include
|
DESTINATION include
|
||||||
FILES_MATCHING PATTERN "*.h"
|
FILES_MATCHING PATTERN "*.h"
|
||||||
PATTERN "curlbuild.h" EXCLUDE)
|
PATTERN "curlbuild.h" EXCLUDE)
|
||||||
|
|
||||||
|
|
||||||
|
# Workaround for MSVS10 to avoid the Dialog Hell
|
||||||
|
# FIXME: This could be removed with future version of CMake.
|
||||||
|
if(MSVC_VERSION EQUAL 1600)
|
||||||
|
set(CURL_SLN_FILENAME "${CMAKE_CURRENT_BINARY_DIR}/CURL.sln")
|
||||||
|
if(EXISTS "${CURL_SLN_FILENAME}")
|
||||||
|
file(APPEND "${CURL_SLN_FILENAME}" "\n# This should be regenerated!\n")
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
2
COPYING
2
COPYING
@@ -1,6 +1,6 @@
|
|||||||
COPYRIGHT AND PERMISSION NOTICE
|
COPYRIGHT AND PERMISSION NOTICE
|
||||||
|
|
||||||
Copyright (c) 1996 - 2011, Daniel Stenberg, <daniel@haxx.se>.
|
Copyright (c) 1996 - 2013, Daniel Stenberg, <daniel@haxx.se>.
|
||||||
|
|
||||||
All rights reserved.
|
All rights reserved.
|
||||||
|
|
||||||
|
6
GIT-INFO
6
GIT-INFO
@@ -48,9 +48,9 @@ installed:
|
|||||||
o nroff + perl
|
o nroff + perl
|
||||||
|
|
||||||
If you don't have nroff and perl and you for some reason don't want to
|
If you don't have nroff and perl and you for some reason don't want to
|
||||||
install them, you can rename the source file src/hugehelp.c.cvs to
|
install them, you can rename the source file src/tool_hugehelp.c.cvs to
|
||||||
src/hugehelp.c and avoid having to generate this file. This will give you
|
src/tool_hugehelp.c and avoid having to generate this file. This will
|
||||||
a stubbed version of the file that doesn't contain actual content.
|
give you a stubbed version of the file that doesn't contain actual content.
|
||||||
|
|
||||||
MAC OS X
|
MAC OS X
|
||||||
|
|
||||||
|
@@ -10,6 +10,10 @@
|
|||||||
# 10.5 is the *ONLY* SDK that support PPC64 :( -- 10.6 do not have ppc64 support
|
# 10.5 is the *ONLY* SDK that support PPC64 :( -- 10.6 do not have ppc64 support
|
||||||
#If you need to have PPC64 support then change below to 1
|
#If you need to have PPC64 support then change below to 1
|
||||||
PPC64_NEEDED=0
|
PPC64_NEEDED=0
|
||||||
|
# Apple does not support building for PPC anymore in Xcode 4 and later.
|
||||||
|
# If you're using Xcode 3 or earlier and need PPC support, then change
|
||||||
|
# the setting below to 1
|
||||||
|
PPC_NEEDED=0
|
||||||
|
|
||||||
# For me the default is to develop for the platform I am on, and if you
|
# For me the default is to develop for the platform I am on, and if you
|
||||||
#desire compatibility with older versions then change USE_OLD to 1 :)
|
#desire compatibility with older versions then change USE_OLD to 1 :)
|
||||||
@@ -24,9 +28,16 @@ FRAMEWORK_VERSION=Versions/Release-$VERSION
|
|||||||
# and setup the right paths to this version, leaving the system version
|
# and setup the right paths to this version, leaving the system version
|
||||||
# "intact", so you can "fix" it later with the links to Versions/A/...
|
# "intact", so you can "fix" it later with the links to Versions/A/...
|
||||||
|
|
||||||
|
DEVELOPER_PATH=`xcode-select --print-path`
|
||||||
OLD_SDK=`ls /Developer/SDKs|head -1`
|
# Around Xcode 4.3, SDKs were moved from the Developer folder into the
|
||||||
NEW_SDK=`ls -r /Developer/SDKs|head -1`
|
# MacOSX.platform folder
|
||||||
|
if test -d "$DEVELOPER_PATH/Platforms/MacOSX.platform/Developer/SDKs"; then
|
||||||
|
SDK_PATH="$DEVELOPER_PATH/Platforms/MacOSX.platform/Developer/SDKs"
|
||||||
|
else
|
||||||
|
SDK_PATH="$DEVELOPER_PATH/SDKs";
|
||||||
|
fi
|
||||||
|
OLD_SDK=`ls $SDK_PATH|head -1`
|
||||||
|
NEW_SDK=`ls -r $SDK_PATH|head -1`
|
||||||
|
|
||||||
if test "0"$USE_OLD -gt 0
|
if test "0"$USE_OLD -gt 0
|
||||||
then
|
then
|
||||||
@@ -37,21 +48,24 @@ fi
|
|||||||
|
|
||||||
MACVER=`echo $SDK32|sed -e s/[a-zA-Z]//g -e s/.\$//`
|
MACVER=`echo $SDK32|sed -e s/[a-zA-Z]//g -e s/.\$//`
|
||||||
|
|
||||||
SDK32_DIR='/Developer/SDKs/'$SDK32
|
SDK32_DIR=$SDK_PATH/$SDK32
|
||||||
MINVER32='-mmacosx-version-min='$MACVER
|
MINVER32='-mmacosx-version-min='$MACVER
|
||||||
ARCHES32='-arch i386 -arch ppc'
|
if test $PPC_NEEDED -gt 0; then
|
||||||
|
ARCHES32='-arch i386 -arch ppc'
|
||||||
|
else
|
||||||
|
ARCHES32='-arch i386'
|
||||||
|
fi
|
||||||
|
|
||||||
if test $PPC64_NEEDED -gt 0
|
if test $PPC64_NEEDED -gt 0
|
||||||
then
|
then
|
||||||
SDK64=10.5
|
SDK64=10.5
|
||||||
ARCHES64='-arch x86_64 -arch ppc64'
|
ARCHES64='-arch x86_64 -arch ppc64'
|
||||||
SDK64=`ls /Developer/SDKs|grep 10.5|head -1`
|
SDK64=`ls $SDK_PATH|grep 10.5|head -1`
|
||||||
else
|
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 /Developer/SDKs|egrep -v "10.[0-4]"|head -1`
|
OLD_SDK64=`ls $SDK_PATH|egrep -v "10.[0-4]"|head -1`
|
||||||
NEW_SDK64=`ls -r /Developer/SDKs|egrep -v "10.[0-4]"|head -1`
|
NEW_SDK64=`ls -r $SDK_PATH|egrep -v "10.[0-4]"|head -1`
|
||||||
if test $USE_OLD -gt 0
|
if test $USE_OLD -gt 0
|
||||||
then
|
then
|
||||||
SDK64=$OLD_SDK64
|
SDK64=$OLD_SDK64
|
||||||
@@ -60,7 +74,7 @@ else
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
SDK64_DIR='/Developer/SDKs/'$SDK64
|
SDK64_DIR=$SDK_PATH/$SDK64
|
||||||
MACVER64=`echo $SDK64|sed -e s/[a-zA-Z]//g -e s/.\$//`
|
MACVER64=`echo $SDK64|sed -e s/[a-zA-Z]//g -e s/.\$//`
|
||||||
|
|
||||||
MINVER64='-mmacosx-version-min='$MACVER64
|
MINVER64='-mmacosx-version-min='$MACVER64
|
||||||
@@ -68,13 +82,13 @@ MINVER64='-mmacosx-version-min='$MACVER64
|
|||||||
if test ! -z $SDK32; then
|
if test ! -z $SDK32; then
|
||||||
echo "----Configuring libcurl for 32 bit universal framework..."
|
echo "----Configuring libcurl for 32 bit universal framework..."
|
||||||
make clean
|
make clean
|
||||||
./configure --disable-dependency-tracking --disable-static --with-gssapi \
|
./configure --disable-dependency-tracking --disable-static --with-gssapi --with-darwinssl \
|
||||||
CFLAGS="-Os -isysroot $SDK32_DIR $ARCHES32 $MINVER32" \
|
CFLAGS="-Os -isysroot $SDK32_DIR $ARCHES32" \
|
||||||
LDFLAGS="-Wl,-syslibroot,$SDK32_DIR $ARCHES32 $MINVER32 -Wl,-headerpad_max_install_names" \
|
LDFLAGS="-Wl,-syslibroot,$SDK32_DIR $ARCHES32 -Wl,-headerpad_max_install_names" \
|
||||||
CC=$CC
|
CC=$CC
|
||||||
|
|
||||||
echo "----Building 32 bit libcurl..."
|
echo "----Building 32 bit libcurl..."
|
||||||
make
|
make -j `sysctl -n hw.logicalcpu_max`
|
||||||
|
|
||||||
echo "----Creating 32 bit framework..."
|
echo "----Creating 32 bit framework..."
|
||||||
rm -r libcurl.framework
|
rm -r libcurl.framework
|
||||||
@@ -89,21 +103,21 @@ if test ! -z $SDK32; then
|
|||||||
ln -fs ${FRAMEWORK_VERSION}/Resources Resources
|
ln -fs ${FRAMEWORK_VERSION}/Resources Resources
|
||||||
ln -fs ${FRAMEWORK_VERSION}/Headers Headers
|
ln -fs ${FRAMEWORK_VERSION}/Headers Headers
|
||||||
cd Versions
|
cd Versions
|
||||||
ln -fs ${FRAMEWORK_VERSION} Current
|
ln -fs $(basename "${FRAMEWORK_VERSION}") Current
|
||||||
|
|
||||||
echo TEsting for SDK64
|
echo Testing for SDK64
|
||||||
if test -d $SDK64_DIR; then
|
if test -d $SDK64_DIR; then
|
||||||
echo entering...
|
echo entering...
|
||||||
popd
|
popd
|
||||||
make clean
|
make clean
|
||||||
echo "----Configuring libcurl for 64 bit universal framework..."
|
echo "----Configuring libcurl for 64 bit universal framework..."
|
||||||
./configure --disable-dependency-tracking --disable-static --with-gssapi \
|
./configure --disable-dependency-tracking --disable-static --with-gssapi --with-darwinssl \
|
||||||
CFLAGS="-Os -isysroot $SDK64_DIR $ARCHES64 $MINVER64" \
|
CFLAGS="-Os -isysroot $SDK64_DIR $ARCHES64" \
|
||||||
LDFLAGS="-Wl,-syslibroot,$SDK64_DIR $ARCHES64 $MINVER64 -Wl,-headerpad_max_install_names" \
|
LDFLAGS="-Wl,-syslibroot,$SDK64_DIR $ARCHES64 -Wl,-headerpad_max_install_names" \
|
||||||
CC=$CC
|
CC=$CC
|
||||||
|
|
||||||
echo "----Building 64 bit libcurl..."
|
echo "----Building 64 bit libcurl..."
|
||||||
make
|
make -j `sysctl -n hw.logicalcpu_max`
|
||||||
|
|
||||||
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
|
||||||
|
135
Makefile.am
135
Makefile.am
@@ -5,7 +5,7 @@
|
|||||||
# | (__| |_| | _ <| |___
|
# | (__| |_| | _ <| |___
|
||||||
# \___|\___/|_| \_\_____|
|
# \___|\___/|_| \_\_____|
|
||||||
#
|
#
|
||||||
# Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al.
|
# Copyright (C) 1998 - 2013, 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
|
||||||
@@ -30,13 +30,38 @@ CMake/CurlTests.c CMake/FindOpenSSL.cmake CMake/FindZLIB.cmake \
|
|||||||
CMake/OtherTests.cmake CMake/Platforms/WindowsCache.cmake \
|
CMake/OtherTests.cmake CMake/Platforms/WindowsCache.cmake \
|
||||||
CMake/Utilities.cmake include/curl/curlbuild.h.cmake
|
CMake/Utilities.cmake include/curl/curlbuild.h.cmake
|
||||||
|
|
||||||
|
VC6LIBDSP = vs/vc6/lib/vc6libcurl.dsp
|
||||||
|
VC6LIBDSPHEAD = vs/t/lib/vc6_libcurl_dsp.head
|
||||||
|
VC6LIBDSPFOOT = vs/t/lib/vc6_libcurl_dsp.foot
|
||||||
|
|
||||||
|
VC8LIBPRJ = vs/vc8/lib/vc8libcurl.vcproj
|
||||||
|
VC8LIBPRJHEAD = vs/t/lib/vc8_libcurl_prj.head
|
||||||
|
VC8LIBPRJFOOT = vs/t/lib/vc8_libcurl_prj.foot
|
||||||
|
|
||||||
|
VC_DIST = \
|
||||||
|
vs/t/README \
|
||||||
|
$(VC6LIBDSP) $(VC6LIBDSPHEAD) $(VC6LIBDSPFOOT) \
|
||||||
|
$(VC8LIBPRJ) $(VC8LIBPRJHEAD) $(VC8LIBPRJFOOT) \
|
||||||
|
vs/vc6/vc6curl.dsw \
|
||||||
|
vs/vc6/lib/vc6libcurl.dsw \
|
||||||
|
vs/vc6/src/vc6curltool.dsw \
|
||||||
|
vs/vc6/src/vc6curltool.dsp
|
||||||
|
|
||||||
|
VC6LIBDSP_DEPS = $(VC6LIBDSPHEAD) $(VC6LIBDSPFOOT) \
|
||||||
|
Makefile.am lib/Makefile.inc
|
||||||
|
|
||||||
|
VC8LIBPRJ_DEPS = $(VC8LIBPRJHEAD) $(VC8LIBPRJFOOT) \
|
||||||
|
Makefile.am lib/Makefile.inc
|
||||||
|
|
||||||
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
|
||||||
|
|
||||||
EXTRA_DIST = CHANGES COPYING maketgz Makefile.dist curl-config.in \
|
EXTRA_DIST = CHANGES COPYING maketgz Makefile.dist curl-config.in \
|
||||||
curl-style.el sample.emacs RELEASE-NOTES buildconf \
|
RELEASE-NOTES buildconf libcurl.pc.in MacOSX-Framework \
|
||||||
libcurl.pc.in vc6curl.dsw MacOSX-Framework Android.mk $(CMAKE_DIST) \
|
$(CMAKE_DIST) $(VC_DIST) $(WINBUILD_DIST) lib/libcurl.vers.in
|
||||||
Makefile.msvc.names $(WINBUILD_DIST) lib/libcurl.vers.in
|
|
||||||
|
CLEANFILES = $(VC6LIBDSP) $(VC8LIBPRJ)
|
||||||
|
|
||||||
bin_SCRIPTS = curl-config
|
bin_SCRIPTS = curl-config
|
||||||
|
|
||||||
@@ -46,6 +71,12 @@ DIST_SUBDIRS = $(SUBDIRS) tests packages docs
|
|||||||
pkgconfigdir = $(libdir)/pkgconfig
|
pkgconfigdir = $(libdir)/pkgconfig
|
||||||
pkgconfig_DATA = libcurl.pc
|
pkgconfig_DATA = libcurl.pc
|
||||||
|
|
||||||
|
# List of libcurl source files required to generate VC IDE dsp and prj files
|
||||||
|
include lib/Makefile.inc
|
||||||
|
|
||||||
|
WIN32SOURCES = $(CSOURCES)
|
||||||
|
WIN32HEADERS = $(HHEADERS) config-win32.h
|
||||||
|
|
||||||
dist-hook:
|
dist-hook:
|
||||||
rm -rf $(top_builddir)/tests/log
|
rm -rf $(top_builddir)/tests/log
|
||||||
find $(distdir) -name "*.dist" -exec rm {} \;
|
find $(distdir) -name "*.dist" -exec rm {} \;
|
||||||
@@ -81,14 +112,21 @@ test-full:
|
|||||||
test-torture:
|
test-torture:
|
||||||
@(cd tests; $(MAKE) all torture-test)
|
@(cd tests; $(MAKE) all torture-test)
|
||||||
|
|
||||||
|
test-am:
|
||||||
|
@(cd tests; $(MAKE) all am-test)
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
examples:
|
examples:
|
||||||
@(cd docs/examples; $(MAKE) check)
|
@(cd docs/examples; $(MAKE) check)
|
||||||
|
|
||||||
|
# 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
|
||||||
|
# 'make distcheck' will make clean first in these directories _before_ it runs
|
||||||
|
# this hook.
|
||||||
clean-local:
|
clean-local:
|
||||||
@(cd tests; $(MAKE) clean)
|
@(if test -f tests/Makefile; then cd tests; $(MAKE) clean; fi)
|
||||||
@(cd docs; $(MAKE) clean)
|
@(if test -f docs/Makefile; then cd docs; $(MAKE) clean; fi)
|
||||||
|
|
||||||
#
|
#
|
||||||
# Build source and binary rpms. For rpm-3.0 and above, the ~/.rpmmacros
|
# Build source and binary rpms. For rpm-3.0 and above, the ~/.rpmmacros
|
||||||
@@ -159,3 +197,86 @@ ca-firefox: lib/firefox-db2pem.sh
|
|||||||
checksrc:
|
checksrc:
|
||||||
cd lib && $(MAKE) checksrc
|
cd lib && $(MAKE) checksrc
|
||||||
cd src && $(MAKE) checksrc
|
cd src && $(MAKE) checksrc
|
||||||
|
|
||||||
|
.PHONY: vc6-ide
|
||||||
|
|
||||||
|
vc6-ide:
|
||||||
|
$(MAKE) $(VC6LIBDSP)
|
||||||
|
|
||||||
|
$(VC6LIBDSP): $(VC6LIBDSP_DEPS)
|
||||||
|
@(echo "generating '$(VC6LIBDSP)'"; \
|
||||||
|
\
|
||||||
|
for dir in 'vs' 'vs/vc6' 'vs/vc6/lib'; do \
|
||||||
|
test -d "$$dir" || mkdir "$$dir" || exit 1; \
|
||||||
|
done; \
|
||||||
|
\
|
||||||
|
dir='..\..\..\lib\'; \
|
||||||
|
body='$(VC6LIBDSP)'.body; \
|
||||||
|
win32_srcs='$(WIN32SOURCES)'; \
|
||||||
|
win32_hdrs='$(WIN32HEADERS)'; \
|
||||||
|
sorted_srcs=`for file in $$win32_srcs; do echo $$file; done | sort`; \
|
||||||
|
sorted_hdrs=`for file in $$win32_hdrs; do echo $$file; done | sort`; \
|
||||||
|
\
|
||||||
|
echo "# Begin Group \"Source Files\"" > $$body; \
|
||||||
|
echo "" >> $$body; \
|
||||||
|
echo "# PROP Default_Filter \"\"" >> $$body; \
|
||||||
|
for file in $$sorted_srcs; do \
|
||||||
|
echo "# Begin Source File" >> $$body; \
|
||||||
|
echo "" >> $$body; \
|
||||||
|
echo "SOURCE="$$dir$$file >> $$body; \
|
||||||
|
echo "# End Source File" >> $$body; \
|
||||||
|
done; \
|
||||||
|
echo "# End Group" >> $$body; \
|
||||||
|
echo "# Begin Group \"Header Files\"" >> $$body; \
|
||||||
|
echo "" >> $$body; \
|
||||||
|
echo "# PROP Default_Filter \"\"" >> $$body; \
|
||||||
|
for file in $$sorted_hdrs; do \
|
||||||
|
echo "# Begin Source File" >> $$body; \
|
||||||
|
echo "" >> $$body; \
|
||||||
|
echo "SOURCE="$$dir$$file >> $$body; \
|
||||||
|
echo "# End Source File" >> $$body; \
|
||||||
|
done; \
|
||||||
|
echo "# End Group" >> $$body; \
|
||||||
|
\
|
||||||
|
awk '{ printf("%s\r\n", $$0); }' \
|
||||||
|
$(srcdir)/$(VC6LIBDSPHEAD) $$body $(srcdir)/$(VC6LIBDSPFOOT) \
|
||||||
|
> $(VC6LIBDSP) || { rm -f $$body; exit 1; }; \
|
||||||
|
\
|
||||||
|
rm -f $$body)
|
||||||
|
|
||||||
|
.PHONY: vc8-ide
|
||||||
|
|
||||||
|
vc8-ide:
|
||||||
|
$(MAKE) $(VC8LIBPRJ)
|
||||||
|
|
||||||
|
$(VC8LIBPRJ): $(VC8LIBPRJ_DEPS)
|
||||||
|
@(echo "generating '$(VC8LIBPRJ)'"; \
|
||||||
|
\
|
||||||
|
for dir in 'vs' 'vs/vc8' 'vs/vc8/lib'; do \
|
||||||
|
test -d "$$dir" || mkdir "$$dir" || exit 1; \
|
||||||
|
done; \
|
||||||
|
\
|
||||||
|
dir='..\..\..\lib\'; \
|
||||||
|
body='$(VC8LIBPRJ)'.body; \
|
||||||
|
win32_srcs='$(WIN32SOURCES)'; \
|
||||||
|
win32_hdrs='$(WIN32HEADERS)'; \
|
||||||
|
sorted_srcs=`for file in $$win32_srcs; do echo $$file; done | sort`; \
|
||||||
|
sorted_hdrs=`for file in $$win32_hdrs; do echo $$file; done | sort`; \
|
||||||
|
\
|
||||||
|
echo "%tab%%tab%<Filter Name=\"Source Files\">" > $$body; \
|
||||||
|
for file in $$sorted_srcs; do \
|
||||||
|
echo "%tab%%tab%%tab%<File RelativePath=\""$$dir$$file"\"></File>" >> $$body; \
|
||||||
|
done; \
|
||||||
|
echo "%tab%%tab%</Filter>" >> $$body; \
|
||||||
|
echo "%tab%%tab%<Filter Name=\"Header Files\">" >> $$body; \
|
||||||
|
for file in $$sorted_hdrs; do \
|
||||||
|
echo "%tab%%tab%%tab%<File RelativePath=\""$$dir$$file"\"></File>" >> $$body; \
|
||||||
|
done; \
|
||||||
|
echo "%tab%%tab%</Filter>" >> $$body; \
|
||||||
|
\
|
||||||
|
awk '{ gsub(/%tab%/, "\t"); printf("%s\r\n", $$0); }' \
|
||||||
|
$(srcdir)/$(VC8LIBPRJHEAD) $$body $(srcdir)/$(VC8LIBPRJFOOT) \
|
||||||
|
> $(VC8LIBPRJ) || { rm -f $$body; exit 1; }; \
|
||||||
|
\
|
||||||
|
rm -f $$body)
|
||||||
|
|
||||||
|
158
RELEASE-NOTES
158
RELEASE-NOTES
@@ -1,49 +1,71 @@
|
|||||||
Curl and libcurl 7.25.0
|
Curl and libcurl 7.31.0
|
||||||
|
|
||||||
Public curl releases: 127
|
Public curl releases: 133
|
||||||
Command line options: 151
|
Command line options: 152
|
||||||
curl_easy_setopt() options: 199
|
curl_easy_setopt() options: 199
|
||||||
Public functions in libcurl: 58
|
Public functions in libcurl: 58
|
||||||
Known libcurl bindings: 39
|
Known libcurl bindings: 42
|
||||||
Contributors: 929
|
Contributors: 1005
|
||||||
|
|
||||||
|
***
|
||||||
|
krb4 support is up for removal. If you care about it at all, speak up
|
||||||
|
on the curl-library list asap!
|
||||||
|
***
|
||||||
|
|
||||||
This release includes the following changes:
|
This release includes the following changes:
|
||||||
|
|
||||||
o configure: add option disable --libcurl output [1]
|
o darwinssl: add TLS session resumption
|
||||||
o --ssl-allow-beast and CURLOPT_SSL_OPTIONS added [2]
|
o darwinssl: add TLS crypto authentication
|
||||||
o Added CURLOPT_TCP_KEEPALIVE, CURLOPT_TCP_KEEPIDLE, CURLOPT_TCP_KEEPINTVL [4]
|
o imap/pop3/smtp: Added support for ;auth=<mech> in the URL
|
||||||
o curl: use new library-side TCP_KEEPALIVE options [5]
|
o imap/pop3/smtp: Added support for ;auth=<mech> to CURLOPT_USERPWD
|
||||||
o Added a new CURLOPT_MAIL_AUTH option [13]
|
o usercertinmem.c: add example showing user cert in memory
|
||||||
o Added support for --mail-auth [14]
|
o url: Added smtp and pop3 hostnames to the protocol detection list
|
||||||
o --libcurl now also works with -F and more! [15]
|
o imap/pop3/smtp: Added support for enabling the SASL initial response [8]
|
||||||
|
o curl -E: allow to use ':' in certificate nicknames [10]
|
||||||
|
|
||||||
This release includes the following bugfixes:
|
This release includes the following bugfixes:
|
||||||
|
|
||||||
o --max-redirs: allow negative numbers as option value [3]
|
o SECURITY VULNERABILITY: curl_easy_unescape() may parse data beyond the end
|
||||||
o parse_proxy: bail out on zero-length proxy names [6]
|
of the input buffer [26]
|
||||||
o configure: don't modify LD_LIBRARY_PATH for cross compiles [7]
|
|
||||||
o curl_easy_reset: reset the referer string [8]
|
o FTP: access files in root dir correctly [1]
|
||||||
o curl tool: don't abort glob-loop due to failures [9]
|
o configure: try pthread_create without -lpthread [2]
|
||||||
o CONNECT: send correct Host: with IPv6 numerical address [10]
|
o FTP: handle a 230 welcome response [3]
|
||||||
o Explicitly link to the nettle/gcrypt libraries [11]
|
o curl-config: don't output static libs when they are disabled
|
||||||
o more resilient connection times among IP addresses [12]
|
o CURL_CHECK_CA_BUNDLE: don't check for paths when cross-compiling [4]
|
||||||
o winbuild: fix IPV6 and IDN options
|
o Various documentation updates
|
||||||
o SMTP: Fixed error when using CURLOPT_CONNECT_ONLY
|
o getinfo.c: reset timecond when clearing session-info variables [5]
|
||||||
o cyassl: update to CyaSSL 2.0.x API
|
o FILE: prevent an artificial timeout event due to stale speed-check data [6]
|
||||||
o smtp: Fixed an issue with the EOB checking
|
o ftp_state_pasv_resp: connect through proxy also when set by env [7]
|
||||||
o pop3: Fixed drop of final CRLF in EOB checking [16]
|
o sshserver: disable StrictHostKeyChecking
|
||||||
o smtp: Fixed an issue with writing postdata
|
o ftpserver: Fixed imap logout confirmation data
|
||||||
o smtp: Added support for returning SMTP response codes
|
o curl_easy_init: use less mallocs
|
||||||
o CONNECT: fix ipv6 address in the Request-Line [17]
|
o smtp: Fixed unknown percentage complete in progress bar
|
||||||
o curl-config: only provide libraries with --libs
|
o smtp: Fixed sending of double CRLF caused by first in EOB
|
||||||
o LWIP: don't consider HAVE_ERRNO_H to be winsock [19]
|
o bindlocal: move brace out of #ifdef [9]
|
||||||
o ssh: tunnel through HTTP proxy if requested
|
o winssl: Fixed invalid memory access during SSL shutdown [11]
|
||||||
o cookies: strip off [brackets] from numerical ipv6 host names [20]
|
o OS X framework: fix invalid symbolic link
|
||||||
o libcurl docs: version corrections [18]
|
o OpenSSL: allow empty server certificate subject [12]
|
||||||
o cmake: list_spaces_append_once failure [22]
|
o axtls: prevent memleaks on SSL handshake failures
|
||||||
o resolve with c-ares: don't resolve IPv6 when not working [21]
|
o cookies: only consider full path matches
|
||||||
o smtp: changed error code for EHLO and HELO responses
|
o Revert win32 MemoryTracking: wcsdup() _wcsdup() and _tcsdup() [13]
|
||||||
o parsedate: fix a numeric overflow
|
o Curl_cookie_add: handle IPv6 hosts [14]
|
||||||
|
o ossl_send: SSL_write() returning 0 is an error too
|
||||||
|
o ossl_recv: SSL_read() returning 0 is an error too
|
||||||
|
o Digest auth: escape user names with \ or " in them [15]
|
||||||
|
o curl_formadd.3: fixed wrong "end-marker" syntax [16]
|
||||||
|
o libcurl-tutorial.3: fix incorrect backslash [17]
|
||||||
|
o curl_multi_wait: reduce timeout if the multi handle wants to [18]
|
||||||
|
o tests/Makefile: typo in the perlcheck target [19]
|
||||||
|
o axtls: honor disabled VERIFYHOST
|
||||||
|
o OpenSSL: avoid double free in the PKCS12 certificate code [20]
|
||||||
|
o multi_socket: reduce timeout inaccuracy margin [21]
|
||||||
|
o digest: support auth-int for empty entity body [22]
|
||||||
|
o axtls: now done non-blocking
|
||||||
|
o lib1900: use tutil_tvnow instead of gettimeofday
|
||||||
|
o curl_easy_perform: avoid busy-looping [23]
|
||||||
|
o CURLOPT_COOKIELIST: take cookie share lock [24]
|
||||||
|
o multi_socket: react on socket close immediately [25]
|
||||||
|
|
||||||
This release includes the following known bugs:
|
This release includes the following known bugs:
|
||||||
|
|
||||||
@@ -52,35 +74,43 @@ This release includes the following known bugs:
|
|||||||
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:
|
||||||
|
|
||||||
Colin Hogben, Alessandro Ghedini, Kamil Dudka, Rob Ward, Dave Reisner,
|
David Strauss, Kamil Dudka, Steve Holme, Nick Zitzmann, Sam Deane, Duncan,
|
||||||
Martin Storsjo, Pierre Ynard, Pierre Joye, Yang Tse, Dan Fandrich,
|
Anders Havn, Dan Fandrich, Paul Howarth, Dave Reisner, Wouter Van Rooy,
|
||||||
Michael Day, Juan Barreto, Chandrakant Bagul, Steve Holme, Todd Ouska,
|
Linus Nielsen Feltzing, Ishan SinghLevett, Alessandro Ghedini,
|
||||||
Rich Gray, John Joseph Bachir, Armel Asselin, Andrei Cipu,
|
Ludovico Cavedon, Zdenek Pavlas, Zekun Ni, Lars Johannesen, Marc Hoersken,
|
||||||
Maxim Prohorov
|
Renaud Guillard, John Gardiner Myers, Jared Jennings, Eric Hu,
|
||||||
|
Yamada Yasuharu, Stefan Neis, Mike Giancola, Eric S. Raymond, Andrii Moiseiev,
|
||||||
|
Christian Weisgerber, Peter Gal, Aleksey Tulinov, Hang Su, Sergei Nikulov,
|
||||||
|
Miguel Angel, Nach M. S., Benjamin Gilbert, Erik Johansson, Timo Sirainen,
|
||||||
|
Guenter Knauf
|
||||||
|
|
||||||
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/mail/lib-2012-02/0009.html
|
[1] = http://curl.haxx.se/mail/lib-2013-04/0142.html
|
||||||
[2] = http://curl.haxx.se/mail/lib-2012-02/0001.html
|
[2] = http://curl.haxx.se/bug/view.cgi?id=1216
|
||||||
[3] = http://curl.haxx.se/mail/lib-2012-02/0098.html
|
[3] = http://curl.haxx.se/mail/lib-2013-02/0102.html
|
||||||
[4] = http://curl.haxx.se/mail/lib-2012-01/0264.html
|
[4] = http://curl.haxx.se/mail/lib-2013-04/0294.html
|
||||||
[5] = http://curl.haxx.se/mail/lib-2012-01/0263.html
|
[5] = http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=705783
|
||||||
[6] = http://curl.haxx.se/mail/lib-2012-02/0000.html
|
[6] = https://bugzilla.redhat.com/906031
|
||||||
[7] = http://curl.haxx.se/mail/lib-2012-02/0052.html
|
[7] = http://curl.haxx.se/bug/view.cgi?id=1218
|
||||||
[8] = http://curl.haxx.se/bug/view.cgi?id=3481551
|
[8] = http://curl.haxx.se/mail/lib-2012-03/0114.html
|
||||||
[9] = http://curl.haxx.se/bug/view.cgi?id=3481223
|
[9] = http://curl.haxx.se/mail/lib-2013-05/0000.html
|
||||||
[10] = http://curl.haxx.se/bug/view.cgi?id=3482093
|
[10] = http://curl.haxx.se/bug/view.cgi?id=1196
|
||||||
[11] = http://curl.haxx.se/mail/lib-2012-01/0303.html
|
[11] = http://curl.haxx.se/bug/view.cgi?id=1219
|
||||||
[12] = http://curl.haxx.se/mail/lib-2012-01/0190.html
|
[12] = http://curl.haxx.se/bug/view.cgi?id=1220
|
||||||
[13] = http://curl.haxx.se/libcurl/c/curl_easy_setopt.html#CURLOPTMAILAUTH
|
[13] = http://curl.haxx.se/mail/lib-2013-05/0070.html
|
||||||
[14] = http://curl.haxx.se/docs/manpage.html#--mail-auth
|
[14] = http://curl.haxx.se/bug/view.cgi?id=1221
|
||||||
[15] = http://curl.haxx.se/docs/manpage.html#--libcurl
|
[15] = http://curl.haxx.se/bug/view.cgi?id=1230
|
||||||
[16] = http://curl.haxx.se/mail/lib-2012-02/0051.html
|
[16] = http://curl.haxx.se/bug/view.cgi?id=1233
|
||||||
[17] = http://curl.haxx.se/bug/view.cgi?id=3493129
|
[17] = http://curl.haxx.se/bug/view.cgi?id=1234
|
||||||
[18] = http://curl.haxx.se/bug/view.cgi?id=3494091
|
[18] = http://curl.haxx.se/bug/view.cgi?id=1224
|
||||||
[19] = http://curl.haxx.se/mail/lib-2012-03/0046.html
|
[19] = http://curl.haxx.se/bug/view.cgi?id=1239
|
||||||
[20] = http://curl.haxx.se/mail/lib-2012-03/0036.html
|
[20] = http://curl.haxx.se/bug/view.cgi?id=1236
|
||||||
[21] = http://curl.haxx.se/mail/lib-2012-03/0045.html
|
[21] = http://curl.haxx.se/bug/view.cgi?id=1228
|
||||||
[22] = http://curl.haxx.se/bug/view.cgi?id=3494968
|
[22] = http://curl.haxx.se/bug/view.cgi?id=1235
|
||||||
|
[23] = http://curl.haxx.se/bug/view.cgi?id=1238
|
||||||
|
[24] = http://curl.haxx.se/bug/view.cgi?id=1215
|
||||||
|
[25] = http://curl.haxx.se/bug/view.cgi?id=1248
|
||||||
|
[26] = http://curl.haxx.se/docs/adv_20130622.html
|
||||||
|
17
TODO-RELEASE
17
TODO-RELEASE
@@ -1,15 +1,4 @@
|
|||||||
To be addressed in 7.24.1
|
To be addressed in ...
|
||||||
=========================
|
=======================
|
||||||
|
|
||||||
295 - "RTSP Authentication (#22)" https://github.com/bagder/curl/pull/22
|
327 -
|
||||||
|
|
||||||
296 - "OOM leak in multi code" (by Dan Fandrich)
|
|
||||||
|
|
||||||
300 - "Polling on stray socket on sequential transfers." Andrew S
|
|
||||||
http://curl.haxx.se/mail/lib-2011-07/0053.html
|
|
||||||
|
|
||||||
308 - Revisit option --enable-threaded-resolver at least allow selection among
|
|
||||||
pthreads and Windows threads when building a Windows target.
|
|
||||||
http://curl.haxx.se/mail/lib-2012-01/0291.html
|
|
||||||
|
|
||||||
309 -
|
|
||||||
|
286
acinclude.m4
286
acinclude.m4
@@ -5,7 +5,7 @@
|
|||||||
# | (__| |_| | _ <| |___
|
# | (__| |_| | _ <| |___
|
||||||
# \___|\___/|_| \_\_____|
|
# \___|\___/|_| \_\_____|
|
||||||
#
|
#
|
||||||
# Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al.
|
# Copyright (C) 1998 - 2013, 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
|
||||||
@@ -130,7 +130,7 @@ int main (void)
|
|||||||
]])
|
]])
|
||||||
],[
|
],[
|
||||||
tst_lib_xnet_required="yes"
|
tst_lib_xnet_required="yes"
|
||||||
LIBS="$LIBS -lxnet"
|
LIBS="-lxnet $LIBS"
|
||||||
])
|
])
|
||||||
AC_MSG_RESULT([$tst_lib_xnet_required])
|
AC_MSG_RESULT([$tst_lib_xnet_required])
|
||||||
])
|
])
|
||||||
@@ -150,6 +150,7 @@ AC_DEFUN([CURL_CHECK_AIX_ALL_SOURCE], [
|
|||||||
#endif])
|
#endif])
|
||||||
AC_BEFORE([$0], [AC_SYS_LARGEFILE])dnl
|
AC_BEFORE([$0], [AC_SYS_LARGEFILE])dnl
|
||||||
AC_BEFORE([$0], [CURL_CONFIGURE_REENTRANT])dnl
|
AC_BEFORE([$0], [CURL_CONFIGURE_REENTRANT])dnl
|
||||||
|
AC_BEFORE([$0], [CURL_CONFIGURE_PULL_SYS_POLL])dnl
|
||||||
AC_MSG_CHECKING([if OS is AIX (to define _ALL_SOURCE)])
|
AC_MSG_CHECKING([if OS is AIX (to define _ALL_SOURCE)])
|
||||||
AC_EGREP_CPP([yes_this_is_aix],[
|
AC_EGREP_CPP([yes_this_is_aix],[
|
||||||
#ifdef _AIX
|
#ifdef _AIX
|
||||||
@@ -228,12 +229,7 @@ AC_DEFUN([CURL_CHECK_NATIVE_WINDOWS], [
|
|||||||
])
|
])
|
||||||
fi
|
fi
|
||||||
])
|
])
|
||||||
case "$ac_cv_native_windows" in
|
AM_CONDITIONAL(DOING_NATIVE_WINDOWS, test "x$ac_cv_native_windows" = xyes)
|
||||||
yes)
|
|
||||||
AC_DEFINE_UNQUOTED(NATIVE_WINDOWS, 1,
|
|
||||||
[Define to 1 if you are building a native Windows target.])
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
])
|
])
|
||||||
|
|
||||||
|
|
||||||
@@ -1601,213 +1597,6 @@ AC_DEFUN([CURL_CHECK_FUNC_SEND], [
|
|||||||
fi
|
fi
|
||||||
])
|
])
|
||||||
|
|
||||||
|
|
||||||
dnl CURL_CHECK_FUNC_RECVFROM
|
|
||||||
dnl -------------------------------------------------
|
|
||||||
dnl Test if the socket recvfrom() function is available,
|
|
||||||
dnl and check its return type and the types of its
|
|
||||||
dnl arguments. If the function succeeds HAVE_RECVFROM
|
|
||||||
dnl will be defined, defining the types of the arguments
|
|
||||||
dnl in RECVFROM_TYPE_ARG1, RECVFROM_TYPE_ARG2, and so on
|
|
||||||
dnl to RECVFROM_TYPE_ARG6, defining also the type of the
|
|
||||||
dnl function return value in RECVFROM_TYPE_RETV.
|
|
||||||
dnl Notice that the types returned for pointer arguments
|
|
||||||
dnl will actually be the type pointed by the pointer.
|
|
||||||
|
|
||||||
AC_DEFUN([CURL_CHECK_FUNC_RECVFROM], [
|
|
||||||
AC_REQUIRE([CURL_CHECK_HEADER_WINSOCK])dnl
|
|
||||||
AC_REQUIRE([CURL_CHECK_HEADER_WINSOCK2])dnl
|
|
||||||
AC_CHECK_HEADERS(sys/types.h sys/socket.h)
|
|
||||||
#
|
|
||||||
AC_MSG_CHECKING([for recvfrom])
|
|
||||||
AC_LINK_IFELSE([
|
|
||||||
AC_LANG_PROGRAM([[
|
|
||||||
#undef inline
|
|
||||||
#ifdef HAVE_WINDOWS_H
|
|
||||||
#ifndef WIN32_LEAN_AND_MEAN
|
|
||||||
#define WIN32_LEAN_AND_MEAN
|
|
||||||
#endif
|
|
||||||
#include <windows.h>
|
|
||||||
#ifdef HAVE_WINSOCK2_H
|
|
||||||
#include <winsock2.h>
|
|
||||||
#else
|
|
||||||
#ifdef HAVE_WINSOCK_H
|
|
||||||
#include <winsock.h>
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
#else
|
|
||||||
#ifdef HAVE_SYS_TYPES_H
|
|
||||||
#include <sys/types.h>
|
|
||||||
#endif
|
|
||||||
#ifdef HAVE_SYS_SOCKET_H
|
|
||||||
#include <sys/socket.h>
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
]],[[
|
|
||||||
recvfrom(0, 0, 0, 0, 0, 0);
|
|
||||||
]])
|
|
||||||
],[
|
|
||||||
AC_MSG_RESULT([yes])
|
|
||||||
curl_cv_recvfrom="yes"
|
|
||||||
],[
|
|
||||||
AC_MSG_RESULT([no])
|
|
||||||
curl_cv_recvfrom="no"
|
|
||||||
])
|
|
||||||
#
|
|
||||||
if test "$curl_cv_recvfrom" = "yes"; then
|
|
||||||
AC_CACHE_CHECK([types of args and return type for recvfrom],
|
|
||||||
[curl_cv_func_recvfrom_args], [
|
|
||||||
curl_cv_func_recvfrom_args="unknown"
|
|
||||||
for recvfrom_retv in 'int' 'ssize_t'; do
|
|
||||||
for recvfrom_arg1 in 'int' 'ssize_t' 'SOCKET'; do
|
|
||||||
for recvfrom_arg2 in 'char *' 'void *'; do
|
|
||||||
for recvfrom_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
|
|
||||||
for recvfrom_arg4 in 'int' 'unsigned int'; do
|
|
||||||
for recvfrom_arg5 in 'struct sockaddr *' 'void *' 'const struct sockaddr *'; do
|
|
||||||
for recvfrom_arg6 in 'socklen_t *' 'int *' 'unsigned int *' 'size_t *' 'void *'; do
|
|
||||||
if test "$curl_cv_func_recvfrom_args" = "unknown"; then
|
|
||||||
AC_COMPILE_IFELSE([
|
|
||||||
AC_LANG_PROGRAM([[
|
|
||||||
#undef inline
|
|
||||||
#ifdef HAVE_WINDOWS_H
|
|
||||||
#ifndef WIN32_LEAN_AND_MEAN
|
|
||||||
#define WIN32_LEAN_AND_MEAN
|
|
||||||
#endif
|
|
||||||
#include <windows.h>
|
|
||||||
#ifdef HAVE_WINSOCK2_H
|
|
||||||
#include <winsock2.h>
|
|
||||||
#else
|
|
||||||
#ifdef HAVE_WINSOCK_H
|
|
||||||
#include <winsock.h>
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
#define RECVFROMCALLCONV PASCAL
|
|
||||||
#else
|
|
||||||
#ifdef HAVE_SYS_TYPES_H
|
|
||||||
#include <sys/types.h>
|
|
||||||
#endif
|
|
||||||
#ifdef HAVE_SYS_SOCKET_H
|
|
||||||
#include <sys/socket.h>
|
|
||||||
#endif
|
|
||||||
#define RECVFROMCALLCONV
|
|
||||||
#endif
|
|
||||||
extern $recvfrom_retv RECVFROMCALLCONV
|
|
||||||
recvfrom($recvfrom_arg1, $recvfrom_arg2,
|
|
||||||
$recvfrom_arg3, $recvfrom_arg4,
|
|
||||||
$recvfrom_arg5, $recvfrom_arg6);
|
|
||||||
]],[[
|
|
||||||
$recvfrom_arg1 s=0;
|
|
||||||
$recvfrom_arg2 buf=0;
|
|
||||||
$recvfrom_arg3 len=0;
|
|
||||||
$recvfrom_arg4 flags=0;
|
|
||||||
$recvfrom_arg5 addr=0;
|
|
||||||
$recvfrom_arg6 addrlen=0;
|
|
||||||
$recvfrom_retv res=0;
|
|
||||||
res = recvfrom(s, buf, len, flags, addr, addrlen);
|
|
||||||
]])
|
|
||||||
],[
|
|
||||||
curl_cv_func_recvfrom_args="$recvfrom_arg1,$recvfrom_arg2,$recvfrom_arg3,$recvfrom_arg4,$recvfrom_arg5,$recvfrom_arg6,$recvfrom_retv"
|
|
||||||
])
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
done
|
|
||||||
done
|
|
||||||
done
|
|
||||||
done
|
|
||||||
done
|
|
||||||
done
|
|
||||||
]) # AC-CACHE-CHECK
|
|
||||||
# Nearly last minute change for this release starts here
|
|
||||||
AC_DEFINE_UNQUOTED(HAVE_RECVFROM, 1,
|
|
||||||
[Define to 1 if you have the recvfrom function.])
|
|
||||||
ac_cv_func_recvfrom="yes"
|
|
||||||
# Nearly last minute change for this release ends here
|
|
||||||
if test "$curl_cv_func_recvfrom_args" = "unknown"; then
|
|
||||||
AC_MSG_WARN([Cannot find proper types to use for recvfrom args])
|
|
||||||
else
|
|
||||||
recvfrom_prev_IFS=$IFS; IFS=','
|
|
||||||
set dummy `echo "$curl_cv_func_recvfrom_args" | sed 's/\*/\*/g'`
|
|
||||||
IFS=$recvfrom_prev_IFS
|
|
||||||
shift
|
|
||||||
#
|
|
||||||
recvfrom_ptrt_arg2=$[2]
|
|
||||||
recvfrom_qual_ptrt_arg5=$[5]
|
|
||||||
recvfrom_ptrt_arg6=$[6]
|
|
||||||
#
|
|
||||||
AC_DEFINE_UNQUOTED(RECVFROM_TYPE_ARG1, $[1],
|
|
||||||
[Define to the type of arg 1 for recvfrom.])
|
|
||||||
AC_DEFINE_UNQUOTED(RECVFROM_TYPE_ARG3, $[3],
|
|
||||||
[Define to the type of arg 3 for recvfrom.])
|
|
||||||
AC_DEFINE_UNQUOTED(RECVFROM_TYPE_ARG4, $[4],
|
|
||||||
[Define to the type of arg 4 for recvfrom.])
|
|
||||||
AC_DEFINE_UNQUOTED(RECVFROM_TYPE_RETV, $[7],
|
|
||||||
[Define to the function return type for recvfrom.])
|
|
||||||
#
|
|
||||||
prev_sh_opts=$-
|
|
||||||
#
|
|
||||||
case $prev_sh_opts in
|
|
||||||
*f*)
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
set -f
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
#
|
|
||||||
case "$recvfrom_qual_ptrt_arg5" in
|
|
||||||
const*)
|
|
||||||
recvfrom_qual_arg5=const
|
|
||||||
recvfrom_ptrt_arg5=`echo $recvfrom_qual_ptrt_arg5 | sed 's/^const //'`
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
recvfrom_qual_arg5=
|
|
||||||
recvfrom_ptrt_arg5=$recvfrom_qual_ptrt_arg5
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
#
|
|
||||||
recvfrom_type_arg2=`echo $recvfrom_ptrt_arg2 | sed 's/ \*//'`
|
|
||||||
recvfrom_type_arg5=`echo $recvfrom_ptrt_arg5 | sed 's/ \*//'`
|
|
||||||
recvfrom_type_arg6=`echo $recvfrom_ptrt_arg6 | sed 's/ \*//'`
|
|
||||||
#
|
|
||||||
AC_DEFINE_UNQUOTED(RECVFROM_TYPE_ARG2, $recvfrom_type_arg2,
|
|
||||||
[Define to the type pointed by arg 2 for recvfrom.])
|
|
||||||
AC_DEFINE_UNQUOTED(RECVFROM_QUAL_ARG5, $recvfrom_qual_arg5,
|
|
||||||
[Define to the type qualifier pointed by arg 5 for recvfrom.])
|
|
||||||
AC_DEFINE_UNQUOTED(RECVFROM_TYPE_ARG5, $recvfrom_type_arg5,
|
|
||||||
[Define to the type pointed by arg 5 for recvfrom.])
|
|
||||||
AC_DEFINE_UNQUOTED(RECVFROM_TYPE_ARG6, $recvfrom_type_arg6,
|
|
||||||
[Define to the type pointed by arg 6 for recvfrom.])
|
|
||||||
#
|
|
||||||
if test "$recvfrom_type_arg2" = "void"; then
|
|
||||||
AC_DEFINE_UNQUOTED(RECVFROM_TYPE_ARG2_IS_VOID, 1,
|
|
||||||
[Define to 1 if the type pointed by arg 2 for recvfrom is void.])
|
|
||||||
fi
|
|
||||||
if test "$recvfrom_type_arg5" = "void"; then
|
|
||||||
AC_DEFINE_UNQUOTED(RECVFROM_TYPE_ARG5_IS_VOID, 1,
|
|
||||||
[Define to 1 if the type pointed by arg 5 for recvfrom is void.])
|
|
||||||
fi
|
|
||||||
if test "$recvfrom_type_arg6" = "void"; then
|
|
||||||
AC_DEFINE_UNQUOTED(RECVFROM_TYPE_ARG6_IS_VOID, 1,
|
|
||||||
[Define to 1 if the type pointed by arg 6 for recvfrom is void.])
|
|
||||||
fi
|
|
||||||
#
|
|
||||||
case $prev_sh_opts in
|
|
||||||
*f*)
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
set +f
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
#
|
|
||||||
AC_DEFINE_UNQUOTED(HAVE_RECVFROM, 1,
|
|
||||||
[Define to 1 if you have the recvfrom function.])
|
|
||||||
ac_cv_func_recvfrom="yes"
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
AC_MSG_WARN([Unable to link function recvfrom])
|
|
||||||
fi
|
|
||||||
])
|
|
||||||
|
|
||||||
|
|
||||||
dnl CURL_CHECK_MSG_NOSIGNAL
|
dnl CURL_CHECK_MSG_NOSIGNAL
|
||||||
dnl -------------------------------------------------
|
dnl -------------------------------------------------
|
||||||
dnl Check for MSG_NOSIGNAL
|
dnl Check for MSG_NOSIGNAL
|
||||||
@@ -2158,7 +1947,6 @@ AC_DEFUN([CURL_CHECK_LIBS_CLOCK_GETTIME_MONOTONIC], [
|
|||||||
else
|
else
|
||||||
LIBS="$curl_cv_gclk_LIBS $curl_cv_save_LIBS"
|
LIBS="$curl_cv_gclk_LIBS $curl_cv_save_LIBS"
|
||||||
fi
|
fi
|
||||||
CURL_LIBS="$CURL_LIBS $curl_cv_gclk_LIBS"
|
|
||||||
AC_MSG_RESULT([$curl_cv_gclk_LIBS])
|
AC_MSG_RESULT([$curl_cv_gclk_LIBS])
|
||||||
ac_cv_func_clock_gettime="yes"
|
ac_cv_func_clock_gettime="yes"
|
||||||
;;
|
;;
|
||||||
@@ -2315,6 +2103,8 @@ AC_DEFUN([CURL_CONFIGURE_CURL_SOCKLEN_T], [
|
|||||||
AC_REQUIRE([CURL_INCLUDES_SYS_SOCKET])dnl
|
AC_REQUIRE([CURL_INCLUDES_SYS_SOCKET])dnl
|
||||||
AC_REQUIRE([CURL_PREPROCESS_CALLCONV])dnl
|
AC_REQUIRE([CURL_PREPROCESS_CALLCONV])dnl
|
||||||
#
|
#
|
||||||
|
AC_BEFORE([$0], [CURL_CONFIGURE_PULL_SYS_POLL])dnl
|
||||||
|
#
|
||||||
AC_MSG_CHECKING([for curl_socklen_t data type])
|
AC_MSG_CHECKING([for curl_socklen_t data type])
|
||||||
curl_typeof_curl_socklen_t="unknown"
|
curl_typeof_curl_socklen_t="unknown"
|
||||||
for arg1 in int SOCKET; do
|
for arg1 in int SOCKET; do
|
||||||
@@ -2423,6 +2213,45 @@ AC_DEFUN([CURL_CONFIGURE_CURL_SOCKLEN_T], [
|
|||||||
])
|
])
|
||||||
|
|
||||||
|
|
||||||
|
dnl CURL_CONFIGURE_PULL_SYS_POLL
|
||||||
|
dnl -------------------------------------------------
|
||||||
|
dnl Find out if system header file sys/poll.h must be included by the
|
||||||
|
dnl external interface, making appropriate definitions for template file
|
||||||
|
dnl include/curl/curlbuild.h.in to properly configure and use the library.
|
||||||
|
dnl
|
||||||
|
dnl The need for the sys/poll.h inclusion arises mainly to properly
|
||||||
|
dnl interface AIX systems which define macros 'events' and 'revents'.
|
||||||
|
|
||||||
|
AC_DEFUN([CURL_CONFIGURE_PULL_SYS_POLL], [
|
||||||
|
AC_REQUIRE([CURL_INCLUDES_POLL])dnl
|
||||||
|
#
|
||||||
|
tst_poll_events_macro_defined="unknown"
|
||||||
|
#
|
||||||
|
AC_COMPILE_IFELSE([
|
||||||
|
AC_LANG_PROGRAM([[
|
||||||
|
$curl_includes_poll
|
||||||
|
]],[[
|
||||||
|
#if defined(events) || defined(revents)
|
||||||
|
return 0;
|
||||||
|
#else
|
||||||
|
force compilation error
|
||||||
|
#endif
|
||||||
|
]])
|
||||||
|
],[
|
||||||
|
tst_poll_events_macro_defined="yes"
|
||||||
|
],[
|
||||||
|
tst_poll_events_macro_defined="no"
|
||||||
|
])
|
||||||
|
#
|
||||||
|
if test "$tst_poll_events_macro_defined" = "yes"; then
|
||||||
|
if test "x$ac_cv_header_sys_poll_h" = "xyes"; then
|
||||||
|
CURL_DEFINE_UNQUOTED([CURL_PULL_SYS_POLL_H])
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
#
|
||||||
|
])
|
||||||
|
|
||||||
|
|
||||||
dnl CURL_CHECK_FUNC_SELECT
|
dnl CURL_CHECK_FUNC_SELECT
|
||||||
dnl -------------------------------------------------
|
dnl -------------------------------------------------
|
||||||
dnl Test if the socket select() function is available,
|
dnl Test if the socket select() function is available,
|
||||||
@@ -2790,8 +2619,10 @@ AC_HELP_STRING([--without-ca-path], [Don't use a default CA path]),
|
|||||||
fi
|
fi
|
||||||
capath="$want_capath"
|
capath="$want_capath"
|
||||||
ca="no"
|
ca="no"
|
||||||
else
|
elif test "x$cross_compiling" != "xyes"; then
|
||||||
dnl neither of --with-ca-* given
|
dnl NOT cross-compiling and...
|
||||||
|
dnl neither of the --with-ca-* options are provided
|
||||||
|
|
||||||
dnl first try autodetecting a CA bundle , then a CA path
|
dnl first try autodetecting a CA bundle , then a CA path
|
||||||
dnl both autodetections can be skipped by --without-ca-*
|
dnl both autodetections can be skipped by --without-ca-*
|
||||||
ca="no"
|
ca="no"
|
||||||
@@ -2827,10 +2658,11 @@ AC_HELP_STRING([--without-ca-path], [Don't use a default CA path]),
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
else
|
||||||
|
dnl no option given and cross-compiling
|
||||||
|
AC_MSG_WARN([skipped the ca-cert path detection when cross-compiling])
|
||||||
fi
|
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])
|
||||||
@@ -3220,8 +3052,8 @@ AC_DEFUN([CURL_EXPORT_PCDIR], [
|
|||||||
|
|
||||||
dnl CURL_CHECK_PKGCONFIG ($module, [$pcdir])
|
dnl CURL_CHECK_PKGCONFIG ($module, [$pcdir])
|
||||||
dnl ------------------------
|
dnl ------------------------
|
||||||
dnl search for the pkg-config tool (if not cross-compiling). Set the PKGCONFIG
|
dnl search for the pkg-config tool. Set the PKGCONFIG variable to hold the
|
||||||
dnl variable to hold the path to it, or 'no' if not found/present.
|
dnl path to it, or 'no' if not found/present.
|
||||||
dnl
|
dnl
|
||||||
dnl If pkg-config is present, check that it has info about the $module or
|
dnl If pkg-config is present, check that it has info about the $module or
|
||||||
dnl return "no" anyway!
|
dnl return "no" anyway!
|
||||||
@@ -3233,15 +3065,7 @@ AC_DEFUN([CURL_CHECK_PKGCONFIG], [
|
|||||||
|
|
||||||
PKGCONFIG="no"
|
PKGCONFIG="no"
|
||||||
|
|
||||||
if test x$cross_compiling = xyes; then
|
AC_PATH_TOOL( PKGCONFIG, pkg-config, no, $PATH:/usr/bin:/usr/local/bin)
|
||||||
dnl see if there's a pkg-specific for this host setup
|
|
||||||
AC_PATH_PROG( PKGCONFIG, ${host}-pkg-config, no,
|
|
||||||
$PATH:/usr/bin:/usr/local/bin)
|
|
||||||
fi
|
|
||||||
|
|
||||||
if test x$PKGCONFIG = xno; then
|
|
||||||
AC_PATH_PROG( PKGCONFIG, pkg-config, no, $PATH:/usr/bin:/usr/local/bin)
|
|
||||||
fi
|
|
||||||
|
|
||||||
if test x$PKGCONFIG != xno; then
|
if test x$PKGCONFIG != xno; then
|
||||||
AC_MSG_CHECKING([for $1 options with pkg-config])
|
AC_MSG_CHECKING([for $1 options with pkg-config])
|
||||||
|
@@ -6,7 +6,7 @@
|
|||||||
# | (__| |_| | _ <| |___
|
# | (__| |_| | _ <| |___
|
||||||
# \___|\___/|_| \_\_____|
|
# \___|\___/|_| \_\_____|
|
||||||
#
|
#
|
||||||
# Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al.
|
# Copyright (C) 1998 - 2012, 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
|
||||||
@@ -384,9 +384,6 @@ $PERL -i.bak -pe 's/\bmv +([^-\s])/mv -f $1/g' aclocal.m4
|
|||||||
echo "buildconf: running autoheader"
|
echo "buildconf: running autoheader"
|
||||||
${AUTOHEADER:-autoheader} || die "autoheader command failed"
|
${AUTOHEADER:-autoheader} || die "autoheader command failed"
|
||||||
|
|
||||||
echo "buildconf: cp lib/curl_config.h.in src/curl_config.h.in"
|
|
||||||
cp lib/curl_config.h.in src/curl_config.h.in
|
|
||||||
|
|
||||||
echo "buildconf: running autoconf"
|
echo "buildconf: running autoconf"
|
||||||
${AUTOCONF:-autoconf} || die "autoconf command failed"
|
${AUTOCONF:-autoconf} || die "autoconf command failed"
|
||||||
|
|
||||||
|
@@ -12,9 +12,9 @@ ECHO ERROR: This file shall only be used with a curl git tree checkout.
|
|||||||
goto end_all
|
goto end_all
|
||||||
:start_doing
|
:start_doing
|
||||||
|
|
||||||
REM create hugehelp.c
|
REM create tool_hugehelp.c
|
||||||
if not exist src\hugehelp.c.cvs goto end_hugehelp_c
|
if not exist src\tool_hugehelp.c.cvs goto end_hugehelp_c
|
||||||
copy /Y src\hugehelp.c.cvs src\hugehelp.c
|
copy /Y src\tool_hugehelp.c.cvs src\tool_hugehelp.c
|
||||||
:end_hugehelp_c
|
:end_hugehelp_c
|
||||||
|
|
||||||
REM create Makefile
|
REM create Makefile
|
||||||
@@ -27,11 +27,6 @@ if not exist include\curl\curlbuild.h.dist goto end_curlbuild_h
|
|||||||
copy /Y include\curl\curlbuild.h.dist include\curl\curlbuild.h
|
copy /Y include\curl\curlbuild.h.dist include\curl\curlbuild.h
|
||||||
:end_curlbuild_h
|
:end_curlbuild_h
|
||||||
|
|
||||||
REM create src\config-win32.h
|
|
||||||
if not exist lib\config-win32.h goto end_config_win32_h
|
|
||||||
copy /Y lib\config-win32.h src\config-win32.h
|
|
||||||
:end_config_win32_h
|
|
||||||
|
|
||||||
REM setup c-ares git tree
|
REM setup c-ares git tree
|
||||||
if not exist ares\buildconf.bat goto end_c_ares
|
if not exist ares\buildconf.bat goto end_c_ares
|
||||||
cd ares
|
cd ares
|
||||||
|
849
configure.ac
849
configure.ac
File diff suppressed because it is too large
Load Diff
@@ -6,7 +6,7 @@
|
|||||||
# | (__| |_| | _ <| |___
|
# | (__| |_| | _ <| |___
|
||||||
# \___|\___/|_| \_\_____|
|
# \___|\___/|_| \_\_____|
|
||||||
#
|
#
|
||||||
# Copyright (C) 2001 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al.
|
# Copyright (C) 2001 - 2012, 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
|
||||||
@@ -24,6 +24,7 @@
|
|||||||
prefix=@prefix@
|
prefix=@prefix@
|
||||||
exec_prefix=@exec_prefix@
|
exec_prefix=@exec_prefix@
|
||||||
includedir=@includedir@
|
includedir=@includedir@
|
||||||
|
cppflag_curl_staticlib=@CPPFLAG_CURL_STATICLIB@
|
||||||
|
|
||||||
usage()
|
usage()
|
||||||
{
|
{
|
||||||
@@ -128,10 +129,15 @@ while test $# -gt 0; do
|
|||||||
;;
|
;;
|
||||||
|
|
||||||
--cflags)
|
--cflags)
|
||||||
if test "X@includedir@" = "X/usr/include"; then
|
if test "X$cppflag_curl_staticlib" = "X-DCURL_STATICLIB"; then
|
||||||
echo ""
|
CPPFLAG_CURL_STATICLIB="-DCURL_STATICLIB "
|
||||||
else
|
else
|
||||||
echo "-I@includedir@"
|
CPPFLAG_CURL_STATICLIB=""
|
||||||
|
fi
|
||||||
|
if test "X@includedir@" = "X/usr/include"; then
|
||||||
|
echo "$CPPFLAG_CURL_STATICLIB"
|
||||||
|
else
|
||||||
|
echo "${CPPFLAG_CURL_STATICLIB}-I@includedir@"
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
|
||||||
@@ -142,14 +148,19 @@ while test $# -gt 0; do
|
|||||||
CURLLIBDIR=""
|
CURLLIBDIR=""
|
||||||
fi
|
fi
|
||||||
if test "X@REQUIRE_LIB_DEPS@" = "Xyes"; then
|
if test "X@REQUIRE_LIB_DEPS@" = "Xyes"; then
|
||||||
echo ${CURLLIBDIR}-lcurl @LIBCURL_LIBS@ @LIBS@
|
echo ${CURLLIBDIR}-lcurl @LIBCURL_LIBS@
|
||||||
else
|
else
|
||||||
echo ${CURLLIBDIR}-lcurl @LIBS@
|
echo ${CURLLIBDIR}-lcurl
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
|
||||||
--static-libs)
|
--static-libs)
|
||||||
echo @libdir@/libcurl.@libext@ @LDFLAGS@ @LIBCURL_LIBS@ @LIBS@
|
if test "X@ENABLE_STATIC@" != "Xno" ; then
|
||||||
|
echo @libdir@/libcurl.@libext@ @LDFLAGS@ @LIBCURL_LIBS@
|
||||||
|
else
|
||||||
|
echo "curl was built with static libraries disabled" >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
|
|
||||||
--configure)
|
--configure)
|
||||||
|
@@ -1,50 +0,0 @@
|
|||||||
;;;; Emacs Lisp help for writing curl code. ;;;;
|
|
||||||
|
|
||||||
;;; The curl hacker's C conventions.
|
|
||||||
;;; See the sample.emacs file on how this file can be made to take
|
|
||||||
;;; effect automatically when editing curl source files.
|
|
||||||
|
|
||||||
(defconst curl-c-style
|
|
||||||
'((c-basic-offset . 2)
|
|
||||||
(c-comment-only-line-offset . 0)
|
|
||||||
(c-hanging-braces-alist . ((substatement-open before after)))
|
|
||||||
(c-offsets-alist . ((topmost-intro . 0)
|
|
||||||
(topmost-intro-cont . 0)
|
|
||||||
(substatement . +)
|
|
||||||
(substatement-open . 0)
|
|
||||||
(statement-case-intro . +)
|
|
||||||
(statement-case-open . 0)
|
|
||||||
(case-label . 0)
|
|
||||||
))
|
|
||||||
)
|
|
||||||
"Curl C Programming Style")
|
|
||||||
|
|
||||||
(defun curl-code-cleanup ()
|
|
||||||
"no docs"
|
|
||||||
(interactive)
|
|
||||||
(untabify (point-min) (point-max))
|
|
||||||
(delete-trailing-whitespace)
|
|
||||||
)
|
|
||||||
|
|
||||||
;; Customizations for all of c-mode, c++-mode, and objc-mode
|
|
||||||
(defun curl-c-mode-common-hook ()
|
|
||||||
"Curl C mode hook"
|
|
||||||
;; add curl style and set it for the current buffer
|
|
||||||
(c-add-style "curl" curl-c-style t)
|
|
||||||
(setq tab-width 8
|
|
||||||
indent-tabs-mode nil ; Use spaces. Not tabs.
|
|
||||||
comment-column 40
|
|
||||||
c-font-lock-extra-types (append '("bool" "CURL" "CURLcode" "ssize_t" "size_t" "curl_socklen_t" "fd_set" "time_t" "curl_off_t" "curl_socket_t" "in_addr_t" "CURLSHcode" "CURLMcode" "Curl_addrinfo"))
|
|
||||||
)
|
|
||||||
;; keybindings for C, C++, and Objective-C. We can put these in
|
|
||||||
;; c-mode-base-map because of inheritance ...
|
|
||||||
(define-key c-mode-base-map "\M-q" 'c-fill-paragraph)
|
|
||||||
(define-key c-mode-base-map "\M-m" 'curl-code-cleanup)
|
|
||||||
(setq c-recognize-knr-p nil)
|
|
||||||
;;; (add-hook 'write-file-hooks 'delete-trailing-whitespace t)
|
|
||||||
(setq show-trailing-whitespace t)
|
|
||||||
)
|
|
||||||
|
|
||||||
;; Set this is in your .emacs if you want to use the c-mode-hook as
|
|
||||||
;; defined here right out of the box.
|
|
||||||
; (add-hook 'c-mode-common-hook 'curl-c-mode-common-hook)
|
|
@@ -6,14 +6,14 @@
|
|||||||
|
|
||||||
libcurl bindings
|
libcurl bindings
|
||||||
|
|
||||||
Creative people have written bindings or interfaces for various environments
|
Creative people have written bindings or interfaces for various environments
|
||||||
and programming languages. Using one of these allows you to take advantage of
|
and programming languages. Using one of these allows you to take advantage of
|
||||||
curl powers from within your favourite language or system.
|
curl powers from within your favourite language or system.
|
||||||
|
|
||||||
This is a list of all known interfaces as of this writing.
|
This is a list of all known interfaces as of this writing.
|
||||||
|
|
||||||
The bindings listed below are not part of the curl/libcurl distribution
|
The bindings listed below are not part of the curl/libcurl distribution
|
||||||
archives, but must be downloaded and installed separately.
|
archives, but must be downloaded and installed separately.
|
||||||
|
|
||||||
Ada95
|
Ada95
|
||||||
|
|
||||||
@@ -41,7 +41,10 @@ Ch
|
|||||||
|
|
||||||
Cocoa
|
Cocoa
|
||||||
|
|
||||||
Written by Dan Wood
|
BBHTTP: written by Bruno de Carvalho
|
||||||
|
https://github.com/brunodecarvalho/BBHTTP
|
||||||
|
|
||||||
|
curlhandle: Written by Dan Wood
|
||||||
http://curlhandle.sourceforge.net/
|
http://curlhandle.sourceforge.net/
|
||||||
|
|
||||||
D
|
D
|
||||||
@@ -55,6 +58,7 @@ Dylan
|
|||||||
http://dylanlibs.sourceforge.net/
|
http://dylanlibs.sourceforge.net/
|
||||||
|
|
||||||
Eiffel
|
Eiffel
|
||||||
|
|
||||||
Written by Eiffel Software
|
Written by Eiffel Software
|
||||||
http://curl.haxx.se/libcurl/eiffel/
|
http://curl.haxx.se/libcurl/eiffel/
|
||||||
|
|
||||||
@@ -81,6 +85,11 @@ glib/GTK+
|
|||||||
Written by Richard Atterer
|
Written by Richard Atterer
|
||||||
http://atterer.net/glibcurl/
|
http://atterer.net/glibcurl/
|
||||||
|
|
||||||
|
Guile:
|
||||||
|
|
||||||
|
Written by Michael L. Gran
|
||||||
|
http://www.lonelycactus.com/guile-curl.html
|
||||||
|
|
||||||
Haskell
|
Haskell
|
||||||
|
|
||||||
Written by Galois, Inc
|
Written by Galois, Inc
|
||||||
@@ -91,6 +100,11 @@ Java
|
|||||||
Maintained by [blank]
|
Maintained by [blank]
|
||||||
http://curl.haxx.se/libcurl/java/
|
http://curl.haxx.se/libcurl/java/
|
||||||
|
|
||||||
|
Julia
|
||||||
|
|
||||||
|
Written by Paul Howe
|
||||||
|
https://github.com/forio/Curl.jl
|
||||||
|
|
||||||
Lisp
|
Lisp
|
||||||
|
|
||||||
Written by Liam Healy
|
Written by Liam Healy
|
||||||
|
10
docs/BUGS
10
docs/BUGS
@@ -20,7 +20,7 @@ BUGS
|
|||||||
1.1 There are still bugs
|
1.1 There are still bugs
|
||||||
|
|
||||||
Curl and libcurl have grown substantially since the beginning. At the time
|
Curl and libcurl have grown substantially since the beginning. At the time
|
||||||
of writing (September 2011), there are about 66000 lines of source code, and
|
of writing (January 2013), there are about 83,000 lines of source code, and
|
||||||
by the time you read this it has probably grown even more.
|
by the time you read this it has probably grown even more.
|
||||||
|
|
||||||
Of course there are lots of bugs left. And lots of misfeatures.
|
Of course there are lots of bugs left. And lots of misfeatures.
|
||||||
@@ -35,9 +35,11 @@ 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
|
||||||
|
|
||||||
http://sourceforge.net/bugs/?group_id=976
|
https://sourceforge.net/p/curl/bugs/
|
||||||
|
|
||||||
(but please read the sections below first before doing that)
|
Please read the rest of this document below first before doing that! Also,
|
||||||
|
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 http://curl.haxx.se/mail/
|
||||||
@@ -91,7 +93,7 @@ BUGS
|
|||||||
your problem and to work on a fix (if we agree it truly is a problem).
|
your problem and to work on a fix (if we agree it truly is a problem).
|
||||||
|
|
||||||
Lots of problems that appear to be libcurl problems are actually just abuses
|
Lots of problems that appear to be libcurl problems are actually just abuses
|
||||||
of the libcurl API or other malfunctions in your applications. It is adviced
|
of the libcurl API or other malfunctions in your applications. It is advised
|
||||||
that you run your problematic program using a memory debug tool like
|
that you run your problematic program using a memory debug tool like
|
||||||
valgrind or similar before you post memory-related or "crashing" problems to
|
valgrind or similar before you post memory-related or "crashing" problems to
|
||||||
us.
|
us.
|
||||||
|
@@ -212,7 +212,7 @@
|
|||||||
commit.
|
commit.
|
||||||
|
|
||||||
Now send those patches off to the curl-library list. You can of course opt to
|
Now send those patches off to the curl-library list. You can of course opt to
|
||||||
do that with the 'get send-email' command.
|
do that with the 'git send-email' command.
|
||||||
|
|
||||||
3.3 How To Make a Patch without git
|
3.3 How To Make a Patch without git
|
||||||
|
|
||||||
@@ -279,7 +279,7 @@
|
|||||||
|
|
||||||
3.6 Please don't send pull requests
|
3.6 Please don't send pull requests
|
||||||
|
|
||||||
With git (and expecially 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 one or more people in the curl project to have changes merged this
|
||||||
way instead of mailing patches to the curl-library mailing list.
|
way instead of mailing patches to the curl-library mailing list.
|
||||||
|
|
||||||
@@ -294,7 +294,7 @@
|
|||||||
|
|
||||||
- Commit messages can be tweaked and changed if merged locally instead of
|
- Commit messages can be tweaked and changed if merged locally instead of
|
||||||
using github. Merges directly on github requires the changes to be perfect
|
using github. Merges directly on github requires the changes to be perfect
|
||||||
already, which they seldomly are.
|
already, which they seldom are.
|
||||||
|
|
||||||
- Merges on github prevents rebases and even enforces --no-ff which is a git
|
- Merges on github prevents rebases and even enforces --no-ff which is a git
|
||||||
style we don't otherwise use in the project
|
style we don't otherwise use in the project
|
||||||
|
176
docs/FAQ
176
docs/FAQ
@@ -1,4 +1,3 @@
|
|||||||
Updated: December 7, 2011 (http://curl.haxx.se/docs/faq.html)
|
|
||||||
_ _ ____ _
|
_ _ ____ _
|
||||||
___| | | | _ \| |
|
___| | | | _ \| |
|
||||||
/ __| | | | |_) | |
|
/ __| | | | |_) | |
|
||||||
@@ -53,6 +52,7 @@ FAQ
|
|||||||
3.19 How do I get HTTP from a host using a specific IP address?
|
3.19 How do I get HTTP from a host using a specific IP address?
|
||||||
3.20 How to SFTP from my user's home directory?
|
3.20 How to SFTP from my user's home directory?
|
||||||
3.21 Protocol xxx not supported or disabled in libcurl
|
3.21 Protocol xxx not supported or disabled in libcurl
|
||||||
|
3.22 curl -X gives me HTTP problems
|
||||||
|
|
||||||
4. Running Problems
|
4. Running Problems
|
||||||
4.1 Problems connecting to SSL servers.
|
4.1 Problems connecting to SSL servers.
|
||||||
@@ -97,6 +97,8 @@ FAQ
|
|||||||
5.13 How do I stop an ongoing transfer?
|
5.13 How do I stop an ongoing transfer?
|
||||||
5.14 Using C++ non-static functions for callbacks?
|
5.14 Using C++ non-static functions for callbacks?
|
||||||
5.15 How do I get an FTP directory listing?
|
5.15 How do I get an FTP directory listing?
|
||||||
|
5.16 I want a different time-out!
|
||||||
|
5.17 Can I write a server with libcurl?
|
||||||
|
|
||||||
6. License Issues
|
6. License Issues
|
||||||
6.1 I have a GPL program, can I use the libcurl library?
|
6.1 I have a GPL program, can I use the libcurl library?
|
||||||
@@ -138,7 +140,7 @@ FAQ
|
|||||||
|
|
||||||
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, HPUX,
|
||||||
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...
|
||||||
|
|
||||||
@@ -243,10 +245,10 @@ FAQ
|
|||||||
supervised in any way by the project.
|
supervised in 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 and sourceforge.net hosts project services we take advantage from,
|
lists etc, sourceforge.net hosts project services we take advantage from,
|
||||||
like the bug tracker. Also again, some companies have sponsored certain
|
like the bug tracker and github hosts the primary git repository. Also
|
||||||
parts of the development in the past and I hope some will continue to do so
|
again, some companies have sponsored certain parts of the development in the
|
||||||
in the future.
|
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.
|
||||||
@@ -306,49 +308,17 @@ FAQ
|
|||||||
We don't know how many users that downloaded or installed curl and then
|
We don't know how many users that downloaded or installed curl and then
|
||||||
never use it.
|
never use it.
|
||||||
|
|
||||||
Some facts to use as input to the math:
|
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!
|
||||||
|
|
||||||
curl packages are downloaded from the curl.haxx.se and mirrors over a
|
See http://daniel.haxx.se/blog/2012/05/16/300m-users/
|
||||||
million times per year. curl is installed by default with most Linux
|
|
||||||
distributions. curl is installed by default with Mac OS X. curl and libcurl
|
|
||||||
as used by numerous applications that include libcurl binaries in their
|
|
||||||
distribution packages (like Adobe Acrobat Reader and Google Earth).
|
|
||||||
|
|
||||||
More than a hundred known named companies use curl in commercial
|
|
||||||
environments and products and more than a hundred known named open source
|
|
||||||
projects depend on (lib)curl.
|
|
||||||
|
|
||||||
In a poll on the curl web site mid-2005, more than 50% of the 300+ answers
|
|
||||||
estimated a user base of one million users or more.
|
|
||||||
|
|
||||||
In March 2005, the "Linux Counter project" estimated a total Linux user base
|
|
||||||
of some 29 millions, while Netcraft detected some 4 million "active" Linux
|
|
||||||
based web servers. A guess is that a fair amount of these Linux
|
|
||||||
installations have curl installed.
|
|
||||||
|
|
||||||
The Debian project maintains statistics on packages installed by people
|
|
||||||
who have voluntarily run their package counting application. In mid-2010,
|
|
||||||
libcurl3 was installed on over 55000 such systems (62% of reporting systems)
|
|
||||||
and was one of the 320 most popular installed packages (out of about 107000
|
|
||||||
possible packages).
|
|
||||||
|
|
||||||
All this taken together, there is no doubt that there are millions of
|
|
||||||
(lib)curl users.
|
|
||||||
|
|
||||||
http://curl.haxx.se/docs/companies.html
|
|
||||||
http://curl.haxx.se/docs/programs.html
|
|
||||||
http://curl.haxx.se/libcurl/using/apps.html
|
|
||||||
http://counter.li.org/estimates.php
|
|
||||||
http://news.netcraft.com/archives/2005/03/14/fedora_makes_rapid_progress.html
|
|
||||||
http://qa.debian.org/popcon.php?package=curl
|
|
||||||
|
|
||||||
1.11 Why don't you update ca-bundle.crt
|
1.11 Why don't you update ca-bundle.crt
|
||||||
|
|
||||||
The ca-bundle.crt file that used to be bundled with curl was very outdated
|
The ca cert bundle that used to shipped with curl was very outdated and must
|
||||||
(it being last modified year 2000 should tell) and must be replaced with a
|
be replaced with an up-to-date version by anyone who wants to verify
|
||||||
much more modern and up-to-date version by anyone who wants to verify peers
|
peers. It is no longer provided by curl. The last curl release ever that
|
||||||
anyway. It is no longer provided, the last curl release that shipped it was
|
shipped a ca cert bundle was curl 7.18.0.
|
||||||
curl 7.18.0.
|
|
||||||
|
|
||||||
In the cURL project we've decided not to attempt to keep this file updated
|
In the cURL project we've decided not to attempt to keep this file updated
|
||||||
(or even present anymore) since deciding what to add to a ca cert bundle is
|
(or even present anymore) since deciding what to add to a ca cert bundle is
|
||||||
@@ -448,19 +418,24 @@ FAQ
|
|||||||
|
|
||||||
2.2 Does curl work/build with other SSL libraries?
|
2.2 Does curl work/build with other SSL libraries?
|
||||||
|
|
||||||
Curl has been written to use OpenSSL, GnuTLS, yassl, NSS, PolarSSL, axTLS or
|
Curl has been written to use a generic SSL function layer internally, and
|
||||||
qssl, although there should not be many problems using a different
|
that SSL functionality can then be provided by one out of many different SSL
|
||||||
library. If anyone does "port" curl to use a different SSL library, we are
|
backends.
|
||||||
of course very interested in getting the patch!
|
|
||||||
|
curl can be built to use one of the following SSL alternatives: OpenSSL,
|
||||||
|
GnuTLS, yassl, NSS, PolarSSL, axTLS, Secure Transport (native iOS/OS X),
|
||||||
|
schannel (native Windows) or qssl (native IBM i). They all have their pros
|
||||||
|
and cons, and we try to maintain a comparison of them here:
|
||||||
|
http://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?
|
||||||
|
|
||||||
That is an OpenSSL binary built for Windows.
|
That is an OpenSSL binary built for Windows.
|
||||||
|
|
||||||
Curl uses OpenSSL to do the SSL stuff. The LIBEAY32.DLL is what curl needs
|
Curl can be built with OpenSSL to do the SSL stuff. The LIBEAY32.DLL is then
|
||||||
on a windows machine to do https://. Check out the curl web site to find
|
what curl needs on a windows machine to do https:// etc. Check out the curl
|
||||||
accurate and up-to-date pointers to recent OpenSSL DLLs and other binary
|
web site to find accurate and up-to-date pointers to recent OpenSSL DLLs and
|
||||||
packages.
|
other binary packages.
|
||||||
|
|
||||||
2.4 Does curl support SOCKS (RFC 1928) ?
|
2.4 Does curl support SOCKS (RFC 1928) ?
|
||||||
|
|
||||||
@@ -496,9 +471,9 @@ FAQ
|
|||||||
3.3 Why doesn't my posting using -F work?
|
3.3 Why doesn't my posting using -F work?
|
||||||
|
|
||||||
You can't simply use -F or -d at your choice. The web server that will
|
You can't simply use -F or -d at your choice. The web server that will
|
||||||
receive your post assumes one of the formats. If the form you're trying to
|
receive your post expects one of the formats. If the form you're trying to
|
||||||
"fake" sets the type to 'multipart/form-data', then and only then you must
|
submit uses the type 'multipart/form-data', then and only then you must use
|
||||||
use the -F type. In all the most common cases, you should use -d which then
|
the -F type. In all the most common cases, you should use -d which then
|
||||||
causes a posting with the type 'application/x-www-form-urlencoded'.
|
causes a posting with the type 'application/x-www-form-urlencoded'.
|
||||||
|
|
||||||
This is described in some detail in the MANUAL and TheArtOfHttpScripting
|
This is described in some detail in the MANUAL and TheArtOfHttpScripting
|
||||||
@@ -512,9 +487,10 @@ FAQ
|
|||||||
You can tell curl to perform optional commands both before and/or after a
|
You can tell curl to perform optional commands both before and/or after a
|
||||||
file transfer. Study the -Q/--quote option.
|
file transfer. Study the -Q/--quote option.
|
||||||
|
|
||||||
Since curl is used for file transfers, you don't use curl to just perform
|
Since curl is used for file transfers, you don't normally use curl to
|
||||||
FTP commands without transferring anything. Therefore you must always specify
|
perform FTP commands without transferring anything. Therefore you must
|
||||||
a URL to transfer to/from even when doing custom FTP commands.
|
always specify a URL to transfer to/from even when doing custom FTP
|
||||||
|
commands, or use -I which implies the "no body" option sent to libcurl.
|
||||||
|
|
||||||
3.5 How can I disable the Accept: */* header?
|
3.5 How can I disable the Accept: */* header?
|
||||||
|
|
||||||
@@ -525,9 +501,9 @@ FAQ
|
|||||||
3.6 Does curl support ASP, XML, XHTML or HTML version Y?
|
3.6 Does curl support ASP, XML, XHTML or HTML version Y?
|
||||||
|
|
||||||
To curl, all contents are alike. It doesn't matter how the page was
|
To curl, all contents are alike. It doesn't matter how the page was
|
||||||
generated. It may be ASP, PHP, Perl, shell-script, SSI or plain
|
generated. It may be ASP, PHP, Perl, shell-script, SSI or plain HTML
|
||||||
HTML-files. There's no difference to curl and it doesn't even know what kind
|
files. There's no difference to curl and it doesn't even know what kind of
|
||||||
of language that generated the page.
|
language that generated the page.
|
||||||
|
|
||||||
See also item 3.14 regarding javascript.
|
See also item 3.14 regarding javascript.
|
||||||
|
|
||||||
@@ -752,7 +728,7 @@ FAQ
|
|||||||
When passing on a URL to curl to use, it may respond that the particular
|
When passing on a URL to curl to use, it may respond that the particular
|
||||||
protocol is not supported or disabled. The particular way this error message
|
protocol is not supported or disabled. The particular way this error message
|
||||||
is phrased is because curl doesn't make a distinction internally of whether
|
is phrased is because curl doesn't make a distinction internally of whether
|
||||||
a particular protocol is not supported (ie never got any code added that
|
a particular protocol is not supported (i.e. never got any code added that
|
||||||
knows how to speak that protocol) or if it was explicitly disabled. curl can
|
knows how to speak that protocol) or if it was explicitly disabled. curl can
|
||||||
be built to only support a given set of protocols, and the rest would then
|
be built to only support a given set of protocols, and the rest would then
|
||||||
be disabled or not supported.
|
be disabled or not supported.
|
||||||
@@ -761,6 +737,33 @@ FAQ
|
|||||||
part as in "htpt://example.com" or as in the less evident case if you prefix
|
part as in "htpt://example.com" or as in the less evident case if you prefix
|
||||||
the protocol part with a space as in " http://example.com/".
|
the protocol part with a space as in " http://example.com/".
|
||||||
|
|
||||||
|
3.22 curl -X gives me HTTP problems
|
||||||
|
|
||||||
|
In normal circumstances, -X should hardly ever be used.
|
||||||
|
|
||||||
|
By default you use curl without explicitly saying which request method to
|
||||||
|
use when the URL identifies a HTTP transfer. If you just pass in a URL like
|
||||||
|
"curl http://example.com" it will use GET. If you use -d or -F curl will use
|
||||||
|
POST, -I will cause a HEAD and -T will make it a PUT.
|
||||||
|
|
||||||
|
If for whatever reason you're not happy with these default choices that curl
|
||||||
|
does for you, you can override those request methods by specifying -X
|
||||||
|
[WHATEVER]. This way you can for example send a DELETE by doing "curl -X
|
||||||
|
DELETE [URL]".
|
||||||
|
|
||||||
|
It is thus pointless to do "curl -XGET [URL]" as GET would be used
|
||||||
|
anyway. In the same vein it is pointless to do "curl -X POST -d data
|
||||||
|
[URL]"... But you can make a fun and somewhat rare request that sends a
|
||||||
|
request-body in a GET request with something like "curl -X GET -d data
|
||||||
|
[URL]"
|
||||||
|
|
||||||
|
Note that -X doesn't change curl's behavior. It only modifies the actual
|
||||||
|
string sent in the request.
|
||||||
|
|
||||||
|
Accordingly, by using -XPOST on a command line that for example would follow
|
||||||
|
a 303 redirect, you will effectively prevent curl from behaving
|
||||||
|
correctly. Be aware.
|
||||||
|
|
||||||
|
|
||||||
4. Running Problems
|
4. Running Problems
|
||||||
|
|
||||||
@@ -838,7 +841,7 @@ FAQ
|
|||||||
|
|
||||||
4.5.3 "403 Forbidden"
|
4.5.3 "403 Forbidden"
|
||||||
|
|
||||||
The server understood the request, but is refusing to fulfill it.
|
The server understood the request, but is refusing to fulfil it.
|
||||||
Authorization will not help and the request SHOULD NOT be repeated.
|
Authorization will not help and the request SHOULD NOT be repeated.
|
||||||
|
|
||||||
4.5.4 "404 Not Found"
|
4.5.4 "404 Not Found"
|
||||||
@@ -909,8 +912,8 @@ FAQ
|
|||||||
|
|
||||||
4.9 Curl can't authenticate to the server that requires NTLM?
|
4.9 Curl can't authenticate to the server that requires NTLM?
|
||||||
|
|
||||||
NTLM support requires OpenSSL, GnuTLS, NSS or Microsoft Windows libraries at
|
NTLM support requires OpenSSL, GnuTLS, NSS, Secure Transport, or Microsoft
|
||||||
build-time to provide this functionality.
|
Windows libraries at build-time to provide this functionality.
|
||||||
|
|
||||||
NTLM is a Microsoft proprietary protocol. Proprietary formats are evil. You
|
NTLM is a Microsoft proprietary protocol. Proprietary formats are evil. You
|
||||||
should not use such ones.
|
should not use such ones.
|
||||||
@@ -1052,11 +1055,11 @@ FAQ
|
|||||||
|
|
||||||
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?
|
||||||
|
|
||||||
Unplugging the cable is not an error situation. The TCP/IP protocol stack
|
Unplugging a cable is not an error situation. The TCP/IP protocol stack
|
||||||
was designed to be fault tolerant, so even though there may be a physical
|
was designed to be fault tolerant, so even though there may be a physical
|
||||||
break somewhere the connection shouldn't be affected, just possibly
|
break somewhere the connection shouldn't be affected, just possibly
|
||||||
delayed. Eventually, the physical break will be fixed or the data will be
|
delayed. Eventually, the physical break will be fixed or the data will be
|
||||||
re-routed around the physical problem.
|
re-routed around the physical problem through another path.
|
||||||
|
|
||||||
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
|
||||||
@@ -1074,6 +1077,12 @@ FAQ
|
|||||||
falls too low, and --connect-timeout and --max-time can be used to put an
|
falls too low, and --connect-timeout and --max-time can be used to put an
|
||||||
overall timeout on the connection phase or the entire transfer.
|
overall timeout on the connection phase or the entire transfer.
|
||||||
|
|
||||||
|
A libcurl-using application running in a known physical environment (e.g.
|
||||||
|
an embedded device with only a single network connection) may want to act
|
||||||
|
immediately if its lone network connection goes down. That can be achieved
|
||||||
|
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).
|
||||||
|
|
||||||
|
|
||||||
5. libcurl Issues
|
5. libcurl Issues
|
||||||
|
|
||||||
@@ -1083,7 +1092,9 @@ FAQ
|
|||||||
|
|
||||||
We have written the libcurl code specifically adjusted for multi-threaded
|
We have written the libcurl code specifically adjusted for multi-threaded
|
||||||
programs. libcurl will use thread-safe functions instead of non-safe ones if
|
programs. libcurl will use thread-safe functions instead of non-safe ones if
|
||||||
your system has such.
|
your system has such. Note that you must never share the same handle in
|
||||||
|
multiple threads.
|
||||||
|
|
||||||
|
|
||||||
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:
|
||||||
@@ -1283,7 +1294,7 @@ FAQ
|
|||||||
|
|
||||||
If you're using the multi interface, you can also stop a transfer by
|
If you're using the multi interface, you can also stop a transfer by
|
||||||
removing the particular easy handle from the multi stack at any moment you
|
removing the particular easy handle from the multi stack at any moment you
|
||||||
think the transfer is done.
|
think the transfer is done or when you wish to abort the transfer.
|
||||||
|
|
||||||
5.14 Using C++ non-static functions for callbacks?
|
5.14 Using C++ non-static functions for callbacks?
|
||||||
|
|
||||||
@@ -1325,6 +1336,31 @@ FAQ
|
|||||||
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.
|
||||||
|
|
||||||
|
5.16 I want a different time-out!
|
||||||
|
|
||||||
|
Time and time again users realize that CURLOPT_TIMEOUT and
|
||||||
|
CURLOPT_CONNECTIMEOUT are not sufficiently advanced or flexible to cover all
|
||||||
|
the various use cases and scenarios applications end up with.
|
||||||
|
|
||||||
|
libcurl offers many more ways to time-out operations. A common alternative
|
||||||
|
is to use the CURLOPT_LOW_SPEED_LIMIT and CURLOPT_LOW_SPEED_TIME options to
|
||||||
|
specify the lowest possible speed to accept before to consider the transfer
|
||||||
|
timed out.
|
||||||
|
|
||||||
|
The most flexible way is by writing your own time-out logic and using
|
||||||
|
CURLOPT_PROGRESSFUNCTION (perhaps in combination with other callbacks) and
|
||||||
|
use that to figure out exactly when the right condition is met when the
|
||||||
|
transfer should get stopped.
|
||||||
|
|
||||||
|
5.17 Can I write a server with libcurl?
|
||||||
|
|
||||||
|
No. libcurl offers no functions or building blocks to build any kind of
|
||||||
|
internet protocol server. libcurl is only a client-side library. For server
|
||||||
|
libraries, you need to continue your search elsewhere but there exist many
|
||||||
|
good open source ones out there for most protocols you could possibly want a
|
||||||
|
server for. And there are really good stand-alone ones that have been tested
|
||||||
|
and proven for many years. There's no need for you to reinvent them!
|
||||||
|
|
||||||
|
|
||||||
6. License Issues
|
6. License Issues
|
||||||
|
|
||||||
|
@@ -13,27 +13,29 @@ curl tool
|
|||||||
- multiple file upload on a single command line
|
- multiple file upload on a single command line
|
||||||
- custom maximum transfer rate
|
- custom maximum transfer rate
|
||||||
- redirectable stderr
|
- redirectable stderr
|
||||||
|
- metalink support (*13)
|
||||||
|
|
||||||
libcurl supports
|
libcurl
|
||||||
- full URL syntax with no length limit
|
- full URL syntax with no length limit
|
||||||
- custom maximum download time
|
- custom maximum download time
|
||||||
- custom least download speed acceptable
|
- custom least download speed acceptable
|
||||||
- custom output result after completion
|
- custom output result after completion
|
||||||
- guesses protocol from host name unless specified
|
- guesses protocol from host name unless specified
|
||||||
- uses .netrc
|
- uses .netrc
|
||||||
- progress bar/time specs while downloading
|
- progress bar with time statistics while downloading
|
||||||
- "standard" proxy environment variables support
|
- "standard" proxy environment variables support
|
||||||
- compiles on win32 (reported builds on 40+ operating systems)
|
- compiles on win32 (reported builds on 40+ operating systems)
|
||||||
- selectable network interface for outgoing traffic
|
- selectable network interface for outgoing traffic
|
||||||
- IPv6 support on unix and Windows
|
- IPv6 support on unix and Windows
|
||||||
- persistant connections
|
- persistent connections
|
||||||
- socks5 support
|
- socks5 support
|
||||||
- supports user name + 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)
|
||||||
- supports large files (>2GB and >4GB) both upload/download
|
- support for large files (>2GB and >4GB) during upload and download
|
||||||
- replacable memory functions (malloc, free, realloc, etc)
|
- replaceable memory functions (malloc, free, realloc, etc)
|
||||||
- asynchronous name resolving (*6)
|
- asynchronous name resolving (*6)
|
||||||
- both a push and a pull style interface
|
- both a push and a pull style interface
|
||||||
|
- international domain names (*11)
|
||||||
|
|
||||||
HTTP
|
HTTP
|
||||||
- HTTP/1.1 compliant (optionally uses 1.0)
|
- HTTP/1.1 compliant (optionally uses 1.0)
|
||||||
@@ -43,7 +45,7 @@ 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), GSS-Negotiate/Negotiate (*3) and
|
||||||
SPNEGO (*4) to server and proxy
|
SPNEGO (*4) to server and proxy
|
||||||
- resume (both GET and PUT)
|
- resume (both GET and PUT)
|
||||||
- follow redirects
|
- follow redirects
|
||||||
@@ -60,7 +62,8 @@ HTTP
|
|||||||
- via http-proxy
|
- via http-proxy
|
||||||
- retrieve file modification date
|
- retrieve file modification date
|
||||||
- Content-Encoding support for deflate and gzip
|
- Content-Encoding support for deflate and gzip
|
||||||
- "Transfer-Encoding: chunked" support for "uploads"
|
- "Transfer-Encoding: chunked" support in uploads
|
||||||
|
- data compression (*12)
|
||||||
|
|
||||||
HTTPS (*1)
|
HTTPS (*1)
|
||||||
- (all the HTTP features)
|
- (all the HTTP features)
|
||||||
@@ -68,12 +71,13 @@ HTTPS (*1)
|
|||||||
- verify server certificate
|
- verify server certificate
|
||||||
- via http-proxy
|
- via http-proxy
|
||||||
- select desired encryption
|
- select desired encryption
|
||||||
- force usage of a specific SSL version (SSLv2(*7), SSLv3 or TLSv1)
|
- force usage of a specific SSL version (SSLv2 (*7), SSLv3 (*10) or TLSv1)
|
||||||
|
|
||||||
FTP
|
FTP
|
||||||
- download
|
- download
|
||||||
- authentication
|
- authentication
|
||||||
- kerberos4 (*5), kerberos5 (*3)
|
- kerberos4 (*5)
|
||||||
|
- 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
|
||||||
@@ -93,7 +97,7 @@ FTP
|
|||||||
|
|
||||||
FTPS (*1)
|
FTPS (*1)
|
||||||
- implicit ftps:// support that use SSL on both connections
|
- implicit ftps:// support that use SSL on both connections
|
||||||
- explicit "AUTH TSL" and "AUTH SSL" usage to "upgrade" plain ftp://
|
- explicit "AUTH TLS" and "AUTH SSL" usage to "upgrade" plain ftp://
|
||||||
connection to use SSL for both or one of the connections
|
connection to use SSL for both or one of the connections
|
||||||
|
|
||||||
SCP (*8)
|
SCP (*8)
|
||||||
@@ -104,7 +108,8 @@ SFTP (*8)
|
|||||||
- with custom commands sent before/after the transfer
|
- with custom commands sent before/after the transfer
|
||||||
|
|
||||||
TFTP
|
TFTP
|
||||||
- download / upload
|
- download
|
||||||
|
- upload
|
||||||
|
|
||||||
TELNET
|
TELNET
|
||||||
- connection negotiation
|
- connection negotiation
|
||||||
@@ -119,18 +124,73 @@ DICT
|
|||||||
|
|
||||||
FILE
|
FILE
|
||||||
- URL support
|
- URL support
|
||||||
- "uploads"
|
- upload
|
||||||
- resume
|
- resume
|
||||||
|
|
||||||
|
SMTP
|
||||||
|
- authentication: Plain, Login, CRAM-MD5, Digest-MD5 and NTLM (*9)
|
||||||
|
- send e-mails
|
||||||
|
- mail from support
|
||||||
|
- mail size support
|
||||||
|
- mail auth support for trusted server-to-server relaying
|
||||||
|
- multiple recipients
|
||||||
|
- via http-proxy
|
||||||
|
|
||||||
|
SMTPS (*1)
|
||||||
|
- implicit smtps:// support
|
||||||
|
- explicit "STARTTLS" usage to "upgrade" plain smtp:// connections to use SSL
|
||||||
|
- via http-proxy
|
||||||
|
|
||||||
|
POP3
|
||||||
|
- authentication: Clear Text, APOP and SASL
|
||||||
|
- SASL based authentication: Plain, Login, CRAM-MD5, Digest-MD5 and
|
||||||
|
NTLM (*9)
|
||||||
|
- list e-mails
|
||||||
|
- retrieve e-mails
|
||||||
|
- enhanced command support for: CAPA, DELE, TOP, STAT, UIDL and NOOP via
|
||||||
|
custom requests
|
||||||
|
- via http-proxy
|
||||||
|
|
||||||
|
POP3S (*1)
|
||||||
|
- implicit pop3s:// support
|
||||||
|
- explicit "STLS" usage to "upgrade" plain pop3:// connections to use SSL
|
||||||
|
- via http-proxy
|
||||||
|
|
||||||
|
IMAP
|
||||||
|
- authentication: Clear Text and SASL
|
||||||
|
- SASL based authentication: Plain, Login, CRAM-MD5, Digest-MD5 and
|
||||||
|
NTLM (*9)
|
||||||
|
- list the folders of a mailbox
|
||||||
|
- select a mailbox with support for verifing the UIDVALIDITY
|
||||||
|
- fetch e-mails with support for specifing the UID and SECTION
|
||||||
|
- upload e-mails via the append command
|
||||||
|
- enhanced command support for: EXAMINE, CREATE, DELETE, RENAME, STATUS,
|
||||||
|
STORE, COPY and UID via custom requests
|
||||||
|
- via http-proxy
|
||||||
|
|
||||||
|
IMAPS (*1)
|
||||||
|
- implicit imaps:// support
|
||||||
|
- explicit "STARTTLS" usage to "upgrade" plain imap:// connections to use SSL
|
||||||
|
- via http-proxy
|
||||||
|
|
||||||
FOOTNOTES
|
FOOTNOTES
|
||||||
=========
|
=========
|
||||||
|
|
||||||
*1 = requires OpenSSL, GnuTLS, NSS, yassl, axTLS or PolarSSL
|
*1 = requires OpenSSL, GnuTLS, NSS, yassl, axTLS, PolarSSL, schannel (native
|
||||||
|
Windows), Secure Transport (native iOS/OS X) or qssl (native IBM i)
|
||||||
*2 = requires OpenLDAP
|
*2 = requires OpenLDAP
|
||||||
*3 = requires a GSSAPI-compliant library, such as Heimdal or similar.
|
*3 = requires a GSSAPI-compliant library, such as Heimdal or similar
|
||||||
*4 = requires FBopenssl
|
*4 = requires FBopenssl
|
||||||
*5 = requires a krb4 library, such as the MIT one or similar.
|
*5 = requires a krb4 library, such as the MIT one or similar
|
||||||
*6 = requires c-ares
|
*6 = requires c-ares
|
||||||
*7 = requires OpenSSL or NSS, as GnuTLS only supports SSLv3 and TLSv1
|
*7 = requires OpenSSL, NSS, qssl, schannel or Secure Transport; GnuTLS, for
|
||||||
|
example, only supports SSLv3 and TLSv1
|
||||||
*8 = requires libssh2
|
*8 = requires libssh2
|
||||||
*9 = requires OpenSSL, GnuTLS, NSS or yassl
|
*9 = requires OpenSSL, GnuTLS, NSS, yassl, Secure Transport or SSPI (native
|
||||||
|
Windows)
|
||||||
|
*10 = requires any of the SSL libraries in (*1) above other than axTLS, which
|
||||||
|
does not support SSLv3
|
||||||
|
*11 = requires libidn or Windows
|
||||||
|
*12 = requires libz
|
||||||
|
*13 = requires libmetalink, and either an Apple or Microsoft operating
|
||||||
|
system, or OpenSSL, or GnuTLS, or NSS
|
||||||
|
14
docs/HISTORY
14
docs/HISTORY
@@ -7,19 +7,19 @@
|
|||||||
How cURL Became Like This
|
How cURL Became Like This
|
||||||
|
|
||||||
|
|
||||||
In the second half of 1997, Daniel Stenberg came up with the idea to make
|
Towards the end of 1996, Daniel Stenberg 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. After a few minor adjustments, it did
|
Brazilian Rafael Sagula had written and recently release version 0.1 of. After
|
||||||
just what he needed.
|
a few minor adjustments, it did just what he needed. HttpGet 1.0 was released
|
||||||
|
on April 8th 1997 with brand new HTTP proxy support.
|
||||||
|
|
||||||
Soon, he found currencies on a GOPHER site, so support for that had to go in,
|
We soon found and fixed support for getting currencies over GOPHER. Once FTP
|
||||||
and not before long FTP download support was added as well. The name of the
|
download support was added, the name of the project was changed and urlget 2.0
|
||||||
project was changed to urlget to better fit what it actually did now, since
|
was released in August 1997. The http-only days were already passed.
|
||||||
the http-only days were already passed.
|
|
||||||
|
|
||||||
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,
|
||||||
|
123
docs/HTTP-COOKIES
Normal file
123
docs/HTTP-COOKIES
Normal file
@@ -0,0 +1,123 @@
|
|||||||
|
Updated: July 3, 2012 (http://curl.haxx.se/docs/http-cookies.html)
|
||||||
|
_ _ ____ _
|
||||||
|
___| | | | _ \| |
|
||||||
|
/ __| | | | |_) | |
|
||||||
|
| (__| |_| | _ <| |___
|
||||||
|
\___|\___/|_| \_\_____|
|
||||||
|
|
||||||
|
|
||||||
|
HTTP Cookies
|
||||||
|
|
||||||
|
1. HTTP Cookies
|
||||||
|
1.1 Cookie overview
|
||||||
|
1.2 Cookies saved to disk
|
||||||
|
1.3 Cookies with curl the command line tool
|
||||||
|
1.4 Cookies with libcurl
|
||||||
|
1.5 Cookies with javascript
|
||||||
|
|
||||||
|
==============================================================================
|
||||||
|
|
||||||
|
1. HTTP Cookies
|
||||||
|
|
||||||
|
1.1 Cookie overview
|
||||||
|
|
||||||
|
HTTP cookies are pieces of 'name=contents' snippets that a server tells the
|
||||||
|
client to hold and then the client sends back those the server on subsequent
|
||||||
|
requests to the same domains/paths for which the cookies were set.
|
||||||
|
|
||||||
|
Cookies are either "session cookies" which typically are forgotten when the
|
||||||
|
session is over which is often translated to equal when browser quits, or
|
||||||
|
the cookies aren't session cookies they have expiration dates after which
|
||||||
|
the client will throw them away.
|
||||||
|
|
||||||
|
Cookies are set to the client with the Set-Cookie: header and are sent to
|
||||||
|
servers with the Cookie: header.
|
||||||
|
|
||||||
|
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
|
||||||
|
|
||||||
|
In 2011, RFC6265 (http://www.ietf.org/rfc/rfc6265.txt) was finally published
|
||||||
|
and details how cookies work within HTTP.
|
||||||
|
|
||||||
|
1.2 Cookies saved to disk
|
||||||
|
|
||||||
|
Netscape once created a file format for storing cookies on disk so that they
|
||||||
|
would survive browser restarts. curl adopted that file format to allow
|
||||||
|
sharing the cookies with browsers, only to see browsers move away from that
|
||||||
|
format. Modern browsers no longer use it, while curl still does.
|
||||||
|
|
||||||
|
The netscape cookie file format stores one cookie per physical line in the
|
||||||
|
file with a bunch of associated meta data, each field separated with
|
||||||
|
TAB. That file is called the cookiejar in curl terminology.
|
||||||
|
|
||||||
|
When libcurl saves a cookiejar, it creates a file header of its own in which
|
||||||
|
there is a URL mention that will link to the web version of this document.
|
||||||
|
|
||||||
|
1.3 Cookies with curl the command line tool
|
||||||
|
|
||||||
|
curl has a full cookie "engine" built in. If you just activate it, you can
|
||||||
|
have curl receive and send cookies exactly as mandated in the specs.
|
||||||
|
|
||||||
|
Command line options:
|
||||||
|
|
||||||
|
-b, --cookie
|
||||||
|
|
||||||
|
tell curl a file to read cookies from and start the cookie engine, or if
|
||||||
|
it isn't a file it will pass on the given string. -b name=var works and so
|
||||||
|
does -b cookiefile.
|
||||||
|
|
||||||
|
-j, --junk-session-cookies
|
||||||
|
|
||||||
|
when used in combination with -b, it will skip all "session cookies" on
|
||||||
|
load so as to appear to start a new cookie session.
|
||||||
|
|
||||||
|
-c, --cookie-jar
|
||||||
|
|
||||||
|
tell curl to start the cookie engine and write cookies to the given file
|
||||||
|
after the request(s)
|
||||||
|
|
||||||
|
1.4 Cookies with libcurl
|
||||||
|
|
||||||
|
libcurl offers several ways to enable and interface the cookie engine. These
|
||||||
|
options are the ones provided by the native API. libcurl bindings may offer
|
||||||
|
access to them using other means.
|
||||||
|
|
||||||
|
CURLOPT_COOKIE
|
||||||
|
|
||||||
|
Is used when you want to specify the exact contents of a cookie header to
|
||||||
|
send to the server.
|
||||||
|
|
||||||
|
CURLOPT_COOKIEFILE
|
||||||
|
|
||||||
|
Tell libcurl to activate the cookie engine, and to read the initial set of
|
||||||
|
cookies from the given file. Read-only.
|
||||||
|
|
||||||
|
CURLOPT_COOKIEJAR
|
||||||
|
|
||||||
|
Tell libcurl to activate the cookie engine, and when the easy handle is
|
||||||
|
closed save all known cookies to the given cookiejar file. Write-only.
|
||||||
|
|
||||||
|
CURLOPT_COOKIELIST
|
||||||
|
|
||||||
|
Provide detailed information about a single cookie to add to the internal
|
||||||
|
storage of cookies. Pass in the cookie as a HTTP header with all the
|
||||||
|
details set, or pass in a line from a netscape cookie file. This option
|
||||||
|
can also be used to flush the cookies etc.
|
||||||
|
|
||||||
|
CURLINFO_COOKIELIST
|
||||||
|
|
||||||
|
Extract cookie information from the internal cookie storage as a linked
|
||||||
|
list.
|
||||||
|
|
||||||
|
1.5 Cookies with javascript
|
||||||
|
|
||||||
|
These days a lot of the web is built up by javascript. The webbrowser loads
|
||||||
|
complete programs that render the page you see. These javascript programs
|
||||||
|
can also set and access cookies.
|
||||||
|
|
||||||
|
Since curl and libcurl are plain HTTP clients without any knowledge of or
|
||||||
|
capability to handle javascript, such cookies will not be detected or used.
|
||||||
|
|
||||||
|
Often, if you want to mimic what a browser does on such web sites, you can
|
||||||
|
record web browser HTTP traffic when using such a site and then repeat the
|
||||||
|
cookie operations using curl or libcurl.
|
134
docs/INSTALL
134
docs/INSTALL
@@ -135,21 +135,18 @@ UNIX
|
|||||||
default. But if you want to alter it, you can select how to deal with
|
default. But if you want to alter it, you can select how to deal with
|
||||||
each individual library.
|
each individual library.
|
||||||
|
|
||||||
To build with GnuTLS support instead of OpenSSL for SSL/TLS, note that
|
To build with GnuTLS for SSL/TLS, use both --without-ssl and
|
||||||
you need to use both --without-ssl and --with-gnutls.
|
--with-gnutls.
|
||||||
|
|
||||||
To build with yassl support instead of OpenSSL or GnuTLS, you must build
|
To build with Cyassl for SSL/TLS, use both --without-ssl and
|
||||||
yassl with its OpenSSL emulation enabled and point to that directory root
|
--with-cyassl.
|
||||||
with configure --with-ssl.
|
|
||||||
|
|
||||||
To build with NSS support instead of OpenSSL for SSL/TLS, note that
|
To build with NSS for SSL/TLS, use both --without-ssl and --with-nss.
|
||||||
you need to use both --without-ssl and --with-nss.
|
|
||||||
|
|
||||||
To build with PolarSSL support instead of OpenSSL for SSL/TLS, note that
|
To build with PolarSSL for SSL/TLS, use both --without-ssl and
|
||||||
you need to use both --without-ssl and --with-polarssl.
|
--with-polarssl.
|
||||||
|
|
||||||
To build with axTLS support instead of OpenSSL for TLS, note that you
|
To build with axTLS for SSL/TLS, use both --without-ssl and --with-axtls.
|
||||||
need to use both --without-ssl and --with-axtls.
|
|
||||||
|
|
||||||
To get GSSAPI support, build with --with-gssapi and have the MIT or
|
To get GSSAPI support, build with --with-gssapi and have the MIT or
|
||||||
Heimdal Kerberos 5 packages installed.
|
Heimdal Kerberos 5 packages installed.
|
||||||
@@ -157,6 +154,9 @@ UNIX
|
|||||||
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.
|
||||||
|
|
||||||
|
To get Metalink support, build with --with-libmetalink and have the
|
||||||
|
libmetalink packages installed.
|
||||||
|
|
||||||
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
|
||||||
@@ -197,6 +197,9 @@ Win32
|
|||||||
first to rebuild every single library your app uses as well as your
|
first to rebuild every single library your app uses as well as your
|
||||||
app using the debug multithreaded dynamic C runtime.
|
app using the debug multithreaded dynamic C runtime.
|
||||||
|
|
||||||
|
If you get linkage errors read section 5.7 of the FAQ document.
|
||||||
|
|
||||||
|
|
||||||
MingW32
|
MingW32
|
||||||
-------
|
-------
|
||||||
|
|
||||||
@@ -217,9 +220,9 @@ Win32
|
|||||||
adjust as necessary. It is also possible to override these paths with
|
adjust as necessary. It is also possible to override these paths with
|
||||||
environment variables, for example:
|
environment variables, for example:
|
||||||
|
|
||||||
set ZLIB_PATH=c:\zlib-1.2.5
|
set ZLIB_PATH=c:\zlib-1.2.8
|
||||||
set OPENSSL_PATH=c:\openssl-0.9.8r
|
set OPENSSL_PATH=c:\openssl-0.9.8y
|
||||||
set LIBSSH2_PATH=c:\libssh2-1.2.8
|
set LIBSSH2_PATH=c:\libssh2-1.4.3
|
||||||
|
|
||||||
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!
|
||||||
@@ -320,7 +323,7 @@ Win32
|
|||||||
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:
|
||||||
|
|
||||||
set ZLIB_PATH=c:\zlib-1.2.5
|
set ZLIB_PATH=c:\zlib-1.2.8
|
||||||
|
|
||||||
Then run 'nmake vc-zlib' in curl's root directory.
|
Then run 'nmake vc-zlib' in curl's root directory.
|
||||||
|
|
||||||
@@ -334,7 +337,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.8q
|
set OPENSSL_PATH=c:\openssl-0.9.8y
|
||||||
|
|
||||||
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
|
||||||
@@ -356,7 +359,7 @@ Win32
|
|||||||
source distribution archive to allow proper building of the two included
|
source distribution archive to allow proper building of the two included
|
||||||
projects, the libcurl library and the curl tool.
|
projects, the libcurl library and the curl tool.
|
||||||
|
|
||||||
1) Open the vc6curl.dsw workspace with MSVC6's IDE.
|
1) Open the vs/vc6/vc6curl.dsw workspace with MSVC6's IDE.
|
||||||
2) Select 'Build' from top menu.
|
2) Select 'Build' from top menu.
|
||||||
3) Select 'Batch Build' from dropdown menu.
|
3) Select 'Batch Build' from dropdown menu.
|
||||||
4) Make sure that the eight project configurations are 'checked'.
|
4) Make sure that the eight project configurations are 'checked'.
|
||||||
@@ -364,12 +367,12 @@ Win32
|
|||||||
6) Once the eight project configurations are built you are done.
|
6) Once the eight project configurations are built you are done.
|
||||||
|
|
||||||
Dynamic and static libcurl libraries are built in debug and release flavours,
|
Dynamic and static libcurl libraries are built in debug and release flavours,
|
||||||
and can be located each one in its own subdirectory, DLL-Debug, DLL-Release,
|
and can be located each one in its own subdirectory, dll-debug, dll-release,
|
||||||
LIB-Debug and LIB-Release, all of them below the 'lib' subdirectory.
|
lib-debug and lib-release, all of them below the 'vs/vc6/lib' subdirectory.
|
||||||
|
|
||||||
In the same way four curl executables are created, each using its respective
|
In the same way four curl executables are created, each using its respective
|
||||||
library. The resulting curl executables are located in its own subdirectory,
|
library. The resulting curl executables are located in its own subdirectory,
|
||||||
DLL-Debug, DLL-Release, LIB-Debug and LIB-Release, below the 'src' subdir.
|
dll-debug, dll-release, lib-debug and lib-release, below 'vs/vc6/src' subdir.
|
||||||
|
|
||||||
These reference VC++ 6.0 configurations are generated using the dynamic CRT.
|
These reference VC++ 6.0 configurations are generated using the dynamic CRT.
|
||||||
|
|
||||||
@@ -461,7 +464,7 @@ Win32
|
|||||||
possibilities:
|
possibilities:
|
||||||
|
|
||||||
- Modify lib/config-win32.h
|
- Modify lib/config-win32.h
|
||||||
- Modify lib/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
|
- Add defines to Project/Settings/C/C++/General/Preprocessor Definitions
|
||||||
in the vc6libcurl.dsw/vc6libcurl.dsp Visual C++ 6 IDE project.
|
in the vc6libcurl.dsw/vc6libcurl.dsp Visual C++ 6 IDE project.
|
||||||
@@ -503,6 +506,38 @@ Win32
|
|||||||
dynamic import symbols.
|
dynamic import symbols.
|
||||||
|
|
||||||
|
|
||||||
|
Apple iOS and Mac OS X
|
||||||
|
======================
|
||||||
|
On recent Apple operating systems, curl can be built to use Apple's
|
||||||
|
SSL/TLS implementation, Secure Transport, instead of OpenSSL. To build with
|
||||||
|
Secure Transport for SSL/TLS, use the configure option --with-darwinssl. (It
|
||||||
|
is not necessary to use the option --without-ssl.) This feature requires iOS
|
||||||
|
5.0 or later, or OS X 10.5 ("Leopard") or later.
|
||||||
|
|
||||||
|
When Secure Transport is in use, the curl options --cacert and --capath and
|
||||||
|
their libcurl equivalents, will be ignored, because Secure Transport uses
|
||||||
|
the certificates stored in the Keychain to evaluate whether or not to trust
|
||||||
|
the server. This, of course, includes the root certificates that ship with
|
||||||
|
the OS. The --cert and --engine options, and their libcurl equivalents, are
|
||||||
|
currently unimplemented in curl with Secure Transport.
|
||||||
|
|
||||||
|
For OS X users: In OS X 10.8 ("Mountain Lion"), Apple made a major
|
||||||
|
overhaul to the Secure Transport API that, among other things, added
|
||||||
|
support for the newer TLS 1.1 and 1.2 protocols. To get curl to support
|
||||||
|
TLS 1.1 and 1.2, you must build curl on Mountain Lion or later, or by
|
||||||
|
using the equivalent SDK. If you set the MACOSX_DEPLOYMENT_TARGET
|
||||||
|
environmental variable to an earlier version of OS X prior to building curl,
|
||||||
|
then curl will use the new Secure Transport API on Mountain Lion and later,
|
||||||
|
and fall back on the older API when the same curl binary is executed on
|
||||||
|
older cats. For example, running these commands in curl's directory in the
|
||||||
|
shell will build the code such that it will run on cats as old as OS X 10.6
|
||||||
|
("Snow Leopard") (using bash):
|
||||||
|
|
||||||
|
export MACOSX_DEPLOYMENT_TARGET="10.6"
|
||||||
|
./configure --with-darwinssl
|
||||||
|
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.
|
||||||
@@ -540,7 +575,7 @@ VMS
|
|||||||
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
|
||||||
perl http/ftp testing server supplied as testing too cannot work on VMS
|
perl http/ftp testing server supplied as testing too cannot work on VMS
|
||||||
because vms has no concept of fork(). [ I tried to give it a whack, but
|
because vms has no concept of fork(). [ I tried to give it a whack, but
|
||||||
thats of no use.
|
that's of no use.
|
||||||
|
|
||||||
SSL stuff has not been ported.
|
SSL stuff has not been ported.
|
||||||
|
|
||||||
@@ -673,7 +708,7 @@ NetWare
|
|||||||
you can find precompiled packages at:
|
you can find precompiled packages at:
|
||||||
http://www.gknw.net/development/ossl/netware/
|
http://www.gknw.net/development/ossl/netware/
|
||||||
for CLIB-based builds OpenSSL 0.9.8h or later is required - earlier versions
|
for CLIB-based builds OpenSSL 0.9.8h or later is required - earlier versions
|
||||||
dont support buildunf with CLIB BSD sockets.
|
don't support building with CLIB BSD sockets.
|
||||||
- optional SSH2 sources (version 0.17 or later);
|
- optional SSH2 sources (version 0.17 or later);
|
||||||
|
|
||||||
Set a search path to your compiler, linker and tools; on Linux make
|
Set a search path to your compiler, linker and tools; on Linux make
|
||||||
@@ -840,7 +875,44 @@ VxWorks
|
|||||||
|
|
||||||
Android
|
Android
|
||||||
=======
|
=======
|
||||||
See the build notes in the Android.mk file.
|
Method using the static makefile:
|
||||||
|
- see the build notes in the packages/Android/Android.mk file.
|
||||||
|
|
||||||
|
Method using a configure cross-compile (tested with Android NDK r7c, r8):
|
||||||
|
- prepare the toolchain of the Android NDK for standalone use; this can
|
||||||
|
be done by invoking the script:
|
||||||
|
./build/tools/make-standalone-toolchain.sh
|
||||||
|
which creates a usual cross-compile toolchain. Lets assume that you put
|
||||||
|
this toolchain below /opt then invoke configure with something like:
|
||||||
|
export PATH=/opt/arm-linux-androideabi-4.4.3/bin:$PATH
|
||||||
|
./configure --host=arm-linux-androideabi [more configure options]
|
||||||
|
make
|
||||||
|
- if you want to compile directly from our GIT repo you might run into
|
||||||
|
this issue with older automake stuff:
|
||||||
|
checking host system type...
|
||||||
|
Invalid configuration `arm-linux-androideabi':
|
||||||
|
system `androideabi' not recognized
|
||||||
|
configure: error: /bin/sh ./config.sub arm-linux-androideabi failed
|
||||||
|
this issue can be fixed with using more recent versions of config.sub
|
||||||
|
and config.guess which can be obtained here:
|
||||||
|
http://git.savannah.gnu.org/gitweb/?p=config.git;a=tree
|
||||||
|
you need to replace your system-own versions which usually can be
|
||||||
|
found in your automake folder:
|
||||||
|
find /usr -name config.sub
|
||||||
|
|
||||||
|
Wrapper for pkg-config
|
||||||
|
- 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;
|
||||||
|
file /opt/arm-linux-androideabi-4.4.3/bin/arm-linux-androideabi-pkg-config:
|
||||||
|
|
||||||
|
#!/bin/sh
|
||||||
|
SYSROOT=$(dirname ${0%/*})/sysroot
|
||||||
|
export PKG_CONFIG_DIR=
|
||||||
|
export PKG_CONFIG_LIBDIR=${SYSROOT}/usr/local/lib/pkgconfig:${SYSROOT}/usr/share/pkgconfig
|
||||||
|
export PKG_CONFIG_SYSROOT_DIR=${SYSROOT}
|
||||||
|
exec pkg-config "$@"
|
||||||
|
|
||||||
|
also create a copy or symlink with name arm-unknown-linux-androideabi-pkg-config.
|
||||||
|
|
||||||
|
|
||||||
CROSS COMPILE
|
CROSS COMPILE
|
||||||
@@ -927,8 +999,9 @@ REDUCING SIZE
|
|||||||
The GNU compiler and linker have a number of options that can reduce the
|
The GNU compiler and linker have a number of options that can reduce the
|
||||||
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:
|
configure command-line, e.g.
|
||||||
CFLAGS="-ffunction-sections -fdata-sections" \
|
CFLAGS="-Os -ffunction-sections -fdata-sections \
|
||||||
|
-fno-unwind-tables -fno-asynchronous-unwind-tables" \
|
||||||
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
|
||||||
@@ -938,9 +1011,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 101 KiB in size, and
|
libcurl library for i386 Linux platforms that is only 106 KiB in size, and
|
||||||
an FTP-only library that is 105 KiB in size (as of libcurl version 7.21.5,
|
an FTP-only library that is 108 KiB in size (as of libcurl version 7.27.0,
|
||||||
using gcc 4.4.3).
|
using gcc 4.6.3).
|
||||||
|
|
||||||
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.
|
||||||
@@ -974,7 +1047,7 @@ PORTS
|
|||||||
- AVR32 Linux
|
- AVR32 Linux
|
||||||
- ARM Android 1.5, 2.1
|
- ARM Android 1.5, 2.1
|
||||||
- ARM INTEGRITY
|
- ARM INTEGRITY
|
||||||
- ARM iPhone OS
|
- ARM iOS
|
||||||
- Cell Linux
|
- Cell Linux
|
||||||
- Cell Cell OS
|
- Cell Cell OS
|
||||||
- HP-PA HP-UX 9.X 10.X 11.X
|
- HP-PA HP-UX 9.X 10.X 11.X
|
||||||
@@ -1012,6 +1085,7 @@ PORTS
|
|||||||
- i386 HURD
|
- i386 HURD
|
||||||
- i386 Haiku OS
|
- i386 Haiku OS
|
||||||
- i386 Linux 1.3, 2.0, 2.2, 2.3, 2.4, 2.6
|
- i386 Linux 1.3, 2.0, 2.2, 2.3, 2.4, 2.6
|
||||||
|
- i386 Mac OS X
|
||||||
- i386 MINIX 3.1
|
- i386 MINIX 3.1
|
||||||
- i386 NetBSD
|
- i386 NetBSD
|
||||||
- i386 Novell NetWare
|
- i386 Novell NetWare
|
||||||
|
@@ -11,13 +11,32 @@ Building with CMake
|
|||||||
This document describes how to compile, build and install curl and libcurl
|
This document describes how to compile, build and install curl and libcurl
|
||||||
from source code using the CMake build tool. To build with CMake, you will
|
from source code using the CMake build tool. To build with CMake, you will
|
||||||
of course have to first install CMake. The minimum required version of
|
of course have to first install CMake. The minimum required version of
|
||||||
CMake is specifed in the file CMakeLists.txt found in the top of the curl
|
CMake is specified in the file CMakeLists.txt found in the top of the curl
|
||||||
source tree. Once the correct version of CMake is installed you can follow
|
source tree. Once the correct version of CMake is installed you can follow
|
||||||
the instructions below for the platform you are building on.
|
the instructions below for the platform you are building on.
|
||||||
|
|
||||||
CMake builds can be configured either from the command line, or from one
|
CMake builds can be configured either from the command line, or from one
|
||||||
of CMake's GUI's.
|
of CMake's GUI's.
|
||||||
|
|
||||||
|
Current flaws in the curl CMake build
|
||||||
|
=====================================
|
||||||
|
|
||||||
|
Missing features in the cmake build:
|
||||||
|
|
||||||
|
- 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
|
||||||
|
- Doesn't build with SCP and SFTP support (libssh2)
|
||||||
|
- Doesn't allow different resolver backends (no c-ares build support)
|
||||||
|
- No RTMP support built
|
||||||
|
- Doesn't allow build curl and libcurl debug enabled
|
||||||
|
- Doesn't allow a custom CA bundle path
|
||||||
|
- 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
|
||||||
|
- Rebuilds test files too eagerly, but still can't run the tests
|
||||||
|
|
||||||
|
|
||||||
Important notice
|
Important notice
|
||||||
==================
|
==================
|
||||||
If you got your curl sources from a distribution tarball, make sure to
|
If you got your curl sources from a distribution tarball, make sure to
|
||||||
@@ -31,27 +50,33 @@ Important notice
|
|||||||
|
|
||||||
Command Line CMake
|
Command Line CMake
|
||||||
==================
|
==================
|
||||||
A command line build of Curl is similar to the autotools build of Curl. It
|
A CMake build of curl is similar to the autotools build of curl. It
|
||||||
consists of the following steps after you have unpacked the source.
|
consists of the following steps after you have unpacked the source.
|
||||||
# 1st create an out of source build tree parallel to the curl source
|
|
||||||
# tree and change into that directory
|
1. Create an out of source build tree parallel to the curl source
|
||||||
mkdir curl-build
|
tree and change into that directory
|
||||||
cd curl-build
|
|
||||||
# now run CMake from the build tree, giving it the path to the top of
|
$ mkdir curl-build
|
||||||
# the Curl source tree. CMake will pick a compiler for you. If you
|
$ cd curl-build
|
||||||
# want to specifiy the compile, you can set the CC environment
|
|
||||||
# variable prior to running CMake.
|
2. Run CMake from the build tree, giving it the path to the top of
|
||||||
cmake ../curl
|
the curl source tree. CMake will pick a compiler for you. If you
|
||||||
make
|
want to specify the compile, you can set the CC environment
|
||||||
# currently make test is not implemented
|
variable prior to running CMake.
|
||||||
#make test
|
|
||||||
# Install to default location:
|
$ cmake ../curl
|
||||||
make install
|
$ make
|
||||||
|
|
||||||
|
3. Install to default location:
|
||||||
|
|
||||||
|
$ make install
|
||||||
|
|
||||||
|
(The teste suit does not work with the cmake build)
|
||||||
|
|
||||||
ccmake
|
ccmake
|
||||||
=========
|
=========
|
||||||
CMake comes with a curses based interface called ccmake. To run ccmake on
|
CMake comes with a curses based interface called ccmake. To run ccmake on
|
||||||
a curl use the instructions for the command line cmake, but substitue
|
a curl use the instructions for the command line cmake, but substitute
|
||||||
ccmake ../curl for cmake ../curl. This will bring up a curses interface
|
ccmake ../curl for cmake ../curl. This will bring up a curses interface
|
||||||
with instructions on the bottom of the screen. You can press the "c" key
|
with instructions on the bottom of the screen. You can press the "c" key
|
||||||
to configure the project, and the "g" key to generate the project. After
|
to configure the project, and the "g" key to generate the project. After
|
||||||
@@ -65,7 +90,7 @@ cmake-gui
|
|||||||
the curl source tree.
|
the curl source tree.
|
||||||
2. Fill in the "Where to build the binaries" combo box with the path
|
2. Fill in the "Where to build the binaries" combo box with the path
|
||||||
to the directory for your build tree, ideally this should not be the
|
to the directory for your build tree, ideally this should not be the
|
||||||
same as the source tree, but a parallel diretory called curl-build or
|
same as the source tree, but a parallel directory called curl-build or
|
||||||
something similar.
|
something similar.
|
||||||
3. Once the source and binary directories are specified, press the
|
3. Once the source and binary directories are specified, press the
|
||||||
"Configure" button.
|
"Configure" button.
|
||||||
@@ -73,5 +98,5 @@ cmake-gui
|
|||||||
5. At this point you can change any of the options presented in the
|
5. At this point you can change any of the options presented in the
|
||||||
GUI. Once you have selected all the options you want, click the
|
GUI. Once you have selected all the options you want, click the
|
||||||
"Generate" button.
|
"Generate" button.
|
||||||
6. Run the native build tool that you used CMake to genratate.
|
6. Run the native build tool that you used CMake to generate.
|
||||||
|
|
||||||
|
@@ -26,7 +26,7 @@ exists for a Unix/linux command line environments. This is of little help when
|
|||||||
it comes to Windows O/S.
|
it comes to Windows O/S.
|
||||||
|
|
||||||
Secondly the help that does exist for the Windows O/S focused around mingw
|
Secondly the help that does exist for the Windows O/S focused around mingw
|
||||||
thru a command line argument environment.
|
through a command line argument environment.
|
||||||
|
|
||||||
You may ask "Why is this a problem?"
|
You may ask "Why is this a problem?"
|
||||||
|
|
||||||
|
@@ -42,20 +42,17 @@ Portability
|
|||||||
cyassl 2.0.0
|
cyassl 2.0.0
|
||||||
openldap 2.0
|
openldap 2.0
|
||||||
MIT krb5 lib 1.2.4
|
MIT krb5 lib 1.2.4
|
||||||
qsossl V5R2M0
|
qsossl V5R3M0
|
||||||
NSS 3.11.x
|
NSS 3.12.x
|
||||||
axTLS 1.2.7
|
axTLS 1.2.7
|
||||||
Heimdal ?
|
Heimdal ?
|
||||||
|
|
||||||
* = only partly functional, but that's due to bugs in the third party lib, not
|
|
||||||
because of libcurl code
|
|
||||||
|
|
||||||
On systems where configure runs, we aim at working on them all - if they have
|
On systems where configure runs, we aim at working on them all - if they have
|
||||||
a suitable C compiler. On systems that don't run configure, we strive to keep
|
a suitable C compiler. On systems that don't run configure, we strive to keep
|
||||||
curl running fine on:
|
curl running fine on:
|
||||||
|
|
||||||
Windows 98
|
Windows 98
|
||||||
AS/400 V5R2M0
|
AS/400 V5R3M0
|
||||||
Symbian 9.1
|
Symbian 9.1
|
||||||
Windows CE ?
|
Windows CE ?
|
||||||
TPF ?
|
TPF ?
|
||||||
@@ -104,9 +101,9 @@ Windows vs Unix
|
|||||||
Inside the source code, We make an effort to avoid '#ifdef [Your OS]'. All
|
Inside the source code, We make an effort to avoid '#ifdef [Your OS]'. All
|
||||||
conditionals that deal with features *should* instead be in the format
|
conditionals that deal with features *should* instead be in the format
|
||||||
'#ifdef HAVE_THAT_WEIRD_FUNCTION'. Since Windows can't run configure scripts,
|
'#ifdef HAVE_THAT_WEIRD_FUNCTION'. Since Windows can't run configure scripts,
|
||||||
we maintain two curl_config-win32.h files (one in lib/ and one in src/) that
|
we maintain a curl_config-win32.h file in lib directory that is supposed to
|
||||||
are supposed to look exactly as a curl_config.h file would have looked like on
|
look exactly as a curl_config.h file would have looked like on a Windows
|
||||||
a Windows machine!
|
machine!
|
||||||
|
|
||||||
Generally speaking: always remember that this will be compiled on dozens of
|
Generally speaking: always remember that this will be compiled on dozens of
|
||||||
operating systems. Don't walk on the edge.
|
operating systems. Don't walk on the edge.
|
||||||
@@ -220,7 +217,7 @@ Library
|
|||||||
done" loop. It loops if there's a Location: to follow.
|
done" loop. It loops if there's a Location: to follow.
|
||||||
|
|
||||||
When completed, the curl_easy_cleanup() should be called to free up used
|
When completed, the curl_easy_cleanup() should be called to free up used
|
||||||
resources. It runs Curl_disconnect() on all open connectons.
|
resources. It runs Curl_disconnect() on all open connections.
|
||||||
|
|
||||||
A quick roundup on internal function sequences (many of these call
|
A quick roundup on internal function sequences (many of these call
|
||||||
protocol-specific function-pointers):
|
protocol-specific function-pointers):
|
||||||
@@ -413,10 +410,10 @@ Client
|
|||||||
|
|
||||||
main() resides in src/main.c together with most of the client code.
|
main() resides in src/main.c together with most of the client code.
|
||||||
|
|
||||||
src/hugehelp.c is automatically generated by the mkhelp.pl perl script to
|
src/tool_hugehelp.c is automatically generated by the mkhelp.pl perl script
|
||||||
display the complete "manual" and the src/urlglob.c file holds the functions
|
to display the complete "manual" and the src/urlglob.c file holds the
|
||||||
used for the URL-"globbing" support. Globbing in the sense that the {} and []
|
functions used for the URL-"globbing" support. Globbing in the sense that
|
||||||
expansion stuff is there.
|
the {} and [] expansion stuff is there.
|
||||||
|
|
||||||
The client mostly messes around to setup its 'config' struct properly, then
|
The client mostly messes around to setup its 'config' struct properly, then
|
||||||
it calls the curl_easy_*() functions of the library and when it gets back
|
it calls the curl_easy_*() functions of the library and when it gets back
|
||||||
|
@@ -3,13 +3,34 @@ 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!
|
||||||
|
|
||||||
|
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
|
||||||
|
such in the build.
|
||||||
|
http://curl.haxx.se/bug/view.cgi?id=1222
|
||||||
|
|
||||||
|
81. When using -J (with -O), automaticly resumed downloading together with "-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
|
||||||
|
pre-transfer size) has been figured out!
|
||||||
|
http://curl.haxx.se/bug/view.cgi?id=1169
|
||||||
|
|
||||||
|
80. Curl doesn't recognize certificates in DER format in keychain, but it
|
||||||
|
works with PEM.
|
||||||
|
http://curl.haxx.se/bug/view.cgi?id=3439999
|
||||||
|
|
||||||
|
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"
|
||||||
|
command). Ordinary mail programs would proceed and still send to the ones
|
||||||
|
that can receive data. This is subject for change in the future.
|
||||||
|
http://curl.haxx.se/bug/view.cgi?id=3438362
|
||||||
|
|
||||||
78. curl and libcurl don't always signal the client properly when "sending"
|
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
|
zero bytes files - it makes for example the command line client not creating
|
||||||
any file at all. Like when using FTP.
|
any file at all. Like when using FTP.
|
||||||
http://curl.haxx.se/bug/view.cgi?id=3438362
|
http://curl.haxx.se/bug/view.cgi?id=3438362
|
||||||
|
|
||||||
77. CURLOPT_FORBID_REUSE on a handle prevents NTLM from working since it
|
77. CURLOPT_FORBID_REUSE on a handle prevents NTLM from working since it
|
||||||
"absuses" the underlying connection re-use system and if connections are
|
"abuses" the underlying connection re-use system and if connections are
|
||||||
forced to close they break the NTLM support.
|
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
|
76. The SOCKET type in Win64 is 64 bits large (and thus so is curl_socket_t on
|
||||||
@@ -17,10 +38,15 @@ may have been fixed since this was written!
|
|||||||
curl_easy_getinfo() to return a socket properly with the CURLINFO_LASTSOCKET
|
curl_easy_getinfo() to return a socket properly with the CURLINFO_LASTSOCKET
|
||||||
option as for all other operating systems.
|
option as for all other operating systems.
|
||||||
|
|
||||||
75. NTLM authentication involving unicode user name or password.
|
75. NTLM authentication involving unicode user name or password only works
|
||||||
|
properly if built with UNICODE defined together with the schannel/winssl
|
||||||
|
backend. The original problem was mentioned in:
|
||||||
http://curl.haxx.se/mail/lib-2009-10/0024.html
|
http://curl.haxx.se/mail/lib-2009-10/0024.html
|
||||||
http://curl.haxx.se/bug/view.cgi?id=2944325
|
http://curl.haxx.se/bug/view.cgi?id=2944325
|
||||||
|
|
||||||
|
The schannel version verified to work as mentioned in
|
||||||
|
http://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"
|
||||||
@@ -119,13 +145,6 @@ may have been fixed since this was written!
|
|||||||
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
|
http://curl.haxx.se/mail/lib-2007-01/0103.html
|
||||||
|
|
||||||
37. Having more than one connection to the same host when doing NTLM
|
|
||||||
authentication (with performs multiple "passes" and authenticates a
|
|
||||||
connection rather than a HTTP request), and particularly when using the
|
|
||||||
multi interface, there's a risk that libcurl will re-use a wrong connection
|
|
||||||
when doing the different passes in the NTLM negotiation and thus fail to
|
|
||||||
negotiate (in seemingly mysterious ways).
|
|
||||||
|
|
||||||
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.
|
||||||
|
|
||||||
@@ -155,7 +174,6 @@ may have been fixed since this was written!
|
|||||||
to what winhttp does. See http://curl.haxx.se/bug/view.cgi?id=1281867
|
to what winhttp does. See http://curl.haxx.se/bug/view.cgi?id=1281867
|
||||||
|
|
||||||
23. SOCKS-related problems:
|
23. SOCKS-related problems:
|
||||||
A) libcurl doesn't support SOCKS for IPv6.
|
|
||||||
B) libcurl doesn't support FTPS over a SOCKS proxy.
|
B) libcurl doesn't support FTPS over a SOCKS proxy.
|
||||||
E) libcurl doesn't support active FTP over a SOCKS proxy
|
E) libcurl doesn't support active FTP over a SOCKS proxy
|
||||||
|
|
||||||
|
@@ -13,6 +13,7 @@ MAIL ETIQUETTE
|
|||||||
1.4 Subscription Required
|
1.4 Subscription Required
|
||||||
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
|
||||||
|
|
||||||
2. Sending mail
|
2. Sending mail
|
||||||
2.1 Reply or New Mail
|
2.1 Reply or New Mail
|
||||||
@@ -58,7 +59,7 @@ MAIL ETIQUETTE
|
|||||||
no way to read the reply, but to ask the one person the question. The one
|
no way to read the reply, but to ask the one person the question. The one
|
||||||
person consequently gets overloaded with mail.
|
person consequently gets overloaded with mail.
|
||||||
|
|
||||||
If you really want to contact an individual and perhaps pay for his or her's
|
If you really want to contact an individual and perhaps pay for his or her
|
||||||
services, by all means go ahead, but if it's just another curl question,
|
services, by all means go ahead, but if it's just another curl question,
|
||||||
take it to a suitable list instead.
|
take it to a suitable list instead.
|
||||||
|
|
||||||
@@ -91,7 +92,7 @@ MAIL ETIQUETTE
|
|||||||
|
|
||||||
1.6 Handling trolls and spam
|
1.6 Handling trolls and spam
|
||||||
|
|
||||||
Despite our good intensions and hard work to keep spam off the lists and to
|
Despite our good intentions and hard work to keep spam off the lists and to
|
||||||
maintain a friendly and positive atmosphere, there will be times when spam
|
maintain a friendly and positive atmosphere, there will be times when spam
|
||||||
and or trolls get through.
|
and or trolls get through.
|
||||||
|
|
||||||
@@ -110,6 +111,20 @@ MAIL ETIQUETTE
|
|||||||
|
|
||||||
Don't feed the trolls!
|
Don't feed the trolls!
|
||||||
|
|
||||||
|
1.7 How to unsubscribe
|
||||||
|
|
||||||
|
You unsubscribe the same way you subscribed in the first place. You go to
|
||||||
|
the page for the particular mailing list you're subscribed to and you enter
|
||||||
|
your email address and password and press the unsubscribe button.
|
||||||
|
|
||||||
|
Also, this information is included in the headers of every mail that is sent
|
||||||
|
out to all curl related mailing lists and there's footer in each mail that
|
||||||
|
links to the "admin" page on which you can unsubscribe and change other
|
||||||
|
options.
|
||||||
|
|
||||||
|
You NEVER EVER email the mailing list requesting someone else to get you off
|
||||||
|
the list.
|
||||||
|
|
||||||
|
|
||||||
2. Sending mail
|
2. Sending mail
|
||||||
|
|
||||||
@@ -155,8 +170,8 @@ MAIL ETIQUETTE
|
|||||||
Q: What is the most annoying thing in e-mail?
|
Q: What is the most annoying thing in e-mail?
|
||||||
|
|
||||||
Apart from the screwed up read order (especially when mixed together in a
|
Apart from the screwed up read order (especially when mixed together in a
|
||||||
thread when some responds doing the mandaded bottom-posting style), it also
|
thread when someone responds using the mandated bottom-posting style), it
|
||||||
makes it impossible to quote only parts of the original mail.
|
also makes it impossible to quote only parts of the original mail.
|
||||||
|
|
||||||
When you reply to a mail. You let the mail client insert the previous mail
|
When you reply to a mail. You let the mail client insert the previous mail
|
||||||
quoted. Then you put the cursor on the first line of the mail and you move
|
quoted. Then you put the cursor on the first line of the mail and you move
|
||||||
|
112
docs/MANUAL
112
docs/MANUAL
@@ -19,7 +19,7 @@ SIMPLE USAGE
|
|||||||
|
|
||||||
curl http://www.weirdserver.com:8000/
|
curl http://www.weirdserver.com:8000/
|
||||||
|
|
||||||
Get a list of a directory of an FTP site:
|
Get a directory listing of an FTP site:
|
||||||
|
|
||||||
curl ftp://cool.haxx.se/
|
curl ftp://cool.haxx.se/
|
||||||
|
|
||||||
@@ -54,7 +54,7 @@ SIMPLE USAGE
|
|||||||
|
|
||||||
DOWNLOAD TO A FILE
|
DOWNLOAD TO A FILE
|
||||||
|
|
||||||
Get a web page and store in a local file:
|
Get a web page and store in a local file with a specific name:
|
||||||
|
|
||||||
curl -o thatpage.html http://www.netscape.com/
|
curl -o thatpage.html http://www.netscape.com/
|
||||||
|
|
||||||
@@ -113,9 +113,10 @@ USING PASSWORDS
|
|||||||
ones out of the ones that the server accepts for the given URL, by using
|
ones out of the ones that the server accepts for the given URL, by using
|
||||||
--anyauth.
|
--anyauth.
|
||||||
|
|
||||||
NOTE! Since HTTP URLs don't support user and password, you can't use that
|
NOTE! According to the URL specification, HTTP URLs can not contain a user
|
||||||
style when using Curl via a proxy. You _must_ use the -u style fetch
|
and password, so that style will not work when using curl via a proxy, even
|
||||||
during such circumstances.
|
though curl allows it at other times. When using a proxy, you _must_ use
|
||||||
|
the -u style for user and password.
|
||||||
|
|
||||||
HTTPS
|
HTTPS
|
||||||
|
|
||||||
@@ -133,7 +134,7 @@ PROXY
|
|||||||
|
|
||||||
curl -x my-proxy:888 ftp://ftp.leachsite.com/README
|
curl -x my-proxy:888 ftp://ftp.leachsite.com/README
|
||||||
|
|
||||||
Get a file from a HTTP server that requires user and password, using the
|
Get a file from an HTTP server that requires user and password, using the
|
||||||
same proxy as above:
|
same proxy as above:
|
||||||
|
|
||||||
curl -u user:passwd -x my-proxy:888 http://www.get.this/
|
curl -u user:passwd -x my-proxy:888 http://www.get.this/
|
||||||
@@ -171,7 +172,7 @@ PROXY
|
|||||||
|
|
||||||
RANGES
|
RANGES
|
||||||
|
|
||||||
With HTTP 1.1 byte-ranges were introduced. Using this, a client can request
|
HTTP 1.1 introduced byte-ranges. Using this, a client can request
|
||||||
to get only one or more subparts of a specified document. Curl supports
|
to get only one or more subparts of a specified document. Curl supports
|
||||||
this with the -r flag.
|
this with the -r flag.
|
||||||
|
|
||||||
@@ -202,8 +203,8 @@ UPLOADING
|
|||||||
|
|
||||||
curl -T uploadfile -u user:passwd ftp://ftp.upload.com/myfile
|
curl -T uploadfile -u user:passwd ftp://ftp.upload.com/myfile
|
||||||
|
|
||||||
Upload a local file to the remote site, and use the local file name remote
|
Upload a local file to the remote site, and use the local file name at the remote
|
||||||
too:
|
site too:
|
||||||
|
|
||||||
curl -T uploadfile -u user:passwd ftp://ftp.upload.com/
|
curl -T uploadfile -u user:passwd ftp://ftp.upload.com/
|
||||||
|
|
||||||
@@ -219,14 +220,14 @@ UPLOADING
|
|||||||
|
|
||||||
HTTP
|
HTTP
|
||||||
|
|
||||||
Upload all data on stdin to a specified http site:
|
Upload all data on stdin to a specified HTTP site:
|
||||||
|
|
||||||
curl -T - http://www.upload.com/myfile
|
curl -T - http://www.upload.com/myfile
|
||||||
|
|
||||||
Note that the http server must have been configured to accept PUT before
|
Note that the HTTP server must have been configured to accept PUT before
|
||||||
this can be done successfully.
|
this can be done successfully.
|
||||||
|
|
||||||
For other ways to do http data upload, see the POST section below.
|
For other ways to do HTTP data upload, see the POST section below.
|
||||||
|
|
||||||
VERBOSE / DEBUG
|
VERBOSE / DEBUG
|
||||||
|
|
||||||
@@ -289,7 +290,7 @@ POST (HTTP)
|
|||||||
The 'variable' names are the names set with "name=" in the <input> tags, and
|
The 'variable' names are the names set with "name=" in the <input> tags, and
|
||||||
the data is the contents you want to fill in for the inputs. The data *must*
|
the data is the contents you want to fill in for the inputs. The data *must*
|
||||||
be properly URL encoded. That means you replace space with + and that you
|
be properly URL encoded. That means you replace space with + and that you
|
||||||
write weird letters with %XX where XX is the hexadecimal representation of
|
replace weird letters with %XX where XX is the hexadecimal representation of
|
||||||
the letter's ASCII code.
|
the letter's ASCII code.
|
||||||
|
|
||||||
Example:
|
Example:
|
||||||
@@ -361,8 +362,8 @@ POST (HTTP)
|
|||||||
|
|
||||||
REFERRER
|
REFERRER
|
||||||
|
|
||||||
A HTTP request has the option to include information about which address
|
An HTTP request has the option to include information about which address
|
||||||
that referred to actual page. Curl allows you to specify the
|
referred it to the actual page. Curl allows you to specify the
|
||||||
referrer to be used on the command line. It is especially useful to
|
referrer to be used on the command line. It is especially useful to
|
||||||
fool or trick stupid servers or CGI scripts that rely on that information
|
fool or trick stupid servers or CGI scripts that rely on that information
|
||||||
being available or contain certain data.
|
being available or contain certain data.
|
||||||
@@ -373,7 +374,7 @@ REFERRER
|
|||||||
|
|
||||||
USER AGENT
|
USER AGENT
|
||||||
|
|
||||||
A HTTP request has the option to include information about the browser
|
An HTTP request has the option to include information about the browser
|
||||||
that generated the request. Curl allows it to be specified on the command
|
that generated the request. Curl allows it to be specified on the command
|
||||||
line. It is especially useful to fool or trick stupid servers or CGI
|
line. It is especially useful to fool or trick stupid servers or CGI
|
||||||
scripts that only accept certain browsers.
|
scripts that only accept certain browsers.
|
||||||
@@ -613,21 +614,21 @@ SFTP and SCP and PATH NAMES
|
|||||||
FTP and firewalls
|
FTP and firewalls
|
||||||
|
|
||||||
The FTP protocol requires one of the involved parties to open a second
|
The FTP protocol requires one of the involved parties to open a second
|
||||||
connection as soon as data is about to get transfered. There are two ways to
|
connection as soon as data is about to get transferred. There are two ways to
|
||||||
do this.
|
do this.
|
||||||
|
|
||||||
The default way for curl is to issue the PASV command which causes the
|
The default way for curl is to issue the PASV command which causes the
|
||||||
server to open another port and await another connection performed by the
|
server to open another port and await another connection performed by the
|
||||||
client. This is good if the client is behind a firewall that don't allow
|
client. This is good if the client is behind a firewall that doesn't allow
|
||||||
incoming connections.
|
incoming connections.
|
||||||
|
|
||||||
curl ftp.download.com
|
curl ftp.download.com
|
||||||
|
|
||||||
If the server for example, is behind a firewall that don't allow connections
|
If the server, for example, is behind a firewall that doesn't allow connections
|
||||||
on other ports than 21 (or if it just doesn't support the PASV command), the
|
on ports other than 21 (or if it just doesn't support the PASV command), the
|
||||||
other way to do it is to use the PORT command and instruct the server to
|
other way to do it is to use the PORT command and instruct the server to
|
||||||
connect to the client on the given (as parameters to the PORT command) IP
|
connect to the client on the given IP number and port (as parameters to the
|
||||||
number and port.
|
PORT command).
|
||||||
|
|
||||||
The -P flag to curl supports a few different options. Your machine may have
|
The -P flag to curl supports a few different options. Your machine may have
|
||||||
several IP-addresses and/or network interfaces and curl allows you to select
|
several IP-addresses and/or network interfaces and curl allows you to select
|
||||||
@@ -685,8 +686,8 @@ HTTPS
|
|||||||
If you neglect to specify the password on the command line, you will be
|
If you neglect to specify the password on the command line, you will be
|
||||||
prompted for the correct password before any data can be received.
|
prompted for the correct password before any data can be received.
|
||||||
|
|
||||||
Many older SSL-servers have problems with SSLv3 or TLS, that newer versions
|
Many older SSL-servers have problems with SSLv3 or TLS, which newer versions
|
||||||
of OpenSSL etc is using, therefore it is sometimes useful to specify what
|
of OpenSSL etc use, therefore it is sometimes useful to specify what
|
||||||
SSL-version curl should use. Use -3, -2 or -1 to specify that exact SSL
|
SSL-version curl should use. Use -3, -2 or -1 to specify that exact SSL
|
||||||
version to use (for SSLv3, SSLv2 or TLSv1 respectively):
|
version to use (for SSLv3, SSLv2 or TLSv1 respectively):
|
||||||
|
|
||||||
@@ -695,14 +696,13 @@ HTTPS
|
|||||||
Otherwise, curl will first attempt to use v3 and then v2.
|
Otherwise, curl will first attempt to use v3 and then v2.
|
||||||
|
|
||||||
To use OpenSSL to convert your favourite browser's certificate into a PEM
|
To use OpenSSL to convert your favourite browser's certificate into a PEM
|
||||||
formatted one that curl can use, do something like this (assuming netscape,
|
formatted one that curl can use, do something like this:
|
||||||
but IE is likely to work similarly):
|
|
||||||
|
|
||||||
You start with hitting the 'security' menu button in netscape.
|
In Netscape, you start with hitting the 'Security' menu button.
|
||||||
|
|
||||||
Select 'certificates->yours' and then pick a certificate in the list
|
Select 'certificates->yours' and then pick a certificate in the list
|
||||||
|
|
||||||
Press the 'export' button
|
Press the 'Export' button
|
||||||
|
|
||||||
enter your PIN code for the certs
|
enter your PIN code for the certs
|
||||||
|
|
||||||
@@ -713,11 +713,21 @@ HTTPS
|
|||||||
|
|
||||||
# ./apps/openssl pkcs12 -in [file you saved] -clcerts -out [PEMfile]
|
# ./apps/openssl pkcs12 -in [file you saved] -clcerts -out [PEMfile]
|
||||||
|
|
||||||
|
In Firefox, select Options, then Advanced, then the Encryption tab,
|
||||||
|
View Certificates. This opens the Certificate Manager, where you can
|
||||||
|
Export. Be sure to select PEM for the Save as type.
|
||||||
|
|
||||||
|
In Internet Explorer, select Internet Options, then the Content tab, then
|
||||||
|
Certificates. Then you can Export, and depending on the format you may
|
||||||
|
need to convert to PEM.
|
||||||
|
|
||||||
|
In Chrome, select Settings, then Show Advanced Settings. Under HTTPS/SSL
|
||||||
|
select Manage Certificates.
|
||||||
|
|
||||||
RESUMING FILE TRANSFERS
|
RESUMING FILE TRANSFERS
|
||||||
|
|
||||||
To continue a file transfer where it was previously aborted, curl supports
|
To continue a file transfer where it was previously aborted, curl supports
|
||||||
resume on http(s) downloads as well as ftp uploads and downloads.
|
resume on HTTP(S) downloads as well as FTP uploads and downloads.
|
||||||
|
|
||||||
Continue downloading a document:
|
Continue downloading a document:
|
||||||
|
|
||||||
@@ -731,7 +741,7 @@ RESUMING FILE TRANSFERS
|
|||||||
|
|
||||||
curl -C - -o file http://www.server.com/
|
curl -C - -o file http://www.server.com/
|
||||||
|
|
||||||
(*1) = This requires that the ftp server supports the non-standard command
|
(*1) = This requires that the FTP server supports the non-standard command
|
||||||
SIZE. If it doesn't, curl will say so.
|
SIZE. If it doesn't, curl will say so.
|
||||||
|
|
||||||
(*2) = This requires that the web server supports at least HTTP/1.1. If it
|
(*2) = This requires that the web server supports at least HTTP/1.1. If it
|
||||||
@@ -740,7 +750,7 @@ RESUMING FILE TRANSFERS
|
|||||||
TIME CONDITIONS
|
TIME CONDITIONS
|
||||||
|
|
||||||
HTTP allows a client to specify a time condition for the document it
|
HTTP allows a client to specify a time condition for the document it
|
||||||
requests. It is If-Modified-Since or If-Unmodified-Since. Curl allow you to
|
requests. It is If-Modified-Since or If-Unmodified-Since. Curl allows you to
|
||||||
specify them with the -z/--time-cond flag.
|
specify them with the -z/--time-cond flag.
|
||||||
|
|
||||||
For example, you can easily make a download that only gets performed if the
|
For example, you can easily make a download that only gets performed if the
|
||||||
@@ -788,7 +798,7 @@ LDAP
|
|||||||
and offer ldap:// support.
|
and offer ldap:// support.
|
||||||
|
|
||||||
LDAP is a complex thing and writing an LDAP query is not an easy task. I do
|
LDAP is a complex thing and writing an LDAP query is not an easy task. I do
|
||||||
advice you to dig up the syntax description for that elsewhere. Two places
|
advise you to dig up the syntax description for that elsewhere. Two places
|
||||||
that might suit you are:
|
that might suit you are:
|
||||||
|
|
||||||
Netscape's "Netscape Directory SDK 3.0 for C Programmer's Guide Chapter 10:
|
Netscape's "Netscape Directory SDK 3.0 for C Programmer's Guide Chapter 10:
|
||||||
@@ -797,7 +807,7 @@ LDAP
|
|||||||
|
|
||||||
RFC 2255, "The LDAP URL Format" http://curl.haxx.se/rfc/rfc2255.txt
|
RFC 2255, "The LDAP URL Format" http://curl.haxx.se/rfc/rfc2255.txt
|
||||||
|
|
||||||
To show you an example, this is now 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:
|
||||||
|
|
||||||
curl -B "ldap://ldap.frontec.se/o=frontec??sub?mail=*sth.frontec.se"
|
curl -B "ldap://ldap.frontec.se/o=frontec??sub?mail=*sth.frontec.se"
|
||||||
@@ -831,15 +841,15 @@ ENVIRONMENT VARIABLES
|
|||||||
NETRC
|
NETRC
|
||||||
|
|
||||||
Unix introduced the .netrc concept a long time ago. It is a way for a user
|
Unix introduced the .netrc concept a long time ago. It is a way for a user
|
||||||
to specify name and password for commonly visited ftp sites in a file so
|
to specify name and password for commonly visited FTP sites in a file so
|
||||||
that you don't have to type them in each time you visit those sites. You
|
that you don't have to type them in each time you visit those sites. You
|
||||||
realize this is a big security risk if someone else gets hold of your
|
realize this is a big security risk if someone else gets hold of your
|
||||||
passwords, so therefore most unix programs won't read this file unless it is
|
passwords, so therefore most unix programs won't read this file unless it is
|
||||||
only readable by yourself (curl doesn't care though).
|
only readable by yourself (curl doesn't care though).
|
||||||
|
|
||||||
Curl supports .netrc files if told so (using the -n/--netrc and
|
Curl supports .netrc files if told to (using the -n/--netrc and
|
||||||
--netrc-optional options). This is not restricted to only ftp,
|
--netrc-optional options). This is not restricted to just FTP,
|
||||||
but curl can use it for all protocols where authentication is used.
|
so curl can use it for all protocols where authentication is used.
|
||||||
|
|
||||||
A very simple .netrc file could look something like:
|
A very simple .netrc file could look something like:
|
||||||
|
|
||||||
@@ -860,7 +870,7 @@ KERBEROS FTP TRANSFER
|
|||||||
|
|
||||||
Curl supports kerberos4 and kerberos5/GSSAPI for FTP transfers. You need
|
Curl supports kerberos4 and kerberos5/GSSAPI for FTP transfers. You need
|
||||||
the kerberos package installed and used at curl build time for it to be
|
the kerberos package installed and used at curl build time for it to be
|
||||||
used.
|
available.
|
||||||
|
|
||||||
First, get the krb-ticket the normal way, like with the kinit/kauth tool.
|
First, get the krb-ticket the normal way, like with the kinit/kauth tool.
|
||||||
Then use curl in way similar to:
|
Then use curl in way similar to:
|
||||||
@@ -895,7 +905,7 @@ TELNET
|
|||||||
|
|
||||||
- NEW_ENV=<var,val> Sets an environment variable.
|
- NEW_ENV=<var,val> Sets an environment variable.
|
||||||
|
|
||||||
NOTE: the telnet protocol does not specify any way to login with a specified
|
NOTE: The telnet protocol does not specify any way to login with a specified
|
||||||
user and password so curl can't do that automatically. To do that, you need
|
user and password so curl can't do that automatically. To do that, you need
|
||||||
to track when the login prompt is received and send the username and
|
to track when the login prompt is received and send the username and
|
||||||
password accordingly.
|
password accordingly.
|
||||||
@@ -914,7 +924,7 @@ PERSISTENT CONNECTIONS
|
|||||||
Note that curl cannot use persistent connections for transfers that are used
|
Note that curl cannot use persistent connections for transfers that are used
|
||||||
in subsequence curl invokes. Try to stuff as many URLs as possible on the
|
in subsequence curl invokes. Try to stuff as many URLs as possible on the
|
||||||
same command line if they are using the same host, as that'll make the
|
same command line if they are using the same host, as that'll make the
|
||||||
transfers faster. If you use a http proxy for file transfers, practically
|
transfers faster. If you use an HTTP proxy for file transfers, practically
|
||||||
all transfers will be persistent.
|
all transfers will be persistent.
|
||||||
|
|
||||||
MULTIPLE TRANSFERS WITH A SINGLE COMMAND LINE
|
MULTIPLE TRANSFERS WITH A SINGLE COMMAND LINE
|
||||||
@@ -955,6 +965,28 @@ IPv6
|
|||||||
IPv6 addresses provided other than in URLs (e.g. to the --proxy, --interface
|
IPv6 addresses provided other than in URLs (e.g. to the --proxy, --interface
|
||||||
or --ftp-port options) should not be URL encoded.
|
or --ftp-port options) should not be URL encoded.
|
||||||
|
|
||||||
|
METALINK
|
||||||
|
|
||||||
|
Curl supports Metalink (both version 3 and 4 (RFC 5854) are supported), a way
|
||||||
|
to list multiple URIs and hashes for a file. Curl will make use of the mirrors
|
||||||
|
listed within for failover if there are errors (such as the file or server not
|
||||||
|
being available). It will also verify the hash of the file after the download
|
||||||
|
completes. The Metalink file itself is downloaded and processed in memory and
|
||||||
|
not stored in the local file system.
|
||||||
|
|
||||||
|
Example to use a remote Metalink file:
|
||||||
|
|
||||||
|
curl --metalink http://www.example.com/example.metalink
|
||||||
|
|
||||||
|
To use a Metalink file in the local file system, use FILE protocol (file://):
|
||||||
|
|
||||||
|
curl --metalink file://example.metalink
|
||||||
|
|
||||||
|
Please note that if FILE protocol is disabled, there is no way to use a local
|
||||||
|
Metalink file at the time of this writing. Also note that if --metalink and
|
||||||
|
--include are used together, --include will be ignored. This is because including
|
||||||
|
headers in the response will break Metalink parser and if the headers are included
|
||||||
|
in the file described in Metalink file, hash check will fail.
|
||||||
|
|
||||||
MAILING LISTS
|
MAILING LISTS
|
||||||
|
|
||||||
|
@@ -5,7 +5,7 @@
|
|||||||
# | (__| |_| | _ <| |___
|
# | (__| |_| | _ <| |___
|
||||||
# \___|\___/|_| \_\_____|
|
# \___|\___/|_| \_\_____|
|
||||||
#
|
#
|
||||||
# Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al.
|
# Copyright (C) 1998 - 2012, 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
|
||||||
@@ -22,9 +22,9 @@
|
|||||||
|
|
||||||
AUTOMAKE_OPTIONS = foreign no-dependencies
|
AUTOMAKE_OPTIONS = foreign no-dependencies
|
||||||
|
|
||||||
man_MANS = curl.1 curl-config.1
|
man_MANS = curl.1 curl-config.1 mk-ca-bundle.1
|
||||||
GENHTMLPAGES = curl.html curl-config.html
|
GENHTMLPAGES = curl.html curl-config.html mk-ca-bundle.html
|
||||||
PDFPAGES = curl.pdf curl-config.pdf
|
PDFPAGES = curl.pdf curl-config.pdf mk-ca-bundle.pdf
|
||||||
|
|
||||||
HTMLPAGES = $(GENHTMLPAGES) index.html
|
HTMLPAGES = $(GENHTMLPAGES) index.html
|
||||||
|
|
||||||
@@ -36,7 +36,7 @@ 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 DISTRO-DILEMMA INSTALL.devcpp \
|
||||||
MAIL-ETIQUETTE
|
MAIL-ETIQUETTE HTTP-COOKIES
|
||||||
|
|
||||||
MAN2HTML= roffit < $< >$@
|
MAN2HTML= roffit < $< >$@
|
||||||
|
|
||||||
|
@@ -1,6 +1,12 @@
|
|||||||
Peer SSL Certificate Verification
|
Peer SSL Certificate Verification
|
||||||
=================================
|
=================================
|
||||||
|
|
||||||
|
(NOTE: If libcurl was built with Schannel or Secure Transport support, 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.)
|
||||||
|
|
||||||
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 CA cert bundle that the SSL library can use to make sure the peer's
|
||||||
server certificate is valid.
|
server certificate is valid.
|
||||||
@@ -93,24 +99,40 @@ server.
|
|||||||
Peer SSL Certificate Verification with NSS
|
Peer SSL Certificate Verification with NSS
|
||||||
==========================================
|
==========================================
|
||||||
|
|
||||||
If libcurl is build with NSS support then depending on the OS distribution it
|
If libcurl was built with NSS support, then depending on the OS distribution,
|
||||||
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 CA
|
||||||
cert db. RedHat ships with an additional module libnsspem.so which enables NSS
|
cert db. RedHat ships with an additional module, libnsspem.so, which enables
|
||||||
to read the OpenSSL PEM CA bundle. With OpenSuSE this lib is missing, and NSS
|
NSS to read the OpenSSL PEM CA bundle. This library is missing in OpenSuSE, and
|
||||||
can only work with its own internal formats. Also NSS got a new database
|
without it, NSS can only work with its own internal formats. NSS also has a new
|
||||||
format:
|
database format: https://wiki.mozilla.org/NSS_Shared_DB
|
||||||
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 will check for the NSS version it runs,
|
||||||
and add automatically the 'sql:' prefix to the certdb directory (either the
|
and automatically add the 'sql:' prefix to the certdb directory (either the
|
||||||
hardcoded default /etc/pki/nssdb or the directory configured with SSL_DIR
|
hardcoded default /etc/pki/nssdb or the directory configured with SSL_DIR
|
||||||
environment variable) if a version 3.12.0 or later is detected.
|
environment variable) if version 3.12.0 or later is detected. To check which
|
||||||
To check which certdb format your distribution provides examine the default
|
ertdb format your distribution provides, examine the default
|
||||||
certdb location /etc/pki/nssdb; the new certdb format can be identified by
|
certdb location: /etc/pki/nssdb; the new certdb format can be identified by
|
||||||
the filenames cert9.db, key4.db, pkcs11.txt; filenames of older versions are
|
the filenames cert9.db, key4.db, pkcs11.txt; filenames of older versions are
|
||||||
cert8.db, key3.db, modsec.db.
|
cert8.db, key3.db, modsec.db.
|
||||||
Usually these cert databases are empty; but NSS also has built-in CAs which are
|
|
||||||
provided through a shared library libnssckbi.so; if you want to use these
|
Usually these cert databases are empty, but NSS also has built-in CAs which are
|
||||||
built-in CAs then create a symlink to libnssckbi.so in /etc/pki/nssdb:
|
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
|
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 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
|
||||||
|
use the certificates that are built into the OS. These are the same
|
||||||
|
certificates that appear in the Internet Options control panel (under Windows)
|
||||||
|
or Keychain Access application (under OS X). Any custom security rules for
|
||||||
|
certificates will be honored.
|
||||||
|
|
||||||
|
Schannel will run CRL checks on certificates unless peer verification is
|
||||||
|
disabled. Secure Transport on iOS will run OCSP checks on certificates unless
|
||||||
|
peer verification is disabled. Secure Transport on OS X will run either OCSP
|
||||||
|
or CRL checks on certificates if those features are enabled, and this behavior
|
||||||
|
can be adjusted in the preferences of Keychain Access.
|
||||||
|
134
docs/THANKS
134
docs/THANKS
@@ -12,9 +12,10 @@ Adam Piggott
|
|||||||
Adam Tkac
|
Adam Tkac
|
||||||
Adrian Schuur
|
Adrian Schuur
|
||||||
Adriano Meirelles
|
Adriano Meirelles
|
||||||
|
Ajit Dhumale
|
||||||
|
Aki Koskinen
|
||||||
Akos Pasztory
|
Akos Pasztory
|
||||||
Alan Pinstein
|
Alan Pinstein
|
||||||
Albert Chin
|
|
||||||
Albert Chin-A-Young
|
Albert Chin-A-Young
|
||||||
Albert Choy
|
Albert Choy
|
||||||
Ale Vesely
|
Ale Vesely
|
||||||
@@ -24,11 +25,13 @@ Alessandro Ghedini
|
|||||||
Alessandro Vesely
|
Alessandro Vesely
|
||||||
Alex Bligh
|
Alex Bligh
|
||||||
Alex Fishman
|
Alex Fishman
|
||||||
|
Alex Gruz
|
||||||
Alex Neblett
|
Alex Neblett
|
||||||
Alex Suykov
|
Alex Suykov
|
||||||
Alex Vinnik
|
Alex Vinnik
|
||||||
Alex aka WindEagle
|
Alex aka WindEagle
|
||||||
Alexander Beedie
|
Alexander Beedie
|
||||||
|
Alexander Klauer
|
||||||
Alexander Kourakos
|
Alexander Kourakos
|
||||||
Alexander Krasnostavsky
|
Alexander Krasnostavsky
|
||||||
Alexander Lazic
|
Alexander Lazic
|
||||||
@@ -55,26 +58,32 @@ Andreas Rieke
|
|||||||
Andreas Schuldei
|
Andreas Schuldei
|
||||||
Andreas Wurf
|
Andreas Wurf
|
||||||
Andrei Benea
|
Andrei Benea
|
||||||
|
Andrei Cipu
|
||||||
Andres Garcia
|
Andres Garcia
|
||||||
Andrew Benham
|
Andrew Benham
|
||||||
Andrew Biggs
|
Andrew Biggs
|
||||||
Andrew Bushnell
|
Andrew Bushnell
|
||||||
Andrew Francis
|
Andrew Francis
|
||||||
Andrew Fuller
|
Andrew Fuller
|
||||||
|
Andrew Kurushin
|
||||||
Andrew Moise
|
Andrew Moise
|
||||||
Andrew Wansink
|
Andrew Wansink
|
||||||
Andrew de los Reyes
|
Andrew de los Reyes
|
||||||
Andr<EFBFBD>s Garc<EFBFBD>a
|
Andrés García
|
||||||
Andy Cedilnik
|
Andy Cedilnik
|
||||||
Andy Serpa
|
Andy Serpa
|
||||||
Andy Tsouladze
|
Andy Tsouladze
|
||||||
Angus Mackay
|
Angus Mackay
|
||||||
Anthony Bryan
|
Anthony Bryan
|
||||||
|
Anthony G. Basile
|
||||||
Antoine Calando
|
Antoine Calando
|
||||||
Anton Bychkov
|
Anton Bychkov
|
||||||
Anton Kalmykov
|
Anton Kalmykov
|
||||||
|
Anton Malov
|
||||||
|
Anton Yabchinskiy
|
||||||
Arkadiusz Miskiewicz
|
Arkadiusz Miskiewicz
|
||||||
Armel Asselin
|
Armel Asselin
|
||||||
|
Arnaud Compan
|
||||||
Arnaud Ebalard
|
Arnaud Ebalard
|
||||||
Arthur Murray
|
Arthur Murray
|
||||||
Arve Knudsen
|
Arve Knudsen
|
||||||
@@ -82,6 +91,7 @@ Ates Goral
|
|||||||
Augustus Saunders
|
Augustus Saunders
|
||||||
Avery Fay
|
Avery Fay
|
||||||
Axel Tillequin
|
Axel Tillequin
|
||||||
|
Balaji Parasuram
|
||||||
Balint Szilakszi
|
Balint Szilakszi
|
||||||
Bart Whiteley
|
Bart Whiteley
|
||||||
Bas Mevissen
|
Bas Mevissen
|
||||||
@@ -93,15 +103,19 @@ Ben Van Hof
|
|||||||
Ben Winslow
|
Ben Winslow
|
||||||
Benbuck Nason
|
Benbuck Nason
|
||||||
Benjamin Gerard
|
Benjamin Gerard
|
||||||
|
Benjamin Johnson
|
||||||
Bernard Leak
|
Bernard Leak
|
||||||
Bernhard Reutner-Fischer
|
Bernhard Reutner-Fischer
|
||||||
Bertrand Demiddelaer
|
Bertrand Demiddelaer
|
||||||
Bill Egert
|
Bill Egert
|
||||||
Bill Hoffman
|
Bill Hoffman
|
||||||
|
Bill Middlecamp
|
||||||
Bjoern Sikora
|
Bjoern Sikora
|
||||||
Bjorn Augustsson
|
Bjorn Augustsson
|
||||||
Bjorn Reese
|
Bjorn Reese
|
||||||
Bj<EFBFBD>rn Stenberg
|
Björn Stenberg
|
||||||
|
Blaise Potard
|
||||||
|
Bob Relyea
|
||||||
Bob Richmond
|
Bob Richmond
|
||||||
Bob Schader
|
Bob Schader
|
||||||
Bogdan Nicula
|
Bogdan Nicula
|
||||||
@@ -119,6 +133,7 @@ Brian R Duffy
|
|||||||
Brian Ulm
|
Brian Ulm
|
||||||
Brock Noland
|
Brock Noland
|
||||||
Bruce Mitchener
|
Bruce Mitchener
|
||||||
|
Bruno de Carvalho
|
||||||
Bryan Henderson
|
Bryan Henderson
|
||||||
Bryan Kemp
|
Bryan Kemp
|
||||||
Cameron Kaiser
|
Cameron Kaiser
|
||||||
@@ -128,6 +143,7 @@ Carsten Lange
|
|||||||
Casey O'Donnell
|
Casey O'Donnell
|
||||||
Cedric Deltheil
|
Cedric Deltheil
|
||||||
Chad Monroe
|
Chad Monroe
|
||||||
|
Chandrakant Bagul
|
||||||
Charles Kerr
|
Charles Kerr
|
||||||
Chih-Chung Chang
|
Chih-Chung Chang
|
||||||
Chris "Bob Bob"
|
Chris "Bob Bob"
|
||||||
@@ -140,7 +156,7 @@ Chris Maltby
|
|||||||
Chris Mumford
|
Chris Mumford
|
||||||
Chris Smowton
|
Chris Smowton
|
||||||
Christian Grothoff
|
Christian Grothoff
|
||||||
Christian Hagele
|
Christian Hägele
|
||||||
Christian Krause
|
Christian Krause
|
||||||
Christian Kurz
|
Christian Kurz
|
||||||
Christian Robottom Reis
|
Christian Robottom Reis
|
||||||
@@ -155,6 +171,7 @@ Christopher Stone
|
|||||||
Ciprian Badescu
|
Ciprian Badescu
|
||||||
Claes Jakobsson
|
Claes Jakobsson
|
||||||
Clarence Gardner
|
Clarence Gardner
|
||||||
|
Clemens Gruber
|
||||||
Clifford Wolf
|
Clifford Wolf
|
||||||
Cody Jones
|
Cody Jones
|
||||||
Colin Hogben
|
Colin Hogben
|
||||||
@@ -166,9 +183,11 @@ Craig A West
|
|||||||
Craig Davison
|
Craig Davison
|
||||||
Craig Markwardt
|
Craig Markwardt
|
||||||
Cris Bailiff
|
Cris Bailiff
|
||||||
Cristian Rodriguez
|
Cristian Rodríguez
|
||||||
Curt Bogmine
|
Curt Bogmine
|
||||||
Cyrill Osterwalder
|
Cyrill Osterwalder
|
||||||
|
Cédric Deltheil
|
||||||
|
Dag Ekengren
|
||||||
Dagobert Michelsen
|
Dagobert Michelsen
|
||||||
Damien Adant
|
Damien Adant
|
||||||
Dan Becker
|
Dan Becker
|
||||||
@@ -182,11 +201,11 @@ Dan Zitter
|
|||||||
Daniel Black
|
Daniel Black
|
||||||
Daniel Cater
|
Daniel Cater
|
||||||
Daniel Egger
|
Daniel Egger
|
||||||
Daniel Fandrich
|
|
||||||
Daniel Johnson
|
Daniel Johnson
|
||||||
Daniel Mentz
|
Daniel Mentz
|
||||||
Daniel Steinberg
|
Daniel Steinberg
|
||||||
Daniel Stenberg
|
Daniel Stenberg
|
||||||
|
Daniel Theron
|
||||||
Daniel at touchtunes
|
Daniel at touchtunes
|
||||||
Darryl House
|
Darryl House
|
||||||
Darshan Mody
|
Darshan Mody
|
||||||
@@ -198,6 +217,7 @@ Dave Reisner
|
|||||||
Dave Vasilevsky
|
Dave Vasilevsky
|
||||||
David Bau
|
David Bau
|
||||||
David Binderman
|
David Binderman
|
||||||
|
David Blaikie
|
||||||
David Byron
|
David Byron
|
||||||
David Cohen
|
David Cohen
|
||||||
David Eriksson
|
David Eriksson
|
||||||
@@ -254,7 +274,10 @@ Early Ehlinger
|
|||||||
Ebenezer Ikonne
|
Ebenezer Ikonne
|
||||||
Edin Kadribasic
|
Edin Kadribasic
|
||||||
Eduard Bloch
|
Eduard Bloch
|
||||||
|
Edward Sheldrake
|
||||||
|
Eelco Dolstra
|
||||||
Eetu Ojanen
|
Eetu Ojanen
|
||||||
|
Eldar Zaitov
|
||||||
Ellis Pritchard
|
Ellis Pritchard
|
||||||
Emanuele Bovisio
|
Emanuele Bovisio
|
||||||
Emil Romanus
|
Emil Romanus
|
||||||
@@ -292,11 +315,14 @@ Frank McGeough
|
|||||||
Frank Meier
|
Frank Meier
|
||||||
Frank Ticheler
|
Frank Ticheler
|
||||||
Frank Van Uffelen
|
Frank Van Uffelen
|
||||||
|
František Kučera
|
||||||
Fred Machado
|
Fred Machado
|
||||||
Fred New
|
Fred New
|
||||||
Fred Noz
|
Fred Noz
|
||||||
Frederic Lepied
|
Frederic Lepied
|
||||||
|
Fredrik Thulin
|
||||||
Gabriel Kuri
|
Gabriel Kuri
|
||||||
|
Gabriel Sjoberg
|
||||||
Garrett Holmstrom
|
Garrett Holmstrom
|
||||||
Gary Maxwell
|
Gary Maxwell
|
||||||
Gautam Kachroo
|
Gautam Kachroo
|
||||||
@@ -309,7 +335,8 @@ Georg Lippitsch
|
|||||||
Georg Wicherski
|
Georg Wicherski
|
||||||
Gerd v. Egidy
|
Gerd v. Egidy
|
||||||
Gerhard Herre
|
Gerhard Herre
|
||||||
Gerrit Bruchh<EFBFBD>user
|
Gerrit Bruchhäuser
|
||||||
|
Ghennadi Procopciuc
|
||||||
Giancarlo Formicuccia
|
Giancarlo Formicuccia
|
||||||
Giaslas Georgios
|
Giaslas Georgios
|
||||||
Gil Weber
|
Gil Weber
|
||||||
@@ -330,10 +357,11 @@ Greg Zavertnik
|
|||||||
Grigory Entin
|
Grigory Entin
|
||||||
Guenole Bescon
|
Guenole Bescon
|
||||||
Guenter Knauf
|
Guenter Knauf
|
||||||
|
Guido Berhoerster
|
||||||
Guillaume Arluison
|
Guillaume Arluison
|
||||||
Gustaf Hui
|
Gustaf Hui
|
||||||
Gwenole Beauchesne
|
Gwenole Beauchesne
|
||||||
G<EFBFBD>tz Babin-Ebell
|
Götz Babin-Ebell
|
||||||
Hamish Mackenzie
|
Hamish Mackenzie
|
||||||
Hang Kin Lau
|
Hang Kin Lau
|
||||||
Hanno Kranzhoff
|
Hanno Kranzhoff
|
||||||
@@ -349,6 +377,7 @@ Henrik Storner
|
|||||||
Henry Ludemann
|
Henry Ludemann
|
||||||
Herve Amblard
|
Herve Amblard
|
||||||
Hidemoto Nakada
|
Hidemoto Nakada
|
||||||
|
Ho-chi Chen
|
||||||
Hoi-Ho Chan
|
Hoi-Ho Chan
|
||||||
Hongli Lai
|
Hongli Lai
|
||||||
Howard Chu
|
Howard Chu
|
||||||
@@ -385,7 +414,10 @@ James MacMillan
|
|||||||
Jamie Lokier
|
Jamie Lokier
|
||||||
Jamie Newton
|
Jamie Newton
|
||||||
Jamie Wilkinson
|
Jamie Wilkinson
|
||||||
|
Jan Ehrhardt
|
||||||
|
Jan Koen Annot
|
||||||
Jan Kunder
|
Jan Kunder
|
||||||
|
Jan Schaumann
|
||||||
Jan Van Boghout
|
Jan Van Boghout
|
||||||
Jared Lundell
|
Jared Lundell
|
||||||
Jari Sundell
|
Jari Sundell
|
||||||
@@ -402,6 +434,7 @@ Jean-Francois Bertrand
|
|||||||
Jean-Louis Lemaire
|
Jean-Louis Lemaire
|
||||||
Jean-Marc Ranger
|
Jean-Marc Ranger
|
||||||
Jean-Philippe Barrette-LaPierre
|
Jean-Philippe Barrette-LaPierre
|
||||||
|
Jeff Connelly
|
||||||
Jeff Johnson
|
Jeff Johnson
|
||||||
Jeff Lawson
|
Jeff Lawson
|
||||||
Jeff Phillips
|
Jeff Phillips
|
||||||
@@ -409,19 +442,24 @@ Jeff Pohlmeyer
|
|||||||
Jeff Weber
|
Jeff Weber
|
||||||
Jeffrey Pohlmeyer
|
Jeffrey Pohlmeyer
|
||||||
Jeremy Friesner
|
Jeremy Friesner
|
||||||
|
Jeremy Huddleston
|
||||||
Jerome Muffat-Meridol
|
Jerome Muffat-Meridol
|
||||||
Jerome Vouillon
|
Jerome Vouillon
|
||||||
Jerry Wu
|
Jerry Wu
|
||||||
Jes Badwal
|
Jes Badwal
|
||||||
Jesper Jensen
|
Jesper Jensen
|
||||||
Jesse Noller
|
Jesse Noller
|
||||||
|
Jie He
|
||||||
Jim Drash
|
Jim Drash
|
||||||
Jim Freeman
|
Jim Freeman
|
||||||
Jim Hollinger
|
Jim Hollinger
|
||||||
Jim Meyering
|
Jim Meyering
|
||||||
|
Jiri Hruska
|
||||||
|
Jiri Jaburek
|
||||||
Jocelyn Jaubert
|
Jocelyn Jaubert
|
||||||
Joe Halpin
|
Joe Halpin
|
||||||
Joe Malicki
|
Joe Malicki
|
||||||
|
Joe Mason
|
||||||
Joel Chen
|
Joel Chen
|
||||||
Jofell Gallardo
|
Jofell Gallardo
|
||||||
Johan Anderson
|
Johan Anderson
|
||||||
@@ -433,11 +471,14 @@ John Crow
|
|||||||
John Dennis
|
John Dennis
|
||||||
John E. Malmberg
|
John E. Malmberg
|
||||||
John Janssen
|
John Janssen
|
||||||
|
John Joseph Bachir
|
||||||
John Kelly
|
John Kelly
|
||||||
John Lask
|
John Lask
|
||||||
John Lightsey
|
John Lightsey
|
||||||
|
John Marino
|
||||||
John McGowan
|
John McGowan
|
||||||
John P. McCaskey
|
John P. McCaskey
|
||||||
|
John Suprock
|
||||||
John Wilkinson
|
John Wilkinson
|
||||||
John-Mark Bell
|
John-Mark Bell
|
||||||
Johnny Luong
|
Johnny Luong
|
||||||
@@ -450,25 +491,29 @@ Jonas Forsman
|
|||||||
Jonas Schnelli
|
Jonas Schnelli
|
||||||
Jonatan Lander
|
Jonatan Lander
|
||||||
Jonathan Hseu
|
Jonathan Hseu
|
||||||
|
Jonathan Nieder
|
||||||
Jongki Suwandi
|
Jongki Suwandi
|
||||||
Jose Kahan
|
Jose Kahan
|
||||||
Josef Wolf
|
Josef Wolf
|
||||||
Josh Kapell
|
Josh Kapell
|
||||||
Joshua Kwan
|
Joshua Kwan
|
||||||
Josue Andrade Gomes
|
Josue Andrade Gomes
|
||||||
|
Juan Barreto
|
||||||
Juan F. Codagnone
|
Juan F. Codagnone
|
||||||
Juan Ignacio Herv<EFBFBD>s
|
Juan Ignacio Hervás
|
||||||
Judson Bishop
|
Judson Bishop
|
||||||
Juergen Wilke
|
Juergen Wilke
|
||||||
Jukka Pihl
|
Jukka Pihl
|
||||||
Julian Noble
|
Julian Noble
|
||||||
|
Julian Taylor
|
||||||
Julien Chaffraix
|
Julien Chaffraix
|
||||||
Julien Royer
|
Julien Royer
|
||||||
Jun-ichiro itojun Hagino
|
Jun-ichiro itojun Hagino
|
||||||
Jurij Smakov
|
Jurij Smakov
|
||||||
Justin Fletcher
|
Justin Fletcher
|
||||||
J<EFBFBD>rg Mueller-Tolk
|
Jörg Mueller-Tolk
|
||||||
J<EFBFBD>rn Hartroth
|
Jörn Hartroth
|
||||||
|
Kai Engert
|
||||||
Kai Sommerfeld
|
Kai Sommerfeld
|
||||||
Kai-Uwe Rommel
|
Kai-Uwe Rommel
|
||||||
Kalle Vahlman
|
Kalle Vahlman
|
||||||
@@ -494,6 +539,7 @@ Kevin Lussier
|
|||||||
Kevin Reed
|
Kevin Reed
|
||||||
Kevin Roth
|
Kevin Roth
|
||||||
Kim Rinnewitz
|
Kim Rinnewitz
|
||||||
|
Kim Vandry
|
||||||
Kimmo Kinnunen
|
Kimmo Kinnunen
|
||||||
Kjell Ericson
|
Kjell Ericson
|
||||||
Kjetil Jacobsen
|
Kjetil Jacobsen
|
||||||
@@ -502,11 +548,12 @@ Kris Kennaway
|
|||||||
Krishnendu Majumdar
|
Krishnendu Majumdar
|
||||||
Krister Johansen
|
Krister Johansen
|
||||||
Kristian Gunstone
|
Kristian Gunstone
|
||||||
Kristian K<EFBFBD>hntopp
|
Kristian Köhntopp
|
||||||
Kyle Sallee
|
Kyle Sallee
|
||||||
Lachlan O'Dea
|
Lachlan O'Dea
|
||||||
Larry Campbell
|
Larry Campbell
|
||||||
Larry Fahnoe
|
Larry Fahnoe
|
||||||
|
Lars Buitinck
|
||||||
Lars Gustafsson
|
Lars Gustafsson
|
||||||
Lars J. Aas
|
Lars J. Aas
|
||||||
Lars Nilsson
|
Lars Nilsson
|
||||||
@@ -519,11 +566,13 @@ Len Krause
|
|||||||
Lenaic Lefever
|
Lenaic Lefever
|
||||||
Lenny Rachitsky
|
Lenny Rachitsky
|
||||||
Liam Healy
|
Liam Healy
|
||||||
|
Lijo Antony
|
||||||
Linas Vepstas
|
Linas Vepstas
|
||||||
Ling Thio
|
Ling Thio
|
||||||
Linus Nielsen Feltzing
|
Linus Nielsen Feltzing
|
||||||
Lisa Xu
|
Lisa Xu
|
||||||
Liza Alenchery
|
Liza Alenchery
|
||||||
|
Lluís Batlle i Rossell
|
||||||
Loic Dachary
|
Loic Dachary
|
||||||
Loren Kirkby
|
Loren Kirkby
|
||||||
Luca Altea
|
Luca Altea
|
||||||
@@ -540,7 +589,9 @@ Mandy Wu
|
|||||||
Manfred Schwarb
|
Manfred Schwarb
|
||||||
Manuel Massing
|
Manuel Massing
|
||||||
Marc Boucher
|
Marc Boucher
|
||||||
|
Marc Hoersken
|
||||||
Marc Kleine-Budde
|
Marc Kleine-Budde
|
||||||
|
Marcel Raad
|
||||||
Marcel Roelofs
|
Marcel Roelofs
|
||||||
Marcelo Juchem
|
Marcelo Juchem
|
||||||
Marcin Adamski
|
Marcin Adamski
|
||||||
@@ -557,6 +608,9 @@ Mark Eichin
|
|||||||
Mark Incley
|
Mark Incley
|
||||||
Mark Karpeles
|
Mark Karpeles
|
||||||
Mark Lentczner
|
Mark Lentczner
|
||||||
|
Mark Salisbury
|
||||||
|
Mark Snelling
|
||||||
|
Mark Tully
|
||||||
Markus Duft
|
Markus Duft
|
||||||
Markus Koetter
|
Markus Koetter
|
||||||
Markus Moeller
|
Markus Moeller
|
||||||
@@ -566,6 +620,7 @@ Martin C. Martin
|
|||||||
Martin Drasar
|
Martin Drasar
|
||||||
Martin Hager
|
Martin Hager
|
||||||
Martin Hedenfalk
|
Martin Hedenfalk
|
||||||
|
Martin Jansen
|
||||||
Martin Lemke
|
Martin Lemke
|
||||||
Martin Skinner
|
Martin Skinner
|
||||||
Martin Storsjo
|
Martin Storsjo
|
||||||
@@ -576,6 +631,7 @@ Massimo Callegari
|
|||||||
Mateusz Loskot
|
Mateusz Loskot
|
||||||
Mathias Axelsson
|
Mathias Axelsson
|
||||||
Mats Lidell
|
Mats Lidell
|
||||||
|
Matt Arsenault
|
||||||
Matt Kraai
|
Matt Kraai
|
||||||
Matt Veenstra
|
Matt Veenstra
|
||||||
Matt Witherspoon
|
Matt Witherspoon
|
||||||
@@ -589,6 +645,8 @@ Mauro Iorio
|
|||||||
Max Katsev
|
Max Katsev
|
||||||
Maxim Ivanov
|
Maxim Ivanov
|
||||||
Maxim Perenesenko
|
Maxim Perenesenko
|
||||||
|
Maxim Prohorov
|
||||||
|
Maxime Larocque
|
||||||
Mehmet Bozkurt
|
Mehmet Bozkurt
|
||||||
Mekonikum
|
Mekonikum
|
||||||
Mettgut Jamalla
|
Mettgut Jamalla
|
||||||
@@ -596,6 +654,7 @@ Michael Benedict
|
|||||||
Michael Calmer
|
Michael Calmer
|
||||||
Michael Cronenworth
|
Michael Cronenworth
|
||||||
Michael Curtis
|
Michael Curtis
|
||||||
|
Michael Day
|
||||||
Michael Goffioul
|
Michael Goffioul
|
||||||
Michael Jahn
|
Michael Jahn
|
||||||
Michael Jerris
|
Michael Jerris
|
||||||
@@ -606,6 +665,7 @@ Michael Stillwell
|
|||||||
Michael Wallner
|
Michael Wallner
|
||||||
Michal Bonino
|
Michal Bonino
|
||||||
Michal Gorny
|
Michal Gorny
|
||||||
|
Michal Kowalczyk
|
||||||
Michal Marek
|
Michal Marek
|
||||||
Michele Bini
|
Michele Bini
|
||||||
Mihai Ionescu
|
Mihai Ionescu
|
||||||
@@ -623,11 +683,13 @@ Mitz Wark
|
|||||||
Mohamed Lrhazi
|
Mohamed Lrhazi
|
||||||
Mohun Biswas
|
Mohun Biswas
|
||||||
Moonesamy
|
Moonesamy
|
||||||
|
Myk Taylor
|
||||||
Nathan Coulter
|
Nathan Coulter
|
||||||
Nathan O'Sullivan
|
Nathan O'Sullivan
|
||||||
Nathanael Nerode
|
Nathanael Nerode
|
||||||
Naveen Chandran
|
Naveen Chandran
|
||||||
Naveen Noel
|
Naveen Noel
|
||||||
|
Neil Bowers
|
||||||
Neil Dunbar
|
Neil Dunbar
|
||||||
Neil Spring
|
Neil Spring
|
||||||
Nic Roets
|
Nic Roets
|
||||||
@@ -638,7 +700,7 @@ Nick Zitzmann
|
|||||||
Nico Baggus
|
Nico Baggus
|
||||||
Nicolas Berloquin
|
Nicolas Berloquin
|
||||||
Nicolas Croiset
|
Nicolas Croiset
|
||||||
Nicolas Fran<EFBFBD>ois
|
Nicolas François
|
||||||
Niels van Tongeren
|
Niels van Tongeren
|
||||||
Nikita Schmidt
|
Nikita Schmidt
|
||||||
Nikitinskit Dmitriy
|
Nikitinskit Dmitriy
|
||||||
@@ -652,16 +714,22 @@ Nodak Sodak
|
|||||||
Norbert Frese
|
Norbert Frese
|
||||||
Norbert Novotny
|
Norbert Novotny
|
||||||
Ofer
|
Ofer
|
||||||
|
Olaf Flebbe
|
||||||
Olaf Stueben
|
Olaf Stueben
|
||||||
Olaf St<EFBFBD>ben
|
Olaf Stüben
|
||||||
|
Oliver Gondža
|
||||||
|
Olivier Berger
|
||||||
Oren Tirosh
|
Oren Tirosh
|
||||||
Ori Avtalion
|
Ori Avtalion
|
||||||
|
Oscar Koeroo
|
||||||
|
Oscar Norlander
|
||||||
P R Schaffner
|
P R Schaffner
|
||||||
Paolo Piacentini
|
Paolo Piacentini
|
||||||
Pascal Terjan
|
Pascal Terjan
|
||||||
Pasha Kuznetsov
|
Pasha Kuznetsov
|
||||||
Pat Ray
|
Pat Ray
|
||||||
Patrice Guerin
|
Patrice Guerin
|
||||||
|
Patricia Muscalu
|
||||||
Patrick Bihan-Faou
|
Patrick Bihan-Faou
|
||||||
Patrick Monnerat
|
Patrick Monnerat
|
||||||
Patrick Scott
|
Patrick Scott
|
||||||
@@ -701,6 +769,7 @@ Phil Blundell
|
|||||||
Phil Karn
|
Phil Karn
|
||||||
Phil Lisiecki
|
Phil Lisiecki
|
||||||
Phil Pellouchoud
|
Phil Pellouchoud
|
||||||
|
Philip Craig
|
||||||
Philip Gladstone
|
Philip Gladstone
|
||||||
Philip Langdale
|
Philip Langdale
|
||||||
Philippe Hameau
|
Philippe Hameau
|
||||||
@@ -708,7 +777,9 @@ Philippe Raoult
|
|||||||
Philippe Vaucher
|
Philippe Vaucher
|
||||||
Pierre
|
Pierre
|
||||||
Pierre Brico
|
Pierre Brico
|
||||||
|
Pierre Chapuis
|
||||||
Pierre Joye
|
Pierre Joye
|
||||||
|
Pierre Ynard
|
||||||
Pooyan McSporran
|
Pooyan McSporran
|
||||||
Pramod Sharma
|
Pramod Sharma
|
||||||
Puneet Pawaia
|
Puneet Pawaia
|
||||||
@@ -718,6 +789,7 @@ Quinn Slack
|
|||||||
Rafa Muyo
|
Rafa Muyo
|
||||||
Rafael Sagula
|
Rafael Sagula
|
||||||
Rainer Canavan
|
Rainer Canavan
|
||||||
|
Rainer Jung
|
||||||
Rainer Koenig
|
Rainer Koenig
|
||||||
Rajesh Naganathan
|
Rajesh Naganathan
|
||||||
Ralf S. Engelschall
|
Ralf S. Engelschall
|
||||||
@@ -745,6 +817,7 @@ Richard Bramante
|
|||||||
Richard Clayton
|
Richard Clayton
|
||||||
Richard Cooper
|
Richard Cooper
|
||||||
Richard Gorton
|
Richard Gorton
|
||||||
|
Richard Michael
|
||||||
Richard Prescott
|
Richard Prescott
|
||||||
Richard Silverman
|
Richard Silverman
|
||||||
Rick Jones
|
Rick Jones
|
||||||
@@ -754,22 +827,26 @@ Rob Jones
|
|||||||
Rob Stanzel
|
Rob Stanzel
|
||||||
Rob Ward
|
Rob Ward
|
||||||
Robert A. Monat
|
Robert A. Monat
|
||||||
|
Robert B. Harris
|
||||||
Robert D. Young
|
Robert D. Young
|
||||||
Robert Foreman
|
Robert Foreman
|
||||||
Robert Iakobashvili
|
Robert Iakobashvili
|
||||||
Robert Olson
|
Robert Olson
|
||||||
Robert Schumann
|
Robert Schumann
|
||||||
Robert Weaver
|
Robert Weaver
|
||||||
|
Robert Wruck
|
||||||
Robin Cornelius
|
Robin Cornelius
|
||||||
Robin Johnson
|
Robin Johnson
|
||||||
Robin Kay
|
Robin Kay
|
||||||
Robson Braga Araujo
|
Robson Braga Araujo
|
||||||
Rodney Simmons
|
Rodney Simmons
|
||||||
|
Rodrigo Silva
|
||||||
Roland Blom
|
Roland Blom
|
||||||
Roland Krikava
|
Roland Krikava
|
||||||
Roland Zimmermann
|
Roland Zimmermann
|
||||||
Rolland Dudemaine
|
Rolland Dudemaine
|
||||||
Roman Koifman
|
Roman Koifman
|
||||||
|
Roman Mamedov
|
||||||
Ron Zapp
|
Ron Zapp
|
||||||
Rosimildo da Silva
|
Rosimildo da Silva
|
||||||
Roy Shan
|
Roy Shan
|
||||||
@@ -780,23 +857,30 @@ Ryan Chan
|
|||||||
Ryan Nelson
|
Ryan Nelson
|
||||||
Ryan Schmidt
|
Ryan Schmidt
|
||||||
S. Moonesamy
|
S. Moonesamy
|
||||||
Salvador D<EFBFBD>vila
|
Salvador Dávila
|
||||||
Salvatore Sorrentino
|
Salvatore Sorrentino
|
||||||
|
Sam Deane
|
||||||
Sam Listopad
|
Sam Listopad
|
||||||
Sampo Kellomaki
|
Sampo Kellomaki
|
||||||
Samuel D<EFBFBD>az Garc<EFBFBD>a
|
Samuel Díaz García
|
||||||
Samuel Listopad
|
Samuel Listopad
|
||||||
Samuel Thibault
|
Samuel Thibault
|
||||||
Sander Gates
|
Sander Gates
|
||||||
Sandor Feldi
|
Sandor Feldi
|
||||||
|
Santhana Todatry
|
||||||
Saqib Ali
|
Saqib Ali
|
||||||
|
Sara Golemon
|
||||||
|
Saran Neti
|
||||||
Saul good
|
Saul good
|
||||||
|
Scott Bailey
|
||||||
Scott Barrett
|
Scott Barrett
|
||||||
Scott Cantor
|
Scott Cantor
|
||||||
Scott Davis
|
Scott Davis
|
||||||
Scott McCreary
|
Scott McCreary
|
||||||
|
Sebastian Rasmussen
|
||||||
Sebastien Willemijns
|
Sebastien Willemijns
|
||||||
Senthil Raja Velu
|
Senthil Raja Velu
|
||||||
|
Sergei Nikulov
|
||||||
Sergio Ballestrero
|
Sergio Ballestrero
|
||||||
Seshubabu Pasam
|
Seshubabu Pasam
|
||||||
Sh Diao
|
Sh Diao
|
||||||
@@ -816,6 +900,7 @@ Spacen Jasset
|
|||||||
Spiridonoff A.V
|
Spiridonoff A.V
|
||||||
Stadler Stephan
|
Stadler Stephan
|
||||||
Stan van de Burgt
|
Stan van de Burgt
|
||||||
|
Stanislav Ivochkin
|
||||||
Stefan Esser
|
Stefan Esser
|
||||||
Stefan Krause
|
Stefan Krause
|
||||||
Stefan Teleman
|
Stefan Teleman
|
||||||
@@ -836,17 +921,19 @@ Steve Oliphant
|
|||||||
Steve Roskowski
|
Steve Roskowski
|
||||||
Steven Bazyl
|
Steven Bazyl
|
||||||
Steven G. Johnson
|
Steven G. Johnson
|
||||||
|
Steven Gu
|
||||||
Steven M. Schweda
|
Steven M. Schweda
|
||||||
Steven Parkes
|
Steven Parkes
|
||||||
Stoned Elipot
|
Stoned Elipot
|
||||||
Sven Anders
|
Sven Anders
|
||||||
Sven Neuhaus
|
Sven Neuhaus
|
||||||
Sven Wegener
|
Sven Wegener
|
||||||
S<EFBFBD>bastien Willemijns
|
Sébastien Willemijns
|
||||||
T. Bharath
|
T. Bharath
|
||||||
T. Yamada
|
T. Yamada
|
||||||
Taneli Vahakangas
|
Taneli Vahakangas
|
||||||
Tanguy Fautre
|
Tanguy Fautre
|
||||||
|
Tatsuhiro Tsujikawa
|
||||||
Temprimus
|
Temprimus
|
||||||
Thomas J. Moore
|
Thomas J. Moore
|
||||||
Thomas Klausner
|
Thomas Klausner
|
||||||
@@ -860,16 +947,19 @@ Tim Bartley
|
|||||||
Tim Chen
|
Tim Chen
|
||||||
Tim Costello
|
Tim Costello
|
||||||
Tim Harder
|
Tim Harder
|
||||||
|
Tim Heckman
|
||||||
Tim Newsome
|
Tim Newsome
|
||||||
Tim Sneddon
|
Tim Sneddon
|
||||||
Tinus van den Berg
|
Tinus van den Berg
|
||||||
Tobias Rundstr<EFBFBD>m
|
Tobias Rundström
|
||||||
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
|
||||||
|
Tom Grace
|
||||||
Tom Lee
|
Tom Lee
|
||||||
Tom Mattison
|
Tom Mattison
|
||||||
Tom Moers
|
Tom Moers
|
||||||
@@ -877,6 +967,7 @@ Tom Mueller
|
|||||||
Tom Regner
|
Tom Regner
|
||||||
Tom Wright
|
Tom Wright
|
||||||
Tom Zerucha
|
Tom Zerucha
|
||||||
|
Tomas Mlcoch
|
||||||
Tomas Pospisek
|
Tomas Pospisek
|
||||||
Tomas Szepe
|
Tomas Szepe
|
||||||
Tomasz Lacki
|
Tomasz Lacki
|
||||||
@@ -893,7 +984,8 @@ Traian Nicolescu
|
|||||||
Troels Walsted Hansen
|
Troels Walsted Hansen
|
||||||
Troy Engel
|
Troy Engel
|
||||||
Tupone Alfredo
|
Tupone Alfredo
|
||||||
Ulf H<EFBFBD>rnhammar
|
Ulf Härnhammar
|
||||||
|
Ulrich Doehner
|
||||||
Ulrich Zadow
|
Ulrich Zadow
|
||||||
Venkat Akella
|
Venkat Akella
|
||||||
Victor Snezhko
|
Victor Snezhko
|
||||||
@@ -919,15 +1011,19 @@ Wesley Laxton
|
|||||||
Wesley Miaw
|
Wesley Miaw
|
||||||
Wez Furlong
|
Wez Furlong
|
||||||
Wilfredo Sanchez
|
Wilfredo Sanchez
|
||||||
|
Willem Sparreboom
|
||||||
Wojciech Zwiefka
|
Wojciech Zwiefka
|
||||||
Wu Yongzheng
|
Wu Yongzheng
|
||||||
Xavier Bouchoux
|
Xavier Bouchoux
|
||||||
|
Yamada Yasuharu
|
||||||
Yang Tse
|
Yang Tse
|
||||||
Yarram Sunil
|
Yarram Sunil
|
||||||
Yehoshua Hershberg
|
Yehoshua Hershberg
|
||||||
Yukihiro Kawada
|
Yukihiro Kawada
|
||||||
Yuriy Sosov
|
Yuriy Sosov
|
||||||
|
Yves Arrouye
|
||||||
Yves Lejeune
|
Yves Lejeune
|
||||||
|
Zdenek Pavlas
|
||||||
Zmey Petroff
|
Zmey Petroff
|
||||||
Zvi Har'El
|
Zvi Har'El
|
||||||
nk
|
nk
|
||||||
|
356
docs/TODO
356
docs/TODO
@@ -21,8 +21,7 @@
|
|||||||
|
|
||||||
2. libcurl - multi interface
|
2. libcurl - multi interface
|
||||||
2.1 More non-blocking
|
2.1 More non-blocking
|
||||||
2.2 Remove easy interface internally
|
2.2 Fix HTTP Pipelining for PUT
|
||||||
2.4 Fix HTTP Pipelining for PUT
|
|
||||||
|
|
||||||
3. Documentation
|
3. Documentation
|
||||||
3.1 More and better
|
3.1 More and better
|
||||||
@@ -39,6 +38,7 @@
|
|||||||
5.1 Better persistency for HTTP 1.0
|
5.1 Better persistency for HTTP 1.0
|
||||||
5.2 support FF3 sqlite cookie files
|
5.2 support FF3 sqlite cookie files
|
||||||
5.3 Rearrange request header order
|
5.3 Rearrange request header order
|
||||||
|
5.4 HTTP2/SPDY
|
||||||
|
|
||||||
6. TELNET
|
6. TELNET
|
||||||
6.1 ditch stdin
|
6.1 ditch stdin
|
||||||
@@ -46,61 +46,79 @@
|
|||||||
6.3 feature negotiation debug data
|
6.3 feature negotiation debug data
|
||||||
6.4 send data in chunks
|
6.4 send data in chunks
|
||||||
|
|
||||||
7. SSL
|
7. SMTP
|
||||||
7.1 Disable specific versions
|
7.1 Pipelining
|
||||||
7.2 Provide mutex locking API
|
7.2 Graceful base64 decoding failure
|
||||||
7.3 Evaluate SSL patches
|
7.3 Enhanced capability support
|
||||||
7.4 Cache OpenSSL contexts
|
|
||||||
7.5 Export session ids
|
|
||||||
7.6 Provide callback for cert verification
|
|
||||||
7.7 Support other SSL libraries
|
|
||||||
7.9 improve configure --with-ssl
|
|
||||||
|
|
||||||
8. GnuTLS
|
8. POP3
|
||||||
8.1 SSL engine stuff
|
8.1 Pipelining
|
||||||
8.3 check connection
|
8.2 Graceful base64 decoding failure
|
||||||
8.4 non-gcrypt
|
8.3 Enhanced capability support
|
||||||
|
|
||||||
9. Other protocols
|
9. IMAP
|
||||||
|
9.1 Graceful base64 decoding failure
|
||||||
|
9.2 Enhanced capability support
|
||||||
|
|
||||||
10. New protocols
|
10. LDAP
|
||||||
10.1 RSYNC
|
10.1 SASL based authentication mechanisms
|
||||||
|
|
||||||
11. Client
|
11. New protocols
|
||||||
11.1 sync
|
11.1 RSYNC
|
||||||
11.2 glob posts
|
|
||||||
11.3 prevent file overwriting
|
|
||||||
11.4 simultaneous parallel transfers
|
|
||||||
11.5 provide formpost headers
|
|
||||||
11.6 url-specific options
|
|
||||||
11.7 metalink support
|
|
||||||
11.8 warning when setting an option
|
|
||||||
11.9 IPv6 addresses with globbing
|
|
||||||
|
|
||||||
12. Build
|
12. SSL
|
||||||
12.1 roffit
|
12.1 Disable specific versions
|
||||||
|
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 Support other SSL libraries
|
||||||
|
12.8 improve configure --with-ssl
|
||||||
|
12.9 Support DANE
|
||||||
|
|
||||||
13. Test suite
|
13. GnuTLS
|
||||||
13.1 SSL tunnel
|
13.1 SSL engine stuff
|
||||||
13.2 nicer lacking perl message
|
13.2 check connection
|
||||||
13.3 more protocols supported
|
|
||||||
13.4 more platforms supported
|
|
||||||
|
|
||||||
14. Next SONAME bump
|
14. SASL
|
||||||
14.1 http-style HEAD output for ftp
|
14.1 Other authentication mechanisms
|
||||||
14.2 combine error codes
|
|
||||||
14.3 extend CURLOPT_SOCKOPTFUNCTION prototype
|
|
||||||
|
|
||||||
15. Next major release
|
15. Client
|
||||||
15.1 cleanup return codes
|
15.1 sync
|
||||||
15.2 remove obsolete defines
|
15.2 glob posts
|
||||||
15.3 size_t
|
15.3 prevent file overwriting
|
||||||
15.4 remove several functions
|
15.4 simultaneous parallel transfers
|
||||||
15.5 remove CURLOPT_FAILONERROR
|
15.5 provide formpost headers
|
||||||
15.6 remove CURLOPT_DNS_USE_GLOBAL_CACHE
|
15.6 url-specific options
|
||||||
15.7 remove progress meter from libcurl
|
15.7 warning when setting an option
|
||||||
15.8 remove 'curl_httppost' from public
|
15.8 IPv6 addresses with globbing
|
||||||
15.9 have form functions use CURL handle argument
|
|
||||||
|
16. Build
|
||||||
|
16.1 roffit
|
||||||
|
|
||||||
|
17. Test suite
|
||||||
|
17.1 SSL tunnel
|
||||||
|
17.2 nicer lacking perl message
|
||||||
|
17.3 more protocols supported
|
||||||
|
17.4 more platforms supported
|
||||||
|
|
||||||
|
18. Next SONAME bump
|
||||||
|
18.1 http-style HEAD output for ftp
|
||||||
|
18.2 combine error codes
|
||||||
|
18.3 extend CURLOPT_SOCKOPTFUNCTION prototype
|
||||||
|
|
||||||
|
19. Next major release
|
||||||
|
19.1 cleanup return codes
|
||||||
|
19.2 remove obsolete defines
|
||||||
|
19.3 size_t
|
||||||
|
19.4 remove several functions
|
||||||
|
19.5 remove CURLOPT_FAILONERROR
|
||||||
|
19.6 remove CURLOPT_DNS_USE_GLOBAL_CACHE
|
||||||
|
19.7 remove progress meter from libcurl
|
||||||
|
19.8 remove 'curl_httppost' from public
|
||||||
|
19.9 have form functions use CURL handle argument
|
||||||
|
19.10 Add CURLOPT_MAIL_CLIENT option
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
|
|
||||||
@@ -158,8 +176,7 @@
|
|||||||
To make libcurl do blazing fast IPv6 in a dual-stack configuration, this needs
|
To make libcurl do blazing fast IPv6 in a dual-stack configuration, this needs
|
||||||
to be addressed:
|
to be addressed:
|
||||||
|
|
||||||
http://tools.ietf.org/html/draft-ietf-v6ops-happy-eyeballs-07
|
http://tools.ietf.org/html/rfc6555
|
||||||
|
|
||||||
|
|
||||||
2. libcurl - multi interface
|
2. libcurl - multi interface
|
||||||
|
|
||||||
@@ -177,16 +194,7 @@
|
|||||||
- 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 Remove easy interface internally
|
2.2 Fix HTTP Pipelining for PUT
|
||||||
|
|
||||||
Make curl_easy_perform() a wrapper-function that simply creates a multi
|
|
||||||
handle, adds the easy handle to it, runs curl_multi_perform() until the
|
|
||||||
transfer is done, then detach the easy handle, destroy the multi handle and
|
|
||||||
return the easy handle's return code. This will thus make everything
|
|
||||||
internally use and assume the multi interface. The select()-loop should use
|
|
||||||
curl_multi_socket().
|
|
||||||
|
|
||||||
2.4 Fix HTTP Pipelining for PUT
|
|
||||||
|
|
||||||
HTTP Pipelining can be a way to greatly enhance performance for multiple
|
HTTP Pipelining can be a way to greatly enhance performance for multiple
|
||||||
serial requests and currently libcurl only supports that for HEAD and GET
|
serial requests and currently libcurl only supports that for HEAD and GET
|
||||||
@@ -261,6 +269,24 @@
|
|||||||
headers use a default value so only headers that need to be moved have to be
|
headers use a default value so only headers that need to be moved have to be
|
||||||
specified.
|
specified.
|
||||||
|
|
||||||
|
5.4 HTTP2/SPDY
|
||||||
|
|
||||||
|
The first drafts for HTTP2 have been published
|
||||||
|
(http://tools.ietf.org/html/draft-ietf-httpbis-http2-03) and is so far based
|
||||||
|
on SPDY (http://www.chromium.org/spdy) designs and experiences. Chances are
|
||||||
|
it will end up in that style. Chrome and Firefox already support SPDY and
|
||||||
|
lots of web services do.
|
||||||
|
|
||||||
|
It would make sense to implement SPDY support now and later transition into
|
||||||
|
or add HTTP2 support as well.
|
||||||
|
|
||||||
|
We should base or HTTP2/SPDY work on a 3rd party library for the protocol
|
||||||
|
fiddling. The Spindy library (http://spindly.haxx.se/) was an attempt to make
|
||||||
|
such a library with an API suitable for use by libcurl but that effort has
|
||||||
|
more or less stalled. spdylay (https://github.com/tatsuhiro-t/spdylay) may
|
||||||
|
be a better option, either used directly or wrapped with a more spindly-like
|
||||||
|
API.
|
||||||
|
|
||||||
|
|
||||||
6. TELNET
|
6. TELNET
|
||||||
|
|
||||||
@@ -286,25 +312,92 @@ to provide the data to send.
|
|||||||
use, but inefficient for any other. Sent data should be sent in larger
|
use, but inefficient for any other. Sent data should be sent in larger
|
||||||
chunks.
|
chunks.
|
||||||
|
|
||||||
7. SSL
|
7. SMTP
|
||||||
|
|
||||||
7.1 Disable specific versions
|
7.1 Pipelining
|
||||||
|
|
||||||
|
Add support for pipelining emails.
|
||||||
|
|
||||||
|
7.2 Graceful base64 decoding failure
|
||||||
|
|
||||||
|
Rather than shutting down the session and returning an error when the
|
||||||
|
decoding of a base64 encoded authentication response fails, we should
|
||||||
|
gracefully shutdown the authentication process by sending a * response to the
|
||||||
|
server as per RFC4954.
|
||||||
|
|
||||||
|
7.3 Enhanced capability support
|
||||||
|
|
||||||
|
Add the ability, for an application that uses libcurl, to obtain the list of
|
||||||
|
capabilities returned from the EHLO command.
|
||||||
|
|
||||||
|
8. POP3
|
||||||
|
|
||||||
|
8.1 Pipelining
|
||||||
|
|
||||||
|
Add support for pipelining commands.
|
||||||
|
|
||||||
|
8.2 Graceful base64 decoding failure
|
||||||
|
|
||||||
|
Rather than shutting down the session and returning an error when the
|
||||||
|
decoding of a base64 encoded authentication response fails, we should
|
||||||
|
gracefully shutdown the authentication process by sending a * response to the
|
||||||
|
server as per RFC5034.
|
||||||
|
|
||||||
|
8.3 Enhanced capability support
|
||||||
|
|
||||||
|
Add the ability, for an application that uses libcurl, to obtain the list of
|
||||||
|
capabilities returned from the CAPA command.
|
||||||
|
|
||||||
|
9. IMAP
|
||||||
|
|
||||||
|
9.1 Graceful base64 decoding failure
|
||||||
|
|
||||||
|
Rather than shutting down the session and returning an error when the
|
||||||
|
decoding of a base64 encoded authentication response fails, we should
|
||||||
|
gracefully shutdown the authentication process by sending a * response to the
|
||||||
|
server as per RFC3501.
|
||||||
|
|
||||||
|
9.2 Enhanced capability support
|
||||||
|
|
||||||
|
Add the ability, for an application that uses libcurl, to obtain the list of
|
||||||
|
capabilities returned from the CAPABILITY command.
|
||||||
|
|
||||||
|
10. LDAP
|
||||||
|
|
||||||
|
10.1 SASL based authentication mechanisms
|
||||||
|
|
||||||
|
Currently the LDAP module only supports ldap_simple_bind_s() in order to bind
|
||||||
|
to an LDAP server. However, this function sends username and password details
|
||||||
|
using the simple authentication mechanism (as clear text). However, it should
|
||||||
|
be possible to use ldap_bind_s() instead specifing the security context
|
||||||
|
information ourselves.
|
||||||
|
|
||||||
|
11. New protocols
|
||||||
|
|
||||||
|
11.1 RSYNC
|
||||||
|
|
||||||
|
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.
|
||||||
|
|
||||||
|
12. SSL
|
||||||
|
|
||||||
|
12.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 http://curl.haxx.se/bug/feature.cgi?id=1767276
|
||||||
|
|
||||||
7.2 Provide mutex locking API
|
12.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.
|
||||||
|
|
||||||
7.3 Evaluate SSL patches
|
12.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
|
http://curl.haxx.se/mail/lib-2004-03/0087.html
|
||||||
|
|
||||||
7.4 Cache OpenSSL contexts
|
12.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
|
||||||
@@ -314,7 +407,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.
|
||||||
|
|
||||||
7.5 Export session ids
|
12.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
|
||||||
@@ -322,56 +415,54 @@ 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".
|
||||||
|
|
||||||
7.6 Provide callback for cert verification
|
12.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!
|
||||||
|
|
||||||
7.7 Support other SSL libraries
|
12.7 Support other SSL libraries
|
||||||
|
|
||||||
Make curl's SSL layer capable of using other free SSL libraries. Such as
|
Make curl's SSL layer capable of using other free SSL libraries. Such as
|
||||||
MatrixSSL (http://www.matrixssl.org/).
|
MatrixSSL (http://www.matrixssl.org/).
|
||||||
|
|
||||||
7.9 improve configure --with-ssl
|
12.8 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...
|
||||||
|
|
||||||
8. GnuTLS
|
12.9 Support DANE
|
||||||
|
|
||||||
8.1 SSL engine stuff
|
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.
|
||||||
|
http://www.rfc-editor.org/rfc/rfc6698.txt
|
||||||
|
|
||||||
|
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
|
||||||
|
approach. See Daniel's comments:
|
||||||
|
http://curl.haxx.se/mail/lib-2013-03/0103.html . libunbound may be the
|
||||||
|
correct library to base this development on.
|
||||||
|
|
||||||
|
13. GnuTLS
|
||||||
|
|
||||||
|
13.1 SSL engine stuff
|
||||||
|
|
||||||
Is this even possible?
|
Is this even possible?
|
||||||
|
|
||||||
8.3 check connection
|
13.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.
|
||||||
|
|
||||||
8.4 non-gcrypt
|
14. SASL
|
||||||
|
|
||||||
libcurl assumes that there are gcrypt functions available when
|
14.1 Other authentication mechanisms
|
||||||
GnuTLS is.
|
|
||||||
|
|
||||||
GnuTLS can be built to use libnettle instead as crypto library,
|
Add support for GSSAPI to SMTP, POP3 and IMAP.
|
||||||
which breaks the previously mentioned assumption
|
|
||||||
|
|
||||||
The correct fix would be to detect which crypto layer that is in use and
|
15. Client
|
||||||
adapt our code to use that instead of blindly assuming gcrypt.
|
|
||||||
|
|
||||||
9. Other protocols
|
15.1 sync
|
||||||
|
|
||||||
10. New protocols
|
|
||||||
|
|
||||||
10.1 RSYNC
|
|
||||||
|
|
||||||
There's no RFC for protocol nor URI/URL format. An implementation should
|
|
||||||
most probably use an existing rsync library, such as librsync.
|
|
||||||
|
|
||||||
11. Client
|
|
||||||
|
|
||||||
11.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"
|
||||||
@@ -380,12 +471,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.
|
||||||
|
|
||||||
11.2 glob posts
|
15.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.
|
||||||
|
|
||||||
11.3 prevent file overwriting
|
15.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
|
||||||
@@ -393,14 +484,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.
|
||||||
|
|
||||||
11.4 simultaneous parallel transfers
|
15.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. http://curl.haxx.se/bug/feature.cgi?id=1558595
|
||||||
|
|
||||||
11.5 provide formpost headers
|
15.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
|
||||||
@@ -414,7 +505,7 @@ 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...)
|
||||||
|
|
||||||
11.6 url-specific options
|
15.6 url-specific options
|
||||||
|
|
||||||
Provide a way to make options bound to a specific URL among several on the
|
Provide a way to make options bound to a specific URL among several on the
|
||||||
command line. Possibly by letting ':' separate options between URLs,
|
command line. Possibly by letting ':' separate options between URLs,
|
||||||
@@ -428,62 +519,57 @@ to provide the data to send.
|
|||||||
|
|
||||||
The example would do a POST-GET-POST combination on a single command line.
|
The example would do a POST-GET-POST combination on a single command line.
|
||||||
|
|
||||||
11.7 metalink support
|
15.7 warning when setting an option
|
||||||
|
|
||||||
Add metalink support to curl (http://www.metalinker.org/). This is most useful
|
|
||||||
with simultaneous parallel transfers (11.6) but not necessary.
|
|
||||||
|
|
||||||
11.8 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.
|
||||||
|
|
||||||
11.9 IPv6 addresses with globbing
|
15.8 IPv6 addresses with globbing
|
||||||
|
|
||||||
Currently the command line client needs to get url globbing disabled (with
|
Currently the command line client needs to get url globbing disabled (with
|
||||||
-g) for it to support IPv6 numerical addresses. This is a rather silly flaw
|
-g) for it to support IPv6 numerical addresses. This is a rather silly flaw
|
||||||
that should be corrected. It probably involves a smarter detection of the
|
that should be corrected. It probably involves a smarter detection of the
|
||||||
'[' and ']' letters.
|
'[' and ']' letters.
|
||||||
|
|
||||||
12. Build
|
16. Build
|
||||||
|
|
||||||
12.1 roffit
|
16.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/hugehelp.c
|
instead of (g)nroff when building src/tool_hugehelp.c
|
||||||
|
|
||||||
13. Test suite
|
17. Test suite
|
||||||
|
|
||||||
13.1 SSL tunnel
|
17.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
|
||||||
|
|
||||||
13.2 nicer lacking perl message
|
17.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.
|
||||||
|
|
||||||
13.3 more protocols supported
|
17.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).
|
||||||
|
|
||||||
13.4 more platforms supported
|
17.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.
|
||||||
|
|
||||||
14. Next SONAME bump
|
18. Next SONAME bump
|
||||||
|
|
||||||
14.1 http-style HEAD output for ftp
|
18.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
|
||||||
|
|
||||||
14.2 combine error codes
|
18.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
|
||||||
@@ -493,37 +579,44 @@ to provide the data to send.
|
|||||||
Candidates for removal and their replacements:
|
Candidates for removal and their replacements:
|
||||||
|
|
||||||
CURLE_FILE_COULDNT_READ_FILE => CURLE_REMOTE_FILE_NOT_FOUND
|
CURLE_FILE_COULDNT_READ_FILE => CURLE_REMOTE_FILE_NOT_FOUND
|
||||||
|
|
||||||
CURLE_FTP_COULDNT_RETR_FILE => CURLE_REMOTE_FILE_NOT_FOUND
|
CURLE_FTP_COULDNT_RETR_FILE => CURLE_REMOTE_FILE_NOT_FOUND
|
||||||
|
|
||||||
CURLE_FTP_COULDNT_USE_REST => CURLE_RANGE_ERROR
|
CURLE_FTP_COULDNT_USE_REST => CURLE_RANGE_ERROR
|
||||||
|
|
||||||
CURLE_FUNCTION_NOT_FOUND => CURLE_FAILED_INIT
|
CURLE_FUNCTION_NOT_FOUND => CURLE_FAILED_INIT
|
||||||
|
|
||||||
CURLE_LDAP_INVALID_URL => CURLE_URL_MALFORMAT
|
CURLE_LDAP_INVALID_URL => CURLE_URL_MALFORMAT
|
||||||
|
|
||||||
CURLE_TFTP_NOSUCHUSER => CURLE_TFTP_ILLEGAL
|
CURLE_TFTP_NOSUCHUSER => CURLE_TFTP_ILLEGAL
|
||||||
|
|
||||||
CURLE_TFTP_NOTFOUND => CURLE_REMOTE_FILE_NOT_FOUND
|
CURLE_TFTP_NOTFOUND => CURLE_REMOTE_FILE_NOT_FOUND
|
||||||
|
|
||||||
CURLE_TFTP_PERM => CURLE_REMOTE_ACCESS_DENIED
|
CURLE_TFTP_PERM => CURLE_REMOTE_ACCESS_DENIED
|
||||||
|
|
||||||
14.3 extend CURLOPT_SOCKOPTFUNCTION prototype
|
18.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.
|
||||||
|
|
||||||
15. Next major release
|
10. Next major release
|
||||||
|
|
||||||
15.1 cleanup return codes
|
19.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.
|
||||||
|
|
||||||
15.2 remove obsolete defines
|
19.2 remove obsolete defines
|
||||||
|
|
||||||
remove obsolete defines from curl/curl.h
|
remove obsolete defines from curl/curl.h
|
||||||
|
|
||||||
15.3 size_t
|
19.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
|
||||||
|
|
||||||
15.4 remove several functions
|
19.4 remove several functions
|
||||||
|
|
||||||
remove the following functions from the public API:
|
remove the following functions from the public API:
|
||||||
|
|
||||||
@@ -544,18 +637,18 @@ to provide the data to send.
|
|||||||
|
|
||||||
curl_multi_socket_all
|
curl_multi_socket_all
|
||||||
|
|
||||||
15.5 remove CURLOPT_FAILONERROR
|
19.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.
|
||||||
|
|
||||||
15.6 remove CURLOPT_DNS_USE_GLOBAL_CACHE
|
19.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".
|
||||||
|
|
||||||
15.7 remove progress meter from libcurl
|
19.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
|
||||||
@@ -565,7 +658,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.
|
||||||
|
|
||||||
15.8 remove 'curl_httppost' from public
|
19.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
|
||||||
@@ -574,10 +667,21 @@ 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 maintining a solid API and ABI.
|
allow us much greater freedoms while still maintining a solid API and ABI.
|
||||||
|
|
||||||
15.9 have form functions use CURL handle argument
|
19.9 have form functions use CURL handle argument
|
||||||
|
|
||||||
curl_formadd() and curl_formget() both currently have no CURL handle
|
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
|
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
|
thus curl_formget() with callback cannot function without first having
|
||||||
curl_easy_perform() (or similar) called - which is hard to grasp and a design
|
curl_easy_perform() (or similar) called - which is hard to grasp and a design
|
||||||
mistake.
|
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
|
||||||
|
specifing 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
|
||||||
|
|
||||||
|
@@ -5,7 +5,7 @@
|
|||||||
.\" * | (__| |_| | _ <| |___
|
.\" * | (__| |_| | _ <| |___
|
||||||
.\" * \___|\___/|_| \_\_____|
|
.\" * \___|\___/|_| \_\_____|
|
||||||
.\" *
|
.\" *
|
||||||
.\" * Copyright (C) 1998 - 2010, Daniel Stenberg, <daniel@haxx.se>, et al.
|
.\" * Copyright (C) 1998 - 2012, 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
|
||||||
@@ -93,7 +93,6 @@ What's the installed libcurl version?
|
|||||||
|
|
||||||
How do I build a single file with a one-line command?
|
How do I build a single file with a one-line command?
|
||||||
|
|
||||||
$ `curl-config --cc --cflags --libs` -o example example.c
|
$ `curl-config --cc --cflags` -o example example.c `curl-config --libs`
|
||||||
|
|
||||||
.SH "SEE ALSO"
|
.SH "SEE ALSO"
|
||||||
.BR curl (1)
|
.BR curl (1)
|
||||||
|
432
docs/curl.1
432
docs/curl.1
@@ -5,7 +5,7 @@
|
|||||||
.\" * | (__| |_| | _ <| |___
|
.\" * | (__| |_| | _ <| |___
|
||||||
.\" * \___|\___/|_| \_\_____|
|
.\" * \___|\___/|_| \_\_____|
|
||||||
.\" *
|
.\" *
|
||||||
.\" * Copyright (C) 1998 - 2012, Daniel Stenberg, <daniel@haxx.se>, et al.
|
.\" * Copyright (C) 1998 - 2013, 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
|
||||||
@@ -20,7 +20,7 @@
|
|||||||
.\" *
|
.\" *
|
||||||
.\" **************************************************************************
|
.\" **************************************************************************
|
||||||
.\"
|
.\"
|
||||||
.TH curl 1 "16 February 2012" "Curl 7.25.0" "Curl Manual"
|
.TH curl 1 "27 July 2012" "Curl 7.27.0" "Curl Manual"
|
||||||
.SH NAME
|
.SH NAME
|
||||||
curl \- transfer a URL
|
curl \- transfer a URL
|
||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
@@ -35,8 +35,8 @@ 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
|
||||||
resume and more. As you will see below, the number of features will make your
|
resume, Metalink, and more. As you will see below, the number of features will
|
||||||
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)
|
.BR libcurl (3)
|
||||||
@@ -79,14 +79,14 @@ curl will do its best to use what you pass to it as a URL. It is not trying to
|
|||||||
validate it as a syntactically correct URL by any means but is instead
|
validate it as a syntactically correct URL by any means but is instead
|
||||||
\fBvery\fP liberal with what it accepts.
|
\fBvery\fP liberal with what it accepts.
|
||||||
|
|
||||||
Curl will attempt to re-use connections for multiple file transfers, so that
|
curl will attempt to re-use connections for multiple file transfers, so that
|
||||||
getting many files from the same server will not do multiple connects /
|
getting many files from the same server will not do multiple connects /
|
||||||
handshakes. This improves speed. Of course this is only done on files
|
handshakes. This improves speed. Of course this is only done on files
|
||||||
specified on a single command line and cannot be used between separate curl
|
specified on a single command line and cannot be used between separate curl
|
||||||
invokes.
|
invokes.
|
||||||
.SH "PROGRESS METER"
|
.SH "PROGRESS METER"
|
||||||
curl normally displays a progress meter during operations, indicating the amount
|
curl normally displays a progress meter during operations, indicating the
|
||||||
of transferred data, transfer speeds and estimated time left, etc.
|
amount of transferred data, transfer speeds and estimated time left, etc.
|
||||||
|
|
||||||
curl displays this data to the terminal by default, so if you invoke curl to
|
curl displays this data to the terminal by default, so if you invoke curl to
|
||||||
do an operation and it is about to write data to the terminal, it
|
do an operation and it is about to write data to the terminal, it
|
||||||
@@ -103,7 +103,7 @@ 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
|
||||||
In general, all boolean options are enabled with --option and yet again
|
In general, all boolean options are enabled with --\fBoption\fP and yet again
|
||||||
disabled with --\fBno-\fPoption. That is, you use the exact same option name
|
disabled with --\fBno-\fPoption. That is, you use the exact same option name
|
||||||
but prefix it with "no-". However, in this list we mostly only list and show
|
but prefix it with "no-". However, in this list we mostly only list and show
|
||||||
the --option version of them. (This concept with --no options was added in
|
the --option version of them. (This concept with --no options was added in
|
||||||
@@ -125,14 +125,13 @@ Forces curl to use SSL version 2 when negotiating with a remote SSL server.
|
|||||||
(SSL)
|
(SSL)
|
||||||
Forces curl to use SSL version 3 when negotiating with a remote SSL server.
|
Forces curl to use SSL version 3 when negotiating with a remote SSL server.
|
||||||
.IP "-4, --ipv4"
|
.IP "-4, --ipv4"
|
||||||
If libcurl is capable of resolving an address to multiple IP versions (which
|
If curl is capable of resolving an address to multiple IP versions (which it
|
||||||
it is if it is IPv6-capable), this option tells libcurl to resolve names to
|
is if it is IPv6-capable), this option tells curl to resolve names to IPv4
|
||||||
IPv4 addresses only.
|
addresses only.
|
||||||
.IP "-6, --ipv6"
|
.IP "-6, --ipv6"
|
||||||
If libcurl is capable of resolving an address to multiple IP versions (which
|
If curl is capable of resolving an address to multiple IP versions (which it
|
||||||
it is if it is IPv6-capable), this option tells libcurl to resolve names to
|
is if it is IPv6-capable), this option tells curl to resolve names to IPv6
|
||||||
IPv6 addresses only.
|
addresses only.
|
||||||
default statistics.
|
|
||||||
.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 will tell curl to append to the target
|
||||||
file instead of overwriting it. If the file doesn't exist, it will be created.
|
file instead of overwriting it. If the file doesn't exist, it will be created.
|
||||||
@@ -143,8 +142,7 @@ done CGIs fail if this field isn't set to "Mozilla/4.0". To encode blanks in
|
|||||||
the string, surround the string with single quote marks. This can also be set
|
the string, surround the string with single quote marks. This can also be set
|
||||||
with the \fI-H, --header\fP option of course.
|
with the \fI-H, --header\fP option of course.
|
||||||
|
|
||||||
If this option is set more than once, the last one will be the one that's
|
If this option is used several times, the last one will be used.
|
||||||
used.
|
|
||||||
.IP "--anyauth"
|
.IP "--anyauth"
|
||||||
(HTTP) Tells curl to figure out authentication method by itself, and use the
|
(HTTP) Tells curl to figure out authentication method by itself, and use the
|
||||||
most secure one the remote site claims to support. This is done by first
|
most secure one the remote site claims to support. This is done by first
|
||||||
@@ -176,10 +174,9 @@ input. No cookies will be stored in the file. To store cookies, use the
|
|||||||
\fI-c, --cookie-jar\fP option or you could even save the HTTP headers to a file
|
\fI-c, --cookie-jar\fP option or you could even save the HTTP headers to a file
|
||||||
using \fI-D, --dump-header\fP!
|
using \fI-D, --dump-header\fP!
|
||||||
|
|
||||||
If this option is set more than once, the last one will be the one that's
|
If this option is used several times, the last one will be used.
|
||||||
used.
|
|
||||||
.IP "-B, --use-ascii"
|
.IP "-B, --use-ascii"
|
||||||
Enable ASCII transfer when using FTP or LDAP. For FTP, this can also be
|
(FTP/LDAP) Enable ASCII transfer. For FTP, this can also be
|
||||||
enforced by using an URL that ends with ";type=A". This option causes data
|
enforced by using an URL that ends with ";type=A". This option causes data
|
||||||
sent to stdout to be in text mode for win32 systems.
|
sent to stdout to be in text mode for win32 systems.
|
||||||
.IP "--basic"
|
.IP "--basic"
|
||||||
@@ -188,12 +185,12 @@ this option is usually pointless, unless you use it to override a previously
|
|||||||
set option that sets a different authentication method (such as \fI--ntlm\fP,
|
set option that sets a different authentication method (such as \fI--ntlm\fP,
|
||||||
\fI--digest\fP, or \fI--negotiate\fP).
|
\fI--digest\fP, or \fI--negotiate\fP).
|
||||||
.IP "-c, --cookie-jar <file name>"
|
.IP "-c, --cookie-jar <file name>"
|
||||||
Specify to which file you want curl to write all cookies after a completed
|
(HTTP) Specify to which file you want curl to write all cookies after a
|
||||||
operation. Curl writes all cookies previously read from a specified file as
|
completed operation. Curl writes all cookies previously read from a specified
|
||||||
well as all cookies received from remote server(s). If no cookies are known,
|
file as well as all cookies received from remote server(s). If no cookies are
|
||||||
no file will be written. The file will be written using the Netscape cookie
|
known, no file will be written. The file will be written using the Netscape
|
||||||
file format. If you set the file name to a single dash, "-", the cookies will
|
cookie file format. If you set the file name to a single dash, "-", the
|
||||||
be written to stdout.
|
cookies will be written to stdout.
|
||||||
|
|
||||||
This command line option will activate the cookie engine that makes curl
|
This command line option will activate the cookie engine that makes curl
|
||||||
record and use cookies. Another way to activate it is to use the \fI-b,
|
record and use cookies. Another way to activate it is to use the \fI-b,
|
||||||
@@ -221,13 +218,13 @@ If this option is used several times, the last one will be used.
|
|||||||
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
|
\fIhttp://www.openssl.org/docs/apps/ciphers.html\fP
|
||||||
|
|
||||||
NSS ciphers are done differently than OpenSSL and GnuTLS. The full list of
|
NSS ciphers are done differently than OpenSSL and GnuTLS. The full list of NSS
|
||||||
NSS ciphers is in the NSSCipherSuite entry at this URL:
|
ciphers is in the NSSCipherSuite entry at this URL:
|
||||||
\fIhttp://directory.fedora.redhat.com/docs/mod_nss.html#Directives\fP
|
\fIhttp://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 override the others.
|
If this option is used several times, the last one will be used.
|
||||||
.IP "--compressed"
|
.IP "--compressed"
|
||||||
(HTTP) Request a compressed response using one of the algorithms libcurl
|
(HTTP) Request a compressed response using one of the algorithms curl
|
||||||
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>"
|
||||||
@@ -237,10 +234,10 @@ of no more use. 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"
|
||||||
When used in conjunction with the -o option, curl will create the necessary
|
When used in conjunction with the \fI-o\fP option, curl will create the
|
||||||
local directory hierarchy as needed. This option creates the dirs mentioned
|
necessary local directory hierarchy as needed. This option creates the dirs
|
||||||
with the -o option, nothing else. If the -o file name uses no dir or if the
|
mentioned with the \fI-o\fP option, nothing else. If the \fI-o\fP file name
|
||||||
dirs it mentions already exist, no dir will be created.
|
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.
|
||||||
@@ -277,7 +274,7 @@ specified. Posting data from a file named 'foobar' would thus be done with
|
|||||||
.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 a 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 however a better way to store cookies.
|
||||||
@@ -285,8 +282,10 @@ curl invocation by using the \fI-b, --cookie\fP option! The
|
|||||||
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. IP
|
If this option is used several times, the last one will be used.
|
||||||
"--data-ascii <data>" See \fI-d, --data\fP.
|
|
||||||
|
.IP "--data-ascii <data>"
|
||||||
|
See \fI-d, --data\fP.
|
||||||
.IP "--data-binary <data>"
|
.IP "--data-binary <data>"
|
||||||
(HTTP) This posts data exactly as specified with no extra processing
|
(HTTP) This posts data exactly as specified with no extra processing
|
||||||
whatsoever.
|
whatsoever.
|
||||||
@@ -337,21 +336,20 @@ service ticket, which is a matter of realm policy.
|
|||||||
Unconditionally allow the server to delegate.
|
Unconditionally allow the server to delegate.
|
||||||
.RE
|
.RE
|
||||||
.IP "--digest"
|
.IP "--digest"
|
||||||
(HTTP) Enables HTTP Digest authentication. This is a authentication that
|
(HTTP) Enables HTTP Digest authentication. This is an authentication scheme
|
||||||
prevents the password from being sent over the wire in clear text. Use this in
|
that prevents the password from being sent over the wire in clear text. Use
|
||||||
combination with the normal \fI-u, --user\fP option to set user name and
|
this in combination with the normal \fI-u, --user\fP option to set user name
|
||||||
password. See also \fI--ntlm\fP, \fI--negotiate\fP and \fI--anyauth\fP for
|
and password. See also \fI--ntlm\fP, \fI--negotiate\fP and \fI--anyauth\fP for
|
||||||
related options.
|
related options.
|
||||||
|
|
||||||
If this option is used several times, the following occurrences make no
|
If this option is used several times, only the first one is used.
|
||||||
difference.
|
|
||||||
.IP "--disable-eprt"
|
.IP "--disable-eprt"
|
||||||
(FTP) Tell curl to disable the use of the EPRT and LPRT commands when doing
|
(FTP) Tell curl to disable the use of the EPRT and LPRT commands when doing
|
||||||
active FTP transfers. Curl will normally always first attempt to use EPRT,
|
active FTP transfers. Curl will normally always first attempt to use EPRT,
|
||||||
then LPRT before using PORT, but with this option, it will use PORT right
|
then LPRT before using PORT, but with this option, it will use PORT right
|
||||||
away. EPRT and LPRT are extensions to the original FTP protocol, and may not work
|
away. EPRT and LPRT are extensions to the original FTP protocol, and may not
|
||||||
on all servers, but they enable more functionality in a better way than the
|
work on all servers, but they enable more functionality in a better way than
|
||||||
traditional PORT command.
|
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.
|
||||||
@@ -390,7 +388,12 @@ curl the nickname of the certificate to use within the NSS database defined
|
|||||||
by the environment variable SSL_DIR (or by default /etc/pki/nssdb). If the
|
by the environment variable SSL_DIR (or by default /etc/pki/nssdb). If the
|
||||||
NSS PEM PKCS#11 module (libnsspem.so) is available then PEM files may be
|
NSS PEM PKCS#11 module (libnsspem.so) is available then PEM files may be
|
||||||
loaded. If you want to use a file from the current directory, please precede
|
loaded. If you want to use a file from the current directory, please precede
|
||||||
it with "./" prefix, in order to avoid confusion with a nickname.
|
it with "./" prefix, in order to avoid confusion with a nickname. If the
|
||||||
|
nickname contains ":", it needs to be preceded by "\\" so that it is not
|
||||||
|
recognized as password delimiter. If the nickname contains "\\", it needs to
|
||||||
|
be escaped as "\\\\" so that it is not recognized as an escape character.
|
||||||
|
|
||||||
|
(iOS and Mac OS X only) If curl is built against Secure Transport, then the certificate string must match the name of a certificate that's in the system or user keychain. The private key corresponding to the certificate, and certificate chain (if any), must also be present in the keychain.
|
||||||
|
|
||||||
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 "--engine <name>"
|
.IP "--engine <name>"
|
||||||
@@ -399,9 +402,9 @@ operations. Use \fI--engine list\fP to print a list of build-time supported
|
|||||||
engines. Note that not all (or none) of the engines may be available at
|
engines. Note that not all (or none) of the engines may be available at
|
||||||
run-time.
|
run-time.
|
||||||
.IP "--environment"
|
.IP "--environment"
|
||||||
(RISC OS ONLY) Sets a range of environment variables, using the names the -w
|
(RISC OS ONLY) Sets a range of environment variables, using the names the
|
||||||
option supports, to allow easier extraction of useful information after having
|
\fI-w\fP option supports, to allow easier extraction of useful information
|
||||||
run curl.
|
after having run curl.
|
||||||
.IP "--egd-file <file>"
|
.IP "--egd-file <file>"
|
||||||
(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
|
||||||
@@ -425,11 +428,8 @@ The windows version of curl will automatically look for a CA certs file named
|
|||||||
\'curl-ca-bundle.crt\', either in the same directory as curl.exe, or in the
|
\'curl-ca-bundle.crt\', either in the same directory as curl.exe, or in the
|
||||||
Current Working Directory, or in any folder along your PATH.
|
Current Working Directory, or in any folder along your PATH.
|
||||||
|
|
||||||
If curl is built against the NSS SSL library then this option tells
|
If curl is built against the NSS SSL library, the NSS PEM PKCS#11 module
|
||||||
curl the nickname of the CA certificate to use within the NSS database
|
(libnsspem.so) needs to be available for this option to work properly.
|
||||||
defined by the environment variable SSL_DIR (or by default /etc/pki/nssdb).
|
|
||||||
If the NSS PEM PKCS#11 module (libnsspem.so) is available then PEM files
|
|
||||||
may be loaded.
|
|
||||||
|
|
||||||
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 "--capath <CA certificate directory>"
|
.IP "--capath <CA certificate directory>"
|
||||||
@@ -446,7 +446,7 @@ used several times, the last one will be used.
|
|||||||
.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 cases when a HTTP server fails to deliver a document, it returns an
|
normal cases when an HTTP server fails to deliver a document, it returns an
|
||||||
HTML document stating so (which often also describes why and more). This flag
|
HTML document stating so (which often also describes why and more). This flag
|
||||||
will prevent curl from outputting that and return error 22.
|
will prevent curl from outputting that and return error 22.
|
||||||
|
|
||||||
@@ -486,6 +486,17 @@ filename=, like this:
|
|||||||
|
|
||||||
\fBcurl\fP -F "file=@localfile;filename=nameinpost" url.com
|
\fBcurl\fP -F "file=@localfile;filename=nameinpost" url.com
|
||||||
|
|
||||||
|
If filename/path contains ',' or ';', it must be quoted by double-quotes like:
|
||||||
|
|
||||||
|
\fBcurl\fP -F "file=@\\"localfile\\";filename=\\"nameinpost\\"" url.com
|
||||||
|
|
||||||
|
or
|
||||||
|
|
||||||
|
\fBcurl\fP -F 'file=@"localfile";filename="nameinpost"' url.com
|
||||||
|
|
||||||
|
Note that if a filename/path is quoted by double-quotes, any double-quote
|
||||||
|
or backslash within the filename must be escaped by backslash.
|
||||||
|
|
||||||
See further examples and details in the MANUAL.
|
See further examples and details in the MANUAL.
|
||||||
|
|
||||||
This option can be used multiple times.
|
This option can be used multiple times.
|
||||||
@@ -494,7 +505,7 @@ This option can be used multiple times.
|
|||||||
has been provided, this data is sent off using the ACCT command. (Added in
|
has been provided, this data is sent off using the ACCT command. (Added in
|
||||||
7.13.0)
|
7.13.0)
|
||||||
|
|
||||||
If this option is used twice, the second will override the previous use.
|
If this option is used several times, the last one will be used.
|
||||||
.IP "--ftp-alternative-to-user <command>"
|
.IP "--ftp-alternative-to-user <command>"
|
||||||
(FTP) If authenticating with the USER and PASS commands fails, send this
|
(FTP) If authenticating with the USER and PASS commands fails, send this
|
||||||
command. When connecting to Tumbleweed's Secure Transport server over FTPS
|
command. When connecting to Tumbleweed's Secure Transport server over FTPS
|
||||||
@@ -506,7 +517,7 @@ currently exist on the server, the standard behavior of curl is to
|
|||||||
fail. Using this option, curl will instead attempt to create missing
|
fail. Using this option, curl will instead attempt to create missing
|
||||||
directories.
|
directories.
|
||||||
.IP "--ftp-method [method]"
|
.IP "--ftp-method [method]"
|
||||||
(FTP) Control what method curl should use to reach a file on a FTP(S)
|
(FTP) Control what method curl should use to reach a file on an FTP(S)
|
||||||
server. The method argument should be one of the following alternatives:
|
server. The method argument should be one of the following alternatives:
|
||||||
.RS
|
.RS
|
||||||
.IP multicwd
|
.IP multicwd
|
||||||
@@ -527,9 +538,9 @@ compliant than 'nocwd' but without the full penalty of 'multicwd'.
|
|||||||
behavior, but using this option can be used to override a previous
|
behavior, but using this option can be used to override a previous
|
||||||
\fI-P/-ftp-port\fP option. (Added in 7.11.0)
|
\fI-P/-ftp-port\fP option. (Added in 7.11.0)
|
||||||
|
|
||||||
If this option is used several times, the following occurrences make no
|
If this option is used several times, only the first one is used. Undoing an
|
||||||
difference. Undoing an enforced passive really isn't doable but you must then
|
enforced passive really isn't doable but you must then instead enforce the
|
||||||
instead enforce the correct \fI-P, --ftp-port\fP again.
|
correct \fI-P, --ftp-port\fP again.
|
||||||
|
|
||||||
Passive mode means that curl will try the EPSV command first and then PASV,
|
Passive mode means that curl will try the EPSV command first and then PASV,
|
||||||
unless \fI--disable-epsv\fP is used.
|
unless \fI--disable-epsv\fP is used.
|
||||||
@@ -550,7 +561,7 @@ directory listings as well as up and downloads in PASV mode.
|
|||||||
Shuts down the SSL/TLS layer after authenticating. The rest of the
|
Shuts down the SSL/TLS layer after authenticating. The rest of the
|
||||||
control channel communication will be unencrypted. This allows
|
control channel communication will be unencrypted. This allows
|
||||||
NAT routers to follow the FTP transaction. The default mode is
|
NAT routers to follow the FTP transaction. The default mode is
|
||||||
passive. See --ftp-ssl-ccc-mode for other modes.
|
passive. See \fI--ftp-ssl-ccc-mode\fP for other modes.
|
||||||
(Added in 7.16.1)
|
(Added in 7.16.1)
|
||||||
.IP "--ftp-ssl-ccc-mode [active/passive]"
|
.IP "--ftp-ssl-ccc-mode [active/passive]"
|
||||||
(FTP) Use CCC (Clear Command Channel)
|
(FTP) Use CCC (Clear Command Channel)
|
||||||
@@ -577,16 +588,16 @@ interpreted by curl itself. Note that these letters are not normal legal URL
|
|||||||
contents but they should be encoded according to the URI standard.
|
contents but they should be encoded according to the URI standard.
|
||||||
.IP "-G, --get"
|
.IP "-G, --get"
|
||||||
When used, this option will make all data specified with \fI-d, --data\fP or
|
When used, this option will make all data specified with \fI-d, --data\fP or
|
||||||
\fI--data-binary\fP to be used in a HTTP GET request instead of the POST
|
\fI--data-binary\fP to be used in an HTTP GET request instead of the POST
|
||||||
request that otherwise would be used. The data will be appended to the URL
|
request that otherwise would be used. The data will be appended to the URL
|
||||||
with a '?' separator.
|
with a '?' separator.
|
||||||
|
|
||||||
If used in combination with -I, the POST data will instead be appended to the
|
If used in combination with -I, the POST data will instead be appended to the
|
||||||
URL with a HEAD request.
|
URL with a HEAD request.
|
||||||
|
|
||||||
If this option is used several times, the following occurrences make no
|
If this option is used several times, only the first one is used. This is
|
||||||
difference. This is because undoing a GET doesn't make sense, but you should
|
because undoing a GET doesn't make sense, but you should then instead enforce
|
||||||
then instead enforce the alternative method you prefer.
|
the alternative method you prefer.
|
||||||
.IP "-H, --header <header>"
|
.IP "-H, --header <header>"
|
||||||
(HTTP) Extra header to use when getting a web page. You may specify any number
|
(HTTP) Extra header to use when getting a web page. You may specify any number
|
||||||
of extra headers. Note that if you should add a custom header that has the
|
of extra headers. Note that if you should add a custom header that has the
|
||||||
@@ -595,9 +606,9 @@ header will be used instead of the internal one. This allows you to make even
|
|||||||
trickier stuff than curl would normally do. You should not replace internally
|
trickier stuff than curl would normally do. You should not replace internally
|
||||||
set headers without knowing perfectly well what you're doing. Remove an
|
set headers without knowing perfectly well what you're doing. Remove an
|
||||||
internal header by giving a replacement without content on the right side of
|
internal header by giving a replacement without content on the right side of
|
||||||
the colon, as in: -H \&"Host:". If you send the custom header with no-value then
|
the colon, as in: -H \&"Host:". If you send the custom header with no-value
|
||||||
its header must be terminated with a semicolon, such as \-H "X-Custom-Header;"
|
then its header must be terminated with a semicolon, such as \-H
|
||||||
to send "X-Custom-Header:".
|
\&"X-Custom-Header;" to send "X-Custom-Header:".
|
||||||
|
|
||||||
curl will make sure that each header you add/replace is sent with the proper
|
curl will make sure that each header you add/replace is sent with the proper
|
||||||
end-of-line marker, you should thus \fBnot\fP add that as a part of the header
|
end-of-line marker, you should thus \fBnot\fP add that as a part of the header
|
||||||
@@ -608,10 +619,9 @@ See also the \fI-A, --user-agent\fP and \fI-e, --referer\fP options.
|
|||||||
|
|
||||||
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>"
|
||||||
Pass a string containing 32 hexadecimal digits. The string should be the 128
|
(SCP/SFTP) Pass a string containing 32 hexadecimal digits. The string should
|
||||||
bit MD5 checksum of the remote host's public key, curl will refuse the
|
be the 128 bit MD5 checksum of the remote host's public key, curl will refuse
|
||||||
connection with the host unless the md5sums match. This option is only for SCP
|
the connection with the host unless the md5sums match. (Added in 7.17.1)
|
||||||
and SFTP transfers. (Added in 7.17.1)
|
|
||||||
.IP "--ignore-content-length"
|
.IP "--ignore-content-length"
|
||||||
(HTTP)
|
(HTTP)
|
||||||
Ignore the Content-Length header. This is particularly useful for servers
|
Ignore the Content-Length header. This is particularly useful for servers
|
||||||
@@ -624,7 +634,7 @@ like server-name, date of the document, HTTP-version and more...
|
|||||||
(HTTP/FTP/FILE)
|
(HTTP/FTP/FILE)
|
||||||
Fetch the HTTP-header only! HTTP-servers feature the command HEAD
|
Fetch the HTTP-header only! HTTP-servers feature the command HEAD
|
||||||
which this uses to get nothing but the header of a document. When used
|
which this uses to get nothing but the header of a document. When used
|
||||||
on a FTP or FILE file, curl displays the file size and last modification
|
on an FTP or FILE file, curl displays the file size and last modification
|
||||||
time only.
|
time only.
|
||||||
.IP "--interface <name>"
|
.IP "--interface <name>"
|
||||||
Perform an operation using a specified interface. You can enter interface
|
Perform an operation using a specified interface. You can enter interface
|
||||||
@@ -639,8 +649,9 @@ make it discard all "session cookies". This will basically have the same effect
|
|||||||
as if a new session is started. Typical browsers always discard session
|
as if a new session is started. Typical browsers always discard session
|
||||||
cookies when they're closed down.
|
cookies when they're closed down.
|
||||||
.IP "-J, --remote-header-name"
|
.IP "-J, --remote-header-name"
|
||||||
(HTTP) This option tells the -O, --remote-name option to use the server-specified
|
(HTTP) This option tells the \fI-O, --remote-name\fP option to use the
|
||||||
Content-Disposition filename instead of extracting a filename from the URL.
|
server-specified Content-Disposition filename instead of extracting a filename
|
||||||
|
from the URL.
|
||||||
.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
|
||||||
@@ -711,7 +722,7 @@ currently effective on operating systems offering the TCP_KEEPIDLE and
|
|||||||
TCP_KEEPINTVL socket options (meaning Linux, recent AIX, HP-UX and more). This
|
TCP_KEEPINTVL socket options (meaning Linux, recent AIX, HP-UX and more). This
|
||||||
option has no effect if \fI--no-keepalive\fP is used. (Added in 7.18.0)
|
option has no effect if \fI--no-keepalive\fP is used. (Added in 7.18.0)
|
||||||
|
|
||||||
If this option is used multiple times, the last occurrence sets the amount. If
|
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
|
||||||
@@ -817,9 +828,9 @@ Specify the maximum size (in bytes) of a file to download. If the file
|
|||||||
requested is larger than this value, the transfer will not start and curl will
|
requested is larger than this value, the transfer will not start and curl will
|
||||||
return with exit code 63.
|
return with exit code 63.
|
||||||
|
|
||||||
\fBNOTE:\fP The file size is not always known prior to download, and for such files
|
\fBNOTE:\fP The file size is not always known prior to download, and for such
|
||||||
this option has no effect even if the file transfer ends up being larger than
|
files this option has no effect even if the file transfer ends up being larger
|
||||||
this given limit. This concerns both FTP and HTTP transfers.
|
than this given limit. This concerns both FTP and HTTP transfers.
|
||||||
.IP "--mail-rcpt <address>"
|
.IP "--mail-rcpt <address>"
|
||||||
(SMTP) Specify a single address that the given mail should get sent to. This
|
(SMTP) Specify a single address that the given mail should get sent to. This
|
||||||
option can be used multiple times to specify many recipients.
|
option can be used multiple times to specify many recipients.
|
||||||
@@ -832,6 +843,31 @@ is used, this option can be used to prevent curl from following redirections
|
|||||||
option to -1 to make it limitless.
|
option to -1 to make it limitless.
|
||||||
|
|
||||||
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 "--metalink"
|
||||||
|
This option can tell curl to parse and process a given URI as Metalink file
|
||||||
|
(both version 3 and 4 (RFC 5854) are supported) and make use of the mirrors
|
||||||
|
listed within for failover if there are errors (such as the file or server not
|
||||||
|
being available). It will also verify the hash of the file after the download
|
||||||
|
completes. The Metalink file itself is downloaded and processed in memory and
|
||||||
|
not stored in the local file system.
|
||||||
|
|
||||||
|
Example to use a remote Metalink file:
|
||||||
|
|
||||||
|
\fBcurl\fP --metalink http://www.example.com/example.metalink
|
||||||
|
|
||||||
|
To use a Metalink file in the local file system, use FILE protocol
|
||||||
|
(file://):
|
||||||
|
|
||||||
|
\fBcurl\fP --metalink file://example.metalink
|
||||||
|
|
||||||
|
Please note that if FILE protocol is disabled, there is no way to use
|
||||||
|
a local Metalink file at the time of this writing. Also note that if
|
||||||
|
\fI--metalink\fP and \fI--include\fP are used together, \fI--include\fP will be
|
||||||
|
ignored. This is because including headers in the response will break
|
||||||
|
Metalink parser and if the headers are included in the file described
|
||||||
|
in Metalink file, hash check will fail.
|
||||||
|
|
||||||
|
(Added in 7.27.0, if built against the libmetalink library.)
|
||||||
.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
|
||||||
@@ -865,7 +901,7 @@ You can only specify one netrc file per invocation. If several
|
|||||||
(Added in 7.21.5)
|
(Added in 7.21.5)
|
||||||
|
|
||||||
This option overrides any use of \fI--netrc\fP as they are mutually exclusive.
|
This option overrides any use of \fI--netrc\fP as they are mutually exclusive.
|
||||||
It will also abide by --netrc-optional if specified.
|
It will also abide by \fI--netrc-optional\fP if specified.
|
||||||
|
|
||||||
.IP "--netrc-optional"
|
.IP "--netrc-optional"
|
||||||
Very similar to \fI--netrc\fP, but this option makes the .netrc usage
|
Very similar to \fI--netrc\fP, but this option makes the .netrc usage
|
||||||
@@ -885,12 +921,11 @@ This option requires a library built with GSSAPI support. This is
|
|||||||
not very common. Use \fI-V, --version\fP to see if your version supports
|
not very common. Use \fI-V, --version\fP to see if your version supports
|
||||||
GSS-Negotiate.
|
GSS-Negotiate.
|
||||||
|
|
||||||
When using this option, you must also provide a fake -u, --user 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
|
||||||
user name and password from the -u option aren't actually used.
|
user name and password from the \fI-u\fP option aren't actually used.
|
||||||
|
|
||||||
If this option is used several times, the following occurrences make no
|
If this option is used several times, only the first one is used.
|
||||||
difference.
|
|
||||||
.IP "--no-keepalive"
|
.IP "--no-keepalive"
|
||||||
Disables the use of keepalive messages on the TCP connection, as by default
|
Disables the use of keepalive messages on the TCP connection, as by default
|
||||||
curl enables them.
|
curl enables them.
|
||||||
@@ -927,8 +962,7 @@ If you want to enable NTLM for your proxy authentication, then use
|
|||||||
This option requires a library built with SSL support. Use
|
This option requires a library built with SSL support. Use
|
||||||
\fI-V, --version\fP to see if your curl supports NTLM.
|
\fI-V, --version\fP to see if your curl supports NTLM.
|
||||||
|
|
||||||
If this option is used several times, the following occurrences make no
|
If this option is used several times, only the first one is used.
|
||||||
difference.
|
|
||||||
.IP "-o, --output <file>"
|
.IP "-o, --output <file>"
|
||||||
Write output to <file> instead of stdout. If you are using {} or [] to fetch
|
Write output to <file> instead of stdout. If you are using {} or [] to fetch
|
||||||
multiple documents, you can use '#' followed by a number in the <file>
|
multiple documents, you can use '#' followed by a number in the <file>
|
||||||
@@ -996,16 +1030,16 @@ available.
|
|||||||
|
|
||||||
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 "--post301"
|
.IP "--post301"
|
||||||
Tells curl to respect RFC 2616/10.3.2 and not convert POST requests into GET
|
(HTTP) Tells curl to respect RFC 2616/10.3.2 and not convert POST requests
|
||||||
requests when following a 301 redirection. The non-RFC behaviour is ubiquitous
|
into GET requests when following a 301 redirection. The non-RFC behaviour is
|
||||||
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"
|
||||||
Tells curl to respect RFC 2616/10.3.2 and not convert POST requests into GET
|
(HTTP) Tells curl to respect RFC 2616/10.3.2 and not convert POST requests
|
||||||
requests when following a 302 redirection. The non-RFC behaviour is ubiquitous
|
into GET requests when following a 302 redirection. The non-RFC behaviour is
|
||||||
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)
|
||||||
@@ -1094,24 +1128,24 @@ default config file search path.
|
|||||||
commands are sent BEFORE the transfer takes place (just after the initial PWD
|
commands are sent BEFORE the transfer takes place (just after the initial PWD
|
||||||
command in an FTP transfer, to be exact). To make commands take place after a
|
command in an FTP transfer, to be exact). To make commands take place after a
|
||||||
successful transfer, prefix them with a dash '-'. To make commands be sent
|
successful transfer, prefix them with a dash '-'. To make commands be sent
|
||||||
after libcurl has changed the working directory, just before the transfer
|
after curl has changed the working directory, just before the transfer
|
||||||
command(s), prefix the command with a '+' (this is only supported for
|
command(s), prefix the command with a '+' (this is only supported for
|
||||||
FTP). You may specify any number of commands. If the server returns failure
|
FTP). You may specify any number of commands. If the server returns failure
|
||||||
for one of the commands, the entire operation will be aborted. You must send
|
for one of the commands, the entire operation will be aborted. You must send
|
||||||
syntactically correct FTP commands as RFC 959 defines to FTP servers, or one
|
syntactically correct FTP commands as RFC 959 defines to FTP servers, or one
|
||||||
of the commands listed below to SFTP servers. This option can be used
|
of the commands listed below to SFTP servers. This option can be used
|
||||||
multiple times. When speaking to a FTP server, prefix the command with an
|
multiple times. When speaking to an FTP server, prefix the command with an
|
||||||
asterisk (*) to make libcurl continue even if the command fails as by default
|
asterisk (*) to make curl continue even if the command fails as by default
|
||||||
curl will stop at first failure.
|
curl will stop at first failure.
|
||||||
|
|
||||||
SFTP is a binary protocol. Unlike for FTP, libcurl interprets SFTP quote
|
SFTP is a binary protocol. Unlike for FTP, curl interprets SFTP quote commands
|
||||||
commands itself before sending them to the server. File names may be quoted
|
itself before sending them to the server. File names may be quoted
|
||||||
shell-style to embed spaces or special characters. Following is the list of
|
shell-style to embed spaces or special characters. Following is the list of
|
||||||
all supported SFTP quote commands:
|
all supported SFTP quote commands:
|
||||||
.RS
|
.RS
|
||||||
.IP "chgrp group file"
|
.IP "chgrp group file"
|
||||||
The chgrp command sets the group ID of the file named by the file operand to the
|
The chgrp command sets the group ID of the file named by the file operand to
|
||||||
group ID specified by the group operand. The group operand is a decimal
|
the group ID specified by the group operand. The group operand is a decimal
|
||||||
integer group ID.
|
integer group ID.
|
||||||
.IP "chmod mode file"
|
.IP "chmod mode file"
|
||||||
The chmod command modifies the file mode bits of the specified file. The
|
The chmod command modifies the file mode bits of the specified file. The
|
||||||
@@ -1169,9 +1203,10 @@ specifies two separate 100-byte ranges(*)(H)
|
|||||||
(*) = 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!
|
||||||
|
|
||||||
Only digit characters (0-9) are valid in the 'start' and 'stop' fields of
|
Only digit characters (0-9) are valid in the 'start' and 'stop' fields of the
|
||||||
the \&'start-stop' range syntax. If a non-digit character is given in the range, the server's
|
\&'start-stop' range syntax. If a non-digit character is given in the range,
|
||||||
response will be unspecified, depending on the server's configuration.
|
the server's response will be unspecified, depending on the server's
|
||||||
|
configuration.
|
||||||
|
|
||||||
You should also be aware that many HTTP/1.1 servers do not have this feature
|
You should also be aware that many HTTP/1.1 servers do not have this feature
|
||||||
enabled, so that when you attempt to get a range, you'll instead get the whole
|
enabled, so that when you attempt to get a range, you'll instead get the whole
|
||||||
@@ -1183,7 +1218,7 @@ FTP command SIZE.
|
|||||||
|
|
||||||
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 "-R, --remote-time"
|
.IP "-R, --remote-time"
|
||||||
When used, this will make libcurl attempt to figure out the timestamp of the
|
When used, this will make curl attempt to figure out the timestamp of the
|
||||||
remote file, and if that is available make the local file get that same
|
remote file, and if that is available make the local file get that same
|
||||||
timestamp.
|
timestamp.
|
||||||
.IP "--random-file <file>"
|
.IP "--random-file <file>"
|
||||||
@@ -1191,7 +1226,7 @@ timestamp.
|
|||||||
random data. The data is used to seed the random engine for SSL connections.
|
random data. The data is used to seed the random engine for SSL connections.
|
||||||
See also the \fI--egd-file\fP option.
|
See also the \fI--egd-file\fP option.
|
||||||
.IP "--raw"
|
.IP "--raw"
|
||||||
When used, it disables all internal HTTP decoding of content or transfer
|
(HTTP) When used, it disables all internal HTTP decoding of content or transfer
|
||||||
encodings and instead makes them passed on unaltered, raw. (Added in 7.16.2)
|
encodings and instead makes them passed on unaltered, raw. (Added in 7.16.2)
|
||||||
.IP "--remote-name-all"
|
.IP "--remote-name-all"
|
||||||
This option changes the default action for all given URLs to be dealt with as
|
This option changes the default action for all given URLs to be dealt with as
|
||||||
@@ -1223,7 +1258,7 @@ using \fI--retry-delay\fP you disable this exponential backoff algorithm. See
|
|||||||
also \fI--retry-max-time\fP to limit the total time allowed for
|
also \fI--retry-max-time\fP to limit the total time allowed for
|
||||||
retries. (Added in 7.12.3)
|
retries. (Added in 7.12.3)
|
||||||
|
|
||||||
If this option is used multiple times, the last occurrence decide the amount.
|
If this option is used several times, the last one will be used.
|
||||||
.IP "--retry-delay <seconds>"
|
.IP "--retry-delay <seconds>"
|
||||||
Make curl sleep this amount of time before each retry when a transfer has
|
Make curl sleep this amount of time before each retry when a transfer has
|
||||||
failed with a transient error (it changes the default backoff time algorithm
|
failed with a transient error (it changes the default backoff time algorithm
|
||||||
@@ -1231,7 +1266,7 @@ between retries). This option is only interesting if \fI--retry\fP is also
|
|||||||
used. Setting this delay to zero will make curl use the default backoff time.
|
used. Setting this delay to zero will make curl use the default backoff time.
|
||||||
(Added in 7.12.3)
|
(Added in 7.12.3)
|
||||||
|
|
||||||
If this option is used multiple times, the last occurrence determines the amount.
|
If this option is used several times, the last one will be used.
|
||||||
.IP "--retry-max-time <seconds>"
|
.IP "--retry-max-time <seconds>"
|
||||||
The retry timer is reset before the first transfer attempt. Retries will be
|
The retry timer is reset before the first transfer attempt. Retries will be
|
||||||
done as usual (see \fI--retry\fP) as long as the timer hasn't reached this
|
done as usual (see \fI--retry\fP) as long as the timer hasn't reached this
|
||||||
@@ -1240,13 +1275,13 @@ will be made and while performing, it may take longer than this given time
|
|||||||
period. To limit a single request\'s maximum time, use \fI-m, --max-time\fP.
|
period. To limit a single request\'s maximum time, use \fI-m, --max-time\fP.
|
||||||
Set this option to zero to not timeout retries. (Added in 7.12.3)
|
Set this option to zero to not timeout retries. (Added in 7.12.3)
|
||||||
|
|
||||||
If this option is used multiple times, the last occurrence determines the
|
If this option is used several times, the last one will be used.
|
||||||
amount.
|
|
||||||
.IP "-s, --silent"
|
.IP "-s, --silent"
|
||||||
Silent or quiet mode. Don't show progress meter or error messages. Makes
|
Silent or quiet mode. Don't show progress meter or error messages. Makes Curl
|
||||||
Curl mute.
|
mute. It will still output the data you ask for, potentially even to the
|
||||||
|
terminal/stdout unless you redirect it.
|
||||||
.IP "-S, --show-error"
|
.IP "-S, --show-error"
|
||||||
When used with -s 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"
|
||||||
(FTP, POP3, IMAP, SMTP) Try to use SSL/TLS for the connection. Reverts to a
|
(FTP, POP3, IMAP, SMTP) Try to use SSL/TLS for the connection. Reverts to a
|
||||||
non-secure connection if the server doesn't support SSL/TLS. See also
|
non-secure connection if the server doesn't support SSL/TLS. See also
|
||||||
@@ -1350,7 +1385,7 @@ part in the specified URL, Curl will append the local file name. NOTE that you
|
|||||||
must use a trailing / on the last directory to really prove to Curl that there
|
must use a trailing / on the last directory to really prove to Curl that there
|
||||||
is no file name or curl will think that your last directory name is the remote
|
is no file name or curl will think that your last directory name is the remote
|
||||||
file name to use. That will most likely cause the upload operation to fail. If
|
file name to use. That will most likely cause the upload operation to fail. If
|
||||||
this is used on a HTTP(S) server, the PUT command will be used.
|
this is used on an HTTP(S) server, the PUT command will be used.
|
||||||
|
|
||||||
Use the file name "-" (a single dash) to use stdin instead of a given file.
|
Use the file name "-" (a single dash) to use stdin instead of a given file.
|
||||||
Alternately, the file name "." (a single period) may be specified instead
|
Alternately, the file name "." (a single period) may be specified instead
|
||||||
@@ -1393,7 +1428,7 @@ Set password for use with the TLS authentication method specified with
|
|||||||
7.21.4)
|
7.21.4)
|
||||||
.IP "--tr-encoding"
|
.IP "--tr-encoding"
|
||||||
(HTTP) Request a compressed Transfer-Encoding response using one of the
|
(HTTP) Request a compressed Transfer-Encoding response using one of the
|
||||||
algorithms libcurl supports, and uncompress the data while receiving it.
|
algorithms curl supports, and uncompress the data while receiving it.
|
||||||
|
|
||||||
(Added in 7.21.6)
|
(Added in 7.21.6)
|
||||||
.IP "--trace <file>"
|
.IP "--trace <file>"
|
||||||
@@ -1478,12 +1513,21 @@ space with \\t.
|
|||||||
The %-symbol is a special symbol in the win32-environment, where all
|
The %-symbol is a special symbol in the win32-environment, where all
|
||||||
occurrences of % must be doubled when using this option.
|
occurrences of % must be doubled when using this option.
|
||||||
|
|
||||||
The variables available at this point are:
|
The variables available are:
|
||||||
.RS
|
.RS
|
||||||
.TP 15
|
.TP 15
|
||||||
.B url_effective
|
.B content_type
|
||||||
The URL that was fetched last. This is most meaningful if you've told curl
|
The Content-Type of the requested document, if there was any.
|
||||||
to follow location: headers.
|
.TP
|
||||||
|
.B filename_effective
|
||||||
|
The ultimate filename that curl writes out to. This is only meaningful if curl
|
||||||
|
is told to write to a file with the \fI--remote-name\fP or \fI--output\fP
|
||||||
|
option. It's most useful in combination with the \fI--remote-header-name\fP
|
||||||
|
option. (Added in 7.25.1)
|
||||||
|
.TP
|
||||||
|
.B ftp_entry_path
|
||||||
|
The initial path curl ended up in when logging on to the remote FTP
|
||||||
|
server. (Added in 7.15.4)
|
||||||
.TP
|
.TP
|
||||||
.B http_code
|
.B http_code
|
||||||
The numerical response code that was found in the last retrieved HTTP(S) or
|
The numerical response code that was found in the last retrieved HTTP(S) or
|
||||||
@@ -1494,21 +1538,65 @@ same info.
|
|||||||
The numerical code that was found in the last response (from a proxy) to a
|
The numerical code that was found in the last response (from a proxy) to a
|
||||||
curl CONNECT request. (Added in 7.12.4)
|
curl CONNECT request. (Added in 7.12.4)
|
||||||
.TP
|
.TP
|
||||||
.B time_total
|
.B local_ip
|
||||||
The total time, in seconds, that the full operation lasted. The time will be
|
The IP address of the local end of the most recently done connection - can be
|
||||||
displayed with millisecond resolution.
|
either IPv4 or IPv6 (Added in 7.29.0)
|
||||||
.TP
|
.TP
|
||||||
.B time_namelookup
|
.B local_port
|
||||||
The time, in seconds, it took from the start until the name resolving was
|
The local port number of the most recently done connection (Added in 7.29.0)
|
||||||
completed.
|
.TP
|
||||||
|
.B num_connects
|
||||||
|
Number of new connects made in the recent transfer. (Added in 7.12.3)
|
||||||
|
.TP
|
||||||
|
.B num_redirects
|
||||||
|
Number of redirects that were followed in the request. (Added in 7.12.3)
|
||||||
|
.TP
|
||||||
|
.B redirect_url
|
||||||
|
When an HTTP request was made without -L to follow redirects, this variable
|
||||||
|
will show the actual URL a redirect \fIwould\fP take you to. (Added in 7.18.2)
|
||||||
|
.TP
|
||||||
|
.B remote_ip
|
||||||
|
The remote IP address of the most recently done connection - can be either
|
||||||
|
IPv4 or IPv6 (Added in 7.29.0)
|
||||||
|
.TP
|
||||||
|
.B remote_port
|
||||||
|
The remote port number of the most recently done connection (Added in 7.29.0)
|
||||||
|
.TP
|
||||||
|
.B size_download
|
||||||
|
The total amount of bytes that were downloaded.
|
||||||
|
.TP
|
||||||
|
.B size_header
|
||||||
|
The total amount of bytes of the downloaded headers.
|
||||||
|
.TP
|
||||||
|
.B size_request
|
||||||
|
The total amount of bytes that were sent in the HTTP request.
|
||||||
|
.TP
|
||||||
|
.B size_upload
|
||||||
|
The total amount of bytes that were uploaded.
|
||||||
|
.TP
|
||||||
|
.B speed_download
|
||||||
|
The average download speed that curl measured for the complete download. Bytes
|
||||||
|
per second.
|
||||||
|
.TP
|
||||||
|
.B speed_upload
|
||||||
|
The average upload speed that curl measured for the complete upload. Bytes per
|
||||||
|
second.
|
||||||
|
.TP
|
||||||
|
.B ssl_verify_result
|
||||||
|
The result of the SSL peer certificate verification that was requested. 0
|
||||||
|
means the verification was successful. (Added in 7.19.0)
|
||||||
|
.TP
|
||||||
|
.B time_appconnect
|
||||||
|
The time, in seconds, it took from the start until the SSL/SSH/etc
|
||||||
|
connect/handshake to the remote host was completed. (Added in 7.19.0)
|
||||||
.TP
|
.TP
|
||||||
.B time_connect
|
.B time_connect
|
||||||
The time, in seconds, it took from the start until the TCP connect to the
|
The time, in seconds, it took from the start until the TCP connect to the
|
||||||
remote host (or proxy) was completed.
|
remote host (or proxy) was completed.
|
||||||
.TP
|
.TP
|
||||||
.B time_appconnect
|
.B time_namelookup
|
||||||
The time, in seconds, it took from the start until the SSL/SSH/etc
|
The time, in seconds, it took from the start until the name resolving was
|
||||||
connect/handshake to the remote host was completed. (Added in 7.19.0)
|
completed.
|
||||||
.TP
|
.TP
|
||||||
.B time_pretransfer
|
.B time_pretransfer
|
||||||
The time, in seconds, it took from the start until the file transfer was just
|
The time, in seconds, it took from the start until the file transfer was just
|
||||||
@@ -1522,54 +1610,21 @@ started. time_redirect shows the complete execution time for multiple
|
|||||||
redirections. (Added in 7.12.3)
|
redirections. (Added in 7.12.3)
|
||||||
.TP
|
.TP
|
||||||
.B time_starttransfer
|
.B time_starttransfer
|
||||||
The time, in seconds, it took from the start until the first byte was just about
|
The time, in seconds, it took from the start until the first byte was just
|
||||||
to be transferred. This includes time_pretransfer and also the time the
|
about to be transferred. This includes time_pretransfer and also the time the
|
||||||
server needed to calculate the result.
|
server needed to calculate the result.
|
||||||
.TP
|
.TP
|
||||||
.B size_download
|
.B time_total
|
||||||
The total amount of bytes that were downloaded.
|
The total time, in seconds, that the full operation lasted. The time will be
|
||||||
|
displayed with millisecond resolution.
|
||||||
.TP
|
.TP
|
||||||
.B size_upload
|
.B url_effective
|
||||||
The total amount of bytes that were uploaded.
|
The URL that was fetched last. This is most meaningful if you've told curl
|
||||||
.TP
|
to follow location: headers.
|
||||||
.B size_header
|
|
||||||
The total amount of bytes of the downloaded headers.
|
|
||||||
.TP
|
|
||||||
.B size_request
|
|
||||||
The total amount of bytes that were sent in the HTTP request.
|
|
||||||
.TP
|
|
||||||
.B speed_download
|
|
||||||
The average download speed that curl measured for the complete download. Bytes
|
|
||||||
per second.
|
|
||||||
.TP
|
|
||||||
.B speed_upload
|
|
||||||
The average upload speed that curl measured for the complete upload. Bytes per
|
|
||||||
second.
|
|
||||||
.TP
|
|
||||||
.B content_type
|
|
||||||
The Content-Type of the requested document, if there was any.
|
|
||||||
.TP
|
|
||||||
.B num_connects
|
|
||||||
Number of new connects made in the recent transfer. (Added in 7.12.3)
|
|
||||||
.TP
|
|
||||||
.B num_redirects
|
|
||||||
Number of redirects that were followed in the request. (Added in 7.12.3)
|
|
||||||
.TP
|
|
||||||
.B redirect_url
|
|
||||||
When a HTTP request was made without -L to follow redirects, this variable
|
|
||||||
will show the actual URL a redirect \fIwould\fP take you to. (Added in 7.18.2)
|
|
||||||
.TP
|
|
||||||
.B ftp_entry_path
|
|
||||||
The initial path libcurl ended up in when logging on to the remote FTP
|
|
||||||
server. (Added in 7.15.4)
|
|
||||||
.TP
|
|
||||||
.B ssl_verify_result
|
|
||||||
The result of the SSL peer certificate verification that was requested. 0
|
|
||||||
means the verification was successful. (Added in 7.19.0)
|
|
||||||
.RE
|
.RE
|
||||||
|
|
||||||
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 HTTP proxy. If the port number is not specified, it is
|
Use the specified HTTP proxy. If the port number is not specified, it is
|
||||||
assumed at port 1080.
|
assumed at port 1080.
|
||||||
|
|
||||||
@@ -1577,11 +1632,15 @@ This option overrides existing environment variables that set the proxy to
|
|||||||
use. If there's an environment variable setting a proxy, you can set proxy to
|
use. If there's an environment variable setting a proxy, you can set proxy to
|
||||||
\&"" to override it.
|
\&"" to override it.
|
||||||
|
|
||||||
All operations that are performed over a HTTP proxy will transparently be
|
All operations that are performed over an HTTP proxy will transparently be
|
||||||
converted to HTTP. It means that certain protocol specific operations might
|
converted to HTTP. It means that certain protocol specific operations might
|
||||||
not be available. This is not the case if you can tunnel through the proxy, as
|
not be available. This is not the case if you can tunnel through the proxy, as
|
||||||
one with the \fI-p, --proxytunnel\fP option.
|
one with the \fI-p, --proxytunnel\fP option.
|
||||||
|
|
||||||
|
User and password that might be provided in the proxy string are URL decoded
|
||||||
|
by curl. This allows you to pass in special characters such as @ by using %40
|
||||||
|
or pass in a colon with %3a.
|
||||||
|
|
||||||
The proxy host can be specified the exact same way as the proxy environment
|
The proxy host can be specified the exact same way as the proxy environment
|
||||||
variables, including the protocol prefix (http://) and the embedded user +
|
variables, including the protocol prefix (http://) and the embedded user +
|
||||||
password.
|
password.
|
||||||
@@ -1600,6 +1659,14 @@ 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
|
||||||
more.
|
more.
|
||||||
|
|
||||||
|
Normally you don't need this option. All sorts of GET, HEAD, POST and PUT
|
||||||
|
requests are rather invoked by using dedicated command line options.
|
||||||
|
|
||||||
|
This option only changes the actual word used in the HTTP request, it does not
|
||||||
|
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
|
||||||
|
option.
|
||||||
|
|
||||||
(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.
|
||||||
@@ -1616,7 +1683,7 @@ attributes, a warning is issued.
|
|||||||
.IP "-y, --speed-time <time>"
|
.IP "-y, --speed-time <time>"
|
||||||
If a download is slower than speed-limit bytes per second during a speed-time
|
If a download is slower than speed-limit bytes per second during a speed-time
|
||||||
period, the download gets aborted. If speed-time is used, the default
|
period, the download gets aborted. If speed-time is used, the default
|
||||||
speed-limit will be 1 unless set with -Y.
|
speed-limit will be 1 unless set with \fI-Y\fP.
|
||||||
|
|
||||||
This option controls transfers and thus will not affect slow connects etc. If
|
This option controls transfers and thus will not affect slow connects etc. If
|
||||||
this is a concern for you, try the \fI--connect-timeout\fP option.
|
this is a concern for you, try the \fI--connect-timeout\fP option.
|
||||||
@@ -1624,16 +1691,17 @@ this is a concern for you, try the \fI--connect-timeout\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 "-Y, --speed-limit <speed>"
|
.IP "-Y, --speed-limit <speed>"
|
||||||
If a download is slower than this given speed (in bytes per second) for
|
If a download is slower than this given speed (in bytes per second) for
|
||||||
speed-time seconds it gets aborted. speed-time is set with -y and is 30 if
|
speed-time seconds it gets aborted. speed-time is set with \fI-y\fP and is 30
|
||||||
not set.
|
if not set.
|
||||||
|
|
||||||
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 "-z, --time-cond <date expression>"
|
.IP "-z/--time-cond <date expression>|<file>"
|
||||||
(HTTP/FTP/FILE) Request a file that has been modified later than the given time
|
(HTTP/FTP) Request a file that has been modified later than the given time and
|
||||||
and date, or one that has been modified before that time. The date expression
|
date, or one that has been modified before that time. The <date expression>
|
||||||
can be all sorts of date strings or if it doesn't match any internal ones, it
|
can be all sorts of date strings or if it doesn't match any internal ones, it
|
||||||
tries to get the time from a given file name instead! See the
|
is taken as a filename and tries to get the modification date (mtime) from
|
||||||
\fIcurl_getdate(3)\fP man pages for date expression details.
|
<file> instead. See the \fIcurl_getdate(3)\fP man pages for date expression
|
||||||
|
details.
|
||||||
|
|
||||||
Start the date expression with a dash (-) to make it request for a document
|
Start the date expression with a dash (-) to make it request for a document
|
||||||
that is older than the given date/time, default is a document that is newer
|
that is older than the given date/time, default is a document that is newer
|
||||||
@@ -1684,6 +1752,10 @@ SSPI is supported. If you use NTLM and set a blank user name, curl will
|
|||||||
authenticate with your current user and password.
|
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 "Metalink"
|
||||||
|
This curl supports Metalink (both version 3 and 4 (RFC 5854)), which
|
||||||
|
describes mirrors and hashes. curl will use mirrors for failover if
|
||||||
|
there are errors (such as the file or server not being available).
|
||||||
.RE
|
.RE
|
||||||
.SH FILES
|
.SH FILES
|
||||||
.I ~/.curlrc
|
.I ~/.curlrc
|
||||||
@@ -1715,7 +1787,7 @@ Since curl version 7.21.7, the proxy string may be specified with a
|
|||||||
protocol:// prefix to specify alternative proxy protocols.
|
protocol:// prefix to specify alternative proxy protocols.
|
||||||
|
|
||||||
If no protocol is specified in the proxy string or if the string doesn't match
|
If no protocol is specified in the proxy string or if the string doesn't match
|
||||||
a supported one, the proxy will be treated as a HTTP proxy.
|
a supported one, the proxy will be treated as an HTTP proxy.
|
||||||
|
|
||||||
The supported proxy protocol prefixes are as follows:
|
The supported proxy protocol prefixes are as follows:
|
||||||
.IP "socks4://"
|
.IP "socks4://"
|
||||||
|
4
docs/examples/.gitignore
vendored
4
docs/examples/.gitignore
vendored
@@ -11,6 +11,7 @@ ftp-wildcard
|
|||||||
ftpget
|
ftpget
|
||||||
ftpgetinfo
|
ftpgetinfo
|
||||||
ftpgetresp
|
ftpgetresp
|
||||||
|
ftpsget
|
||||||
ftpupload
|
ftpupload
|
||||||
getinfo
|
getinfo
|
||||||
getinmemory
|
getinmemory
|
||||||
@@ -34,6 +35,7 @@ resolve
|
|||||||
rtsp
|
rtsp
|
||||||
sendrecv
|
sendrecv
|
||||||
sepheaders
|
sepheaders
|
||||||
|
sftpget
|
||||||
simple
|
simple
|
||||||
simplepost
|
simplepost
|
||||||
simplesmtp
|
simplesmtp
|
||||||
@@ -41,3 +43,5 @@ simplessl
|
|||||||
smtp-multi
|
smtp-multi
|
||||||
smtp-tls
|
smtp-tls
|
||||||
url2file
|
url2file
|
||||||
|
usercertinmem
|
||||||
|
xmlstream
|
||||||
|
@@ -5,7 +5,7 @@
|
|||||||
# | (__| |_| | _ <| |___
|
# | (__| |_| | _ <| |___
|
||||||
# \___|\___/|_| \_\_____|
|
# \___|\___/|_| \_\_____|
|
||||||
#
|
#
|
||||||
# Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al.
|
# Copyright (C) 1998 - 2012, 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
|
||||||
@@ -23,7 +23,7 @@
|
|||||||
AUTOMAKE_OPTIONS = foreign nostdinc
|
AUTOMAKE_OPTIONS = foreign nostdinc
|
||||||
|
|
||||||
EXTRA_DIST = README Makefile.example Makefile.inc Makefile.m32 \
|
EXTRA_DIST = README Makefile.example Makefile.inc Makefile.m32 \
|
||||||
Makefile.netware makefile.dj printf_macro.h $(COMPLICATED_EXAMPLES)
|
Makefile.netware makefile.dj $(COMPLICATED_EXAMPLES)
|
||||||
|
|
||||||
# Specify our include paths here, and do it relative to $(top_srcdir) and
|
# Specify our include paths here, and do it relative to $(top_srcdir) and
|
||||||
# $(top_builddir), to ensure that these paths which belong to the library
|
# $(top_builddir), to ensure that these paths which belong to the library
|
||||||
@@ -31,24 +31,31 @@ EXTRA_DIST = README Makefile.example Makefile.inc Makefile.m32 \
|
|||||||
# might possibly already be installed in the system.
|
# might possibly already be installed in the system.
|
||||||
#
|
#
|
||||||
# $(top_builddir)/include/curl for generated curlbuild.h included from curl.h
|
# $(top_builddir)/include/curl for generated curlbuild.h included from curl.h
|
||||||
# $(top_builddir)/include for generated curlbuild.h included from lib/setup.h
|
# $(top_builddir)/include for generated curlbuild.h inc. from lib/curl_setup.h
|
||||||
# $(top_srcdir)/include is for libcurl's external include files
|
# $(top_srcdir)/include is for libcurl's external include files
|
||||||
|
|
||||||
INCLUDES = -I$(top_builddir)/include/curl \
|
AM_CPPFLAGS = -I$(top_builddir)/include/curl \
|
||||||
-I$(top_builddir)/include \
|
-I$(top_builddir)/include \
|
||||||
-I$(top_srcdir)/include
|
-I$(top_srcdir)/include
|
||||||
|
|
||||||
LIBDIR = $(top_builddir)/lib
|
LIBDIR = $(top_builddir)/lib
|
||||||
|
|
||||||
if STATICLIB
|
# Avoid libcurl obsolete stuff
|
||||||
# we need this define when building with a static lib on Windows
|
AM_CPPFLAGS += -DCURL_NO_OLDIES
|
||||||
STATICCPPFLAGS = -DCURL_STATICLIB
|
|
||||||
|
if USE_CPPFLAG_CURL_STATICLIB
|
||||||
|
AM_CPPFLAGS += -DCURL_STATICLIB
|
||||||
endif
|
endif
|
||||||
|
|
||||||
CPPFLAGS = -DCURL_NO_OLDIES $(STATICCPPFLAGS)
|
# Prevent LIBS from being used for all link targets
|
||||||
|
LIBS = $(BLANK_AT_MAKETIME)
|
||||||
|
|
||||||
# Dependencies
|
# Dependencies
|
||||||
|
if USE_EXPLICIT_LIB_DEPS
|
||||||
|
LDADD = $(LIBDIR)/libcurl.la @LIBCURL_LIBS@
|
||||||
|
else
|
||||||
LDADD = $(LIBDIR)/libcurl.la
|
LDADD = $(LIBDIR)/libcurl.la
|
||||||
|
endif
|
||||||
|
|
||||||
# Makefile.inc provides the check_PROGRAMS and COMPLICATED_EXAMPLES defines
|
# Makefile.inc provides the check_PROGRAMS and COMPLICATED_EXAMPLES defines
|
||||||
include Makefile.inc
|
include Makefile.inc
|
||||||
|
@@ -5,11 +5,13 @@ check_PROGRAMS = 10-at-a-time anyauthput cookie_interface debug fileupload \
|
|||||||
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-multi simplesmtp smtp-tls rtsp externalsocket resolve \
|
smtp-multi simplesmtp smtp-tls rtsp externalsocket resolve \
|
||||||
progressfunc pop3s pop3slist imap url2file
|
progressfunc pop3s pop3slist imap url2file sftpget ftpsget \
|
||||||
|
usercertinmem
|
||||||
|
|
||||||
# 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.cc 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
|
smooth-gtk-thread.c version-check.pl href_extractor.c asiohiper.cpp \
|
||||||
|
multi-uv.c xmlstream.c
|
||||||
|
@@ -27,28 +27,22 @@
|
|||||||
## Example: mingw32-make -f Makefile.m32 CFG=-zlib-ssl-spi-winidn
|
## Example: mingw32-make -f Makefile.m32 CFG=-zlib-ssl-spi-winidn
|
||||||
##
|
##
|
||||||
## Hint: you can also set environment vars to control the build, f.e.:
|
## Hint: you can also set environment vars to control the build, f.e.:
|
||||||
## set ZLIB_PATH=c:/zlib-1.2.5
|
## set ZLIB_PATH=c:/zlib-1.2.8
|
||||||
## set ZLIB=1
|
## set ZLIB=1
|
||||||
#
|
#
|
||||||
###########################################################################
|
###########################################################################
|
||||||
|
|
||||||
# Edit the path below to point to the base of your Zlib sources.
|
# Edit the path below to point to the base of your Zlib sources.
|
||||||
ifndef ZLIB_PATH
|
ifndef ZLIB_PATH
|
||||||
ZLIB_PATH = ../../../zlib-1.2.5
|
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.8r
|
OPENSSL_PATH = ../../../openssl-0.9.8y
|
||||||
endif
|
|
||||||
ifndef OPENSSL_LIBPATH
|
|
||||||
OPENSSL_LIBPATH = $(OPENSSL_PATH)/out
|
|
||||||
endif
|
|
||||||
ifndef OPENSSL_LIBS
|
|
||||||
OPENSSL_LIBS = -leay32 -lssl32
|
|
||||||
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.3.0
|
LIBSSH2_PATH = ../../../libssh2-1.4.3
|
||||||
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
|
||||||
@@ -81,7 +75,7 @@ ifndef ARCH
|
|||||||
ARCH = w32
|
ARCH = w32
|
||||||
endif
|
endif
|
||||||
|
|
||||||
CC = 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)
|
||||||
@@ -89,11 +83,36 @@ CFLAGS += -D_AMD64_
|
|||||||
endif
|
endif
|
||||||
# comment LDFLAGS below to keep debug info
|
# comment LDFLAGS below to keep debug info
|
||||||
LDFLAGS = -s
|
LDFLAGS = -s
|
||||||
RC = windres
|
RC = $(CROSSPREFIX)windres
|
||||||
RCFLAGS = --include-dir=$(PROOT)/include -O COFF -i
|
RCFLAGS = --include-dir=$(PROOT)/include -O COFF -i
|
||||||
|
|
||||||
RM = del /q /f 2>NUL
|
# Platform-dependent helper tool macros
|
||||||
CP = copy
|
ifeq ($(findstring /sh,$(SHELL)),/sh)
|
||||||
|
DEL = rm -f $1
|
||||||
|
RMDIR = rm -fr $1
|
||||||
|
MKDIR = mkdir -p $1
|
||||||
|
COPY = -cp -afv $1 $2
|
||||||
|
#COPYR = -cp -afr $1/* $2
|
||||||
|
COPYR = -rsync -aC $1/* $2
|
||||||
|
TOUCH = touch $1
|
||||||
|
CAT = cat
|
||||||
|
ECHONL = echo ""
|
||||||
|
DL = '
|
||||||
|
else
|
||||||
|
ifeq "$(OS)" "Windows_NT"
|
||||||
|
DEL = -del 2>NUL /q /f $(subst /,\,$1)
|
||||||
|
RMDIR = -rd 2>NUL /q /s $(subst /,\,$1)
|
||||||
|
else
|
||||||
|
DEL = -del 2>NUL $(subst /,\,$1)
|
||||||
|
RMDIR = -deltree 2>NUL /y $(subst /,\,$1)
|
||||||
|
endif
|
||||||
|
MKDIR = -md 2>NUL $(subst /,\,$1)
|
||||||
|
COPY = -copy 2>NUL /y $(subst /,\,$1) $(subst /,\,$2)
|
||||||
|
COPYR = -xcopy 2>NUL /q /y /e $(subst /,\,$1) $(subst /,\,$2)
|
||||||
|
TOUCH = copy 2>&1>NUL /b $(subst /,\,$1) +,,
|
||||||
|
CAT = type
|
||||||
|
ECHONL = $(ComSpec) /c echo.
|
||||||
|
endif
|
||||||
|
|
||||||
########################################################
|
########################################################
|
||||||
## Nothing more to do below this line!
|
## Nothing more to do below this line!
|
||||||
@@ -138,6 +157,13 @@ endif
|
|||||||
ifeq ($(findstring -ipv6,$(CFG)),-ipv6)
|
ifeq ($(findstring -ipv6,$(CFG)),-ipv6)
|
||||||
IPV6 = 1
|
IPV6 = 1
|
||||||
endif
|
endif
|
||||||
|
ifeq ($(findstring -metalink,$(CFG)),-metalink)
|
||||||
|
METALINK = 1
|
||||||
|
endif
|
||||||
|
ifeq ($(findstring -winssl,$(CFG)),-winssl)
|
||||||
|
SCHANNEL = 1
|
||||||
|
SSPI = 1
|
||||||
|
endif
|
||||||
|
|
||||||
INCLUDES = -I. -I$(PROOT) -I$(PROOT)/include -I$(PROOT)/lib
|
INCLUDES = -I. -I$(PROOT) -I$(PROOT)/include -I$(PROOT)/lib
|
||||||
|
|
||||||
@@ -148,6 +174,7 @@ else
|
|||||||
curl_DEPENDENCIES = $(PROOT)/lib/libcurl.a
|
curl_DEPENDENCIES = $(PROOT)/lib/libcurl.a
|
||||||
curl_LDADD = -L$(PROOT)/lib -lcurl
|
curl_LDADD = -L$(PROOT)/lib -lcurl
|
||||||
CFLAGS += -DCURL_STATICLIB
|
CFLAGS += -DCURL_STATICLIB
|
||||||
|
LDFLAGS += -static
|
||||||
endif
|
endif
|
||||||
ifdef ARES
|
ifdef ARES
|
||||||
ifndef DYN
|
ifndef DYN
|
||||||
@@ -165,7 +192,22 @@ ifdef SSH2
|
|||||||
curl_LDADD += -L"$(LIBSSH2_PATH)/win32" -lssh2
|
curl_LDADD += -L"$(LIBSSH2_PATH)/win32" -lssh2
|
||||||
endif
|
endif
|
||||||
ifdef SSL
|
ifdef SSL
|
||||||
CFLAGS += -DUSE_SSLEAY -DHAVE_OPENSSL_ENGINE_H
|
ifndef OPENSSL_LIBPATH
|
||||||
|
OPENSSL_LIBS = -lssl -lcrypto
|
||||||
|
ifeq "$(wildcard $(OPENSSL_PATH)/out)" "$(OPENSSL_PATH)/out"
|
||||||
|
OPENSSL_LIBPATH = $(OPENSSL_PATH)/out
|
||||||
|
ifdef DYN
|
||||||
|
OPENSSL_LIBS = -lssl32 -leay32
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
ifeq "$(wildcard $(OPENSSL_PATH)/lib)" "$(OPENSSL_PATH)/lib"
|
||||||
|
OPENSSL_LIBPATH = $(OPENSSL_PATH)/lib
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
ifndef DYN
|
||||||
|
OPENSSL_LIBS += -lgdi32 -lcrypt32
|
||||||
|
endif
|
||||||
|
CFLAGS += -DUSE_SSLEAY
|
||||||
curl_LDADD += -L"$(OPENSSL_LIBPATH)" $(OPENSSL_LIBS)
|
curl_LDADD += -L"$(OPENSSL_LIBPATH)" $(OPENSSL_LIBS)
|
||||||
endif
|
endif
|
||||||
ifdef ZLIB
|
ifdef ZLIB
|
||||||
@@ -184,6 +226,9 @@ endif
|
|||||||
endif
|
endif
|
||||||
ifdef SSPI
|
ifdef SSPI
|
||||||
CFLAGS += -DUSE_WINDOWS_SSPI
|
CFLAGS += -DUSE_WINDOWS_SSPI
|
||||||
|
ifdef SCHANNEL
|
||||||
|
CFLAGS += -DUSE_SCHANNEL
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
ifdef SPNEGO
|
ifdef SPNEGO
|
||||||
CFLAGS += -DHAVE_SPNEGO
|
CFLAGS += -DHAVE_SPNEGO
|
||||||
@@ -215,6 +260,8 @@ include Makefile.inc
|
|||||||
check_PROGRAMS := $(patsubst %,%.exe,$(strip $(check_PROGRAMS)))
|
check_PROGRAMS := $(patsubst %,%.exe,$(strip $(check_PROGRAMS)))
|
||||||
check_PROGRAMS += ftpuploadresume.exe synctime.exe
|
check_PROGRAMS += ftpuploadresume.exe synctime.exe
|
||||||
|
|
||||||
|
.PRECIOUS: %.o
|
||||||
|
|
||||||
|
|
||||||
all: $(check_PROGRAMS)
|
all: $(check_PROGRAMS)
|
||||||
|
|
||||||
@@ -228,8 +275,8 @@ all: $(check_PROGRAMS)
|
|||||||
$(RC) $(RCFLAGS) $< -o $@
|
$(RC) $(RCFLAGS) $< -o $@
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
-$(RM) $(check_PROGRAMS:.exe=.o)
|
@$(call DEL, $(check_PROGRAMS:.exe=.o))
|
||||||
|
|
||||||
distclean vclean: clean
|
distclean vclean: clean
|
||||||
-$(RM) $(check_PROGRAMS)
|
@$(call DEL, $(check_PROGRAMS))
|
||||||
|
|
||||||
|
@@ -14,17 +14,17 @@ endif
|
|||||||
|
|
||||||
# Edit the path below to point to the base of your Zlib sources.
|
# Edit the path below to point to the base of your Zlib sources.
|
||||||
ifndef ZLIB_PATH
|
ifndef ZLIB_PATH
|
||||||
ZLIB_PATH = ../../../zlib-1.2.5
|
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.8r
|
OPENSSL_PATH = ../../../openssl-0.9.8y
|
||||||
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.3.0
|
LIBSSH2_PATH = ../../../libssh2-1.4.3
|
||||||
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.
|
||||||
|
@@ -61,6 +61,7 @@ multi-debugcallback.c - a multi-interface app using the debug callback
|
|||||||
multi-double.c - a multi-interface app doing two simultaneous transfers
|
multi-double.c - a multi-interface app doing two simultaneous transfers
|
||||||
multi-post.c - a multi-interface app doing a multipart formpost
|
multi-post.c - a multi-interface app doing a multipart formpost
|
||||||
multi-single.c - a multi-interface app getting a single file
|
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
|
multithread.c - an example using multi-treading transferring multiple files
|
||||||
opensslthreadlock.c - show how to do locking when using OpenSSL multi-threaded
|
opensslthreadlock.c - show how to do locking when using OpenSSL multi-threaded
|
||||||
persistant.c - request two URLs with a persistent connection
|
persistant.c - request two URLs with a persistent connection
|
||||||
@@ -77,4 +78,5 @@ simplepost.c - HTTP POST
|
|||||||
simplessl.c - HTTPS example with certificates many options set
|
simplessl.c - HTTPS example with certificates many options set
|
||||||
synctime.c - Sync local time by extracting date from remote HTTP servers
|
synctime.c - Sync local time by extracting date from remote HTTP servers
|
||||||
url2file.c - download a document and store it in a file
|
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.
|
10-at-a-time.c - Download many files simultaneously, 10 at a time.
|
||||||
|
@@ -5,7 +5,7 @@
|
|||||||
* | (__| |_| | _ <| |___
|
* | (__| |_| | _ <| |___
|
||||||
* \___|\___/|_| \_\_____|
|
* \___|\___/|_| \_\_____|
|
||||||
*
|
*
|
||||||
* Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al.
|
* Copyright (C) 1998 - 2012, 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
|
||||||
@@ -27,7 +27,9 @@
|
|||||||
# ifdef __VMS
|
# ifdef __VMS
|
||||||
typedef int intptr_t;
|
typedef int intptr_t;
|
||||||
# endif
|
# endif
|
||||||
|
# if !defined(_AIX) && !defined(__sgi) && !defined(__osf__)
|
||||||
# include <stdint.h>
|
# include <stdint.h>
|
||||||
|
# endif
|
||||||
# include <unistd.h>
|
# include <unistd.h>
|
||||||
#endif
|
#endif
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
@@ -42,7 +44,6 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <curl/curl.h>
|
#include <curl/curl.h>
|
||||||
#include "printf_macro.h"
|
|
||||||
|
|
||||||
#if LIBCURL_VERSION_NUM < 0x070c03
|
#if LIBCURL_VERSION_NUM < 0x070c03
|
||||||
#error "upgrade your libcurl to no less than 7.12.3"
|
#error "upgrade your libcurl to no less than 7.12.3"
|
||||||
@@ -52,6 +53,12 @@
|
|||||||
#define TRUE 1
|
#define TRUE 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(_AIX) || defined(__sgi) || defined(__osf__)
|
||||||
|
#ifndef intptr_t
|
||||||
|
#define intptr_t long
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* This example shows a HTTP PUT operation with authentiction using "any"
|
* This example shows a HTTP PUT operation with authentiction using "any"
|
||||||
* type. It PUTs a file given as a command line argument to the URL also given
|
* type. It PUTs a file given as a command line argument to the URL also given
|
||||||
@@ -89,12 +96,16 @@ static curlioerr my_ioctl(CURL *handle, curliocmd cmd, void *userp)
|
|||||||
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;
|
size_t retcode;
|
||||||
|
curl_off_t nread;
|
||||||
|
|
||||||
intptr_t fd = (intptr_t)stream;
|
intptr_t fd = (intptr_t)stream;
|
||||||
|
|
||||||
retcode = read(fd, ptr, size * nmemb);
|
retcode = read(fd, ptr, size * nmemb);
|
||||||
|
|
||||||
fprintf(stderr, "*** We read %" _FMT_SIZE_T " bytes from file\n", retcode);
|
nread = (curl_off_t)retcode;
|
||||||
|
|
||||||
|
fprintf(stderr, "*** We read %" CURL_FORMAT_CURL_OFF_T
|
||||||
|
" bytes from file\n", nread);
|
||||||
|
|
||||||
return retcode;
|
return retcode;
|
||||||
}
|
}
|
||||||
@@ -159,6 +170,10 @@ int main(int argc, char **argv)
|
|||||||
|
|
||||||
/* Now run off and do what you've been told! */
|
/* Now run off and do what you've been told! */
|
||||||
res = curl_easy_perform(curl);
|
res = curl_easy_perform(curl);
|
||||||
|
/* Check for errors */
|
||||||
|
if(res != CURLE_OK)
|
||||||
|
fprintf(stderr, "curl_easy_perform() failed: %s\n",
|
||||||
|
curl_easy_strerror(res));
|
||||||
|
|
||||||
/* always cleanup */
|
/* always cleanup */
|
||||||
curl_easy_cleanup(curl);
|
curl_easy_cleanup(curl);
|
||||||
|
454
docs/examples/asiohiper.cpp
Normal file
454
docs/examples/asiohiper.cpp
Normal file
@@ -0,0 +1,454 @@
|
|||||||
|
/***************************************************************************
|
||||||
|
* _ _ ____ _
|
||||||
|
* Project ___| | | | _ \| |
|
||||||
|
* / __| | | | |_) | |
|
||||||
|
* | (__| |_| | _ <| |___
|
||||||
|
* \___|\___/|_| \_\_____|
|
||||||
|
*
|
||||||
|
* Copyright (C) 2012, 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 http://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.
|
||||||
|
*
|
||||||
|
***************************************************************************/
|
||||||
|
|
||||||
|
/*
|
||||||
|
* 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.
|
||||||
|
* Requires boost::asio, boost::bind and boost::system
|
||||||
|
*
|
||||||
|
* This is an adaptation of libcurl's "hiperfifo.c" and "evhiperfifo.c"
|
||||||
|
* sample programs. This example implements a subset of the functionality from
|
||||||
|
* hiperfifo.c, for full functionality refer hiperfifo.c or evhiperfifo.c
|
||||||
|
*
|
||||||
|
* Written by Lijo Antony based on hiperfifo.c by Jeff Pohlmeyer
|
||||||
|
*
|
||||||
|
* When running, the program creates an easy handle for a URL and
|
||||||
|
* uses the curl_multi API to fetch it.
|
||||||
|
*
|
||||||
|
* Note:
|
||||||
|
* For the sake of simplicity, URL is hard coded to "www.google.com"
|
||||||
|
*
|
||||||
|
* This is purely a demo app, all retrieved data is simply discarded by the write
|
||||||
|
* callback.
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
#include <curl/curl.h>
|
||||||
|
#include <boost/asio.hpp>
|
||||||
|
#include <boost/bind.hpp>
|
||||||
|
|
||||||
|
#define MSG_OUT stdout /* Send info to stdout, change to stderr if you want */
|
||||||
|
|
||||||
|
/* boost::asio related objects
|
||||||
|
* using global variables for simplicity
|
||||||
|
*/
|
||||||
|
boost::asio::io_service io_service;
|
||||||
|
boost::asio::deadline_timer timer(io_service);
|
||||||
|
std::map<curl_socket_t, boost::asio::ip::tcp::socket *> socket_map;
|
||||||
|
|
||||||
|
/* Global information, common to all connections */
|
||||||
|
typedef struct _GlobalInfo
|
||||||
|
{
|
||||||
|
CURLM *multi;
|
||||||
|
int still_running;
|
||||||
|
} GlobalInfo;
|
||||||
|
|
||||||
|
/* Information associated with a specific easy handle */
|
||||||
|
typedef struct _ConnInfo
|
||||||
|
{
|
||||||
|
CURL *easy;
|
||||||
|
char *url;
|
||||||
|
GlobalInfo *global;
|
||||||
|
char error[CURL_ERROR_SIZE];
|
||||||
|
} ConnInfo;
|
||||||
|
|
||||||
|
static void timer_cb(const boost::system::error_code & error, GlobalInfo *g);
|
||||||
|
|
||||||
|
/* Update the event timer after curl_multi library calls */
|
||||||
|
static int multi_timer_cb(CURLM *multi, long timeout_ms, GlobalInfo *g)
|
||||||
|
{
|
||||||
|
fprintf(MSG_OUT, "\nmulti_timer_cb: timeout_ms %ld", timeout_ms);
|
||||||
|
|
||||||
|
/* cancel running timer */
|
||||||
|
timer.cancel();
|
||||||
|
|
||||||
|
if ( timeout_ms > 0 )
|
||||||
|
{
|
||||||
|
/* update timer */
|
||||||
|
timer.expires_from_now(boost::posix_time::millisec(timeout_ms));
|
||||||
|
timer.async_wait(boost::bind(&timer_cb, _1, g));
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
/* call timeout function immediately */
|
||||||
|
boost::system::error_code error; /*success*/
|
||||||
|
timer_cb(error, g);
|
||||||
|
}
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Die if we get a bad CURLMcode somewhere */
|
||||||
|
static void mcode_or_die(const char *where, CURLMcode code)
|
||||||
|
{
|
||||||
|
if ( CURLM_OK != code )
|
||||||
|
{
|
||||||
|
const char *s;
|
||||||
|
switch ( code )
|
||||||
|
{
|
||||||
|
case CURLM_CALL_MULTI_PERFORM: s="CURLM_CALL_MULTI_PERFORM"; break;
|
||||||
|
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);
|
||||||
|
/* ignore this error */
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
fprintf(MSG_OUT, "\nERROR: %s returns %s", where, s);
|
||||||
|
exit(code);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Check for completed transfers, and remove their easy handles */
|
||||||
|
static void check_multi_info(GlobalInfo *g)
|
||||||
|
{
|
||||||
|
char *eff_url;
|
||||||
|
CURLMsg *msg;
|
||||||
|
int msgs_left;
|
||||||
|
ConnInfo *conn;
|
||||||
|
CURL *easy;
|
||||||
|
CURLcode res;
|
||||||
|
|
||||||
|
fprintf(MSG_OUT, "\nREMAINING: %d", g->still_running);
|
||||||
|
|
||||||
|
while ((msg = curl_multi_info_read(g->multi, &msgs_left)))
|
||||||
|
{
|
||||||
|
if (msg->msg == CURLMSG_DONE)
|
||||||
|
{
|
||||||
|
easy = msg->easy_handle;
|
||||||
|
res = msg->data.result;
|
||||||
|
curl_easy_getinfo(easy, CURLINFO_PRIVATE, &conn);
|
||||||
|
curl_easy_getinfo(easy, CURLINFO_EFFECTIVE_URL, &eff_url);
|
||||||
|
fprintf(MSG_OUT, "\nDONE: %s => (%d) %s", eff_url, res, conn->error);
|
||||||
|
curl_multi_remove_handle(g->multi, easy);
|
||||||
|
free(conn->url);
|
||||||
|
curl_easy_cleanup(easy);
|
||||||
|
free(conn);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 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)
|
||||||
|
{
|
||||||
|
fprintf(MSG_OUT, "\nevent_cb: action=%d", action);
|
||||||
|
|
||||||
|
CURLMcode rc;
|
||||||
|
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);
|
||||||
|
check_multi_info(g);
|
||||||
|
|
||||||
|
if ( g->still_running <= 0 )
|
||||||
|
{
|
||||||
|
fprintf(MSG_OUT, "\nlast transfer done, kill timeout");
|
||||||
|
timer.cancel();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Called by asio when our timeout expires */
|
||||||
|
static void timer_cb(const boost::system::error_code & error, GlobalInfo *g)
|
||||||
|
{
|
||||||
|
if ( !error)
|
||||||
|
{
|
||||||
|
fprintf(MSG_OUT, "\ntimer_cb: ");
|
||||||
|
|
||||||
|
CURLMcode rc;
|
||||||
|
rc = curl_multi_socket_action(g->multi, CURL_SOCKET_TIMEOUT, 0, &g->still_running);
|
||||||
|
|
||||||
|
mcode_or_die("timer_cb: curl_multi_socket_action", rc);
|
||||||
|
check_multi_info(g);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Clean up any data */
|
||||||
|
static void remsock(int *f, GlobalInfo *g)
|
||||||
|
{
|
||||||
|
fprintf(MSG_OUT, "\nremsock: ");
|
||||||
|
|
||||||
|
if ( f )
|
||||||
|
{
|
||||||
|
free(f);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
static void setsock(int *fdp, curl_socket_t s, CURL*e, int act, GlobalInfo*g)
|
||||||
|
{
|
||||||
|
fprintf(MSG_OUT, "\nsetsock: socket=%d, act=%d, fdp=%p", s, act, fdp);
|
||||||
|
|
||||||
|
std::map<curl_socket_t, boost::asio::ip::tcp::socket *>::iterator it = socket_map.find(s);
|
||||||
|
|
||||||
|
if ( it == socket_map.end() )
|
||||||
|
{
|
||||||
|
fprintf(MSG_OUT, "\nsocket %d is a c-ares socket, ignoring", s);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
boost::asio::ip::tcp::socket * tcp_socket = it->second;
|
||||||
|
|
||||||
|
*fdp = act;
|
||||||
|
|
||||||
|
if ( act == CURL_POLL_IN )
|
||||||
|
{
|
||||||
|
fprintf(MSG_OUT, "\nwatching for socket to become readable");
|
||||||
|
|
||||||
|
tcp_socket->async_read_some(boost::asio::null_buffers(),
|
||||||
|
boost::bind(&event_cb, g,
|
||||||
|
tcp_socket,
|
||||||
|
act));
|
||||||
|
}
|
||||||
|
else if ( act == CURL_POLL_OUT )
|
||||||
|
{
|
||||||
|
fprintf(MSG_OUT, "\nwatching for socket to become writable");
|
||||||
|
|
||||||
|
tcp_socket->async_write_some(boost::asio::null_buffers(),
|
||||||
|
boost::bind(&event_cb, g,
|
||||||
|
tcp_socket,
|
||||||
|
act));
|
||||||
|
}
|
||||||
|
else if ( act == CURL_POLL_INOUT )
|
||||||
|
{
|
||||||
|
fprintf(MSG_OUT, "\nwatching for socket to become readable & writable");
|
||||||
|
|
||||||
|
tcp_socket->async_read_some(boost::asio::null_buffers(),
|
||||||
|
boost::bind(&event_cb, g,
|
||||||
|
tcp_socket,
|
||||||
|
act));
|
||||||
|
|
||||||
|
tcp_socket->async_write_some(boost::asio::null_buffers(),
|
||||||
|
boost::bind(&event_cb, g,
|
||||||
|
tcp_socket,
|
||||||
|
act));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
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 */
|
||||||
|
|
||||||
|
setsock(fdp, s, easy, action, g);
|
||||||
|
curl_multi_assign(g->multi, s, fdp);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* CURLMOPT_SOCKETFUNCTION */
|
||||||
|
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);
|
||||||
|
|
||||||
|
GlobalInfo *g = (GlobalInfo*) cbp;
|
||||||
|
int *actionp = (int*) sockp;
|
||||||
|
const char *whatstr[]={ "none", "IN", "OUT", "INOUT", "REMOVE"};
|
||||||
|
|
||||||
|
fprintf(MSG_OUT,
|
||||||
|
"\nsocket callback: s=%d e=%p what=%s ", s, e, whatstr[what]);
|
||||||
|
|
||||||
|
if ( what == CURL_POLL_REMOVE )
|
||||||
|
{
|
||||||
|
fprintf(MSG_OUT, "\n");
|
||||||
|
remsock(actionp, g);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if ( !actionp )
|
||||||
|
{
|
||||||
|
fprintf(MSG_OUT, "\nAdding data: %s", whatstr[what]);
|
||||||
|
addsock(s, e, what, g);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
fprintf(MSG_OUT,
|
||||||
|
"\nChanging action from %s to %s",
|
||||||
|
whatstr[*actionp], whatstr[what]);
|
||||||
|
setsock(actionp, s, e, what, g);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* CURLOPT_WRITEFUNCTION */
|
||||||
|
static size_t write_cb(void *ptr, size_t size, size_t nmemb, void *data)
|
||||||
|
{
|
||||||
|
|
||||||
|
size_t written = size * nmemb;
|
||||||
|
char* pBuffer = (char*)malloc(written + 1);
|
||||||
|
|
||||||
|
strncpy(pBuffer, (const char *)ptr, written);
|
||||||
|
pBuffer [written] = '\0';
|
||||||
|
|
||||||
|
fprintf(MSG_OUT, "%s", pBuffer);
|
||||||
|
|
||||||
|
free(pBuffer);
|
||||||
|
|
||||||
|
return written;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* CURLOPT_PROGRESSFUNCTION */
|
||||||
|
static int prog_cb (void *p, double dltotal, double dlnow, double ult,
|
||||||
|
double uln)
|
||||||
|
{
|
||||||
|
ConnInfo *conn = (ConnInfo *)p;
|
||||||
|
(void)ult;
|
||||||
|
(void)uln;
|
||||||
|
|
||||||
|
fprintf(MSG_OUT, "\nProgress: %s (%g/%g)", conn->url, dlnow, dltotal);
|
||||||
|
fprintf(MSG_OUT, "\nProgress: %s (%g)", conn->url, ult);
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* CURLOPT_OPENSOCKETFUNCTION */
|
||||||
|
static curl_socket_t opensocket(void *clientp,
|
||||||
|
curlsocktype purpose,
|
||||||
|
struct curl_sockaddr *address)
|
||||||
|
{
|
||||||
|
fprintf(MSG_OUT, "\nopensocket :");
|
||||||
|
|
||||||
|
curl_socket_t sockfd = CURL_SOCKET_BAD;
|
||||||
|
|
||||||
|
/* restrict to ipv4 */
|
||||||
|
if (purpose == CURLSOCKTYPE_IPCXN && address->family == AF_INET)
|
||||||
|
{
|
||||||
|
/* create a tcp socket object */
|
||||||
|
boost::asio::ip::tcp::socket *tcp_socket = new boost::asio::ip::tcp::socket(io_service);
|
||||||
|
|
||||||
|
/* open it and get the native handle*/
|
||||||
|
boost::system::error_code ec;
|
||||||
|
tcp_socket->open(boost::asio::ip::tcp::v4(), ec);
|
||||||
|
|
||||||
|
if (ec)
|
||||||
|
{
|
||||||
|
//An error occurred
|
||||||
|
std::cout << std::endl << "Couldn't open socket [" << ec << "][" << ec.message() << "]";
|
||||||
|
fprintf(MSG_OUT, "\nERROR: Returning CURL_SOCKET_BAD to signal error");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
sockfd = tcp_socket->native_handle();
|
||||||
|
fprintf(MSG_OUT, "\nOpened socket %d", sockfd);
|
||||||
|
|
||||||
|
/* save it for monitoring */
|
||||||
|
socket_map.insert(std::pair<curl_socket_t, boost::asio::ip::tcp::socket *>(sockfd, tcp_socket));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return sockfd;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* CURLOPT_CLOSESOCKETFUNCTION */
|
||||||
|
static int closesocket(void *clientp, curl_socket_t item)
|
||||||
|
{
|
||||||
|
fprintf(MSG_OUT, "\nclosesocket : %d", item);
|
||||||
|
|
||||||
|
std::map<curl_socket_t, boost::asio::ip::tcp::socket *>::iterator it = socket_map.find(item);
|
||||||
|
|
||||||
|
if ( it != socket_map.end() )
|
||||||
|
{
|
||||||
|
delete it->second;
|
||||||
|
socket_map.erase(it);
|
||||||
|
}
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Create a new easy handle, and add it to the global curl_multi */
|
||||||
|
static void new_conn(char *url, GlobalInfo *g )
|
||||||
|
{
|
||||||
|
ConnInfo *conn;
|
||||||
|
CURLMcode rc;
|
||||||
|
|
||||||
|
conn = (ConnInfo *)calloc(1, sizeof(ConnInfo));
|
||||||
|
memset(conn, 0, sizeof(ConnInfo));
|
||||||
|
conn->error[0]='\0';
|
||||||
|
|
||||||
|
conn->easy = curl_easy_init();
|
||||||
|
|
||||||
|
if ( !conn->easy )
|
||||||
|
{
|
||||||
|
fprintf(MSG_OUT, "\ncurl_easy_init() failed, exiting!");
|
||||||
|
exit(2);
|
||||||
|
}
|
||||||
|
conn->global = g;
|
||||||
|
conn->url = strdup(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_WRITEDATA, &conn);
|
||||||
|
curl_easy_setopt(conn->easy, CURLOPT_VERBOSE, 1L);
|
||||||
|
curl_easy_setopt(conn->easy, CURLOPT_ERRORBUFFER, conn->error);
|
||||||
|
curl_easy_setopt(conn->easy, CURLOPT_PRIVATE, conn);
|
||||||
|
curl_easy_setopt(conn->easy, CURLOPT_NOPROGRESS, 1L);
|
||||||
|
curl_easy_setopt(conn->easy, CURLOPT_PROGRESSFUNCTION, prog_cb);
|
||||||
|
curl_easy_setopt(conn->easy, CURLOPT_PROGRESSDATA, conn);
|
||||||
|
curl_easy_setopt(conn->easy, CURLOPT_LOW_SPEED_TIME, 3L);
|
||||||
|
curl_easy_setopt(conn->easy, CURLOPT_LOW_SPEED_LIMIT, 10L);
|
||||||
|
|
||||||
|
/* call this function to get a socket */
|
||||||
|
curl_easy_setopt(conn->easy, CURLOPT_OPENSOCKETFUNCTION, opensocket);
|
||||||
|
|
||||||
|
/* call this function to close a socket */
|
||||||
|
curl_easy_setopt(conn->easy, CURLOPT_CLOSESOCKETFUNCTION, closesocket);
|
||||||
|
|
||||||
|
fprintf(MSG_OUT,
|
||||||
|
"\nAdding easy %p to multi %p (%s)", conn->easy, g->multi, url);
|
||||||
|
rc = curl_multi_add_handle(g->multi, conn->easy);
|
||||||
|
mcode_or_die("new_conn: curl_multi_add_handle", rc);
|
||||||
|
|
||||||
|
/* note that the add_handle() will set a time-out to trigger very soon so
|
||||||
|
that the necessary socket_action() call will be called by this app */
|
||||||
|
}
|
||||||
|
|
||||||
|
int main(int argc, char **argv)
|
||||||
|
{
|
||||||
|
GlobalInfo g;
|
||||||
|
CURLMcode rc;
|
||||||
|
(void)argc;
|
||||||
|
(void)argv;
|
||||||
|
|
||||||
|
memset(&g, 0, sizeof(GlobalInfo));
|
||||||
|
g.multi = curl_multi_init();
|
||||||
|
|
||||||
|
curl_multi_setopt(g.multi, CURLMOPT_SOCKETFUNCTION, sock_cb);
|
||||||
|
curl_multi_setopt(g.multi, CURLMOPT_SOCKETDATA, &g);
|
||||||
|
curl_multi_setopt(g.multi, CURLMOPT_TIMERFUNCTION, multi_timer_cb);
|
||||||
|
curl_multi_setopt(g.multi, CURLMOPT_TIMERDATA, &g);
|
||||||
|
|
||||||
|
new_conn((char *)"www.google.com", &g); /* add a URL */
|
||||||
|
|
||||||
|
/* enter io_service run loop */
|
||||||
|
io_service.run();
|
||||||
|
|
||||||
|
curl_multi_cleanup(g.multi);
|
||||||
|
|
||||||
|
fprintf(MSG_OUT, "\ndone.\n");
|
||||||
|
return 0;
|
||||||
|
}
|
@@ -52,18 +52,24 @@ int main(void)
|
|||||||
res = curl_easy_perform(curl);
|
res = curl_easy_perform(curl);
|
||||||
|
|
||||||
if(!res) {
|
if(!res) {
|
||||||
struct curl_certinfo *ci = NULL;
|
union {
|
||||||
|
struct curl_slist *to_info;
|
||||||
|
struct curl_certinfo *to_certinfo;
|
||||||
|
} ptr;
|
||||||
|
|
||||||
res = curl_easy_getinfo(curl, CURLINFO_CERTINFO, &ci);
|
ptr.to_info = NULL;
|
||||||
|
|
||||||
if(!res && ci) {
|
res = curl_easy_getinfo(curl, CURLINFO_CERTINFO, &ptr.to_info);
|
||||||
|
|
||||||
|
if(!res && ptr.to_info) {
|
||||||
int i;
|
int i;
|
||||||
printf("%d certs!\n", ci->num_of_certs);
|
|
||||||
|
|
||||||
for(i=0; i<ci->num_of_certs; i++) {
|
printf("%d certs!\n", ptr.to_certinfo->num_of_certs);
|
||||||
|
|
||||||
|
for(i = 0; i < ptr.to_certinfo->num_of_certs; i++) {
|
||||||
struct curl_slist *slist;
|
struct curl_slist *slist;
|
||||||
|
|
||||||
for(slist = ci->certinfo[i]; slist; slist = slist->next)
|
for(slist = ptr.to_certinfo->certinfo[i]; slist; slist = slist->next)
|
||||||
printf("%s\n", slist->data);
|
printf("%s\n", slist->data);
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -71,7 +77,6 @@ int main(void)
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
curl_easy_cleanup(curl);
|
curl_easy_cleanup(curl);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -60,7 +60,7 @@ int main(int argc, char *argv[])
|
|||||||
{
|
{
|
||||||
CURL *curl_handle;
|
CURL *curl_handle;
|
||||||
CURLcode res;
|
CURLcode res;
|
||||||
int prtsep = 0, prttime = 0;
|
int prtall = 0, prtsep = 0, prttime = 0;
|
||||||
const char *url = URL_1M;
|
const char *url = URL_1M;
|
||||||
char *appname = argv[0];
|
char *appname = argv[0];
|
||||||
|
|
||||||
@@ -77,6 +77,8 @@ int main(int argc, char *argv[])
|
|||||||
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) {
|
||||||
|
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) {
|
||||||
@@ -161,6 +163,18 @@ 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) {
|
||||||
|
/* check for name resolution time */
|
||||||
|
res = curl_easy_getinfo(curl_handle, CURLINFO_NAMELOOKUP_TIME, &val);
|
||||||
|
if((CURLE_OK == res) && (val>0))
|
||||||
|
printf("Name lookup time: %0.3f sec.\n", val);
|
||||||
|
|
||||||
|
/* check for connect time */
|
||||||
|
res = curl_easy_getinfo(curl_handle, CURLINFO_CONNECT_TIME, &val);
|
||||||
|
if((CURLE_OK == res) && (val>0))
|
||||||
|
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,7 +5,7 @@
|
|||||||
* | (__| |_| | _ <| |___
|
* | (__| |_| | _ <| |___
|
||||||
* \___|\___/|_| \_\_____|
|
* \___|\___/|_| \_\_____|
|
||||||
*
|
*
|
||||||
* Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al.
|
* Copyright (C) 1998 - 2012, 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
|
||||||
@@ -89,7 +89,7 @@ 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", time(NULL) + 31337, "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));
|
||||||
|
@@ -5,7 +5,7 @@
|
|||||||
* | (__| |_| | _ <| |___
|
* | (__| |_| | _ <| |___
|
||||||
* \___|\___/|_| \_\_____|
|
* \___|\___/|_| \_\_____|
|
||||||
*
|
*
|
||||||
* Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al.
|
* Copyright (C) 1998 - 2013, 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
|
||||||
@@ -130,8 +130,15 @@ int main(void)
|
|||||||
/* the DEBUGFUNCTION has no effect until we enable VERBOSE */
|
/* the DEBUGFUNCTION has no effect until we enable VERBOSE */
|
||||||
curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L);
|
curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L);
|
||||||
|
|
||||||
|
/* example.com is redirected, so we tell libcurl to follow redirection */
|
||||||
|
curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L);
|
||||||
|
|
||||||
curl_easy_setopt(curl, CURLOPT_URL, "http://example.com/");
|
curl_easy_setopt(curl, CURLOPT_URL, "http://example.com/");
|
||||||
res = curl_easy_perform(curl);
|
res = curl_easy_perform(curl);
|
||||||
|
/* Check for errors */
|
||||||
|
if(res != CURLE_OK)
|
||||||
|
fprintf(stderr, "curl_easy_perform() failed: %s\n",
|
||||||
|
curl_easy_strerror(res));
|
||||||
|
|
||||||
/* always cleanup */
|
/* always cleanup */
|
||||||
curl_easy_cleanup(curl);
|
curl_easy_cleanup(curl);
|
||||||
|
@@ -5,7 +5,7 @@
|
|||||||
* | (__| |_| | _ <| |___
|
* | (__| |_| | _ <| |___
|
||||||
* \___|\___/|_| \_\_____|
|
* \___|\___/|_| \_\_____|
|
||||||
*
|
*
|
||||||
* Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al.
|
* Copyright (C) 1998 - 2012, 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
|
||||||
@@ -336,7 +336,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);
|
||||||
|
@@ -5,7 +5,7 @@
|
|||||||
* | (__| |_| | _ <| |___
|
* | (__| |_| | _ <| |___
|
||||||
* \___|\___/|_| \_\_____|
|
* \___|\___/|_| \_\_____|
|
||||||
*
|
*
|
||||||
* Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al.
|
* Copyright (C) 1998 - 2012, 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
|
||||||
@@ -47,6 +47,10 @@
|
|||||||
#define IPADDR "127.0.0.1"
|
#define IPADDR "127.0.0.1"
|
||||||
#define PORTNUM 80
|
#define PORTNUM 80
|
||||||
|
|
||||||
|
#ifndef INADDR_NONE
|
||||||
|
#define INADDR_NONE 0xffffffff
|
||||||
|
#endif
|
||||||
|
|
||||||
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);
|
int written = fwrite(ptr, size, nmemb, (FILE *)stream);
|
||||||
@@ -57,7 +61,10 @@ static curl_socket_t opensocket(void *clientp,
|
|||||||
curlsocktype purpose,
|
curlsocktype purpose,
|
||||||
struct curl_sockaddr *address)
|
struct curl_sockaddr *address)
|
||||||
{
|
{
|
||||||
curl_socket_t sockfd = *(curl_socket_t *)clientp;
|
curl_socket_t sockfd;
|
||||||
|
(void)purpose;
|
||||||
|
(void)address;
|
||||||
|
sockfd = *(curl_socket_t *)clientp;
|
||||||
/* the actual externally set socket is passed in via the OPENSOCKETDATA
|
/* the actual externally set socket is passed in via the OPENSOCKETDATA
|
||||||
option */
|
option */
|
||||||
return sockfd;
|
return sockfd;
|
||||||
@@ -66,6 +73,9 @@ static curl_socket_t opensocket(void *clientp,
|
|||||||
static int sockopt_callback(void *clientp, curl_socket_t curlfd,
|
static int sockopt_callback(void *clientp, curl_socket_t curlfd,
|
||||||
curlsocktype purpose)
|
curlsocktype purpose)
|
||||||
{
|
{
|
||||||
|
(void)clientp;
|
||||||
|
(void)curlfd;
|
||||||
|
(void)purpose;
|
||||||
/* This return code was added in libcurl 7.21.5 */
|
/* This return code was added in libcurl 7.21.5 */
|
||||||
return CURL_SOCKOPT_ALREADY_CONNECTED;
|
return CURL_SOCKOPT_ALREADY_CONNECTED;
|
||||||
}
|
}
|
||||||
@@ -96,7 +106,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)) < 0 ) {
|
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;
|
||||||
}
|
}
|
||||||
|
@@ -64,7 +64,13 @@ int main(void)
|
|||||||
curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L);
|
curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L);
|
||||||
|
|
||||||
res = curl_easy_perform(curl);
|
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 {
|
||||||
/* now extract transfer info */
|
/* now extract transfer info */
|
||||||
curl_easy_getinfo(curl, CURLINFO_SPEED_UPLOAD, &speed_upload);
|
curl_easy_getinfo(curl, CURLINFO_SPEED_UPLOAD, &speed_upload);
|
||||||
curl_easy_getinfo(curl, CURLINFO_TOTAL_TIME, &total_time);
|
curl_easy_getinfo(curl, CURLINFO_TOTAL_TIME, &total_time);
|
||||||
@@ -72,6 +78,7 @@ int main(void)
|
|||||||
fprintf(stderr, "Speed: %.3f bytes/sec during %.3f seconds\n",
|
fprintf(stderr, "Speed: %.3f bytes/sec during %.3f seconds\n",
|
||||||
speed_upload, total_time);
|
speed_upload, total_time);
|
||||||
|
|
||||||
|
}
|
||||||
/* always cleanup */
|
/* always cleanup */
|
||||||
curl_easy_cleanup(curl);
|
curl_easy_cleanup(curl);
|
||||||
}
|
}
|
||||||
|
@@ -5,7 +5,7 @@
|
|||||||
* | (__| |_| | _ <| |___
|
* | (__| |_| | _ <| |___
|
||||||
* \___|\___/|_| \_\_____|
|
* \___|\___/|_| \_\_____|
|
||||||
*
|
*
|
||||||
* Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al.
|
* Copyright (C) 1998 - 2012, 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
|
||||||
@@ -33,7 +33,7 @@ static long file_is_comming(struct curl_fileinfo *finfo,
|
|||||||
static long file_is_downloaded(struct callback_data *data);
|
static long file_is_downloaded(struct callback_data *data);
|
||||||
|
|
||||||
static size_t write_it(char *buff, size_t size, size_t nmemb,
|
static size_t write_it(char *buff, size_t size, size_t nmemb,
|
||||||
struct callback_data *data);
|
void *cb_data);
|
||||||
|
|
||||||
int main(int argc, char **argv)
|
int main(int argc, char **argv)
|
||||||
{
|
{
|
||||||
@@ -135,8 +135,9 @@ static long file_is_downloaded(struct callback_data *data)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static size_t write_it(char *buff, size_t size, size_t nmemb,
|
static size_t write_it(char *buff, size_t size, size_t nmemb,
|
||||||
struct callback_data *data)
|
void *cb_data)
|
||||||
{
|
{
|
||||||
|
struct callback_data *data = cb_data;
|
||||||
size_t written = 0;
|
size_t written = 0;
|
||||||
if(data->output)
|
if(data->output)
|
||||||
written = fwrite(buff, size, nmemb, data->output);
|
written = fwrite(buff, size, nmemb, data->output);
|
||||||
|
@@ -5,7 +5,7 @@
|
|||||||
* | (__| |_| | _ <| |___
|
* | (__| |_| | _ <| |___
|
||||||
* \___|\___/|_| \_\_____|
|
* \___|\___/|_| \_\_____|
|
||||||
*
|
*
|
||||||
* Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al.
|
* Copyright (C) 1998 - 2012, 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
|
||||||
@@ -43,8 +43,8 @@ int main(void)
|
|||||||
char ftpurl[] = "ftp://ftp.example.com/gnu/binutils/binutils-2.19.1.tar.bz2";
|
char ftpurl[] = "ftp://ftp.example.com/gnu/binutils/binutils-2.19.1.tar.bz2";
|
||||||
CURL *curl;
|
CURL *curl;
|
||||||
CURLcode res;
|
CURLcode res;
|
||||||
const time_t filetime;
|
long filetime = -1;
|
||||||
const double filesize;
|
double filesize = 0.0;
|
||||||
const char *filename = strrchr(ftpurl, '/') + 1;
|
const char *filename = strrchr(ftpurl, '/') + 1;
|
||||||
|
|
||||||
curl_global_init(CURL_GLOBAL_DEFAULT);
|
curl_global_init(CURL_GLOBAL_DEFAULT);
|
||||||
@@ -67,10 +67,12 @@ int main(void)
|
|||||||
if(CURLE_OK == res) {
|
if(CURLE_OK == res) {
|
||||||
/* http://curl.haxx.se/libcurl/c/curl_easy_getinfo.html */
|
/* http://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)
|
if((CURLE_OK == res) && (filetime >= 0)) {
|
||||||
printf("filetime %s: %s", filename, ctime(&filetime));
|
time_t file_time = (time_t)filetime;
|
||||||
|
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))
|
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 */
|
||||||
|
@@ -60,6 +60,10 @@ int main(void)
|
|||||||
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_WRITEHEADER, respfile);
|
||||||
res = curl_easy_perform(curl);
|
res = curl_easy_perform(curl);
|
||||||
|
/* Check for errors */
|
||||||
|
if(res != CURLE_OK)
|
||||||
|
fprintf(stderr, "curl_easy_perform() failed: %s\n",
|
||||||
|
curl_easy_strerror(res));
|
||||||
|
|
||||||
/* always cleanup */
|
/* always cleanup */
|
||||||
curl_easy_cleanup(curl);
|
curl_easy_cleanup(curl);
|
||||||
|
101
docs/examples/ftpsget.c
Normal file
101
docs/examples/ftpsget.c
Normal file
@@ -0,0 +1,101 @@
|
|||||||
|
/***************************************************************************
|
||||||
|
* _ _ ____ _
|
||||||
|
* Project ___| | | | _ \| |
|
||||||
|
* / __| | | | |_) | |
|
||||||
|
* | (__| |_| | _ <| |___
|
||||||
|
* \___|\___/|_| \_\_____|
|
||||||
|
*
|
||||||
|
* Copyright (C) 1998 - 2012, 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 http://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.
|
||||||
|
*
|
||||||
|
***************************************************************************/
|
||||||
|
|
||||||
|
#include <stdio.h>
|
||||||
|
|
||||||
|
#include <curl/curl.h>
|
||||||
|
|
||||||
|
/*
|
||||||
|
* This is an example showing how to get a single file from an FTPS server.
|
||||||
|
* It delays the actual destination file creation until the first write
|
||||||
|
* callback so that it won't create an empty file in case the remote file
|
||||||
|
* doesn't exist or something else fails.
|
||||||
|
*/
|
||||||
|
|
||||||
|
struct FtpFile {
|
||||||
|
const char *filename;
|
||||||
|
FILE *stream;
|
||||||
|
};
|
||||||
|
|
||||||
|
static size_t my_fwrite(void *buffer, size_t size, size_t nmemb,
|
||||||
|
void *stream)
|
||||||
|
{
|
||||||
|
struct FtpFile *out=(struct FtpFile *)stream;
|
||||||
|
if(out && !out->stream) {
|
||||||
|
/* open file for writing */
|
||||||
|
out->stream=fopen(out->filename, "wb");
|
||||||
|
if(!out->stream)
|
||||||
|
return -1; /* failure, can't open file to write */
|
||||||
|
}
|
||||||
|
return fwrite(buffer, size, nmemb, out->stream);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
int main(void)
|
||||||
|
{
|
||||||
|
CURL *curl;
|
||||||
|
CURLcode res;
|
||||||
|
struct FtpFile ftpfile={
|
||||||
|
"yourfile.bin", /* name to store the file as if succesful */
|
||||||
|
NULL
|
||||||
|
};
|
||||||
|
|
||||||
|
curl_global_init(CURL_GLOBAL_DEFAULT);
|
||||||
|
|
||||||
|
curl = curl_easy_init();
|
||||||
|
if(curl) {
|
||||||
|
/*
|
||||||
|
* You better replace the URL with one that works! Note that we use an
|
||||||
|
* FTP:// URL with standard explicit FTPS. You can also do FTPS:// URLs if
|
||||||
|
* you want to do the rarer kind of transfers: implicit.
|
||||||
|
*/
|
||||||
|
curl_easy_setopt(curl, CURLOPT_URL,
|
||||||
|
"ftp://user@server/home/user/file.txt");
|
||||||
|
/* Define our callback to get called when there's data to be written */
|
||||||
|
curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, my_fwrite);
|
||||||
|
/* Set a pointer to our struct to pass to the callback */
|
||||||
|
curl_easy_setopt(curl, CURLOPT_WRITEDATA, &ftpfile);
|
||||||
|
|
||||||
|
/* We activate SSL and we require it for both control and data */
|
||||||
|
curl_easy_setopt(curl, CURLOPT_USE_SSL, CURLUSESSL_ALL);
|
||||||
|
|
||||||
|
/* Switch on full protocol/debug output */
|
||||||
|
curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L);
|
||||||
|
|
||||||
|
res = curl_easy_perform(curl);
|
||||||
|
|
||||||
|
/* always cleanup */
|
||||||
|
curl_easy_cleanup(curl);
|
||||||
|
|
||||||
|
if(CURLE_OK != res) {
|
||||||
|
/* we failed */
|
||||||
|
fprintf(stderr, "curl told us %d\n", res);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if(ftpfile.stream)
|
||||||
|
fclose(ftpfile.stream); /* close the local file */
|
||||||
|
|
||||||
|
curl_global_cleanup();
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
@@ -5,7 +5,7 @@
|
|||||||
* | (__| |_| | _ <| |___
|
* | (__| |_| | _ <| |___
|
||||||
* \___|\___/|_| \_\_____|
|
* \___|\___/|_| \_\_____|
|
||||||
*
|
*
|
||||||
* Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al.
|
* Copyright (C) 1998 - 2012, 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
|
||||||
@@ -32,7 +32,6 @@
|
|||||||
#else
|
#else
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#endif
|
#endif
|
||||||
#include "printf_macro.h"
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* This example shows an FTP upload, with a rename of the file just after
|
* This example shows an FTP upload, with a rename of the file just after
|
||||||
@@ -52,12 +51,16 @@
|
|||||||
variable's memory when passed in to it from an app like this. */
|
variable's memory when passed in to it from an app like this. */
|
||||||
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)
|
||||||
{
|
{
|
||||||
|
curl_off_t nread;
|
||||||
/* in real-world cases, this would probably get this data differently
|
/* in real-world cases, this would probably get this data differently
|
||||||
as this fread() stuff is exactly what the library already would do
|
as this fread() stuff is exactly what the library already would do
|
||||||
by default internally */
|
by default internally */
|
||||||
size_t retcode = fread(ptr, size, nmemb, stream);
|
size_t retcode = fread(ptr, size, nmemb, stream);
|
||||||
|
|
||||||
fprintf(stderr, "*** We read %" _FMT_SIZE_T " bytes from file\n", retcode);
|
nread = (curl_off_t)retcode;
|
||||||
|
|
||||||
|
fprintf(stderr, "*** We read %" CURL_FORMAT_CURL_OFF_T
|
||||||
|
" bytes from file\n", nread);
|
||||||
return retcode;
|
return retcode;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -119,6 +122,10 @@ int main(void)
|
|||||||
|
|
||||||
/* Now run off and do what you've been told! */
|
/* Now run off and do what you've been told! */
|
||||||
res = curl_easy_perform(curl);
|
res = curl_easy_perform(curl);
|
||||||
|
/* Check for errors */
|
||||||
|
if(res != CURLE_OK)
|
||||||
|
fprintf(stderr, "curl_easy_perform() failed: %s\n",
|
||||||
|
curl_easy_strerror(res));
|
||||||
|
|
||||||
/* clean up the FTP commands list */
|
/* clean up the FTP commands list */
|
||||||
curl_slist_free_all (headerlist);
|
curl_slist_free_all (headerlist);
|
||||||
|
@@ -42,10 +42,10 @@ WriteMemoryCallback(void *contents, size_t size, size_t nmemb, void *userp)
|
|||||||
struct MemoryStruct *mem = (struct MemoryStruct *)userp;
|
struct MemoryStruct *mem = (struct MemoryStruct *)userp;
|
||||||
|
|
||||||
mem->memory = realloc(mem->memory, mem->size + realsize + 1);
|
mem->memory = realloc(mem->memory, mem->size + realsize + 1);
|
||||||
if (mem->memory == NULL) {
|
if(mem->memory == NULL) {
|
||||||
/* out of memory! */
|
/* out of memory! */
|
||||||
printf("not enough memory (realloc returned NULL)\n");
|
printf("not enough memory (realloc returned NULL)\n");
|
||||||
exit(EXIT_FAILURE);
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
memcpy(&(mem->memory[mem->size]), contents, realsize);
|
memcpy(&(mem->memory[mem->size]), contents, realsize);
|
||||||
@@ -59,6 +59,7 @@ WriteMemoryCallback(void *contents, size_t size, size_t nmemb, void *userp)
|
|||||||
int main(void)
|
int main(void)
|
||||||
{
|
{
|
||||||
CURL *curl_handle;
|
CURL *curl_handle;
|
||||||
|
CURLcode res;
|
||||||
|
|
||||||
struct MemoryStruct chunk;
|
struct MemoryStruct chunk;
|
||||||
|
|
||||||
@@ -84,11 +85,14 @@ int main(void)
|
|||||||
curl_easy_setopt(curl_handle, CURLOPT_USERAGENT, "libcurl-agent/1.0");
|
curl_easy_setopt(curl_handle, CURLOPT_USERAGENT, "libcurl-agent/1.0");
|
||||||
|
|
||||||
/* get it! */
|
/* get it! */
|
||||||
curl_easy_perform(curl_handle);
|
res = curl_easy_perform(curl_handle);
|
||||||
|
|
||||||
/* cleanup curl stuff */
|
|
||||||
curl_easy_cleanup(curl_handle);
|
|
||||||
|
|
||||||
|
/* check for errors */
|
||||||
|
if(res != CURLE_OK) {
|
||||||
|
fprintf(stderr, "curl_easy_perform() failed: %s\n",
|
||||||
|
curl_easy_strerror(res));
|
||||||
|
}
|
||||||
|
else {
|
||||||
/*
|
/*
|
||||||
* Now, our chunk.memory points to a memory block that is chunk.size
|
* Now, our chunk.memory points to a memory block that is chunk.size
|
||||||
* bytes big and contains the remote file.
|
* bytes big and contains the remote file.
|
||||||
@@ -101,6 +105,10 @@ int main(void)
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
printf("%lu bytes retrieved\n", (long)chunk.size);
|
printf("%lu bytes retrieved\n", (long)chunk.size);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* cleanup curl stuff */
|
||||||
|
curl_easy_cleanup(curl_handle);
|
||||||
|
|
||||||
if(chunk.memory)
|
if(chunk.memory)
|
||||||
free(chunk.memory);
|
free(chunk.memory);
|
||||||
|
@@ -5,7 +5,7 @@
|
|||||||
* | (__| |_| | _ <| |___
|
* | (__| |_| | _ <| |___
|
||||||
* \___|\___/|_| \_\_____|
|
* \___|\___/|_| \_\_____|
|
||||||
*
|
*
|
||||||
* Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al.
|
* Copyright (C) 1998 - 2013, 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
|
||||||
@@ -24,7 +24,7 @@
|
|||||||
|
|
||||||
Written by Jeff Pohlmeyer
|
Written by Jeff Pohlmeyer
|
||||||
|
|
||||||
Requires libevent and a (POSIX?) system that has mkfifo().
|
Requires libevent version 2 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.
|
sample programs.
|
||||||
@@ -61,7 +61,7 @@ callback.
|
|||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <sys/poll.h>
|
#include <sys/poll.h>
|
||||||
#include <curl/curl.h>
|
#include <curl/curl.h>
|
||||||
#include <event.h>
|
#include <event2/event.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
@@ -71,9 +71,11 @@ callback.
|
|||||||
|
|
||||||
|
|
||||||
/* Global information, common to all connections */
|
/* Global information, common to all connections */
|
||||||
typedef struct _GlobalInfo {
|
typedef struct _GlobalInfo
|
||||||
struct event fifo_event;
|
{
|
||||||
struct event timer_event;
|
struct event_base *evbase;
|
||||||
|
struct event *fifo_event;
|
||||||
|
struct event *timer_event;
|
||||||
CURLM *multi;
|
CURLM *multi;
|
||||||
int still_running;
|
int still_running;
|
||||||
FILE* input;
|
FILE* input;
|
||||||
@@ -81,7 +83,8 @@ typedef struct _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;
|
||||||
char *url;
|
char *url;
|
||||||
GlobalInfo *global;
|
GlobalInfo *global;
|
||||||
@@ -90,12 +93,13 @@ typedef struct _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;
|
||||||
CURL *easy;
|
CURL *easy;
|
||||||
int action;
|
int action;
|
||||||
long timeout;
|
long timeout;
|
||||||
struct event ev;
|
struct event *ev;
|
||||||
int evset;
|
int evset;
|
||||||
GlobalInfo *global;
|
GlobalInfo *global;
|
||||||
} SockInfo;
|
} SockInfo;
|
||||||
@@ -111,7 +115,7 @@ static int multi_timer_cb(CURLM *multi, long timeout_ms, GlobalInfo *g)
|
|||||||
timeout.tv_sec = timeout_ms/1000;
|
timeout.tv_sec = timeout_ms/1000;
|
||||||
timeout.tv_usec = (timeout_ms%1000)*1000;
|
timeout.tv_usec = (timeout_ms%1000)*1000;
|
||||||
fprintf(MSG_OUT, "multi_timer_cb: Setting timeout to %ld ms\n", timeout_ms);
|
fprintf(MSG_OUT, "multi_timer_cb: Setting timeout to %ld ms\n", timeout_ms);
|
||||||
evtimer_add(&g->timer_event, &timeout);
|
evtimer_add(g->timer_event, &timeout);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -186,8 +190,8 @@ static void event_cb(int fd, short kind, void *userp)
|
|||||||
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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -215,7 +219,7 @@ static void remsock(SockInfo *f)
|
|||||||
{
|
{
|
||||||
if (f) {
|
if (f) {
|
||||||
if (f->evset)
|
if (f->evset)
|
||||||
event_del(&f->ev);
|
event_free(f->ev);
|
||||||
free(f);
|
free(f);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -232,16 +236,17 @@ static void setsock(SockInfo*f, curl_socket_t s, CURL*e, int act, GlobalInfo*g)
|
|||||||
f->action = act;
|
f->action = act;
|
||||||
f->easy = e;
|
f->easy = e;
|
||||||
if (f->evset)
|
if (f->evset)
|
||||||
event_del(&f->ev);
|
event_free(f->ev);
|
||||||
event_set(&f->ev, f->sockfd, kind, event_cb, g);
|
f->ev = event_new(g->evbase, f->sockfd, kind, event_cb, g);
|
||||||
f->evset=1;
|
f->evset = 1;
|
||||||
event_add(&f->ev, NULL);
|
event_add(f->ev, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* 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)
|
||||||
|
{
|
||||||
SockInfo *fdp = calloc(sizeof(SockInfo), 1);
|
SockInfo *fdp = calloc(sizeof(SockInfo), 1);
|
||||||
|
|
||||||
fdp->global = g;
|
fdp->global = g;
|
||||||
@@ -359,10 +364,10 @@ static void fifo_cb(int fd, short event, void *arg)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Create a named pipe and tell libevent to monitor it */
|
/* Create a named pipe and tell libevent to monitor it */
|
||||||
|
static const char *fifo = "hiper.fifo";
|
||||||
static int init_fifo (GlobalInfo *g)
|
static int init_fifo (GlobalInfo *g)
|
||||||
{
|
{
|
||||||
struct stat st;
|
struct stat st;
|
||||||
static const char *fifo = "hiper.fifo";
|
|
||||||
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);
|
||||||
@@ -386,11 +391,18 @@ static int init_fifo (GlobalInfo *g)
|
|||||||
g->input = fdopen(sockfd, "r");
|
g->input = fdopen(sockfd, "r");
|
||||||
|
|
||||||
fprintf(MSG_OUT, "Now, pipe some URL's into > %s\n", fifo);
|
fprintf(MSG_OUT, "Now, pipe some URL's into > %s\n", fifo);
|
||||||
event_set(&g->fifo_event, sockfd, EV_READ | EV_PERSIST, fifo_cb, g);
|
g->fifo_event = event_new(g->evbase, sockfd, EV_READ|EV_PERSIST, fifo_cb, g);
|
||||||
event_add(&g->fifo_event, NULL);
|
event_add(g->fifo_event, NULL);
|
||||||
return (0);
|
return (0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void clean_fifo(GlobalInfo *g)
|
||||||
|
{
|
||||||
|
event_free(g->fifo_event);
|
||||||
|
fclose(g->input);
|
||||||
|
unlink(fifo);
|
||||||
|
}
|
||||||
|
|
||||||
int main(int argc, char **argv)
|
int main(int argc, char **argv)
|
||||||
{
|
{
|
||||||
GlobalInfo g;
|
GlobalInfo g;
|
||||||
@@ -398,10 +410,10 @@ int main(int argc, char **argv)
|
|||||||
(void)argv;
|
(void)argv;
|
||||||
|
|
||||||
memset(&g, 0, sizeof(GlobalInfo));
|
memset(&g, 0, sizeof(GlobalInfo));
|
||||||
event_init();
|
g.evbase = event_base_new();
|
||||||
init_fifo(&g);
|
init_fifo(&g);
|
||||||
g.multi = curl_multi_init();
|
g.multi = curl_multi_init();
|
||||||
evtimer_set(&g.timer_event, timer_cb, &g);
|
g.timer_event = evtimer_new(g.evbase, timer_cb, &g);
|
||||||
|
|
||||||
/* setup the generic multi interface options we want */
|
/* setup the generic multi interface options we want */
|
||||||
curl_multi_setopt(g.multi, CURLMOPT_SOCKETFUNCTION, sock_cb);
|
curl_multi_setopt(g.multi, CURLMOPT_SOCKETFUNCTION, sock_cb);
|
||||||
@@ -412,7 +424,13 @@ int main(int argc, char **argv)
|
|||||||
/* we don't call any curl_multi_socket*() function yet as we have no handles
|
/* we don't call any curl_multi_socket*() function yet as we have no handles
|
||||||
added! */
|
added! */
|
||||||
|
|
||||||
event_dispatch();
|
event_base_dispatch(g.evbase);
|
||||||
|
|
||||||
|
/* this, of course, won't get called since only way to stop this program is
|
||||||
|
via ctrl-C, but it is here to show how cleanup /would/ be done. */
|
||||||
|
clean_fifo(&g);
|
||||||
|
event_free(g.timer_event);
|
||||||
|
event_base_free(g.evbase);
|
||||||
curl_multi_cleanup(g.multi);
|
curl_multi_cleanup(g.multi);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
86
docs/examples/href_extractor.c
Normal file
86
docs/examples/href_extractor.c
Normal file
@@ -0,0 +1,86 @@
|
|||||||
|
/***************************************************************************
|
||||||
|
* _ _ ____ _
|
||||||
|
* Project ___| | | | _ \| |
|
||||||
|
* / __| | | | |_) | |
|
||||||
|
* | (__| |_| | _ <| |___
|
||||||
|
* \___|\___/|_| \_\_____|
|
||||||
|
*
|
||||||
|
* Copyright (C) 2012, 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 http://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.
|
||||||
|
*
|
||||||
|
***************************************************************************/
|
||||||
|
|
||||||
|
/*
|
||||||
|
* This example uses the "Streaming HTML parser" to extract the href pieces in
|
||||||
|
* a streaming manner from a downloaded HTML. Kindly donated by Michał
|
||||||
|
* Kowalczyk.
|
||||||
|
*
|
||||||
|
* The parser is found at
|
||||||
|
* http://code.google.com/p/htmlstreamparser/
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <curl/curl.h>
|
||||||
|
#include <htmlstreamparser.h>
|
||||||
|
|
||||||
|
|
||||||
|
static size_t write_callback(void *buffer, size_t size, size_t nmemb,
|
||||||
|
void *hsp)
|
||||||
|
{
|
||||||
|
size_t realsize = size * nmemb, p;
|
||||||
|
for (p = 0; p < realsize; p++) {
|
||||||
|
html_parser_char_parse(hsp, ((char *)buffer)[p]);
|
||||||
|
if (html_parser_cmp_tag(hsp, "a", 1))
|
||||||
|
if (html_parser_cmp_attr(hsp, "href", 4))
|
||||||
|
if (html_parser_is_in(hsp, HTML_VALUE_ENDED)) {
|
||||||
|
html_parser_val(hsp)[html_parser_val_length(hsp)] = '\0';
|
||||||
|
printf("%s\n", html_parser_val(hsp));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return realsize;
|
||||||
|
}
|
||||||
|
|
||||||
|
int main(int argc, char *argv[])
|
||||||
|
{
|
||||||
|
char tag[1], attr[4], val[128];
|
||||||
|
CURL *curl;
|
||||||
|
HTMLSTREAMPARSER *hsp;
|
||||||
|
|
||||||
|
if (argc != 2) {
|
||||||
|
printf("Usage: %s URL\n", argv[0]);
|
||||||
|
return EXIT_FAILURE;
|
||||||
|
}
|
||||||
|
|
||||||
|
curl = curl_easy_init();
|
||||||
|
|
||||||
|
hsp = html_parser_init();
|
||||||
|
|
||||||
|
html_parser_set_tag_to_lower(hsp, 1);
|
||||||
|
html_parser_set_attr_to_lower(hsp, 1);
|
||||||
|
html_parser_set_tag_buffer(hsp, tag, sizeof(tag));
|
||||||
|
html_parser_set_attr_buffer(hsp, attr, sizeof(attr));
|
||||||
|
html_parser_set_val_buffer(hsp, val, sizeof(val)-1);
|
||||||
|
|
||||||
|
curl_easy_setopt(curl, CURLOPT_URL, argv[1]);
|
||||||
|
curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, write_callback);
|
||||||
|
curl_easy_setopt(curl, CURLOPT_WRITEDATA, hsp);
|
||||||
|
curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1);
|
||||||
|
|
||||||
|
curl_easy_perform(curl);
|
||||||
|
|
||||||
|
curl_easy_cleanup(curl);
|
||||||
|
|
||||||
|
html_parser_cleanup(hsp);
|
||||||
|
|
||||||
|
return EXIT_SUCCESS;
|
||||||
|
}
|
@@ -25,7 +25,7 @@
|
|||||||
//
|
//
|
||||||
// GNU C++ compile command line suggestion (edit paths accordingly):
|
// GNU C++ compile command line suggestion (edit paths accordingly):
|
||||||
//
|
//
|
||||||
// g++ -Wall -I/opt/curl/include -I/opt/libxml/include/libxml2 htmltitle.cc \
|
// g++ -Wall -I/opt/curl/include -I/opt/libxml/include/libxml2 htmltitle.cpp \
|
||||||
// -o htmltitle -L/opt/curl/lib -L/opt/libxml/lib -lcurl -lxml2
|
// -o htmltitle -L/opt/curl/lib -L/opt/libxml/lib -lcurl -lxml2
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
@@ -27,6 +27,10 @@ int main(void)
|
|||||||
CURL *curl;
|
CURL *curl;
|
||||||
CURLcode res;
|
CURLcode res;
|
||||||
|
|
||||||
|
/* In windows, this will init the winsock stuff */
|
||||||
|
curl_global_init(CURL_GLOBAL_ALL);
|
||||||
|
|
||||||
|
/* get a curl handle */
|
||||||
curl = curl_easy_init();
|
curl = curl_easy_init();
|
||||||
if(curl) {
|
if(curl) {
|
||||||
/* First set the URL that is about to receive our POST. This URL can
|
/* First set the URL that is about to receive our POST. This URL can
|
||||||
@@ -38,9 +42,14 @@ int main(void)
|
|||||||
|
|
||||||
/* Perform the request, res will get the return code */
|
/* Perform the request, res will get the return code */
|
||||||
res = curl_easy_perform(curl);
|
res = curl_easy_perform(curl);
|
||||||
|
/* Check for errors */
|
||||||
|
if(res != CURLE_OK)
|
||||||
|
fprintf(stderr, "curl_easy_perform() failed: %s\n",
|
||||||
|
curl_easy_strerror(res));
|
||||||
|
|
||||||
/* always cleanup */
|
/* always cleanup */
|
||||||
curl_easy_cleanup(curl);
|
curl_easy_cleanup(curl);
|
||||||
}
|
}
|
||||||
|
curl_global_cleanup();
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@@ -5,7 +5,7 @@
|
|||||||
* | (__| |_| | _ <| |___
|
* | (__| |_| | _ <| |___
|
||||||
* \___|\___/|_| \_\_____|
|
* \___|\___/|_| \_\_____|
|
||||||
*
|
*
|
||||||
* Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al.
|
* Copyright (C) 1998 - 2012, 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
|
||||||
@@ -38,13 +38,24 @@ int main(void)
|
|||||||
curl_easy_setopt(curl, CURLOPT_URL, "localhost");
|
curl_easy_setopt(curl, CURLOPT_URL, "localhost");
|
||||||
curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L);
|
curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L);
|
||||||
res = curl_easy_perform(curl);
|
res = curl_easy_perform(curl);
|
||||||
|
/* Check for errors */
|
||||||
|
if(res != CURLE_OK)
|
||||||
|
fprintf(stderr, "curl_easy_perform() failed: %s\n",
|
||||||
|
curl_easy_strerror(res));
|
||||||
|
|
||||||
/* redo request with our own custom Accept: */
|
/* redo request with our own custom Accept: */
|
||||||
res = curl_easy_setopt(curl, CURLOPT_HTTPHEADER, chunk);
|
res = curl_easy_setopt(curl, CURLOPT_HTTPHEADER, chunk);
|
||||||
res = curl_easy_perform(curl);
|
res = curl_easy_perform(curl);
|
||||||
|
/* Check for errors */
|
||||||
|
if(res != CURLE_OK)
|
||||||
|
fprintf(stderr, "curl_easy_perform() failed: %s\n",
|
||||||
|
curl_easy_strerror(res));
|
||||||
|
|
||||||
/* always cleanup */
|
/* always cleanup */
|
||||||
curl_easy_cleanup(curl);
|
curl_easy_cleanup(curl);
|
||||||
|
|
||||||
|
/* free the custom headers */
|
||||||
|
curl_slist_free_all(chunk);
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@@ -5,7 +5,7 @@
|
|||||||
* | (__| |_| | _ <| |___
|
* | (__| |_| | _ <| |___
|
||||||
* \___|\___/|_| \_\_____|
|
* \___|\___/|_| \_\_____|
|
||||||
*
|
*
|
||||||
* Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al.
|
* Copyright (C) 1998 - 2012, 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
|
||||||
@@ -25,7 +25,6 @@
|
|||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
#include <curl/curl.h>
|
#include <curl/curl.h>
|
||||||
#include "printf_macro.h"
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* This example shows a HTTP PUT operation. PUTs a file given as a command
|
* This example shows a HTTP PUT operation. PUTs a file given as a command
|
||||||
@@ -40,13 +39,17 @@
|
|||||||
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;
|
size_t retcode;
|
||||||
|
curl_off_t nread;
|
||||||
|
|
||||||
/* in real-world cases, this would probably get this data differently
|
/* in real-world cases, this would probably get this data differently
|
||||||
as this fread() stuff is exactly what the library already would do
|
as this fread() stuff is exactly what the library already would do
|
||||||
by default internally */
|
by default internally */
|
||||||
retcode = fread(ptr, size, nmemb, stream);
|
retcode = fread(ptr, size, nmemb, stream);
|
||||||
|
|
||||||
fprintf(stderr, "*** We read %" _FMT_SIZE_T " bytes from file\n", retcode);
|
nread = (curl_off_t)retcode;
|
||||||
|
|
||||||
|
fprintf(stderr, "*** We read %" CURL_FORMAT_CURL_OFF_T
|
||||||
|
" bytes from file\n", nread);
|
||||||
|
|
||||||
return retcode;
|
return retcode;
|
||||||
}
|
}
|
||||||
@@ -107,6 +110,10 @@ int main(int argc, char **argv)
|
|||||||
|
|
||||||
/* Now run off and do what you've been told! */
|
/* Now run off and do what you've been told! */
|
||||||
res = curl_easy_perform(curl);
|
res = curl_easy_perform(curl);
|
||||||
|
/* Check for errors */
|
||||||
|
if(res != CURLE_OK)
|
||||||
|
fprintf(stderr, "curl_easy_perform() failed: %s\n",
|
||||||
|
curl_easy_strerror(res));
|
||||||
|
|
||||||
/* always cleanup */
|
/* always cleanup */
|
||||||
curl_easy_cleanup(curl);
|
curl_easy_cleanup(curl);
|
||||||
|
@@ -5,7 +5,7 @@
|
|||||||
* | (__| |_| | _ <| |___
|
* | (__| |_| | _ <| |___
|
||||||
* \___|\___/|_| \_\_____|
|
* \___|\___/|_| \_\_____|
|
||||||
*
|
*
|
||||||
* Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al.
|
* Copyright (C) 1998 - 2012, 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
|
||||||
@@ -27,6 +27,8 @@ int main(void)
|
|||||||
CURL *curl;
|
CURL *curl;
|
||||||
CURLcode res;
|
CURLcode res;
|
||||||
|
|
||||||
|
curl_global_init(CURL_GLOBAL_DEFAULT);
|
||||||
|
|
||||||
curl = curl_easy_init();
|
curl = curl_easy_init();
|
||||||
if(curl) {
|
if(curl) {
|
||||||
curl_easy_setopt(curl, CURLOPT_URL, "https://example.com/");
|
curl_easy_setopt(curl, CURLOPT_URL, "https://example.com/");
|
||||||
@@ -45,7 +47,7 @@ int main(void)
|
|||||||
curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 0L);
|
curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 0L);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef SKIP_HOSTNAME_VERFICATION
|
#ifdef SKIP_HOSTNAME_VERIFICATION
|
||||||
/*
|
/*
|
||||||
* If the site you're connecting to uses a different host name that what
|
* If the site you're connecting to uses a different host name that what
|
||||||
* they have mentioned in their server certificate's commonName (or
|
* they have mentioned in their server certificate's commonName (or
|
||||||
@@ -55,10 +57,18 @@ int main(void)
|
|||||||
curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 0L);
|
curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 0L);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* Perform the request, res will get the return code */
|
||||||
res = curl_easy_perform(curl);
|
res = curl_easy_perform(curl);
|
||||||
|
/* Check for errors */
|
||||||
|
if(res != CURLE_OK)
|
||||||
|
fprintf(stderr, "curl_easy_perform() failed: %s\n",
|
||||||
|
curl_easy_strerror(res));
|
||||||
|
|
||||||
/* always cleanup */
|
/* always cleanup */
|
||||||
curl_easy_cleanup(curl);
|
curl_easy_cleanup(curl);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
curl_global_cleanup();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@@ -25,7 +25,7 @@
|
|||||||
int main(void)
|
int main(void)
|
||||||
{
|
{
|
||||||
CURL *curl;
|
CURL *curl;
|
||||||
CURLcode res;
|
CURLcode res = CURLE_OK;
|
||||||
|
|
||||||
curl = curl_easy_init();
|
curl = curl_easy_init();
|
||||||
if(curl) {
|
if(curl) {
|
||||||
|
@@ -70,7 +70,7 @@ int main(void)
|
|||||||
/* we start some action by calling perform right away */
|
/* we start some action by calling perform right away */
|
||||||
curl_multi_perform(multi_handle, &still_running);
|
curl_multi_perform(multi_handle, &still_running);
|
||||||
|
|
||||||
while(still_running) {
|
do {
|
||||||
struct timeval timeout;
|
struct timeval timeout;
|
||||||
int rc; /* select() return code */
|
int rc; /* select() return code */
|
||||||
|
|
||||||
@@ -118,7 +118,7 @@ int main(void)
|
|||||||
curl_multi_perform(multi_handle, &still_running);
|
curl_multi_perform(multi_handle, &still_running);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
} while(still_running);
|
||||||
|
|
||||||
/* See how the transfers went */
|
/* See how the transfers went */
|
||||||
while ((msg = curl_multi_info_read(multi_handle, &msgs_left))) {
|
while ((msg = curl_multi_info_read(multi_handle, &msgs_left))) {
|
||||||
|
@@ -144,7 +144,7 @@ int main(void)
|
|||||||
/* we start some action by calling perform right away */
|
/* we start some action by calling perform right away */
|
||||||
curl_multi_perform(multi_handle, &still_running);
|
curl_multi_perform(multi_handle, &still_running);
|
||||||
|
|
||||||
while(still_running) {
|
do {
|
||||||
struct timeval timeout;
|
struct timeval timeout;
|
||||||
int rc; /* select() return code */
|
int rc; /* select() return code */
|
||||||
|
|
||||||
@@ -195,7 +195,7 @@ int main(void)
|
|||||||
curl_multi_perform(multi_handle, &still_running);
|
curl_multi_perform(multi_handle, &still_running);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
} while(still_running);
|
||||||
|
|
||||||
curl_multi_cleanup(multi_handle);
|
curl_multi_cleanup(multi_handle);
|
||||||
|
|
||||||
|
@@ -59,7 +59,7 @@ int main(void)
|
|||||||
/* we start some action by calling perform right away */
|
/* we start some action by calling perform right away */
|
||||||
curl_multi_perform(multi_handle, &still_running);
|
curl_multi_perform(multi_handle, &still_running);
|
||||||
|
|
||||||
while(still_running) {
|
do {
|
||||||
struct timeval timeout;
|
struct timeval timeout;
|
||||||
int rc; /* select() return code */
|
int rc; /* select() return code */
|
||||||
|
|
||||||
@@ -108,7 +108,7 @@ int main(void)
|
|||||||
curl_multi_perform(multi_handle, &still_running);
|
curl_multi_perform(multi_handle, &still_running);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
} while(still_running);
|
||||||
|
|
||||||
curl_multi_cleanup(multi_handle);
|
curl_multi_cleanup(multi_handle);
|
||||||
|
|
||||||
|
@@ -80,7 +80,7 @@ int main(void)
|
|||||||
|
|
||||||
curl_multi_perform(multi_handle, &still_running);
|
curl_multi_perform(multi_handle, &still_running);
|
||||||
|
|
||||||
while(still_running) {
|
do {
|
||||||
struct timeval timeout;
|
struct timeval timeout;
|
||||||
int rc; /* select() return code */
|
int rc; /* select() return code */
|
||||||
|
|
||||||
@@ -131,7 +131,7 @@ int main(void)
|
|||||||
printf("running: %d!\n", still_running);
|
printf("running: %d!\n", still_running);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
} while(still_running);
|
||||||
|
|
||||||
curl_multi_cleanup(multi_handle);
|
curl_multi_cleanup(multi_handle);
|
||||||
|
|
||||||
|
@@ -41,6 +41,8 @@ int main(void)
|
|||||||
|
|
||||||
int still_running; /* keep number of running handles */
|
int still_running; /* keep number of running handles */
|
||||||
|
|
||||||
|
curl_global_init(CURL_GLOBAL_DEFAULT);
|
||||||
|
|
||||||
http_handle = curl_easy_init();
|
http_handle = curl_easy_init();
|
||||||
|
|
||||||
/* set the options (I left out a few, you'll get the point anyway) */
|
/* set the options (I left out a few, you'll get the point anyway) */
|
||||||
@@ -55,7 +57,7 @@ int main(void)
|
|||||||
/* we start some action by calling perform right away */
|
/* we start some action by calling perform right away */
|
||||||
curl_multi_perform(multi_handle, &still_running);
|
curl_multi_perform(multi_handle, &still_running);
|
||||||
|
|
||||||
while(still_running) {
|
do {
|
||||||
struct timeval timeout;
|
struct timeval timeout;
|
||||||
int rc; /* select() return code */
|
int rc; /* select() return code */
|
||||||
|
|
||||||
@@ -106,11 +108,15 @@ int main(void)
|
|||||||
curl_multi_perform(multi_handle, &still_running);
|
curl_multi_perform(multi_handle, &still_running);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
} while(still_running);
|
||||||
|
|
||||||
curl_multi_cleanup(multi_handle);
|
curl_multi_remove_handle(multi_handle, http_handle);
|
||||||
|
|
||||||
curl_easy_cleanup(http_handle);
|
curl_easy_cleanup(http_handle);
|
||||||
|
|
||||||
|
curl_multi_cleanup(multi_handle);
|
||||||
|
|
||||||
|
curl_global_cleanup();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
212
docs/examples/multi-uv.c
Normal file
212
docs/examples/multi-uv.c
Normal file
@@ -0,0 +1,212 @@
|
|||||||
|
/***************************************************************************
|
||||||
|
* _ _ ____ _
|
||||||
|
* Project ___| | | | _ \| |
|
||||||
|
* / __| | | | |_) | |
|
||||||
|
* | (__| |_| | _ <| |___
|
||||||
|
* \___|\___/|_| \_\_____|
|
||||||
|
*
|
||||||
|
* Copyright (C) 1998 - 2013, 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 http://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.
|
||||||
|
*
|
||||||
|
***************************************************************************/
|
||||||
|
|
||||||
|
/* Example application code using the multi socket interface to download
|
||||||
|
multiple files at once, but instead of using curl_multi_perform and
|
||||||
|
curl_multi_wait, which uses select(), we use libuv.
|
||||||
|
It supports epoll, kqueue, etc. on unixes and fast IO completion ports on
|
||||||
|
Windows, which means, it should be very fast on all platforms..
|
||||||
|
|
||||||
|
Written by Clemens Gruber, based on an outdated example from uvbook and
|
||||||
|
some tests from libuv.
|
||||||
|
|
||||||
|
Requires libuv and (of course) libcurl.
|
||||||
|
|
||||||
|
See http://nikhilm.github.com/uvbook/ for more information on libuv.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
#include <uv.h>
|
||||||
|
#include <curl/curl.h>
|
||||||
|
|
||||||
|
uv_loop_t *loop;
|
||||||
|
CURLM *curl_handle;
|
||||||
|
uv_timer_t timeout;
|
||||||
|
|
||||||
|
typedef struct curl_context_s {
|
||||||
|
uv_poll_t poll_handle;
|
||||||
|
curl_socket_t sockfd;
|
||||||
|
} curl_context_t;
|
||||||
|
|
||||||
|
curl_context_t* create_curl_context(curl_socket_t sockfd)
|
||||||
|
{
|
||||||
|
curl_context_t *context;
|
||||||
|
|
||||||
|
context = (curl_context_t *) malloc(sizeof *context);
|
||||||
|
|
||||||
|
context->sockfd = sockfd;
|
||||||
|
|
||||||
|
uv_poll_init_socket(loop, &context->poll_handle, sockfd);
|
||||||
|
context->poll_handle.data = context;
|
||||||
|
|
||||||
|
return context;
|
||||||
|
}
|
||||||
|
|
||||||
|
void curl_close_cb(uv_handle_t *handle)
|
||||||
|
{
|
||||||
|
curl_context_t* context = (curl_context_t*) handle->data;
|
||||||
|
free(context);
|
||||||
|
}
|
||||||
|
|
||||||
|
void destroy_curl_context(curl_context_t *context)
|
||||||
|
{
|
||||||
|
uv_close((uv_handle_t*) &context->poll_handle, curl_close_cb);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void add_download(const char *url, int num)
|
||||||
|
{
|
||||||
|
char filename[50];
|
||||||
|
FILE *file;
|
||||||
|
CURL *handle;
|
||||||
|
|
||||||
|
sprintf(filename, "%d.download", num);
|
||||||
|
|
||||||
|
file = fopen(filename, "w");
|
||||||
|
if (file == NULL) {
|
||||||
|
fprintf(stderr, "Error opening %s\n", filename);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
handle = curl_easy_init();
|
||||||
|
curl_easy_setopt(handle, CURLOPT_WRITEDATA, file);
|
||||||
|
curl_easy_setopt(handle, CURLOPT_URL, url);
|
||||||
|
curl_multi_add_handle(curl_handle, handle);
|
||||||
|
fprintf(stderr, "Added download %s -> %s\n", url, filename);
|
||||||
|
}
|
||||||
|
|
||||||
|
void curl_perform(uv_poll_t *req, int status, int events)
|
||||||
|
{
|
||||||
|
int running_handles;
|
||||||
|
int flags = 0;
|
||||||
|
curl_context_t *context;
|
||||||
|
char *done_url;
|
||||||
|
CURLMsg *message;
|
||||||
|
int pending;
|
||||||
|
|
||||||
|
uv_timer_stop(&timeout);
|
||||||
|
|
||||||
|
if (events & UV_READABLE)
|
||||||
|
flags |= CURL_CSELECT_IN;
|
||||||
|
if (events & UV_WRITABLE)
|
||||||
|
flags |= CURL_CSELECT_OUT;
|
||||||
|
|
||||||
|
context = (curl_context_t*)req;
|
||||||
|
|
||||||
|
curl_multi_socket_action(curl_handle, context->sockfd, flags,
|
||||||
|
&running_handles);
|
||||||
|
|
||||||
|
while ((message = curl_multi_info_read(curl_handle, &pending))) {
|
||||||
|
switch (message->msg) {
|
||||||
|
case CURLMSG_DONE:
|
||||||
|
curl_easy_getinfo(message->easy_handle, CURLINFO_EFFECTIVE_URL,
|
||||||
|
&done_url);
|
||||||
|
printf("%s DONE\n", done_url);
|
||||||
|
|
||||||
|
curl_multi_remove_handle(curl_handle, message->easy_handle);
|
||||||
|
curl_easy_cleanup(message->easy_handle);
|
||||||
|
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
fprintf(stderr, "CURLMSG default\n");
|
||||||
|
abort();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void on_timeout(uv_timer_t *req, int status)
|
||||||
|
{
|
||||||
|
int running_handles;
|
||||||
|
curl_multi_socket_action(curl_handle, CURL_SOCKET_TIMEOUT, 0,
|
||||||
|
&running_handles);
|
||||||
|
}
|
||||||
|
|
||||||
|
void start_timeout(CURLM *multi, long timeout_ms, void *userp)
|
||||||
|
{
|
||||||
|
if (timeout_ms <= 0)
|
||||||
|
timeout_ms = 1; /* 0 means directly call socket_action, but we'll do it in
|
||||||
|
a bit */
|
||||||
|
uv_timer_start(&timeout, on_timeout, timeout_ms, 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
int handle_socket(CURL *easy, curl_socket_t s, int action, void *userp,
|
||||||
|
void *socketp)
|
||||||
|
{
|
||||||
|
curl_context_t *curl_context;
|
||||||
|
if (action == CURL_POLL_IN || action == CURL_POLL_OUT) {
|
||||||
|
if (socketp) {
|
||||||
|
curl_context = (curl_context_t*) socketp;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
curl_context = create_curl_context(s);
|
||||||
|
}
|
||||||
|
curl_multi_assign(curl_handle, s, (void *) curl_context);
|
||||||
|
}
|
||||||
|
|
||||||
|
switch (action) {
|
||||||
|
case CURL_POLL_IN:
|
||||||
|
uv_poll_start(&curl_context->poll_handle, UV_READABLE, curl_perform);
|
||||||
|
break;
|
||||||
|
case CURL_POLL_OUT:
|
||||||
|
uv_poll_start(&curl_context->poll_handle, UV_WRITABLE, curl_perform);
|
||||||
|
break;
|
||||||
|
case CURL_POLL_REMOVE:
|
||||||
|
if (socketp) {
|
||||||
|
uv_poll_stop(&((curl_context_t*)socketp)->poll_handle);
|
||||||
|
destroy_curl_context((curl_context_t*) socketp);
|
||||||
|
curl_multi_assign(curl_handle, s, NULL);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
abort();
|
||||||
|
}
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
int main(int argc, char **argv)
|
||||||
|
{
|
||||||
|
loop = uv_default_loop();
|
||||||
|
|
||||||
|
if (argc <= 1)
|
||||||
|
return 0;
|
||||||
|
|
||||||
|
if (curl_global_init(CURL_GLOBAL_ALL)) {
|
||||||
|
fprintf(stderr, "Could not init cURL\n");
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
uv_timer_init(loop, &timeout);
|
||||||
|
|
||||||
|
curl_handle = curl_multi_init();
|
||||||
|
curl_multi_setopt(curl_handle, CURLMOPT_SOCKETFUNCTION, handle_socket);
|
||||||
|
curl_multi_setopt(curl_handle, CURLMOPT_TIMERFUNCTION, start_timeout);
|
||||||
|
|
||||||
|
while (argc-- > 1) {
|
||||||
|
add_download(argv[argc], argc);
|
||||||
|
}
|
||||||
|
|
||||||
|
uv_run(loop, UV_RUN_DEFAULT);
|
||||||
|
curl_multi_cleanup(curl_handle);
|
||||||
|
return 0;
|
||||||
|
}
|
@@ -37,12 +37,24 @@ int main(void)
|
|||||||
|
|
||||||
/* get the first document */
|
/* get the first document */
|
||||||
curl_easy_setopt(curl, CURLOPT_URL, "http://example.com/");
|
curl_easy_setopt(curl, CURLOPT_URL, "http://example.com/");
|
||||||
|
|
||||||
|
/* Perform the request, res will get the return code */
|
||||||
res = curl_easy_perform(curl);
|
res = curl_easy_perform(curl);
|
||||||
|
/* Check for errors */
|
||||||
|
if(res != CURLE_OK)
|
||||||
|
fprintf(stderr, "curl_easy_perform() failed: %s\n",
|
||||||
|
curl_easy_strerror(res));
|
||||||
|
|
||||||
/* get another document from the same server using the same
|
/* get another document from the same server using the same
|
||||||
connection */
|
connection */
|
||||||
curl_easy_setopt(curl, CURLOPT_URL, "http://example.com/docs/");
|
curl_easy_setopt(curl, CURLOPT_URL, "http://example.com/docs/");
|
||||||
|
|
||||||
|
/* Perform the request, res will get the return code */
|
||||||
res = curl_easy_perform(curl);
|
res = curl_easy_perform(curl);
|
||||||
|
/* Check for errors */
|
||||||
|
if(res != CURLE_OK)
|
||||||
|
fprintf(stderr, "curl_easy_perform() failed: %s\n",
|
||||||
|
curl_easy_strerror(res));
|
||||||
|
|
||||||
/* always cleanup */
|
/* always cleanup */
|
||||||
curl_easy_cleanup(curl);
|
curl_easy_cleanup(curl);
|
||||||
|
@@ -59,7 +59,12 @@ int main(void)
|
|||||||
curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 0L);
|
curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 0L);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* Perform the request, res will get the return code */
|
||||||
res = curl_easy_perform(curl);
|
res = curl_easy_perform(curl);
|
||||||
|
/* Check for errors */
|
||||||
|
if(res != CURLE_OK)
|
||||||
|
fprintf(stderr, "curl_easy_perform() failed: %s\n",
|
||||||
|
curl_easy_strerror(res));
|
||||||
|
|
||||||
/* always cleanup */
|
/* always cleanup */
|
||||||
curl_easy_cleanup(curl);
|
curl_easy_cleanup(curl);
|
||||||
|
@@ -59,7 +59,12 @@ int main(void)
|
|||||||
curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 0L);
|
curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 0L);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* Perform the request, res will get the return code */
|
||||||
res = curl_easy_perform(curl);
|
res = curl_easy_perform(curl);
|
||||||
|
/* Check for errors */
|
||||||
|
if(res != CURLE_OK)
|
||||||
|
fprintf(stderr, "curl_easy_perform() failed: %s\n",
|
||||||
|
curl_easy_strerror(res));
|
||||||
|
|
||||||
/* always cleanup */
|
/* always cleanup */
|
||||||
curl_easy_cleanup(curl);
|
curl_easy_cleanup(curl);
|
||||||
|
@@ -5,7 +5,7 @@
|
|||||||
* | (__| |_| | _ <| |___
|
* | (__| |_| | _ <| |___
|
||||||
* \___|\___/|_| \_\_____|
|
* \___|\___/|_| \_\_____|
|
||||||
*
|
*
|
||||||
* Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al.
|
* Copyright (C) 1998 - 2012, 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
|
||||||
@@ -30,7 +30,7 @@ const char data[]="this is what we post to the silly web server";
|
|||||||
|
|
||||||
struct WriteThis {
|
struct WriteThis {
|
||||||
const char *readptr;
|
const char *readptr;
|
||||||
int sizeleft;
|
long sizeleft;
|
||||||
};
|
};
|
||||||
|
|
||||||
static size_t read_callback(void *ptr, size_t size, size_t nmemb, void *userp)
|
static size_t read_callback(void *ptr, size_t size, size_t nmemb, void *userp)
|
||||||
@@ -58,8 +58,18 @@ int main(void)
|
|||||||
struct WriteThis pooh;
|
struct WriteThis pooh;
|
||||||
|
|
||||||
pooh.readptr = data;
|
pooh.readptr = data;
|
||||||
pooh.sizeleft = strlen(data);
|
pooh.sizeleft = (long)strlen(data);
|
||||||
|
|
||||||
|
/* In windows, this will init the winsock stuff */
|
||||||
|
res = curl_global_init(CURL_GLOBAL_DEFAULT);
|
||||||
|
/* Check for errors */
|
||||||
|
if(res != CURLE_OK) {
|
||||||
|
fprintf(stderr, "curl_global_init() failed: %s\n",
|
||||||
|
curl_easy_strerror(res));
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* get a curl handle */
|
||||||
curl = curl_easy_init();
|
curl = curl_easy_init();
|
||||||
if(curl) {
|
if(curl) {
|
||||||
/* First set the URL that is about to receive our POST. */
|
/* First set the URL that is about to receive our POST. */
|
||||||
@@ -96,7 +106,7 @@ int main(void)
|
|||||||
#else
|
#else
|
||||||
/* Set the expected POST size. If you want to POST large amounts of data,
|
/* Set the expected POST size. If you want to POST large amounts of data,
|
||||||
consider CURLOPT_POSTFIELDSIZE_LARGE */
|
consider CURLOPT_POSTFIELDSIZE_LARGE */
|
||||||
curl_easy_setopt(curl, CURLOPT_POSTFIELDSIZE, (curl_off_t)pooh.sizeleft);
|
curl_easy_setopt(curl, CURLOPT_POSTFIELDSIZE, pooh.sizeleft);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef DISABLE_EXPECT
|
#ifdef DISABLE_EXPECT
|
||||||
@@ -120,9 +130,14 @@ int main(void)
|
|||||||
|
|
||||||
/* Perform the request, res will get the return code */
|
/* Perform the request, res will get the return code */
|
||||||
res = curl_easy_perform(curl);
|
res = curl_easy_perform(curl);
|
||||||
|
/* Check for errors */
|
||||||
|
if(res != CURLE_OK)
|
||||||
|
fprintf(stderr, "curl_easy_perform() failed: %s\n",
|
||||||
|
curl_easy_strerror(res));
|
||||||
|
|
||||||
/* always cleanup */
|
/* always cleanup */
|
||||||
curl_easy_cleanup(curl);
|
curl_easy_cleanup(curl);
|
||||||
}
|
}
|
||||||
|
curl_global_cleanup();
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@@ -83,7 +83,13 @@ int main(int argc, char *argv[])
|
|||||||
/* only disable 100-continue header if explicitly requested */
|
/* only disable 100-continue header if explicitly requested */
|
||||||
curl_easy_setopt(curl, CURLOPT_HTTPHEADER, headerlist);
|
curl_easy_setopt(curl, CURLOPT_HTTPHEADER, headerlist);
|
||||||
curl_easy_setopt(curl, CURLOPT_HTTPPOST, formpost);
|
curl_easy_setopt(curl, CURLOPT_HTTPPOST, formpost);
|
||||||
|
|
||||||
|
/* Perform the request, res will get the return code */
|
||||||
res = curl_easy_perform(curl);
|
res = curl_easy_perform(curl);
|
||||||
|
/* Check for errors */
|
||||||
|
if(res != CURLE_OK)
|
||||||
|
fprintf(stderr, "curl_easy_perform() failed: %s\n",
|
||||||
|
curl_easy_strerror(res));
|
||||||
|
|
||||||
/* always cleanup */
|
/* always cleanup */
|
||||||
curl_easy_cleanup(curl);
|
curl_easy_cleanup(curl);
|
||||||
|
@@ -59,7 +59,7 @@ static int progress(void *p,
|
|||||||
int main(void)
|
int main(void)
|
||||||
{
|
{
|
||||||
CURL *curl;
|
CURL *curl;
|
||||||
CURLcode res=0;
|
CURLcode res = CURLE_OK;
|
||||||
struct myprogress prog;
|
struct myprogress prog;
|
||||||
|
|
||||||
curl = curl_easy_init();
|
curl = curl_easy_init();
|
||||||
@@ -74,7 +74,7 @@ int main(void)
|
|||||||
curl_easy_setopt(curl, CURLOPT_NOPROGRESS, 0L);
|
curl_easy_setopt(curl, CURLOPT_NOPROGRESS, 0L);
|
||||||
res = curl_easy_perform(curl);
|
res = curl_easy_perform(curl);
|
||||||
|
|
||||||
if(res)
|
if(res != CURLE_OK)
|
||||||
fprintf(stderr, "%s\n", curl_easy_strerror(res));
|
fprintf(stderr, "%s\n", curl_easy_strerror(res));
|
||||||
|
|
||||||
/* always cleanup */
|
/* always cleanup */
|
||||||
|
@@ -178,7 +178,7 @@ int main(int argc, char * const argv[])
|
|||||||
#endif
|
#endif
|
||||||
const char *range = "0.000-";
|
const char *range = "0.000-";
|
||||||
int rc = EXIT_SUCCESS;
|
int rc = EXIT_SUCCESS;
|
||||||
char *basename = NULL;
|
char *base_name = NULL;
|
||||||
|
|
||||||
printf("\nRTSP request %s\n", VERSION_STR);
|
printf("\nRTSP request %s\n", VERSION_STR);
|
||||||
printf(" Project web site: http://code.google.com/p/rtsprequest/\n");
|
printf(" Project web site: http://code.google.com/p/rtsprequest/\n");
|
||||||
@@ -186,20 +186,20 @@ int main(int argc, char * const argv[])
|
|||||||
|
|
||||||
/* check command line */
|
/* check command line */
|
||||||
if ((argc != 2) && (argc != 3)) {
|
if ((argc != 2) && (argc != 3)) {
|
||||||
basename = strrchr(argv[0], '/');
|
base_name = strrchr(argv[0], '/');
|
||||||
if (basename == NULL) {
|
if (base_name == NULL) {
|
||||||
basename = strrchr(argv[0], '\\');
|
base_name = strrchr(argv[0], '\\');
|
||||||
}
|
}
|
||||||
if (basename == NULL) {
|
if (base_name == NULL) {
|
||||||
basename = argv[0];
|
base_name = argv[0];
|
||||||
} else {
|
} else {
|
||||||
basename++;
|
base_name++;
|
||||||
}
|
}
|
||||||
printf("Usage: %s url [transport]\n", basename);
|
printf("Usage: %s url [transport]\n", base_name);
|
||||||
printf(" url of video server\n");
|
printf(" url of video server\n");
|
||||||
printf(" transport (optional) specifier for media stream protocol\n");
|
printf(" transport (optional) specifier for media stream protocol\n");
|
||||||
printf(" default transport: %s\n", transport);
|
printf(" default transport: %s\n", transport);
|
||||||
printf("Example: %s rtsp://192.168.0.2/media/video1\n\n", basename);
|
printf("Example: %s rtsp://192.168.0.2/media/video1\n\n", base_name);
|
||||||
rc = EXIT_FAILURE;
|
rc = EXIT_FAILURE;
|
||||||
} else {
|
} else {
|
||||||
const char *url = argv[1];
|
const char *url = argv[1];
|
||||||
|
@@ -5,7 +5,7 @@
|
|||||||
* | (__| |_| | _ <| |___
|
* | (__| |_| | _ <| |___
|
||||||
* \___|\___/|_| \_\_____|
|
* \___|\___/|_| \_\_____|
|
||||||
*
|
*
|
||||||
* Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al.
|
* Copyright (C) 1998 - 2012, 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
|
||||||
@@ -24,7 +24,6 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <curl/curl.h>
|
#include <curl/curl.h>
|
||||||
#include "printf_macro.h"
|
|
||||||
|
|
||||||
/* Auxiliary function that waits on the socket. */
|
/* Auxiliary function that waits on the socket. */
|
||||||
static int wait_on_socket(curl_socket_t sockfd, int for_recv, long timeout_ms)
|
static int wait_on_socket(curl_socket_t sockfd, int for_recv, long timeout_ms)
|
||||||
@@ -65,6 +64,7 @@ int main(void)
|
|||||||
curl_socket_t sockfd; /* socket */
|
curl_socket_t sockfd; /* socket */
|
||||||
long sockextr;
|
long sockextr;
|
||||||
size_t iolen;
|
size_t iolen;
|
||||||
|
curl_off_t nread;
|
||||||
|
|
||||||
curl = curl_easy_init();
|
curl = curl_easy_init();
|
||||||
if(curl) {
|
if(curl) {
|
||||||
@@ -123,7 +123,9 @@ int main(void)
|
|||||||
if(CURLE_OK != res)
|
if(CURLE_OK != res)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
printf("Received %" _FMT_SIZE_T " bytes.\n", iolen);
|
nread = (curl_off_t)iolen;
|
||||||
|
|
||||||
|
printf("Received %" CURL_FORMAT_CURL_OFF_T " bytes.\n", nread);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* always cleanup */
|
/* always cleanup */
|
||||||
|
@@ -54,23 +54,22 @@ int main(void)
|
|||||||
curl_easy_setopt(curl_handle, CURLOPT_WRITEFUNCTION, write_data);
|
curl_easy_setopt(curl_handle, CURLOPT_WRITEFUNCTION, write_data);
|
||||||
|
|
||||||
/* open the files */
|
/* open the files */
|
||||||
headerfile = fopen(headerfilename,"w");
|
headerfile = fopen(headerfilename,"wb");
|
||||||
if (headerfile == NULL) {
|
if (headerfile == NULL) {
|
||||||
curl_easy_cleanup(curl_handle);
|
curl_easy_cleanup(curl_handle);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
bodyfile = fopen(bodyfilename,"w");
|
bodyfile = fopen(bodyfilename,"wb");
|
||||||
if (bodyfile == NULL) {
|
if (bodyfile == NULL) {
|
||||||
curl_easy_cleanup(curl_handle);
|
curl_easy_cleanup(curl_handle);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* we want the headers to this file handle */
|
/* we want the headers be written to this file handle */
|
||||||
curl_easy_setopt(curl_handle, CURLOPT_WRITEHEADER, headerfile);
|
curl_easy_setopt(curl_handle, CURLOPT_WRITEHEADER, headerfile);
|
||||||
|
|
||||||
/*
|
/* we want the body be written to this file handle instead of stdout */
|
||||||
* Notice here that if you want the actual data sent anywhere else but
|
curl_easy_setopt(curl_handle, CURLOPT_WRITEDATA, bodyfile);
|
||||||
* stdout, you should consider using the CURLOPT_WRITEDATA option. */
|
|
||||||
|
|
||||||
/* get it! */
|
/* get it! */
|
||||||
curl_easy_perform(curl_handle);
|
curl_easy_perform(curl_handle);
|
||||||
@@ -78,6 +77,9 @@ int main(void)
|
|||||||
/* close the header file */
|
/* close the header file */
|
||||||
fclose(headerfile);
|
fclose(headerfile);
|
||||||
|
|
||||||
|
/* close the body file */
|
||||||
|
fclose(bodyfile);
|
||||||
|
|
||||||
/* cleanup curl stuff */
|
/* cleanup curl stuff */
|
||||||
curl_easy_cleanup(curl_handle);
|
curl_easy_cleanup(curl_handle);
|
||||||
|
|
||||||
|
106
docs/examples/sftpget.c
Normal file
106
docs/examples/sftpget.c
Normal file
@@ -0,0 +1,106 @@
|
|||||||
|
/***************************************************************************
|
||||||
|
* _ _ ____ _
|
||||||
|
* Project ___| | | | _ \| |
|
||||||
|
* / __| | | | |_) | |
|
||||||
|
* | (__| |_| | _ <| |___
|
||||||
|
* \___|\___/|_| \_\_____|
|
||||||
|
*
|
||||||
|
* Copyright (C) 1998 - 2012, 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 http://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.
|
||||||
|
*
|
||||||
|
***************************************************************************/
|
||||||
|
|
||||||
|
#include <stdio.h>
|
||||||
|
|
||||||
|
#include <curl/curl.h>
|
||||||
|
|
||||||
|
/* define this to switch off the use of ssh-agent in this program */
|
||||||
|
#undef DISABLE_SSH_AGENT
|
||||||
|
|
||||||
|
/*
|
||||||
|
* This is an example showing how to get a single file from an SFTP server.
|
||||||
|
* It delays the actual destination file creation until the first write
|
||||||
|
* callback so that it won't create an empty file in case the remote file
|
||||||
|
* doesn't exist or something else fails.
|
||||||
|
*/
|
||||||
|
|
||||||
|
struct FtpFile {
|
||||||
|
const char *filename;
|
||||||
|
FILE *stream;
|
||||||
|
};
|
||||||
|
|
||||||
|
static size_t my_fwrite(void *buffer, size_t size, size_t nmemb,
|
||||||
|
void *stream)
|
||||||
|
{
|
||||||
|
struct FtpFile *out=(struct FtpFile *)stream;
|
||||||
|
if(out && !out->stream) {
|
||||||
|
/* open file for writing */
|
||||||
|
out->stream=fopen(out->filename, "wb");
|
||||||
|
if(!out->stream)
|
||||||
|
return -1; /* failure, can't open file to write */
|
||||||
|
}
|
||||||
|
return fwrite(buffer, size, nmemb, out->stream);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
int main(void)
|
||||||
|
{
|
||||||
|
CURL *curl;
|
||||||
|
CURLcode res;
|
||||||
|
struct FtpFile ftpfile={
|
||||||
|
"yourfile.bin", /* name to store the file as if succesful */
|
||||||
|
NULL
|
||||||
|
};
|
||||||
|
|
||||||
|
curl_global_init(CURL_GLOBAL_DEFAULT);
|
||||||
|
|
||||||
|
curl = curl_easy_init();
|
||||||
|
if(curl) {
|
||||||
|
/*
|
||||||
|
* You better replace the URL with one that works!
|
||||||
|
*/
|
||||||
|
curl_easy_setopt(curl, CURLOPT_URL,
|
||||||
|
"sftp://user@server/home/user/file.txt");
|
||||||
|
/* Define our callback to get called when there's data to be written */
|
||||||
|
curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, my_fwrite);
|
||||||
|
/* Set a pointer to our struct to pass to the callback */
|
||||||
|
curl_easy_setopt(curl, CURLOPT_WRITEDATA, &ftpfile);
|
||||||
|
|
||||||
|
#ifndef DISABLE_SSH_AGENT
|
||||||
|
/* We activate ssh agent. For this to work you need
|
||||||
|
to have ssh-agent running (type set | grep SSH_AGENT to check) or
|
||||||
|
pageant on Windows (there is an icon in systray if so) */
|
||||||
|
curl_easy_setopt(curl, CURLOPT_SSH_AUTH_TYPES, CURLSSH_AUTH_AGENT);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* Switch on full protocol/debug output */
|
||||||
|
curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L);
|
||||||
|
|
||||||
|
res = curl_easy_perform(curl);
|
||||||
|
|
||||||
|
/* always cleanup */
|
||||||
|
curl_easy_cleanup(curl);
|
||||||
|
|
||||||
|
if(CURLE_OK != res) {
|
||||||
|
/* we failed */
|
||||||
|
fprintf(stderr, "curl told us %d\n", res);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if(ftpfile.stream)
|
||||||
|
fclose(ftpfile.stream); /* close the local file */
|
||||||
|
|
||||||
|
curl_global_cleanup();
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
@@ -5,7 +5,7 @@
|
|||||||
* | (__| |_| | _ <| |___
|
* | (__| |_| | _ <| |___
|
||||||
* \___|\___/|_| \_\_____|
|
* \___|\___/|_| \_\_____|
|
||||||
*
|
*
|
||||||
* Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al.
|
* Copyright (C) 1998 - 2013, 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
|
||||||
@@ -30,7 +30,15 @@ int main(void)
|
|||||||
curl = curl_easy_init();
|
curl = curl_easy_init();
|
||||||
if(curl) {
|
if(curl) {
|
||||||
curl_easy_setopt(curl, CURLOPT_URL, "http://example.com");
|
curl_easy_setopt(curl, CURLOPT_URL, "http://example.com");
|
||||||
|
/* example.com is redirected, so we tell libcurl to follow redirection */
|
||||||
|
curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L);
|
||||||
|
|
||||||
|
/* Perform the request, res will get the return code */
|
||||||
res = curl_easy_perform(curl);
|
res = curl_easy_perform(curl);
|
||||||
|
/* Check for errors */
|
||||||
|
if(res != CURLE_OK)
|
||||||
|
fprintf(stderr, "curl_easy_perform() failed: %s\n",
|
||||||
|
curl_easy_strerror(res));
|
||||||
|
|
||||||
/* always cleanup */
|
/* always cleanup */
|
||||||
curl_easy_cleanup(curl);
|
curl_easy_cleanup(curl);
|
||||||
|
@@ -39,7 +39,12 @@ int main(void)
|
|||||||
itself */
|
itself */
|
||||||
curl_easy_setopt(curl, CURLOPT_POSTFIELDSIZE, (long)strlen(postthis));
|
curl_easy_setopt(curl, CURLOPT_POSTFIELDSIZE, (long)strlen(postthis));
|
||||||
|
|
||||||
|
/* Perform the request, res will get the return code */
|
||||||
res = curl_easy_perform(curl);
|
res = curl_easy_perform(curl);
|
||||||
|
/* Check for errors */
|
||||||
|
if(res != CURLE_OK)
|
||||||
|
fprintf(stderr, "curl_easy_perform() failed: %s\n",
|
||||||
|
curl_easy_strerror(res));
|
||||||
|
|
||||||
/* always cleanup */
|
/* always cleanup */
|
||||||
curl_easy_cleanup(curl);
|
curl_easy_cleanup(curl);
|
||||||
|
@@ -65,6 +65,10 @@ int main(void)
|
|||||||
|
|
||||||
/* send the message (including headers) */
|
/* send the message (including headers) */
|
||||||
res = curl_easy_perform(curl);
|
res = curl_easy_perform(curl);
|
||||||
|
/* Check for errors */
|
||||||
|
if(res != CURLE_OK)
|
||||||
|
fprintf(stderr, "curl_easy_perform() failed: %s\n",
|
||||||
|
curl_easy_strerror(res));
|
||||||
|
|
||||||
/* free the list of recipients */
|
/* free the list of recipients */
|
||||||
curl_slist_free_all(recipients);
|
curl_slist_free_all(recipients);
|
||||||
|
@@ -5,7 +5,7 @@
|
|||||||
* | (__| |_| | _ <| |___
|
* | (__| |_| | _ <| |___
|
||||||
* \___|\___/|_| \_\_____|
|
* \___|\___/|_| \_\_____|
|
||||||
*
|
*
|
||||||
* Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al.
|
* Copyright (C) 1998 - 2012, 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
|
||||||
@@ -43,6 +43,7 @@
|
|||||||
|
|
||||||
int main(void)
|
int main(void)
|
||||||
{
|
{
|
||||||
|
int i;
|
||||||
CURL *curl;
|
CURL *curl;
|
||||||
CURLcode res;
|
CURLcode res;
|
||||||
FILE *headerfile;
|
FILE *headerfile;
|
||||||
@@ -76,7 +77,7 @@ int main(void)
|
|||||||
curl_easy_setopt(curl, CURLOPT_URL, "HTTPS://your.favourite.ssl.site");
|
curl_easy_setopt(curl, CURLOPT_URL, "HTTPS://your.favourite.ssl.site");
|
||||||
curl_easy_setopt(curl, CURLOPT_WRITEHEADER, headerfile);
|
curl_easy_setopt(curl, CURLOPT_WRITEHEADER, headerfile);
|
||||||
|
|
||||||
while(1) /* do some ugly short cut... */
|
for(i = 0; i < 1; i++) /* single-iteration loop, just to break out from */
|
||||||
{
|
{
|
||||||
if (pEngine) /* use crypto engine */
|
if (pEngine) /* use crypto engine */
|
||||||
{
|
{
|
||||||
@@ -118,8 +119,14 @@ int main(void)
|
|||||||
/* disconnect if we can't validate server's cert */
|
/* disconnect if we can't validate server's cert */
|
||||||
curl_easy_setopt(curl,CURLOPT_SSL_VERIFYPEER,1L);
|
curl_easy_setopt(curl,CURLOPT_SSL_VERIFYPEER,1L);
|
||||||
|
|
||||||
|
/* Perform the request, res will get the return code */
|
||||||
res = curl_easy_perform(curl);
|
res = curl_easy_perform(curl);
|
||||||
break; /* we are done... */
|
/* Check for errors */
|
||||||
|
if(res != CURLE_OK)
|
||||||
|
fprintf(stderr, "curl_easy_perform() failed: %s\n",
|
||||||
|
curl_easy_strerror(res));
|
||||||
|
|
||||||
|
/* we are done... */
|
||||||
}
|
}
|
||||||
/* always cleanup */
|
/* always cleanup */
|
||||||
curl_easy_cleanup(curl);
|
curl_easy_cleanup(curl);
|
||||||
|
@@ -96,7 +96,6 @@ int main(void)
|
|||||||
CURLM *mcurl;
|
CURLM *mcurl;
|
||||||
int still_running = 1;
|
int still_running = 1;
|
||||||
struct timeval mp_start;
|
struct timeval mp_start;
|
||||||
char mp_timedout = 0;
|
|
||||||
struct WriteThis pooh;
|
struct WriteThis pooh;
|
||||||
struct curl_slist* rcpt_list = NULL;
|
struct curl_slist* rcpt_list = NULL;
|
||||||
|
|
||||||
@@ -132,7 +131,6 @@ int main(void)
|
|||||||
curl_easy_setopt(curl, CURLOPT_SSL_SESSIONID_CACHE, 0L);
|
curl_easy_setopt(curl, CURLOPT_SSL_SESSIONID_CACHE, 0L);
|
||||||
curl_multi_add_handle(mcurl, curl);
|
curl_multi_add_handle(mcurl, curl);
|
||||||
|
|
||||||
mp_timedout = 0;
|
|
||||||
mp_start = tvnow();
|
mp_start = tvnow();
|
||||||
|
|
||||||
/* we start some action by calling perform right away */
|
/* we start some action by calling perform right away */
|
||||||
|
@@ -139,6 +139,10 @@ int main(void)
|
|||||||
|
|
||||||
/* send the message (including headers) */
|
/* send the message (including headers) */
|
||||||
res = curl_easy_perform(curl);
|
res = curl_easy_perform(curl);
|
||||||
|
/* Check for errors */
|
||||||
|
if(res != CURLE_OK)
|
||||||
|
fprintf(stderr, "curl_easy_perform() failed: %s\n",
|
||||||
|
curl_easy_strerror(res));
|
||||||
|
|
||||||
/* free the list of recipients and clean up */
|
/* free the list of recipients and clean up */
|
||||||
curl_slist_free_all(recipients);
|
curl_slist_free_all(recipients);
|
||||||
|
211
docs/examples/usercertinmem.c
Normal file
211
docs/examples/usercertinmem.c
Normal file
@@ -0,0 +1,211 @@
|
|||||||
|
/***************************************************************************
|
||||||
|
* _ _ ____ _
|
||||||
|
* Project ___| | | | _ \| |
|
||||||
|
* / __| | | | |_) | |
|
||||||
|
* | (__| |_| | _ <| |___
|
||||||
|
* \___|\___/|_| \_\_____|
|
||||||
|
*
|
||||||
|
* Copyright (C) 2013, 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 http://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.
|
||||||
|
*
|
||||||
|
***************************************************************************/
|
||||||
|
/* Example using an in memory PEM user certificate and RSA key to retrieve an
|
||||||
|
* https page.
|
||||||
|
* Written by Ishan SinghLevett, based on Theo Borm's cacertinmem.c.
|
||||||
|
* Note this example does not use a CA certificate, however one should be used
|
||||||
|
* if you want a properly secure connection
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <openssl/ssl.h>
|
||||||
|
#include <openssl/x509.h>
|
||||||
|
#include <openssl/pem.h>
|
||||||
|
#include <curl/curl.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
|
||||||
|
static size_t writefunction(void *ptr, size_t size, size_t nmemb, void *stream)
|
||||||
|
{
|
||||||
|
fwrite(ptr,size,nmemb,stream);
|
||||||
|
return(nmemb*size);
|
||||||
|
}
|
||||||
|
|
||||||
|
static CURLcode sslctx_function(CURL *curl, void *sslctx, void *parm)
|
||||||
|
{
|
||||||
|
X509 *cert = NULL;
|
||||||
|
BIO *bio = NULL;
|
||||||
|
BIO *kbio = NULL;
|
||||||
|
RSA *rsa = NULL;
|
||||||
|
int ret;
|
||||||
|
|
||||||
|
const char *mypem = /* www.cacert.org */
|
||||||
|
"-----BEGIN CERTIFICATE-----\n"\
|
||||||
|
"MIIHPTCCBSWgAwIBAgIBADANBgkqhkiG9w0BAQQFADB5MRAwDgYDVQQKEwdSb290\n"\
|
||||||
|
"IENBMR4wHAYDVQQLExVodHRwOi8vd3d3LmNhY2VydC5vcmcxIjAgBgNVBAMTGUNB\n"\
|
||||||
|
"IENlcnQgU2lnbmluZyBBdXRob3JpdHkxITAfBgkqhkiG9w0BCQEWEnN1cHBvcnRA\n"\
|
||||||
|
"Y2FjZXJ0Lm9yZzAeFw0wMzAzMzAxMjI5NDlaFw0zMzAzMjkxMjI5NDlaMHkxEDAO\n"\
|
||||||
|
"BgNVBAoTB1Jvb3QgQ0ExHjAcBgNVBAsTFWh0dHA6Ly93d3cuY2FjZXJ0Lm9yZzEi\n"\
|
||||||
|
"MCAGA1UEAxMZQ0EgQ2VydCBTaWduaW5nIEF1dGhvcml0eTEhMB8GCSqGSIb3DQEJ\n"\
|
||||||
|
"ARYSc3VwcG9ydEBjYWNlcnQub3JnMIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIIC\n"\
|
||||||
|
"CgKCAgEAziLA4kZ97DYoB1CW8qAzQIxL8TtmPzHlawI229Z89vGIj053NgVBlfkJ\n"\
|
||||||
|
"8BLPRoZzYLdufujAWGSuzbCtRRcMY/pnCujW0r8+55jE8Ez64AO7NV1sId6eINm6\n"\
|
||||||
|
"zWYyN3L69wj1x81YyY7nDl7qPv4coRQKFWyGhFtkZip6qUtTefWIonvuLwphK42y\n"\
|
||||||
|
"fk1WpRPs6tqSnqxEQR5YYGUFZvjARL3LlPdCfgv3ZWiYUQXw8wWRBB0bF4LsyFe7\n"\
|
||||||
|
"w2t6iPGwcswlWyCR7BYCEo8y6RcYSNDHBS4CMEK4JZwFaz+qOqfrU0j36NK2B5jc\n"\
|
||||||
|
"G8Y0f3/JHIJ6BVgrCFvzOKKrF11myZjXnhCLotLddJr3cQxyYN/Nb5gznZY0dj4k\n"\
|
||||||
|
"epKwDpUeb+agRThHqtdB7Uq3EvbXG4OKDy7YCbZZ16oE/9KTfWgu3YtLq1i6L43q\n"\
|
||||||
|
"laegw1SJpfvbi1EinbLDvhG+LJGGi5Z4rSDTii8aP8bQUWWHIbEZAWV/RRyH9XzQ\n"\
|
||||||
|
"QUxPKZgh/TMfdQwEUfoZd9vUFBzugcMd9Zi3aQaRIt0AUMyBMawSB3s42mhb5ivU\n"\
|
||||||
|
"fslfrejrckzzAeVLIL+aplfKkQABi6F1ITe1Yw1nPkZPcCBnzsXWWdsC4PDSy826\n"\
|
||||||
|
"YreQQejdIOQpvGQpQsgi3Hia/0PsmBsJUUtaWsJx8cTLc6nloQsCAwEAAaOCAc4w\n"\
|
||||||
|
"ggHKMB0GA1UdDgQWBBQWtTIb1Mfz4OaO873SsDrusjkY0TCBowYDVR0jBIGbMIGY\n"\
|
||||||
|
"gBQWtTIb1Mfz4OaO873SsDrusjkY0aF9pHsweTEQMA4GA1UEChMHUm9vdCBDQTEe\n"\
|
||||||
|
"MBwGA1UECxMVaHR0cDovL3d3dy5jYWNlcnQub3JnMSIwIAYDVQQDExlDQSBDZXJ0\n"\
|
||||||
|
"IFNpZ25pbmcgQXV0aG9yaXR5MSEwHwYJKoZIhvcNAQkBFhJzdXBwb3J0QGNhY2Vy\n"\
|
||||||
|
"dC5vcmeCAQAwDwYDVR0TAQH/BAUwAwEB/zAyBgNVHR8EKzApMCegJaAjhiFodHRw\n"\
|
||||||
|
"czovL3d3dy5jYWNlcnQub3JnL3Jldm9rZS5jcmwwMAYJYIZIAYb4QgEEBCMWIWh0\n"\
|
||||||
|
"dHBzOi8vd3d3LmNhY2VydC5vcmcvcmV2b2tlLmNybDA0BglghkgBhvhCAQgEJxYl\n"\
|
||||||
|
"aHR0cDovL3d3dy5jYWNlcnQub3JnL2luZGV4LnBocD9pZD0xMDBWBglghkgBhvhC\n"\
|
||||||
|
"AQ0ESRZHVG8gZ2V0IHlvdXIgb3duIGNlcnRpZmljYXRlIGZvciBGUkVFIGhlYWQg\n"\
|
||||||
|
"b3ZlciB0byBodHRwOi8vd3d3LmNhY2VydC5vcmcwDQYJKoZIhvcNAQEEBQADggIB\n"\
|
||||||
|
"ACjH7pyCArpcgBLKNQodgW+JapnM8mgPf6fhjViVPr3yBsOQWqy1YPaZQwGjiHCc\n"\
|
||||||
|
"nWKdpIevZ1gNMDY75q1I08t0AoZxPuIrA2jxNGJARjtT6ij0rPtmlVOKTV39O9lg\n"\
|
||||||
|
"18p5aTuxZZKmxoGCXJzN600BiqXfEVWqFcofN8CCmHBh22p8lqOOLlQ+TyGpkO/c\n"\
|
||||||
|
"gr/c6EWtTZBzCDyUZbAEmXZ/4rzCahWqlwQ3JNgelE5tDlG+1sSPypZt90Pf6DBl\n"\
|
||||||
|
"Jzt7u0NDY8RD97LsaMzhGY4i+5jhe1o+ATc7iwiwovOVThrLm82asduycPAtStvY\n"\
|
||||||
|
"sONvRUgzEv/+PDIqVPfE94rwiCPCR/5kenHA0R6mY7AHfqQv0wGP3J8rtsYIqQ+T\n"\
|
||||||
|
"SCX8Ev2fQtzzxD72V7DX3WnRBnc0CkvSyqD/HMaMyRa+xMwyN2hzXwj7UfdJUzYF\n"\
|
||||||
|
"CpUCTPJ5GhD22Dp1nPMd8aINcGeGG7MW9S/lpOt5hvk9C8JzC6WZrG/8Z7jlLwum\n"\
|
||||||
|
"GCSNe9FINSkYQKyTYOGWhlC0elnYjyELn8+CkcY7v2vcB5G5l1YjqrZslMZIBjzk\n"\
|
||||||
|
"zk6q5PYvCdxTby78dOs6Y5nCpqyJvKeyRKANihDjbPIky/qbn3BHLt4Ui9SyIAmW\n"\
|
||||||
|
"omTxJBzcoTWcFbLUvFUufQb1nA5V9FrWk9p2rSVzTMVD\n"\
|
||||||
|
"-----END CERTIFICATE-----\n";
|
||||||
|
|
||||||
|
/*replace the XXX with the actual RSA key*/
|
||||||
|
const char *mykey =
|
||||||
|
"-----BEGIN RSA PRIVATE KEY-----\n"\
|
||||||
|
"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\n"\
|
||||||
|
"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\n"\
|
||||||
|
"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\n"\
|
||||||
|
"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\n"\
|
||||||
|
"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\n"\
|
||||||
|
"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\n"\
|
||||||
|
"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\n"\
|
||||||
|
"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\n"\
|
||||||
|
"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\n"\
|
||||||
|
"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\n"\
|
||||||
|
"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\n"\
|
||||||
|
"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\n"\
|
||||||
|
"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\n"\
|
||||||
|
"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\n"\
|
||||||
|
"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\n"\
|
||||||
|
"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\n"\
|
||||||
|
"-----END RSA PRIVATE KEY-----\n";
|
||||||
|
|
||||||
|
(void)curl; /* avoid warnings */
|
||||||
|
(void)parm; /* avoid warnings */
|
||||||
|
|
||||||
|
/* get a BIO */
|
||||||
|
bio = BIO_new_mem_buf((char *)mypem, -1);
|
||||||
|
|
||||||
|
if (bio == NULL) {
|
||||||
|
printf("BIO_new_mem_buf failed\n");
|
||||||
|
}
|
||||||
|
|
||||||
|
/* use it to read the PEM formatted certificate from memory into an X509
|
||||||
|
* structure that SSL can use
|
||||||
|
*/
|
||||||
|
cert = PEM_read_bio_X509(bio, NULL, 0, NULL);
|
||||||
|
if (cert == NULL) {
|
||||||
|
printf("PEM_read_bio_X509 failed...\n");
|
||||||
|
}
|
||||||
|
|
||||||
|
/*tell SSL to use the X509 certificate*/
|
||||||
|
ret = SSL_CTX_use_certificate((SSL_CTX*)sslctx, cert);
|
||||||
|
if (ret != 1) {
|
||||||
|
printf("Use certificate failed\n");
|
||||||
|
}
|
||||||
|
|
||||||
|
/*create a bio for the RSA key*/
|
||||||
|
kbio = BIO_new_mem_buf((char *)mykey, -1);
|
||||||
|
if (kbio == NULL) {
|
||||||
|
printf("BIO_new_mem_buf failed\n");
|
||||||
|
}
|
||||||
|
|
||||||
|
/*read the key bio into an RSA object*/
|
||||||
|
rsa = PEM_read_bio_RSAPrivateKey(kbio, NULL, 0, NULL);
|
||||||
|
if (rsa == NULL) {
|
||||||
|
printf("Failed to create key bio\n");
|
||||||
|
}
|
||||||
|
|
||||||
|
/*tell SSL to use the RSA key from memory*/
|
||||||
|
ret = SSL_CTX_use_RSAPrivateKey((SSL_CTX*)sslctx, rsa);
|
||||||
|
if (ret != 1) {
|
||||||
|
printf("Use Key failed\n");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* all set to go */
|
||||||
|
return CURLE_OK ;
|
||||||
|
}
|
||||||
|
|
||||||
|
int main(void)
|
||||||
|
{
|
||||||
|
CURL *ch;
|
||||||
|
CURLcode rv;
|
||||||
|
|
||||||
|
rv = curl_global_init(CURL_GLOBAL_ALL);
|
||||||
|
ch = curl_easy_init();
|
||||||
|
rv = curl_easy_setopt(ch,CURLOPT_VERBOSE, 0L);
|
||||||
|
rv = curl_easy_setopt(ch,CURLOPT_HEADER, 0L);
|
||||||
|
rv = curl_easy_setopt(ch,CURLOPT_NOPROGRESS, 1L);
|
||||||
|
rv = curl_easy_setopt(ch,CURLOPT_NOSIGNAL, 1L);
|
||||||
|
rv = curl_easy_setopt(ch,CURLOPT_WRITEFUNCTION, *writefunction);
|
||||||
|
rv = curl_easy_setopt(ch,CURLOPT_WRITEDATA, stdout);
|
||||||
|
rv = curl_easy_setopt(ch,CURLOPT_HEADERFUNCTION, *writefunction);
|
||||||
|
rv = curl_easy_setopt(ch,CURLOPT_WRITEHEADER, stderr);
|
||||||
|
rv = curl_easy_setopt(ch,CURLOPT_SSLCERTTYPE,"PEM");
|
||||||
|
|
||||||
|
/* both VERIFYPEER and VERIFYHOST are set to 0 in this case because there is
|
||||||
|
no CA certificate*/
|
||||||
|
|
||||||
|
rv = curl_easy_setopt(ch,CURLOPT_SSL_VERIFYPEER, 0L);
|
||||||
|
rv = curl_easy_setopt(ch,CURLOPT_SSL_VERIFYHOST, 0L);
|
||||||
|
rv = curl_easy_setopt(ch, CURLOPT_URL, "https://www.example.com/");
|
||||||
|
rv = curl_easy_setopt(ch, CURLOPT_SSLKEYTYPE, "PEM");
|
||||||
|
|
||||||
|
/* first try: retrieve page without user certificate and key -> will fail
|
||||||
|
*/
|
||||||
|
rv = curl_easy_perform(ch);
|
||||||
|
if (rv==CURLE_OK) {
|
||||||
|
printf("*** transfer succeeded ***\n");
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
printf("*** transfer failed ***\n");
|
||||||
|
}
|
||||||
|
|
||||||
|
/* second try: retrieve page using user certificate and key -> will succeed
|
||||||
|
* load the certificate and key by installing a function doing the necessary
|
||||||
|
* "modifications" to the SSL CONTEXT just before link init
|
||||||
|
*/
|
||||||
|
rv = curl_easy_setopt(ch,CURLOPT_SSL_CTX_FUNCTION, *sslctx_function);
|
||||||
|
rv = curl_easy_perform(ch);
|
||||||
|
if (rv==CURLE_OK) {
|
||||||
|
printf("*** transfer succeeded ***\n");
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
printf("*** transfer failed ***\n");
|
||||||
|
}
|
||||||
|
|
||||||
|
curl_easy_cleanup(ch);
|
||||||
|
curl_global_cleanup();
|
||||||
|
return rv;
|
||||||
|
}
|
158
docs/examples/xmlstream.c
Normal file
158
docs/examples/xmlstream.c
Normal file
@@ -0,0 +1,158 @@
|
|||||||
|
/***************************************************************************
|
||||||
|
* _ _ ____ _
|
||||||
|
* Project ___| | | | _ \| |
|
||||||
|
* / __| | | | |_) | |
|
||||||
|
* | (__| |_| | _ <| |___
|
||||||
|
* \___|\___/|_| \_\_____|
|
||||||
|
*
|
||||||
|
* Copyright (C) 1998 - 2013, 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 http://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.
|
||||||
|
*
|
||||||
|
***************************************************************************/
|
||||||
|
/* Stream-parse a document using the streaming Expat parser.
|
||||||
|
* Written by David Strauss
|
||||||
|
*
|
||||||
|
* Expat => http://www.libexpat.org/
|
||||||
|
*
|
||||||
|
* gcc -Wall -I/usr/local/include xmlstream.c -lcurl -lexpat -o xmlstream
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
#include <string.h>
|
||||||
|
#include <assert.h>
|
||||||
|
|
||||||
|
#include <expat.h>
|
||||||
|
#include <curl/curl.h>
|
||||||
|
|
||||||
|
struct MemoryStruct {
|
||||||
|
char *memory;
|
||||||
|
size_t size;
|
||||||
|
};
|
||||||
|
|
||||||
|
struct ParserStruct {
|
||||||
|
int ok;
|
||||||
|
size_t tags;
|
||||||
|
size_t depth;
|
||||||
|
struct MemoryStruct characters;
|
||||||
|
};
|
||||||
|
|
||||||
|
static void startElement(void *userData, const XML_Char *name, const XML_Char **atts)
|
||||||
|
{
|
||||||
|
struct ParserStruct *state = (struct ParserStruct *) userData;
|
||||||
|
state->tags++;
|
||||||
|
state->depth++;
|
||||||
|
|
||||||
|
/* Get a clean slate for reading in character data. */
|
||||||
|
free(state->characters.memory);
|
||||||
|
state->characters.memory = NULL;
|
||||||
|
state->characters.size = 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
static void characterDataHandler(void *userData, const XML_Char *s, int len)
|
||||||
|
{
|
||||||
|
struct ParserStruct *state = (struct ParserStruct *) userData;
|
||||||
|
struct MemoryStruct *mem = &state->characters;
|
||||||
|
|
||||||
|
mem->memory = realloc(mem->memory, mem->size + len + 1);
|
||||||
|
if(mem->memory == NULL) {
|
||||||
|
/* Out of memory. */
|
||||||
|
fprintf(stderr, "Not enough memory (realloc returned NULL).\n");
|
||||||
|
state->ok = 0;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
memcpy(&(mem->memory[mem->size]), s, len);
|
||||||
|
mem->size += len;
|
||||||
|
mem->memory[mem->size] = 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
static void endElement(void *userData, const XML_Char *name)
|
||||||
|
{
|
||||||
|
struct ParserStruct *state = (struct ParserStruct *) userData;
|
||||||
|
state->depth--;
|
||||||
|
|
||||||
|
printf("%5lu %10lu %s\n", state->depth, state->characters.size, name);
|
||||||
|
}
|
||||||
|
|
||||||
|
static size_t parseStreamCallback(void *contents, size_t length, size_t nmemb, void *userp)
|
||||||
|
{
|
||||||
|
XML_Parser parser = (XML_Parser) userp;
|
||||||
|
size_t real_size = length * nmemb;
|
||||||
|
struct ParserStruct *state = (struct ParserStruct *) XML_GetUserData(parser);
|
||||||
|
|
||||||
|
/* Only parse if we're not already in a failure state. */
|
||||||
|
if (state->ok && XML_Parse(parser, contents, real_size, 0) == 0) {
|
||||||
|
int error_code = XML_GetErrorCode(parser);
|
||||||
|
fprintf(stderr, "Parsing response buffer of length %lu failed with error code %d (%s).\n",
|
||||||
|
real_size, error_code, XML_ErrorString(error_code));
|
||||||
|
state->ok = 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
return real_size;
|
||||||
|
}
|
||||||
|
|
||||||
|
int main(void)
|
||||||
|
{
|
||||||
|
CURL *curl_handle;
|
||||||
|
CURLcode res;
|
||||||
|
XML_Parser parser;
|
||||||
|
struct ParserStruct state;
|
||||||
|
|
||||||
|
/* Initialize the state structure for parsing. */
|
||||||
|
memset(&state, 0, sizeof(struct ParserStruct));
|
||||||
|
state.ok = 1;
|
||||||
|
|
||||||
|
/* Initialize a namespace-aware parser. */
|
||||||
|
parser = XML_ParserCreateNS(NULL, '\0');
|
||||||
|
XML_SetUserData(parser, &state);
|
||||||
|
XML_SetElementHandler(parser, startElement, endElement);
|
||||||
|
XML_SetCharacterDataHandler(parser, characterDataHandler);
|
||||||
|
|
||||||
|
/* Initalize a libcurl handle. */
|
||||||
|
curl_global_init(CURL_GLOBAL_ALL ^ CURL_GLOBAL_SSL);
|
||||||
|
curl_handle = curl_easy_init();
|
||||||
|
curl_easy_setopt(curl_handle, CURLOPT_URL, "http://www.w3schools.com/xml/simple.xml");
|
||||||
|
curl_easy_setopt(curl_handle, CURLOPT_WRITEFUNCTION, parseStreamCallback);
|
||||||
|
curl_easy_setopt(curl_handle, CURLOPT_WRITEDATA, (void *)parser);
|
||||||
|
|
||||||
|
printf("Depth Characters Closing Tag\n");
|
||||||
|
|
||||||
|
/* Perform the request and any follow-up parsing. */
|
||||||
|
res = curl_easy_perform(curl_handle);
|
||||||
|
if(res != CURLE_OK) {
|
||||||
|
fprintf(stderr, "curl_easy_perform() failed: %s\n",
|
||||||
|
curl_easy_strerror(res));
|
||||||
|
}
|
||||||
|
else if (state.ok) {
|
||||||
|
/* Expat requires one final call to finalize parsing. */
|
||||||
|
if (XML_Parse(parser, NULL, 0, 1) == 0) {
|
||||||
|
int error_code = XML_GetErrorCode(parser);
|
||||||
|
fprintf(stderr, "Finalizing parsing failed with error code %d (%s).\n",
|
||||||
|
error_code, XML_ErrorString(error_code));
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
printf(" --------------\n");
|
||||||
|
printf(" %lu tags total\n", state.tags);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Clean up. */
|
||||||
|
free(state.characters.memory);
|
||||||
|
XML_ParserFree(parser);
|
||||||
|
curl_easy_cleanup(curl_handle);
|
||||||
|
curl_global_cleanup();
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
@@ -5,7 +5,7 @@
|
|||||||
# | (__| |_| | _ <| |___
|
# | (__| |_| | _ <| |___
|
||||||
# \___|\___/|_| \_\_____|
|
# \___|\___/|_| \_\_____|
|
||||||
#
|
#
|
||||||
# Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al.
|
# Copyright (C) 1998 - 2012, 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
|
||||||
@@ -38,7 +38,7 @@ man_MANS = curl_easy_cleanup.3 curl_easy_getinfo.3 curl_easy_init.3 \
|
|||||||
curl_easy_unescape.3 curl_multi_setopt.3 curl_multi_socket.3 \
|
curl_easy_unescape.3 curl_multi_setopt.3 curl_multi_socket.3 \
|
||||||
curl_multi_timeout.3 curl_formget.3 curl_multi_assign.3 \
|
curl_multi_timeout.3 curl_formget.3 curl_multi_assign.3 \
|
||||||
curl_easy_pause.3 curl_easy_recv.3 curl_easy_send.3 \
|
curl_easy_pause.3 curl_easy_recv.3 curl_easy_send.3 \
|
||||||
curl_multi_socket_action.3
|
curl_multi_socket_action.3 curl_multi_wait.3
|
||||||
|
|
||||||
HTMLPAGES = curl_easy_cleanup.html curl_easy_getinfo.html \
|
HTMLPAGES = curl_easy_cleanup.html curl_easy_getinfo.html \
|
||||||
curl_easy_init.html curl_easy_perform.html curl_easy_setopt.html \
|
curl_easy_init.html curl_easy_perform.html curl_easy_setopt.html \
|
||||||
@@ -58,7 +58,7 @@ HTMLPAGES = curl_easy_cleanup.html curl_easy_getinfo.html \
|
|||||||
curl_easy_unescape.html curl_multi_setopt.html curl_multi_socket.html \
|
curl_easy_unescape.html curl_multi_setopt.html curl_multi_socket.html \
|
||||||
curl_multi_timeout.html curl_formget.html curl_multi_assign.html \
|
curl_multi_timeout.html curl_formget.html curl_multi_assign.html \
|
||||||
curl_easy_pause.html curl_easy_recv.html curl_easy_send.html \
|
curl_easy_pause.html curl_easy_recv.html curl_easy_send.html \
|
||||||
curl_multi_socket_action.html
|
curl_multi_socket_action.html curl_multi_wait.html
|
||||||
|
|
||||||
PDFPAGES = curl_easy_cleanup.pdf curl_easy_getinfo.pdf \
|
PDFPAGES = curl_easy_cleanup.pdf curl_easy_getinfo.pdf \
|
||||||
curl_easy_init.pdf curl_easy_perform.pdf curl_easy_setopt.pdf \
|
curl_easy_init.pdf curl_easy_perform.pdf curl_easy_setopt.pdf \
|
||||||
@@ -77,7 +77,7 @@ PDFPAGES = curl_easy_cleanup.pdf curl_easy_getinfo.pdf \
|
|||||||
curl_easy_escape.pdf curl_easy_unescape.pdf curl_multi_setopt.pdf \
|
curl_easy_escape.pdf curl_easy_unescape.pdf curl_multi_setopt.pdf \
|
||||||
curl_multi_socket.pdf curl_multi_timeout.pdf curl_formget.pdf \
|
curl_multi_socket.pdf curl_multi_timeout.pdf curl_formget.pdf \
|
||||||
curl_multi_assign.pdf curl_easy_pause.pdf curl_easy_recv.pdf \
|
curl_multi_assign.pdf curl_easy_pause.pdf curl_easy_recv.pdf \
|
||||||
curl_easy_send.pdf curl_multi_socket_action.pdf
|
curl_easy_send.pdf curl_multi_socket_action.pdf curl_multi_wait.pdf
|
||||||
|
|
||||||
CLEANFILES = $(HTMLPAGES) $(PDFPAGES)
|
CLEANFILES = $(HTMLPAGES) $(PDFPAGES)
|
||||||
|
|
||||||
|
@@ -162,7 +162,7 @@ method(s) available for your proxy authentication. (Added in 7.10.8)
|
|||||||
.IP CURLINFO_OS_ERRNO
|
.IP CURLINFO_OS_ERRNO
|
||||||
Pass a pointer to a long to receive the errno variable from a connect failure.
|
Pass a pointer to a long to receive the errno variable from a connect failure.
|
||||||
Note that the value is only set on failure, it is not reset upon a
|
Note that the value is only set on failure, it is not reset upon a
|
||||||
successfull operation. (Added in 7.12.2)
|
successful operation. (Added in 7.12.2)
|
||||||
.IP CURLINFO_NUM_CONNECTS
|
.IP CURLINFO_NUM_CONNECTS
|
||||||
Pass a pointer to a long to receive how many new connections libcurl had to
|
Pass a pointer to a long to receive how many new connections libcurl had to
|
||||||
create to achieve the previous transfer (only the successful connects are
|
create to achieve the previous transfer (only the successful connects are
|
||||||
|
@@ -5,7 +5,7 @@
|
|||||||
.\" * | (__| |_| | _ <| |___
|
.\" * | (__| |_| | _ <| |___
|
||||||
.\" * \___|\___/|_| \_\_____|
|
.\" * \___|\___/|_| \_\_____|
|
||||||
.\" *
|
.\" *
|
||||||
.\" * Copyright (C) 1998 - 2008, Daniel Stenberg, <daniel@haxx.se>, et al.
|
.\" * Copyright (C) 1998 - 2013, 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
|
||||||
@@ -59,8 +59,13 @@ On success, returns \fBCURLE_OK\fP, stores the received data into
|
|||||||
|
|
||||||
On failure, returns the appropriate error code.
|
On failure, returns the appropriate error code.
|
||||||
|
|
||||||
If there is no data to read, the function returns \fBCURLE_AGAIN\fP. Use
|
If there is no data to read, the function returns \fBCURLE_AGAIN\fP. Use your
|
||||||
your operating system facilities to wait until the data is ready, and retry.
|
operating system facilities to wait until the data is ready, and retry.
|
||||||
|
|
||||||
|
Reading exactly 0 bytes would indicate a closed connection.
|
||||||
|
|
||||||
|
If there's no socket available to use from the previous transfer, this function
|
||||||
|
returns CURLE_UNSUPPORTED_PROTOCOL.
|
||||||
.SH EXAMPLE
|
.SH EXAMPLE
|
||||||
See \fBsendrecv.c\fP in \fBdocs/examples\fP directory for usage example.
|
See \fBsendrecv.c\fP in \fBdocs/examples\fP directory for usage example.
|
||||||
.SH "SEE ALSO"
|
.SH "SEE ALSO"
|
||||||
|
@@ -5,7 +5,7 @@
|
|||||||
.\" * | (__| |_| | _ <| |___
|
.\" * | (__| |_| | _ <| |___
|
||||||
.\" * \___|\___/|_| \_\_____|
|
.\" * \___|\___/|_| \_\_____|
|
||||||
.\" *
|
.\" *
|
||||||
.\" * Copyright (C) 1998 - 2010, Daniel Stenberg, <daniel@haxx.se>, et al.
|
.\" * Copyright (C) 1998 - 2013, 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
|
||||||
@@ -57,6 +57,9 @@ sent into \fB*n\fP. Note that this may very well be less than the amount you
|
|||||||
wanted to send.
|
wanted to send.
|
||||||
|
|
||||||
On failure, returns the appropriate error code.
|
On failure, returns the appropriate error code.
|
||||||
|
|
||||||
|
If there's no socket available to use from the previous transfer, this function
|
||||||
|
returns CURLE_UNSUPPORTED_PROTOCOL.
|
||||||
.SH EXAMPLE
|
.SH EXAMPLE
|
||||||
See \fBsendrecv.c\fP in \fBdocs/examples\fP directory for usage example.
|
See \fBsendrecv.c\fP in \fBdocs/examples\fP directory for usage example.
|
||||||
.SH "SEE ALSO"
|
.SH "SEE ALSO"
|
||||||
|
File diff suppressed because it is too large
Load Diff
@@ -5,7 +5,7 @@
|
|||||||
.\" * | (__| |_| | _ <| |___
|
.\" * | (__| |_| | _ <| |___
|
||||||
.\" * \___|\___/|_| \_\_____|
|
.\" * \___|\___/|_| \_\_____|
|
||||||
.\" *
|
.\" *
|
||||||
.\" * Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al.
|
.\" * Copyright (C) 1998 - 2013, 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
|
||||||
@@ -42,7 +42,7 @@ After the \fIlastitem\fP pointer follow the real arguments.
|
|||||||
The pointers \fIfirstitem\fP and \fIlastitem\fP should both be pointing to
|
The pointers \fIfirstitem\fP and \fIlastitem\fP should both be pointing to
|
||||||
NULL in the first call to this function. All list-data will be allocated by
|
NULL in the first call to this function. All list-data will be allocated by
|
||||||
the function itself. You must call \fIcurl_formfree(3)\fP on the
|
the function itself. You must call \fIcurl_formfree(3)\fP on the
|
||||||
\fIfirstitem\P after the form post has been done to free the resources.
|
\fIfirstitem\fP after the form post has been done to free the resources.
|
||||||
|
|
||||||
Using POST with HTTP 1.1 implies the use of a "Expect: 100-continue" header.
|
Using POST with HTTP 1.1 implies the use of a "Expect: 100-continue" header.
|
||||||
You can disable this header with \fICURLOPT_HTTPHEADER\fP as usual.
|
You can disable this header with \fICURLOPT_HTTPHEADER\fP as usual.
|
||||||
|
@@ -5,7 +5,7 @@
|
|||||||
.\" * | (__| |_| | _ <| |___
|
.\" * | (__| |_| | _ <| |___
|
||||||
.\" * \___|\___/|_| \_\_____|
|
.\" * \___|\___/|_| \_\_____|
|
||||||
.\" *
|
.\" *
|
||||||
.\" * Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al.
|
.\" * Copyright (C) 1998 - 2012, 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
|
||||||
@@ -56,7 +56,8 @@ details of how to use this function.
|
|||||||
.SH FLAGS
|
.SH FLAGS
|
||||||
.TP 5
|
.TP 5
|
||||||
.B CURL_GLOBAL_ALL
|
.B CURL_GLOBAL_ALL
|
||||||
Initialize everything possible. This sets all known bits.
|
Initialize everything possible. This sets all known bits except
|
||||||
|
\fBCURL_GLOBAL_ACK_EINTR\fP.
|
||||||
.TP
|
.TP
|
||||||
.B CURL_GLOBAL_SSL
|
.B CURL_GLOBAL_SSL
|
||||||
Initialize SSL
|
Initialize SSL
|
||||||
@@ -66,6 +67,14 @@ Initialize the Win32 socket libraries.
|
|||||||
.TP
|
.TP
|
||||||
.B CURL_GLOBAL_NOTHING
|
.B CURL_GLOBAL_NOTHING
|
||||||
Initialise nothing extra. This sets no bit.
|
Initialise nothing extra. This sets no bit.
|
||||||
|
.TP
|
||||||
|
.B CURL_GLOBAL_DEFAULT
|
||||||
|
A sensible default. It will init both SSL and Win32. Right now, this equals
|
||||||
|
the functionality of the \fBCURL_GLOBAL_ALL\fP mask.
|
||||||
|
.TP
|
||||||
|
.B CURL_GLOBAL_ACK_EINTR
|
||||||
|
When this flag is set, curl will acknowledge EINTR condition when connecting
|
||||||
|
or when waiting for data. Otherwise, curl waits until full timeout elapses.
|
||||||
.SH RETURN VALUE
|
.SH RETURN VALUE
|
||||||
If this function returns non-zero, something went wrong and you cannot use the
|
If this function returns non-zero, something went wrong and you cannot use the
|
||||||
other curl functions.
|
other curl functions.
|
||||||
|
@@ -52,7 +52,7 @@ To replace strdup()
|
|||||||
.IP "void *calloc_callback(size_t nmemb, size_t size);"
|
.IP "void *calloc_callback(size_t nmemb, size_t size);"
|
||||||
To replace calloc()
|
To replace calloc()
|
||||||
.SH "CAUTION"
|
.SH "CAUTION"
|
||||||
Manipulating these gives considerable powers to the application to severly
|
Manipulating these gives considerable powers to the application to severely
|
||||||
screw things up for libcurl. Take care!
|
screw things up for libcurl. Take care!
|
||||||
.SH "SEE ALSO"
|
.SH "SEE ALSO"
|
||||||
.BR curl_global_init "(3), "
|
.BR curl_global_init "(3), "
|
||||||
|
@@ -41,6 +41,7 @@ handle is no longer connected to the multi handle
|
|||||||
3 - \fIcurl_multi_cleanup(3)\fP should be called when all easy handles are
|
3 - \fIcurl_multi_cleanup(3)\fP should be called when all easy handles are
|
||||||
removed
|
removed
|
||||||
.SH RETURN VALUE
|
.SH RETURN VALUE
|
||||||
CURLMcode type, general libcurl multi interface error code.
|
CURLMcode type, general libcurl multi interface error code. On success,
|
||||||
|
CURLM_OK is returned.
|
||||||
.SH "SEE ALSO"
|
.SH "SEE ALSO"
|
||||||
.BR curl_multi_init "(3)," curl_easy_cleanup "(3)," curl_easy_init "(3)"
|
.BR curl_multi_init "(3)," curl_easy_cleanup "(3)," curl_easy_init "(3)"
|
||||||
|
@@ -5,7 +5,7 @@
|
|||||||
.\" * | (__| |_| | _ <| |___
|
.\" * | (__| |_| | _ <| |___
|
||||||
.\" * \___|\___/|_| \_\_____|
|
.\" * \___|\___/|_| \_\_____|
|
||||||
.\" *
|
.\" *
|
||||||
.\" * Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al.
|
.\" * Copyright (C) 1998 - 2012, 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
|
||||||
@@ -28,21 +28,24 @@ curl_multi_perform - reads/writes available data from each easy handle
|
|||||||
CURLMcode curl_multi_perform(CURLM *multi_handle, int *running_handles);
|
CURLMcode curl_multi_perform(CURLM *multi_handle, int *running_handles);
|
||||||
.ad
|
.ad
|
||||||
.SH DESCRIPTION
|
.SH DESCRIPTION
|
||||||
When the app thinks there's data available for the multi_handle, it should
|
This function handles transfers on all the added handles that need attention
|
||||||
call this function to read/write whatever there is to read or write right
|
in an non-blocking fashion.
|
||||||
now. curl_multi_perform() returns as soon as the reads/writes are done. This
|
|
||||||
|
When an application has found out there's data available for the multi_handle
|
||||||
|
or a timeout has elapsed, the application should call this function to
|
||||||
|
read/write whatever there is to read or write right now etc.
|
||||||
|
curl_multi_perform() returns as soon as the reads/writes are done. This
|
||||||
function does not require that there actually is any data available for
|
function does not require that there actually is any data available for
|
||||||
reading or that data can be written, it can be called just in case. It will
|
reading or that data can be written, it can be called just in case. It will
|
||||||
write the number of handles that still transfer data in the second argument's
|
write the number of handles that still transfer data in the second argument's
|
||||||
integer-pointer.
|
integer-pointer.
|
||||||
|
|
||||||
When you call curl_multi_perform() and the amount of \fIrunning_handles\fP is
|
If the amount of \fIrunning_handles\fP is changed from the previous call (or
|
||||||
changed from the previous call (or is less than the amount of easy handles
|
is less than the amount of easy handles you've added to the multi handle), you
|
||||||
you've added to the multi handle), you know that there is one or more
|
know that there is one or more transfers less "running". You can then call
|
||||||
transfers less "running". You can then call \fIcurl_multi_info_read(3)\fP to
|
\fIcurl_multi_info_read(3)\fP to get information about each individual
|
||||||
get information about each individual completed transfer, and that returned
|
completed transfer, and that returned info includes CURLcode and more. If an
|
||||||
info includes CURLcode and more. If an added handle fails very quickly, it may
|
added handle fails very quickly, it may never be counted as a running_handle.
|
||||||
never be counted as a running_handle.
|
|
||||||
|
|
||||||
When \fIrunning_handles\fP is set to zero (0) on the return of this function,
|
When \fIrunning_handles\fP is set to zero (0) on the return of this function,
|
||||||
there is no longer any transfers in progress.
|
there is no longer any transfers in progress.
|
||||||
@@ -61,12 +64,14 @@ need to wait for \&"action" and then call this function again.
|
|||||||
|
|
||||||
This function only returns errors etc regarding the whole multi stack.
|
This function only returns errors etc regarding the whole multi stack.
|
||||||
Problems still might have occurred on individual transfers even when this
|
Problems still might have occurred on individual transfers even when this
|
||||||
function returns \fICURLM_OK\fP.
|
function returns \fICURLM_OK\fP. Use \fIcurl_multi_info_read(3)\fP to figure
|
||||||
|
out how individual transfers did.
|
||||||
.SH "TYPICAL USAGE"
|
.SH "TYPICAL USAGE"
|
||||||
Most applications will use \fIcurl_multi_fdset(3)\fP to get the multi_handle's
|
Most applications will use \fIcurl_multi_fdset(3)\fP to get the multi_handle's
|
||||||
file descriptors, then it'll wait for action on them using \fBselect(3)\fP and
|
file descriptors, and \fIcurl_multi_timeout(3)\fP to get a suitable timeout
|
||||||
as soon as one or more of them are ready, \fIcurl_multi_perform(3)\fP gets
|
period, then it'll wait for action on the file descriptors using
|
||||||
called.
|
\fBselect(3)\fP. As soon as one or more file descriptor is ready,
|
||||||
|
\fIcurl_multi_perform(3)\fP gets called.
|
||||||
.SH "SEE ALSO"
|
.SH "SEE ALSO"
|
||||||
.BR curl_multi_cleanup "(3), " curl_multi_init "(3), "
|
.BR curl_multi_cleanup "(3), " curl_multi_init "(3), "
|
||||||
.BR curl_multi_fdset "(3), " curl_multi_info_read "(3), "
|
.BR curl_multi_fdset "(3), " curl_multi_info_read "(3), "
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user