Compare commits
956 Commits
curl-7_23_
...
curl-7_28_
Author | SHA1 | Date | |
---|---|---|---|
![]() |
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 | ||
![]() |
c1babfad8a | ||
![]() |
b8b2cf612b | ||
![]() |
fe93b0a874 | ||
![]() |
e8a32438c2 | ||
![]() |
97b66ebefe | ||
![]() |
d2e5222ebc | ||
![]() |
3aab542e77 | ||
![]() |
3c80309c27 | ||
![]() |
c83de6d076 | ||
![]() |
805788e043 | ||
![]() |
dddcd3b042 | ||
![]() |
c6825b7a6b | ||
![]() |
e6a89cb6c4 | ||
![]() |
fe7613932e | ||
![]() |
ffb67599b3 | ||
![]() |
47236d89c0 | ||
![]() |
ad77420ac7 | ||
![]() |
804da995c5 | ||
![]() |
ede9ad43fc | ||
![]() |
0c8e36c18a | ||
![]() |
862bb7bade | ||
![]() |
b329fc7023 | ||
![]() |
8af4b657d0 | ||
![]() |
97386c3c84 | ||
![]() |
e25590a2b3 | ||
![]() |
79afcbefb4 | ||
![]() |
e650dbde86 | ||
![]() |
b50e9e9e9e | ||
![]() |
9f0e1689f1 | ||
![]() |
f7e2ab629e | ||
![]() |
2764bf2c5b | ||
![]() |
41b0237834 | ||
![]() |
cabd010dd4 | ||
![]() |
c55a0809bb | ||
![]() |
4ee2df4b46 | ||
![]() |
4d71d1b17f | ||
![]() |
d185960a6d | ||
![]() |
79b6f4a2d3 | ||
![]() |
5430007222 | ||
![]() |
779fa13ef9 | ||
![]() |
1a7bba1975 | ||
![]() |
21130dab4f | ||
![]() |
c3cae332c5 | ||
![]() |
9954242980 | ||
![]() |
2f1ad7d6e2 | ||
![]() |
30c44edad3 | ||
![]() |
77a21ff623 | ||
![]() |
035ef06bda | ||
![]() |
3d98aed5b3 | ||
![]() |
4cf742f34f | ||
![]() |
4bf3131979 | ||
![]() |
5c409d03ec | ||
![]() |
a053560cfa | ||
![]() |
674699b212 | ||
![]() |
154c0d4b93 | ||
![]() |
b685481d52 | ||
![]() |
0cf0ab6f30 | ||
![]() |
ee7e4fc1d1 | ||
![]() |
0201280533 | ||
![]() |
69406f0be7 | ||
![]() |
ea4ceca222 | ||
![]() |
714accd090 | ||
![]() |
35e965c9a0 | ||
![]() |
2b26eb9857 | ||
![]() |
e71ac0c6fa | ||
![]() |
7ed25fcc5c | ||
![]() |
ecc93caaeb | ||
![]() |
ebf3138992 | ||
![]() |
8ef8a2b5ac | ||
![]() |
62d15f159e | ||
![]() |
2a699bc6e9 | ||
![]() |
2a266c1c7c | ||
![]() |
705f0f7a5b | ||
![]() |
ea055407fa | ||
![]() |
4405039fdc | ||
![]() |
65103efe49 | ||
![]() |
466150bc64 | ||
![]() |
f710aa40b3 | ||
![]() |
f4d3c0cbfb | ||
![]() |
4d2737bcb2 | ||
![]() |
8ee2576b6f | ||
![]() |
575f3c30ed | ||
![]() |
cf9fb08ca4 | ||
![]() |
5a53409e2c | ||
![]() |
e277d3b52b | ||
![]() |
93e344bbf4 | ||
![]() |
75b6f7d9ef | ||
![]() |
a8e063b087 | ||
![]() |
70f71bb99f | ||
![]() |
c11c30a8c8 | ||
![]() |
75ca568fa1 | ||
![]() |
db1a856b4f | ||
![]() |
ee57e9dea6 | ||
![]() |
6e2fd2c9ea | ||
![]() |
5d7a319a55 | ||
![]() |
7883cd5af3 | ||
![]() |
d7af7de5b2 | ||
![]() |
a7e8f4aabc | ||
![]() |
e64d332e79 | ||
![]() |
00e615de7e | ||
![]() |
b2aaf3c2ad | ||
![]() |
c41f304c43 | ||
![]() |
d56b4c3f89 | ||
![]() |
d1becc3231 | ||
![]() |
f55f95d49c | ||
![]() |
61d31a3caf | ||
![]() |
4b9af77d54 | ||
![]() |
5d70a61b94 | ||
![]() |
51c485342b | ||
![]() |
4563eeb9f4 | ||
![]() |
2cafb0e97c | ||
![]() |
6ea7acf5a9 | ||
![]() |
a20daf90e3 | ||
![]() |
24526d0c0f | ||
![]() |
a752850acc | ||
![]() |
2b9fafd622 | ||
![]() |
0ce2bca741 | ||
![]() |
b15024be4d | ||
![]() |
21401840fa | ||
![]() |
e3e24e5b36 | ||
![]() |
18c6c8a5e7 | ||
![]() |
c731fc58ea | ||
![]() |
6d62c5a6fc | ||
![]() |
f1092b387e | ||
![]() |
8e82ef9c32 | ||
![]() |
d016f5f5f5 | ||
![]() |
d4bf87dc0e | ||
![]() |
54dede4166 | ||
![]() |
9f20379fe4 | ||
![]() |
123c92c904 | ||
![]() |
d28411c3cc | ||
![]() |
2705af6267 | ||
![]() |
f34ddb90e6 | ||
![]() |
dd69a3e868 | ||
![]() |
812fa73057 | ||
![]() |
52824ed1ab | ||
![]() |
4897f4e517 | ||
![]() |
81524cbfa0 | ||
![]() |
8ef7a5706e | ||
![]() |
c358bab809 | ||
![]() |
4bc6c1a026 | ||
![]() |
3a55daee3d | ||
![]() |
7bd2add06f | ||
![]() |
3b06f1fb36 | ||
![]() |
db4f69ef06 | ||
![]() |
277022b2e4 | ||
![]() |
0f8239d5b4 | ||
![]() |
a4202be655 | ||
![]() |
2f4a487a68 | ||
![]() |
82180643f4 | ||
![]() |
585b89a6c3 | ||
![]() |
cc69e56ce3 | ||
![]() |
8e25d1b93b | ||
![]() |
63e2718f8d | ||
![]() |
7f472618de | ||
![]() |
08107111ac | ||
![]() |
a3403db02f | ||
![]() |
c9a3cab6c4 | ||
![]() |
f4949e56eb | ||
![]() |
81ebdd9e28 | ||
![]() |
207cf15032 | ||
![]() |
5e0a44e4d5 | ||
![]() |
9e3f8c4850 | ||
![]() |
90343c76c6 | ||
![]() |
ecd75e8cb8 | ||
![]() |
e63c9f8ff3 | ||
![]() |
ed0364343d | ||
![]() |
5c0ad9581d | ||
![]() |
e99128a5c9 | ||
![]() |
33c2e1cafc | ||
![]() |
84f736981c | ||
![]() |
82c344a347 | ||
![]() |
9f7f6a62ff | ||
![]() |
98292bcdd0 | ||
![]() |
996f2454ba | ||
![]() |
99a12baa34 | ||
![]() |
4f8db8bf95 | ||
![]() |
5ac9ec7205 | ||
![]() |
f8cd217f04 | ||
![]() |
84e7ea2ffc | ||
![]() |
2caa454dc1 | ||
![]() |
3e4181f88e | ||
![]() |
e71e226f6b | ||
![]() |
b0eb963bc7 | ||
![]() |
2cf9e78a22 | ||
![]() |
430527a1d7 | ||
![]() |
1afbccc676 | ||
![]() |
1dd654644a | ||
![]() |
ba238e3a18 | ||
![]() |
4bb140bfc9 | ||
![]() |
926916e28e | ||
![]() |
3d6e2ec925 | ||
![]() |
380bade777 | ||
![]() |
26ce3ac328 | ||
![]() |
130fac6c16 | ||
![]() |
6222ef8052 | ||
![]() |
b06ed249d2 | ||
![]() |
377471f387 | ||
![]() |
dfdac61522 | ||
![]() |
c834213ad5 | ||
![]() |
5527417afa | ||
![]() |
bedfafe38e | ||
![]() |
e9040f2954 | ||
![]() |
51d4885ca0 | ||
![]() |
ce896875f8 | ||
![]() |
eb6e9593c4 | ||
![]() |
5c71544fc6 | ||
![]() |
7799ac434e | ||
![]() |
7cc2e8b349 | ||
![]() |
3c18b38dcc | ||
![]() |
1fc5cd6a1a | ||
![]() |
af9bc1604c | ||
![]() |
b235d5ade8 | ||
![]() |
ee3d3adc6f | ||
![]() |
583a902789 | ||
![]() |
7b8590d1f5 | ||
![]() |
9b185aac43 | ||
![]() |
34f9ec0c54 | ||
![]() |
7111ca6f5f | ||
![]() |
612a61b267 | ||
![]() |
cd4cd66839 | ||
![]() |
4c4e8ba1f0 | ||
![]() |
de6f4f356e | ||
![]() |
66c5076252 | ||
![]() |
b9b772fefe | ||
![]() |
07efe110cc | ||
![]() |
6e4835c795 | ||
![]() |
ba057c2e19 | ||
![]() |
1259ccf747 | ||
![]() |
07e3b7512c | ||
![]() |
50d88bf4b5 | ||
![]() |
1cacf853da | ||
![]() |
9dbe6565d4 | ||
![]() |
2b24dd870e | ||
![]() |
46724b87b7 | ||
![]() |
82a4d26e7f | ||
![]() |
2b0e09b0f9 | ||
![]() |
361cd03d58 | ||
![]() |
7e4daaf908 | ||
![]() |
3bbe219be2 | ||
![]() |
347f951c39 | ||
![]() |
c50dbf670f | ||
![]() |
0cf05af744 | ||
![]() |
d5b5f64bce | ||
![]() |
088ba97a24 | ||
![]() |
9109cdec11 | ||
![]() |
5971d401d4 | ||
![]() |
62d3652b43 | ||
![]() |
d81f5ea3e0 | ||
![]() |
adc88ca203 | ||
![]() |
83350c9cc4 | ||
![]() |
bdb647814e | ||
![]() |
c92234c3bc | ||
![]() |
7e02f7fdee | ||
![]() |
bd94807003 | ||
![]() |
1038d0aa16 | ||
![]() |
f80a508297 | ||
![]() |
af64666434 | ||
![]() |
2d72489f0f | ||
![]() |
dda815b776 | ||
![]() |
8d3efb6be0 | ||
![]() |
11e52ef0a1 | ||
![]() |
71ce2470dc | ||
![]() |
874855b743 | ||
![]() |
ac54d27d4b | ||
![]() |
2d833852f6 | ||
![]() |
0604b2fb90 | ||
![]() |
8f50a5c7e5 | ||
![]() |
703fa0a6a8 | ||
![]() |
97d7a9260e | ||
![]() |
4a4d04446d | ||
![]() |
b9223a17b8 | ||
![]() |
f712ace9d7 | ||
![]() |
2c905fd1f8 | ||
![]() |
4403e82f32 | ||
![]() |
c482e946f7 | ||
![]() |
46bd8b330a | ||
![]() |
78feaff9d8 | ||
![]() |
28bac99674 | ||
![]() |
7248439fec | ||
![]() |
c532604b13 | ||
![]() |
64f328c787 | ||
![]() |
c0db5ff678 | ||
![]() |
66617b79d7 | ||
![]() |
f64812ca63 | ||
![]() |
10ecdf5078 | ||
![]() |
bb4eb58996 | ||
![]() |
fc8809f993 | ||
![]() |
35f61c404d | ||
![]() |
97b73fec7a | ||
![]() |
8d0a504f0d | ||
![]() |
967b2f87a8 |
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
|
||||||
|
3
.gitignore
vendored
3
.gitignore
vendored
@@ -42,3 +42,6 @@ TAGS
|
|||||||
*~
|
*~
|
||||||
aclocal.m4.bak
|
aclocal.m4.bak
|
||||||
CHANGES.dist
|
CHANGES.dist
|
||||||
|
.project
|
||||||
|
.cproject
|
||||||
|
.settings
|
||||||
|
@@ -1,5 +1,10 @@
|
|||||||
# Google Android makefile for curl and libcurl
|
# Google Android makefile for curl and libcurl
|
||||||
#
|
#
|
||||||
|
# This file can be used when building curl using the full Android source
|
||||||
|
# release or the NDK. Most users do not want or need to do this; please
|
||||||
|
# instead read the Android section in docs/INSTALL for alternate
|
||||||
|
# methods.
|
||||||
|
#
|
||||||
# Place the curl source (including this makefile) into external/curl/ in the
|
# Place the curl source (including this makefile) into external/curl/ in the
|
||||||
# Android source tree. Then build them with 'make curl' or just 'make libcurl'
|
# Android source tree. Then build them with 'make curl' or just 'make libcurl'
|
||||||
# from the Android root. Tested with Android versions 1.5, 2.1-2.3
|
# from the Android root. Tested with Android versions 1.5, 2.1-2.3
|
||||||
|
0
CMake/FindCARES.cmake
Executable file → Normal file
0
CMake/FindCARES.cmake
Executable file → Normal file
@@ -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 )
|
||||||
set( ZLIB_LIBRARIES optimized "${ZLIB_LIBRARY}" debug ${ZLIB_LIBRARY_DEBUG})
|
if(ZLIB_FOUND AND ZLIB_LIBRARY_DEBUG)
|
||||||
|
set( ZLIB_LIBRARIES optimized "${ZLIB_LIBRARY}" debug ${ZLIB_LIBRARY_DEBUG})
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
@@ -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)
|
||||||
@@ -148,9 +133,9 @@ option(ENABLE_IPV6 "Define if you want to enable IPv6 support" OFF)
|
|||||||
mark_as_advanced(ENABLE_IPV6)
|
mark_as_advanced(ENABLE_IPV6)
|
||||||
|
|
||||||
if(WIN32)
|
if(WIN32)
|
||||||
find_library(WSOCK32_LIBRARY wsock32)
|
# Windows standard libraries are located in C:/Program Files/Microsoft SDKs/[...]
|
||||||
find_library(WS2_32_LIBRARY ws2_32)
|
# They are already included in the default MSVC LIBPATH => no find_library is needed!
|
||||||
list_spaces_append_once(CMAKE_C_STANDARD_LIBRARIES ${WSOCK32_LIBRARY} ${WS2_32_LIBRARY}) # bufferoverflowu.lib
|
list_spaces_append_once(CMAKE_C_STANDARD_LIBRARIES wsock32.lib ws2_32.lib) # bufferoverflowu.lib
|
||||||
if(CURL_DISABLE_LDAP)
|
if(CURL_DISABLE_LDAP)
|
||||||
# Remove wldap32.lib from space-separated list
|
# Remove wldap32.lib from space-separated list
|
||||||
string(REPLACE " " ";" _LIST ${CMAKE_C_STANDARD_LIBRARIES})
|
string(REPLACE " " ";" _LIST ${CMAKE_C_STANDARD_LIBRARIES})
|
||||||
@@ -221,6 +206,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)
|
||||||
@@ -387,6 +386,13 @@ if(NOT HAVE_LDAP_H)
|
|||||||
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 +432,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 +442,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)
|
||||||
|
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 - 2012, Daniel Stenberg, <daniel@haxx.se>.
|
||||||
|
|
||||||
All rights reserved.
|
All rights reserved.
|
||||||
|
|
||||||
|
12
Makefile.am
12
Makefile.am
@@ -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
|
||||||
@@ -36,7 +36,7 @@ winbuild/MakefileBuild.vc winbuild/Makefile.vc
|
|||||||
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 \
|
curl-style.el sample.emacs RELEASE-NOTES buildconf \
|
||||||
libcurl.pc.in vc6curl.dsw MacOSX-Framework Android.mk $(CMAKE_DIST) \
|
libcurl.pc.in vc6curl.dsw MacOSX-Framework Android.mk $(CMAKE_DIST) \
|
||||||
Makefile.msvc.names $(WINBUILD_DIST)
|
Makefile.msvc.names $(WINBUILD_DIST) lib/libcurl.vers.in
|
||||||
|
|
||||||
bin_SCRIPTS = curl-config
|
bin_SCRIPTS = curl-config
|
||||||
|
|
||||||
@@ -86,9 +86,13 @@ 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 dosc 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
|
||||||
|
@@ -1,19 +1,62 @@
|
|||||||
Curl and libcurl 7.24.0
|
Curl and libcurl 7.28.0
|
||||||
|
|
||||||
Public curl releases: 125
|
Public curl releases: 129
|
||||||
Command line options: 149
|
Command line options: 152
|
||||||
curl_easy_setopt() options: 192
|
curl_easy_setopt() options: 199
|
||||||
Public functions in libcurl: 58
|
Public functions in libcurl: 58
|
||||||
Known libcurl bindings: 39
|
Known libcurl bindings: 39
|
||||||
Contributors: 873
|
Contributors: 953
|
||||||
|
|
||||||
This release includes the following changes:
|
This release includes the following changes:
|
||||||
|
|
||||||
o
|
o SSH: added agent based authentication
|
||||||
|
o ftp: active conn, allow application to set sockopt after accept() call
|
||||||
|
with CURLSOCKTYPE_ACCEPT
|
||||||
|
o multi: add curl_multi_wait() [12]
|
||||||
|
o metalink: Added support for Microsoft Windows CryptoAPI
|
||||||
|
o md5: Added support for Microsoft Windows CryptoAPI
|
||||||
|
o parse_proxy: treat "socks://x" as a socks4 proxy [17]
|
||||||
|
o socks: Added support for IPv6 connections through SOCKSv5 proxy
|
||||||
|
|
||||||
This release includes the following bugfixes:
|
This release includes the following bugfixes:
|
||||||
|
|
||||||
o
|
o WSAPoll disabled on Windows builds due to its bugs [8]
|
||||||
|
o segfault on request retries [1]
|
||||||
|
o curl-config: parentheses fix [2]
|
||||||
|
o VC build: add define for openssl [3]
|
||||||
|
o globbing: fix segfault when >9 globs were used [4]
|
||||||
|
o fixed a few clang-analyzer warnings
|
||||||
|
o metalink: change code order to build with gnutls-nettle [5]
|
||||||
|
o gtls: fix build failure by including nettle-specific headers [5]
|
||||||
|
o change preferred HTTP auth on a handle previously used for another auth [9]
|
||||||
|
o file: use fdopen() to avoid race condition [6]
|
||||||
|
o Added DWANT_IDN_PROTOTYPES define for MSVC too [7]
|
||||||
|
o verbose: fixed (nil) output of hostnames in re-used connections [10]
|
||||||
|
o metalink: Un-broke the build when building --with-darwinssl
|
||||||
|
o curl man page cleanup
|
||||||
|
o Avoid leak of local device string when reusing connection
|
||||||
|
o Curl_socket_check: fix return code for timeout [11]
|
||||||
|
o nss: do not print misleading NSS error codes
|
||||||
|
o configure: remove the --enable/disable-nonblocking options
|
||||||
|
o darwinssl: add TLS 1.1 and 1.2 support, replace deprecated functions
|
||||||
|
o NTLM: re-use existing connection better
|
||||||
|
o schannel crash on multi and easy handle cleanup
|
||||||
|
o SOCKS: truly disable it if CURL_DISABLE_PROXY is defined [13]
|
||||||
|
o mk-ca-bundle: detect start of trust section better [14]
|
||||||
|
o gnutls: do not fail on non-fatal handshake errors [15]
|
||||||
|
o SMTP: only send SIZE if supported [16]
|
||||||
|
o ftpserver: respond with a 250 to SMTP EHLO
|
||||||
|
o ssh: do not crash if MD5 fingerprint is not provided by libssh2
|
||||||
|
o winbuild: Added support for building with SPNEGO enabled
|
||||||
|
o metalink: Fixed validation of binary files containing EOF
|
||||||
|
o setup.h: fixed for MS VC10 build [18]
|
||||||
|
o cmake: use standard findxxx modules for cmake v2.8+
|
||||||
|
o HTTP_ONLY: disable more protocols [19]
|
||||||
|
o Curl_reconnect_request: clear pointer on failure [20]
|
||||||
|
o https.c example: remember to call curl_global_init()
|
||||||
|
o metalink: Filter resource URLs by type
|
||||||
|
o multi interface: CURLOPT_LOW_SPEED_* fix during rate limitation [21]
|
||||||
|
o curl_schannel: Removed buffer limit and optimized buffer strategy
|
||||||
|
|
||||||
This release includes the following known bugs:
|
This release includes the following known bugs:
|
||||||
|
|
||||||
@@ -22,6 +65,35 @@ 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:
|
||||||
|
|
||||||
|
Guenter Knauf, Joe Mason, Kamil Dudka, Steve Holme, Anthony G. Basile,
|
||||||
|
Edward Sheldrake, Jan Koen Annot, Maxime Larocque, Mike Crowe, Anthony Bryan,
|
||||||
|
Nick Zitzmann, Gisle Vanem, Armel Asselin, Dan Fandrich, Dave Reisner,
|
||||||
|
Gokhan Sengun, Sara Golemon, Olivier Berger, Marc Hoersken, David Blaikie,
|
||||||
|
Alessandro Ghedini, František Kučera, Marcel Raad, Scott Bailey, Ho-chi Chen,
|
||||||
|
Tomas Mlcoch, Jie He, Tatsuhiro Tsujikawa, Sergei Nikulov, Mark Tully
|
||||||
|
|
||||||
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:
|
||||||
|
|
||||||
|
[1] = http://curl.haxx.se/bug/view.cgi?id=3544688
|
||||||
|
[2] = http://curl.haxx.se/bug/view.cgi?id=3551460
|
||||||
|
[3] = http://curl.haxx.se/bug/view.cgi?id=3552997
|
||||||
|
[4] = http://curl.haxx.se/bug/view.cgi?id=3546353
|
||||||
|
[5] = http://curl.haxx.se/bug/view.cgi?id=3554668
|
||||||
|
[6] = https://bugzilla.redhat.com/844385
|
||||||
|
[7] = http://curl.haxx.se/mail/lib-2012-07/0271.html
|
||||||
|
[8] = http://curl.haxx.se/mail/lib-2012-07/0310.html
|
||||||
|
[9] = http://curl.haxx.se/bug/view.cgi?id=3545398
|
||||||
|
[10] = http://curl.haxx.se/mail/lib-2012-07/0111.html
|
||||||
|
[11] = http://curl.haxx.se/mail/lib-2012-07/0122.html
|
||||||
|
[12] = http://daniel.haxx.se/blog/2012/09/03/introducing-curl_multi_wait/
|
||||||
|
[13] = http://curl.haxx.se/bug/view.cgi?id=3561305
|
||||||
|
[14] = http://curl.haxx.se/mail/lib-2012-09/0019.html
|
||||||
|
[15] = http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=685402
|
||||||
|
[16] = http://curl.haxx.se/bug/view.cgi?id=3564114
|
||||||
|
[17] = http://curl.haxx.se/bug/view.cgi?id=3566860
|
||||||
|
[18] = http://curl.haxx.se/bug/view.cgi?id=3568327
|
||||||
|
[19] = http://curl.haxx.se/mail/lib-2012-09/0127.html
|
||||||
|
[20] = http://curl.haxx.se/mail/lib-2012-09/0188.html
|
||||||
|
[21] = http://curl.haxx.se/mail/lib-2012-09/0081.html
|
||||||
|
17
TODO-RELEASE
17
TODO-RELEASE
@@ -1,11 +1,14 @@
|
|||||||
To be addressed in 7.22.1
|
To be addressed in 7.29
|
||||||
=========================
|
=======================
|
||||||
|
|
||||||
295 - "RTSP Authentication (#22)" https://github.com/bagder/curl/pull/22
|
310 - a new authentication callback
|
||||||
|
|
||||||
296 - "OOM leak in multi code" (by Dan Fandrich)
|
312 - custom Content-Length appears in CONNECT, solve it by offering a
|
||||||
|
separate option to provide headers for the CONNECT request:
|
||||||
|
http://curl.haxx.se/mail/lib-2012-09/0059.html
|
||||||
|
|
||||||
300 - "Polling on stray socket on sequential transfers." Andrew S
|
317 - CURLINFO_SSL_TRUST to return SSL-specific data for a darwinssl build
|
||||||
http://curl.haxx.se/mail/lib-2011-07/0053.html
|
|
||||||
|
|
||||||
308 -
|
322 - pipelining improvements
|
||||||
|
|
||||||
|
327 -
|
||||||
|
@@ -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
|
||||||
@@ -228,12 +228,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
|
|
||||||
])
|
])
|
||||||
|
|
||||||
|
|
||||||
|
165
buildconf
165
buildconf
@@ -6,7 +6,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
|
||||||
@@ -21,9 +21,12 @@
|
|||||||
#
|
#
|
||||||
###########################################################################
|
###########################################################################
|
||||||
|
|
||||||
|
#--------------------------------------------------------------------------
|
||||||
|
# die prints argument string to stdout and exits this shell script.
|
||||||
|
#
|
||||||
die(){
|
die(){
|
||||||
echo "$@"
|
echo "buildconf: $@"
|
||||||
exit
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
#--------------------------------------------------------------------------
|
#--------------------------------------------------------------------------
|
||||||
@@ -33,11 +36,8 @@ die(){
|
|||||||
findtool(){
|
findtool(){
|
||||||
file="$1"
|
file="$1"
|
||||||
|
|
||||||
if { echo $file | grep "/" >/dev/null 2>&1; } then
|
if { echo "$file" | grep "/" >/dev/null 2>&1; } then
|
||||||
# we only check for the explicit file name if the file is given
|
# when file is given with a path check it first
|
||||||
# including a slash. Use ./ for current dir. Previously this would
|
|
||||||
# otherwise always cause findtool to search the local dir first, which
|
|
||||||
# is wrong.
|
|
||||||
if test -f "$file"; then
|
if test -f "$file"; then
|
||||||
echo "$file"
|
echo "$file"
|
||||||
return
|
return
|
||||||
@@ -82,7 +82,8 @@ removethis(){
|
|||||||
if test ! -f configure.ac ||
|
if test ! -f configure.ac ||
|
||||||
test ! -f src/tool_main.c ||
|
test ! -f src/tool_main.c ||
|
||||||
test ! -f lib/urldata.h ||
|
test ! -f lib/urldata.h ||
|
||||||
test ! -f include/curl/curl.h; then
|
test ! -f include/curl/curl.h ||
|
||||||
|
test ! -f m4/curl-functions.m4; then
|
||||||
echo "Can not run buildconf from outside of curl's source subdirectory!"
|
echo "Can not run buildconf from outside of curl's source subdirectory!"
|
||||||
echo "Change to the subdirectory where buildconf is found, and try again."
|
echo "Change to the subdirectory where buildconf is found, and try again."
|
||||||
exit 1
|
exit 1
|
||||||
@@ -188,27 +189,24 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
#--------------------------------------------------------------------------
|
#--------------------------------------------------------------------------
|
||||||
# libtool check
|
# GNU libtool preliminary check
|
||||||
#
|
#
|
||||||
LIBTOOL_WANTED_MAJOR=1
|
want_lt_major=1
|
||||||
LIBTOOL_WANTED_MINOR=4
|
want_lt_minor=4
|
||||||
LIBTOOL_WANTED_PATCH=2
|
want_lt_patch=2
|
||||||
LIBTOOL_WANTED_VERSION=1.4.2
|
want_lt_version=1.4.2
|
||||||
|
|
||||||
|
# This approach that tries 'glibtool' first is intended for systems that
|
||||||
|
# have GNU libtool named as 'glibtool' and libtool not being GNU's.
|
||||||
|
|
||||||
# this approach that tries 'glibtool' first is some kind of work-around for
|
|
||||||
# some BSD-systems I believe that use to provide the GNU libtool named
|
|
||||||
# glibtool, with 'libtool' being something completely different.
|
|
||||||
libtool=`findtool glibtool 2>/dev/null`
|
libtool=`findtool glibtool 2>/dev/null`
|
||||||
if test ! -x "$libtool"; then
|
if test ! -x "$libtool"; then
|
||||||
libtool=`findtool ${LIBTOOL:-libtool}`
|
libtool=`findtool ${LIBTOOL:-libtool}`
|
||||||
fi
|
fi
|
||||||
|
if test -z "$libtool"; then
|
||||||
if test -z "$LIBTOOLIZE"; then
|
echo "buildconf: libtool not found."
|
||||||
# set the LIBTOOLIZE here so that glibtoolize is used if glibtool was found
|
echo " You need GNU libtool $want_lt_version or newer installed."
|
||||||
# $libtool is already the full path
|
exit 1
|
||||||
libtoolize="${libtool}ize"
|
|
||||||
else
|
|
||||||
libtoolize=`findtool $LIBTOOLIZE`
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
lt_pver=`$libtool --version 2>/dev/null|head -n 1`
|
lt_pver=`$libtool --version 2>/dev/null|head -n 1`
|
||||||
@@ -216,42 +214,55 @@ lt_qver=`echo $lt_pver|sed -e "s/([^)]*)//g" -e "s/^[^0-9]*//g"`
|
|||||||
lt_version=`echo $lt_qver|sed -e "s/[- ].*//" -e "s/\([a-z]*\)$//"`
|
lt_version=`echo $lt_qver|sed -e "s/[- ].*//" -e "s/\([a-z]*\)$//"`
|
||||||
if test -z "$lt_version"; then
|
if test -z "$lt_version"; then
|
||||||
echo "buildconf: libtool not found."
|
echo "buildconf: libtool not found."
|
||||||
echo " You need libtool version $LIBTOOL_WANTED_VERSION or newer installed"
|
echo " You need GNU libtool $want_lt_version or newer installed."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
old_IFS=$IFS; IFS='.'; set $lt_version; IFS=$old_IFS
|
old_IFS=$IFS; IFS='.'; set $lt_version; IFS=$old_IFS
|
||||||
lt_major=$1
|
lt_major=$1
|
||||||
lt_minor=$2
|
lt_minor=$2
|
||||||
lt_patch=$3
|
lt_patch=$3
|
||||||
lt_status="good"
|
|
||||||
|
|
||||||
if test "$lt_major" = "$LIBTOOL_WANTED_MAJOR"; then
|
if test -z "$lt_major"; then
|
||||||
if test "$lt_minor" -lt "$LIBTOOL_WANTED_MINOR"; then
|
lt_status="bad"
|
||||||
lt_status="bad"
|
elif test "$lt_major" -gt "$want_lt_major"; then
|
||||||
elif test -n "$LIBTOOL_WANTED_PATCH"; then
|
lt_status="good"
|
||||||
if test "$lt_minor" -gt "$LIBTOOL_WANTED_MINOR"; then
|
elif test "$lt_major" -lt "$want_lt_major"; then
|
||||||
lt_status="good"
|
lt_status="bad"
|
||||||
elif test -n "$lt_patch"; then
|
elif test -z "$lt_minor"; then
|
||||||
if test "$lt_patch" -lt "$LIBTOOL_WANTED_PATCH"; then
|
lt_status="bad"
|
||||||
lt_status="bad"
|
elif test "$lt_minor" -gt "$want_lt_minor"; then
|
||||||
fi
|
lt_status="good"
|
||||||
else
|
elif test "$lt_minor" -lt "$want_lt_minor"; then
|
||||||
lt_status="bad"
|
lt_status="bad"
|
||||||
fi
|
elif test -z "$lt_patch"; then
|
||||||
fi
|
lt_status="bad"
|
||||||
|
elif test "$lt_patch" -gt "$want_lt_patch"; then
|
||||||
|
lt_status="good"
|
||||||
|
elif test "$lt_patch" -lt "$want_lt_patch"; then
|
||||||
|
lt_status="bad"
|
||||||
|
else
|
||||||
|
lt_status="good"
|
||||||
fi
|
fi
|
||||||
if test $lt_status != "good"; then
|
if test "$lt_status" != "good"; then
|
||||||
echo "buildconf: libtool version $lt_version found."
|
echo "buildconf: libtool version $lt_version found."
|
||||||
echo " You need libtool version $LIBTOOL_WANTED_VERSION or newer installed"
|
echo " You need GNU libtool $want_lt_version or newer installed."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "buildconf: libtool version $lt_version (ok)"
|
echo "buildconf: libtool version $lt_version (ok)"
|
||||||
|
|
||||||
if test -f "$libtoolize"; then
|
#--------------------------------------------------------------------------
|
||||||
echo "buildconf: libtoolize found"
|
# GNU libtoolize check
|
||||||
|
#
|
||||||
|
if test -z "$LIBTOOLIZE"; then
|
||||||
|
# use (g)libtoolize from same location as (g)libtool
|
||||||
|
libtoolize="${libtool}ize"
|
||||||
else
|
else
|
||||||
echo "buildconf: libtoolize not found. Weird libtool installation!"
|
libtoolize=`findtool $LIBTOOLIZE`
|
||||||
|
fi
|
||||||
|
if test ! -f "$libtoolize"; then
|
||||||
|
echo "buildconf: libtoolize not found."
|
||||||
|
echo " You need GNU libtoolize $want_lt_version or newer installed."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -276,6 +287,10 @@ fi
|
|||||||
# perl check
|
# perl check
|
||||||
#
|
#
|
||||||
PERL=`findtool ${PERL:-perl}`
|
PERL=`findtool ${PERL:-perl}`
|
||||||
|
if test -z "$PERL"; then
|
||||||
|
echo "buildconf: perl not found"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
#--------------------------------------------------------------------------
|
#--------------------------------------------------------------------------
|
||||||
# Remove files generated on previous buildconf/configure run.
|
# Remove files generated on previous buildconf/configure run.
|
||||||
@@ -311,6 +326,7 @@ for fname in .deps \
|
|||||||
libcurl.pc \
|
libcurl.pc \
|
||||||
libtool \
|
libtool \
|
||||||
libtool.m4 \
|
libtool.m4 \
|
||||||
|
libtool.m4.tmp \
|
||||||
ltmain.sh \
|
ltmain.sh \
|
||||||
ltoptions.m4 \
|
ltoptions.m4 \
|
||||||
ltsugar.m4 \
|
ltsugar.m4 \
|
||||||
@@ -327,32 +343,49 @@ done
|
|||||||
#
|
#
|
||||||
|
|
||||||
echo "buildconf: running libtoolize"
|
echo "buildconf: running libtoolize"
|
||||||
$libtoolize --copy --automake --force || die "The libtoolize command failed"
|
${libtoolize} --copy --automake --force || die "libtoolize command failed"
|
||||||
|
|
||||||
if test ! -f m4/curl-functions.m4; then
|
# When using libtool 1.5.X (X < 26) we copy libtool.m4 to our local m4
|
||||||
echo "buildconf: cURL m4 macros not found"
|
# subdirectory and this local copy is patched to fix some warnings that
|
||||||
exit 1
|
# are triggered when running aclocal and using autoconf 2.62 or later.
|
||||||
|
|
||||||
|
if test "$lt_major" = "1" && test "$lt_minor" = "5"; then
|
||||||
|
if test -z "$lt_patch" || test "$lt_patch" -lt "26"; then
|
||||||
|
echo "buildconf: copying libtool.m4 to local m4 subdir"
|
||||||
|
ac_dir=`${ACLOCAL:-aclocal} --print-ac-dir`
|
||||||
|
if test -f $ac_dir/libtool.m4; then
|
||||||
|
cp -f $ac_dir/libtool.m4 m4/libtool.m4
|
||||||
|
else
|
||||||
|
echo "buildconf: $ac_dir/libtool.m4 not found"
|
||||||
|
fi
|
||||||
|
if test -f m4/libtool.m4; then
|
||||||
|
echo "buildconf: renaming some variables in local m4/libtool.m4"
|
||||||
|
$PERL -i.tmp -pe \
|
||||||
|
's/lt_prog_compiler_pic_works/lt_cv_prog_compiler_pic_works/g; \
|
||||||
|
s/lt_prog_compiler_static_works/lt_cv_prog_compiler_static_works/g;' \
|
||||||
|
m4/libtool.m4
|
||||||
|
rm -f m4/libtool.m4.tmp
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test -f m4/libtool.m4; then
|
||||||
|
echo "buildconf: converting all mv to mv -f in local m4/libtool.m4"
|
||||||
|
$PERL -i.tmp -pe 's/\bmv +([^-\s])/mv -f $1/g' m4/libtool.m4
|
||||||
|
rm -f m4/libtool.m4.tmp
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "buildconf: running aclocal"
|
echo "buildconf: running aclocal"
|
||||||
${ACLOCAL:-aclocal} -I m4 $ACLOCAL_FLAGS || die "The aclocal command line failed"
|
${ACLOCAL:-aclocal} -I m4 $ACLOCAL_FLAGS || die "aclocal command failed"
|
||||||
|
|
||||||
if test -n "$PERL"; then
|
echo "buildconf: converting all mv to mv -f in local aclocal.m4"
|
||||||
echo "buildconf: running aclocal hack to convert all mv to mv -f"
|
$PERL -i.bak -pe 's/\bmv +([^-\s])/mv -f $1/g' aclocal.m4
|
||||||
$PERL -i.bak -pe 's/\bmv +([^-\s])/mv -f $1/g' aclocal.m4
|
|
||||||
else
|
|
||||||
echo "buildconf: perl not found"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo "buildconf: running autoheader"
|
echo "buildconf: running autoheader"
|
||||||
${AUTOHEADER:-autoheader} || die "The 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 "The autoconf command failed"
|
${AUTOCONF:-autoconf} || die "autoconf command failed"
|
||||||
|
|
||||||
if test -d ares; then
|
if test -d ares; then
|
||||||
cd ares
|
cd ares
|
||||||
@@ -362,14 +395,15 @@ if test -d ares; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
echo "buildconf: running automake"
|
echo "buildconf: running automake"
|
||||||
${AUTOMAKE:-automake} -a -c || die "The automake command failed"
|
${AUTOMAKE:-automake} --add-missing --copy || die "automake command failed"
|
||||||
|
|
||||||
#--------------------------------------------------------------------------
|
#--------------------------------------------------------------------------
|
||||||
|
# GNU libtool complementary check
|
||||||
|
#
|
||||||
# Depending on the libtool and automake versions being used, config.guess
|
# Depending on the libtool and automake versions being used, config.guess
|
||||||
# might not be installed in the subdirectory until automake has finished.
|
# might not be installed in the subdirectory until automake has finished.
|
||||||
# So we can not attempt to use it until this very last buildconf stage.
|
# So we can not attempt to use it until this very last buildconf stage.
|
||||||
#
|
#
|
||||||
|
|
||||||
if test ! -f ./config.guess; then
|
if test ! -f ./config.guess; then
|
||||||
echo "buildconf: config.guess not found"
|
echo "buildconf: config.guess not found"
|
||||||
else
|
else
|
||||||
@@ -413,7 +447,7 @@ else
|
|||||||
if test "$lt_status" != "good"; then
|
if test "$lt_status" != "good"; then
|
||||||
need_lt_version="$need_lt_major.$need_lt_minor.$need_lt_patch"
|
need_lt_version="$need_lt_major.$need_lt_minor.$need_lt_patch"
|
||||||
echo "buildconf: libtool version $lt_version found."
|
echo "buildconf: libtool version $lt_version found."
|
||||||
echo " $buildhost requires libtool $need_lt_version or newer installed."
|
echo " $buildhost requires GNU libtool $need_lt_version or newer installed."
|
||||||
rm -f configure
|
rm -f configure
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
@@ -423,6 +457,5 @@ fi
|
|||||||
#--------------------------------------------------------------------------
|
#--------------------------------------------------------------------------
|
||||||
# Finished successfully.
|
# Finished successfully.
|
||||||
#
|
#
|
||||||
|
|
||||||
echo "buildconf: OK"
|
echo "buildconf: OK"
|
||||||
exit 0
|
exit 0
|
||||||
|
@@ -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
|
||||||
|
767
configure.ac
767
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,9 +148,9 @@ 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 @LDFLAGS@ @LIBCURL_LIBS@ @LIBS@
|
echo ${CURLLIBDIR}-lcurl @LIBCURL_LIBS@ @LIBS@
|
||||||
else
|
else
|
||||||
echo ${CURLLIBDIR}-lcurl @LDFLAGS@ @LIBS@
|
echo ${CURLLIBDIR}-lcurl @LIBS@
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
@@ -91,7 +91,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.
|
||||||
|
@@ -34,6 +34,7 @@
|
|||||||
3.3 How To Make a Patch without git
|
3.3 How To Make a Patch without git
|
||||||
3.4 How to get your changes into the main sources
|
3.4 How to get your changes into the main sources
|
||||||
3.5 Write good commit messages
|
3.5 Write good commit messages
|
||||||
|
3.6 Please don't send pull requests
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
|
|
||||||
@@ -276,3 +277,27 @@
|
|||||||
and make sure that you have your own user and email setup correctly in git
|
and make sure that you have your own user and email setup correctly in git
|
||||||
before you commit
|
before you commit
|
||||||
|
|
||||||
|
3.6 Please don't send pull requests
|
||||||
|
|
||||||
|
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
|
||||||
|
way instead of mailing patches to the curl-library mailing list.
|
||||||
|
|
||||||
|
We don't like that. We want them mailed for these reasons:
|
||||||
|
|
||||||
|
- Peer review. Anyone and everyone on the list can review, comment and
|
||||||
|
improve on the patch. Pull requests limit this ability.
|
||||||
|
|
||||||
|
- Anyone can merge the patch into their own trees for testing and those who
|
||||||
|
have push rights can push it to the main repo. It doesn't have to be anyone
|
||||||
|
the patch author knows beforehand.
|
||||||
|
|
||||||
|
- Commit messages can be tweaked and changed if merged locally instead of
|
||||||
|
using github. Merges directly on github requires the changes to be perfect
|
||||||
|
already, which they seldom are.
|
||||||
|
|
||||||
|
- Merges on github prevents rebases and even enforces --no-ff which is a git
|
||||||
|
style we don't otherwise use in the project
|
||||||
|
|
||||||
|
However: once patches have been reviewed and deemed fine on list they are
|
||||||
|
perfectly OK to be pulled from a published git tree.
|
||||||
|
65
docs/FAQ
65
docs/FAQ
@@ -1,4 +1,3 @@
|
|||||||
Updated: March 8, 2011 (http://curl.haxx.se/docs/faq.html)
|
|
||||||
_ _ ____ _
|
_ _ ____ _
|
||||||
___| | | | _ \| |
|
___| | | | _ \| |
|
||||||
/ __| | | | |_) | |
|
/ __| | | | |_) | |
|
||||||
@@ -97,6 +96,7 @@ 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!
|
||||||
|
|
||||||
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 +138,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...
|
||||||
|
|
||||||
@@ -306,41 +306,10 @@ 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. 300 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
|
||||||
|
|
||||||
@@ -726,6 +695,12 @@ FAQ
|
|||||||
|
|
||||||
curl --header "Host: www.example.com" http://127.0.0.1/
|
curl --header "Host: www.example.com" http://127.0.0.1/
|
||||||
|
|
||||||
|
You can also opt to add faked host name entries to curl with the --resolve
|
||||||
|
option. That has the added benefit that things like redirects will also work
|
||||||
|
properly. The above operation would instead be done as:
|
||||||
|
|
||||||
|
curl --resolve www.example.com:80:127.0.0.1 http://www.example.com/
|
||||||
|
|
||||||
3.20 How to SFTP from my user's home directory?
|
3.20 How to SFTP from my user's home directory?
|
||||||
|
|
||||||
Contrary to how FTP works, SFTP and SCP URLs specify the exact directory to
|
Contrary to how FTP works, SFTP and SCP URLs specify the exact directory to
|
||||||
@@ -832,7 +807,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"
|
||||||
@@ -1319,6 +1294,22 @@ 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.
|
||||||
|
|
||||||
|
|
||||||
6. License Issues
|
6. License Issues
|
||||||
|
|
||||||
|
@@ -26,12 +26,12 @@ libcurl supports
|
|||||||
- 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 + 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
|
- supports large files (>2GB and >4GB) both upload/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
|
||||||
|
|
||||||
@@ -125,7 +125,7 @@ FILE
|
|||||||
FOOTNOTES
|
FOOTNOTES
|
||||||
=========
|
=========
|
||||||
|
|
||||||
*1 = requires OpenSSL, GnuTLS, NSS, yassl, axTLS or PolarSSL
|
*1 = requires OpenSSL, GnuTLS, NSS, yassl, axTLS, PolarSSL or schannel
|
||||||
*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
|
||||||
|
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.
|
70
docs/INSTALL
70
docs/INSTALL
@@ -157,6 +157,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 +200,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 +223,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.7
|
||||||
set OPENSSL_PATH=c:\openssl-0.9.8r
|
set OPENSSL_PATH=c:\openssl-0.9.8x
|
||||||
set LIBSSH2_PATH=c:\libssh2-1.2.8
|
set LIBSSH2_PATH=c:\libssh2-1.4.2
|
||||||
|
|
||||||
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 +326,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.7
|
||||||
|
|
||||||
Then run 'nmake vc-zlib' in curl's root directory.
|
Then run 'nmake vc-zlib' in curl's root directory.
|
||||||
|
|
||||||
@@ -334,7 +340,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.8x
|
||||||
|
|
||||||
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
|
||||||
@@ -540,7 +546,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 +679,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 +846,44 @@ VxWorks
|
|||||||
|
|
||||||
Android
|
Android
|
||||||
=======
|
=======
|
||||||
See the build notes in the Android.mk file.
|
Method using the static makefile:
|
||||||
|
- see the build notes in the 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 +970,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 +982,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.
|
||||||
|
63
docs/INSTALL.cmake
Executable file → Normal file
63
docs/INSTALL.cmake
Executable file → Normal file
@@ -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/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?"
|
||||||
|
|
||||||
|
@@ -39,11 +39,11 @@ Portability
|
|||||||
libssh2 0.16
|
libssh2 0.16
|
||||||
c-ares 1.6.0
|
c-ares 1.6.0
|
||||||
libidn 0.4.1
|
libidn 0.4.1
|
||||||
cyassl 1.4.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 V5R2M0
|
||||||
NSS 3.11.x
|
NSS 3.12.x
|
||||||
axTLS 1.2.7
|
axTLS 1.2.7
|
||||||
Heimdal ?
|
Heimdal ?
|
||||||
|
|
||||||
@@ -68,7 +68,7 @@ Portability
|
|||||||
GNU Autoconf 2.57
|
GNU Autoconf 2.57
|
||||||
GNU Automake 1.7 (we currently avoid 1.10 due to Solaris-related bugs)
|
GNU Automake 1.7 (we currently avoid 1.10 due to Solaris-related bugs)
|
||||||
GNU M4 1.4
|
GNU M4 1.4
|
||||||
perl 4
|
perl 5.004
|
||||||
roffit 0.5
|
roffit 0.5
|
||||||
groff ? (any version that supports "groff -Tps -man [in] [out]")
|
groff ? (any version that supports "groff -Tps -man [in] [out]")
|
||||||
ps2pdf (gs) ?
|
ps2pdf (gs) ?
|
||||||
@@ -104,9 +104,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 +220,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):
|
||||||
|
@@ -3,15 +3,39 @@ 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!
|
||||||
|
|
||||||
|
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"
|
||||||
|
zero bytes files - it makes for example the command line client not creating
|
||||||
|
any file at all. Like when using FTP.
|
||||||
|
http://curl.haxx.se/bug/view.cgi?id=3438362
|
||||||
|
|
||||||
|
77. CURLOPT_FORBID_REUSE on a handle prevents NTLM from working since it
|
||||||
|
"abuses" the underlying connection re-use system and if connections are
|
||||||
|
forced to close they break the NTLM support.
|
||||||
|
|
||||||
76. The SOCKET type in Win64 is 64 bits large (and thus so is curl_socket_t on
|
76. The SOCKET type in Win64 is 64 bits large (and thus so is curl_socket_t on
|
||||||
that platform), and long is only 32 bits. It makes it impossible for
|
that platform), and long is only 32 bits. It makes it impossible for
|
||||||
curl_easy_getinfo() to return a socket properly with the CURLINFO_LASTSOCKET
|
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"
|
||||||
@@ -110,13 +134,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.
|
||||||
|
|
||||||
@@ -146,7 +163,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
|
||||||
|
114
docs/MANUAL
114
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:
|
||||||
@@ -328,7 +329,7 @@ POST (HTTP)
|
|||||||
If the content-type is not specified, curl will try to guess from the file
|
If the content-type is not specified, curl will try to guess from the file
|
||||||
extension (it only knows a few), or use the previously specified type (from
|
extension (it only knows a few), or use the previously specified type (from
|
||||||
an earlier file if several files are specified in a list) or else it will
|
an earlier file if several files are specified in a list) or else it will
|
||||||
using the default type 'text/plain'.
|
use the default type 'application/octet-stream'.
|
||||||
|
|
||||||
Emulate a fill-in form with -F. Let's say you fill in three fields in a
|
Emulate a fill-in form with -F. Let's say you fill in three fields in a
|
||||||
form. One field is a file name which to post, one field is your name and one
|
form. One field is a file name which to post, one field is your name and one
|
||||||
@@ -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 < $< >$@
|
||||||
|
|
||||||
|
0
docs/README.cmake
Executable file → Normal file
0
docs/README.cmake
Executable file → Normal file
90
docs/THANKS
90
docs/THANKS
@@ -20,11 +20,13 @@ Albert Choy
|
|||||||
Ale Vesely
|
Ale Vesely
|
||||||
Alejandro Alvarez
|
Alejandro Alvarez
|
||||||
Aleksandar Milivojevic
|
Aleksandar Milivojevic
|
||||||
|
Alessandro Ghedini
|
||||||
Alessandro Vesely
|
Alessandro Vesely
|
||||||
Alex Bligh
|
Alex Bligh
|
||||||
Alex Fishman
|
Alex Fishman
|
||||||
Alex Neblett
|
Alex Neblett
|
||||||
Alex Suykov
|
Alex Suykov
|
||||||
|
Alex Vinnik
|
||||||
Alex aka WindEagle
|
Alex aka WindEagle
|
||||||
Alexander Beedie
|
Alexander Beedie
|
||||||
Alexander Kourakos
|
Alexander Kourakos
|
||||||
@@ -53,6 +55,7 @@ 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
|
||||||
@@ -62,18 +65,22 @@ Andrew Fuller
|
|||||||
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 Yabchinskiy
|
||||||
Arkadiusz Miskiewicz
|
Arkadiusz Miskiewicz
|
||||||
Armel Asselin
|
Armel Asselin
|
||||||
|
Arnaud Compan
|
||||||
Arnaud Ebalard
|
Arnaud Ebalard
|
||||||
|
Arthur Murray
|
||||||
Arve Knudsen
|
Arve Knudsen
|
||||||
Ates Goral
|
Ates Goral
|
||||||
Augustus Saunders
|
Augustus Saunders
|
||||||
@@ -90,14 +97,17 @@ Ben Van Hof
|
|||||||
Ben Winslow
|
Ben Winslow
|
||||||
Benbuck Nason
|
Benbuck Nason
|
||||||
Benjamin Gerard
|
Benjamin Gerard
|
||||||
|
Benjamin Johnson
|
||||||
Bernard Leak
|
Bernard Leak
|
||||||
|
Bernhard Reutner-Fischer
|
||||||
Bertrand Demiddelaer
|
Bertrand Demiddelaer
|
||||||
Bill Egert
|
Bill Egert
|
||||||
Bill Hoffman
|
Bill Hoffman
|
||||||
Bjoern Sikora
|
Bjoern Sikora
|
||||||
Bjorn Augustsson
|
Bjorn Augustsson
|
||||||
Bjorn Reese
|
Bjorn Reese
|
||||||
Bj<EFBFBD>rn Stenberg
|
Björn Stenberg
|
||||||
|
Blaise Potard
|
||||||
Bob Richmond
|
Bob Richmond
|
||||||
Bob Schader
|
Bob Schader
|
||||||
Bogdan Nicula
|
Bogdan Nicula
|
||||||
@@ -105,6 +115,7 @@ Brad Burdick
|
|||||||
Brad Hards
|
Brad Hards
|
||||||
Brad King
|
Brad King
|
||||||
Bradford Bruce
|
Bradford Bruce
|
||||||
|
Brandon Wang
|
||||||
Brendan Jurd
|
Brendan Jurd
|
||||||
Brent Beardsley
|
Brent Beardsley
|
||||||
Brian Akins
|
Brian Akins
|
||||||
@@ -121,7 +132,9 @@ Camille Moncelier
|
|||||||
Caolan McNamara
|
Caolan McNamara
|
||||||
Carsten Lange
|
Carsten Lange
|
||||||
Casey O'Donnell
|
Casey O'Donnell
|
||||||
|
Cedric Deltheil
|
||||||
Chad Monroe
|
Chad Monroe
|
||||||
|
Chandrakant Bagul
|
||||||
Charles Kerr
|
Charles Kerr
|
||||||
Chih-Chung Chang
|
Chih-Chung Chang
|
||||||
Chris "Bob Bob"
|
Chris "Bob Bob"
|
||||||
@@ -133,7 +146,9 @@ Chris Gaukroger
|
|||||||
Chris Maltby
|
Chris Maltby
|
||||||
Chris Mumford
|
Chris Mumford
|
||||||
Chris Smowton
|
Chris Smowton
|
||||||
|
Christian Grothoff
|
||||||
Christian Hagele
|
Christian Hagele
|
||||||
|
Christian Hägele
|
||||||
Christian Krause
|
Christian Krause
|
||||||
Christian Kurz
|
Christian Kurz
|
||||||
Christian Robottom Reis
|
Christian Robottom Reis
|
||||||
@@ -162,6 +177,7 @@ Cris Bailiff
|
|||||||
Cristian Rodriguez
|
Cristian Rodriguez
|
||||||
Curt Bogmine
|
Curt Bogmine
|
||||||
Cyrill Osterwalder
|
Cyrill Osterwalder
|
||||||
|
Dag Ekengren
|
||||||
Dagobert Michelsen
|
Dagobert Michelsen
|
||||||
Damien Adant
|
Damien Adant
|
||||||
Dan Becker
|
Dan Becker
|
||||||
@@ -175,11 +191,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
|
||||||
@@ -247,6 +263,7 @@ Early Ehlinger
|
|||||||
Ebenezer Ikonne
|
Ebenezer Ikonne
|
||||||
Edin Kadribasic
|
Edin Kadribasic
|
||||||
Eduard Bloch
|
Eduard Bloch
|
||||||
|
Eelco Dolstra
|
||||||
Eetu Ojanen
|
Eetu Ojanen
|
||||||
Ellis Pritchard
|
Ellis Pritchard
|
||||||
Emanuele Bovisio
|
Emanuele Bovisio
|
||||||
@@ -302,7 +319,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
|
||||||
@@ -326,7 +344,7 @@ Guenter Knauf
|
|||||||
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
|
||||||
@@ -378,10 +396,14 @@ James MacMillan
|
|||||||
Jamie Lokier
|
Jamie Lokier
|
||||||
Jamie Newton
|
Jamie Newton
|
||||||
Jamie Wilkinson
|
Jamie Wilkinson
|
||||||
|
Jan Ehrhardt
|
||||||
Jan Kunder
|
Jan Kunder
|
||||||
|
Jan Schaumann
|
||||||
Jan Van Boghout
|
Jan Van Boghout
|
||||||
Jared Lundell
|
Jared Lundell
|
||||||
Jari Sundell
|
Jari Sundell
|
||||||
|
Jason Glasgow
|
||||||
|
Jason Liu
|
||||||
Jason McDonald
|
Jason McDonald
|
||||||
Jason S. Priebe
|
Jason S. Priebe
|
||||||
Jay Austin
|
Jay Austin
|
||||||
@@ -418,14 +440,17 @@ Jofell Gallardo
|
|||||||
Johan Anderson
|
Johan Anderson
|
||||||
Johan Nilsson
|
Johan Nilsson
|
||||||
Johan van Selst
|
Johan van Selst
|
||||||
|
Johannes Bauer
|
||||||
John Bradshaw
|
John Bradshaw
|
||||||
John Crow
|
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 Wilkinson
|
John Wilkinson
|
||||||
@@ -437,27 +462,31 @@ Jon Sargeant
|
|||||||
Jon Travis
|
Jon Travis
|
||||||
Jon Turner
|
Jon Turner
|
||||||
Jonas Forsman
|
Jonas Forsman
|
||||||
|
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 Sommerfeld
|
Kai Sommerfeld
|
||||||
Kai-Uwe Rommel
|
Kai-Uwe Rommel
|
||||||
Kalle Vahlman
|
Kalle Vahlman
|
||||||
@@ -491,7 +520,7 @@ 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
|
||||||
@@ -508,6 +537,7 @@ 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
|
||||||
@@ -524,11 +554,14 @@ Luke Call
|
|||||||
Luong Dinh Dung
|
Luong Dinh Dung
|
||||||
Maciej Karpiuk
|
Maciej Karpiuk
|
||||||
Maciej W. Rozycki
|
Maciej W. Rozycki
|
||||||
|
Mamoru Tasaka
|
||||||
Mandy Wu
|
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
|
||||||
@@ -538,12 +571,14 @@ Marco Maggi
|
|||||||
Marcus Sundberg
|
Marcus Sundberg
|
||||||
Marcus Webster
|
Marcus Webster
|
||||||
Mario Schroeder
|
Mario Schroeder
|
||||||
|
Mark Brand
|
||||||
Mark Butler
|
Mark Butler
|
||||||
Mark Davies
|
Mark Davies
|
||||||
Mark Eichin
|
Mark Eichin
|
||||||
Mark Incley
|
Mark Incley
|
||||||
Mark Karpeles
|
Mark Karpeles
|
||||||
Mark Lentczner
|
Mark Lentczner
|
||||||
|
Mark Salisbury
|
||||||
Markus Duft
|
Markus Duft
|
||||||
Markus Koetter
|
Markus Koetter
|
||||||
Markus Moeller
|
Markus Moeller
|
||||||
@@ -576,6 +611,7 @@ Mauro Iorio
|
|||||||
Max Katsev
|
Max Katsev
|
||||||
Maxim Ivanov
|
Maxim Ivanov
|
||||||
Maxim Perenesenko
|
Maxim Perenesenko
|
||||||
|
Maxim Prohorov
|
||||||
Mehmet Bozkurt
|
Mehmet Bozkurt
|
||||||
Mekonikum
|
Mekonikum
|
||||||
Mettgut Jamalla
|
Mettgut Jamalla
|
||||||
@@ -583,6 +619,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
|
||||||
@@ -613,7 +650,9 @@ Moonesamy
|
|||||||
Nathan Coulter
|
Nathan Coulter
|
||||||
Nathan O'Sullivan
|
Nathan O'Sullivan
|
||||||
Nathanael Nerode
|
Nathanael Nerode
|
||||||
|
Naveen Chandran
|
||||||
Naveen Noel
|
Naveen Noel
|
||||||
|
Neil Bowers
|
||||||
Neil Dunbar
|
Neil Dunbar
|
||||||
Neil Spring
|
Neil Spring
|
||||||
Nic Roets
|
Nic Roets
|
||||||
@@ -624,12 +663,13 @@ 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
|
||||||
Niklas Angebrand
|
Niklas Angebrand
|
||||||
Nikolai Kondrashov
|
Nikolai Kondrashov
|
||||||
|
Nikos Mavrogiannopoulos
|
||||||
Ning Dong
|
Ning Dong
|
||||||
Nir Soffer
|
Nir Soffer
|
||||||
Nis Jorgensen
|
Nis Jorgensen
|
||||||
@@ -637,8 +677,9 @@ 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
|
||||||
Oren Tirosh
|
Oren Tirosh
|
||||||
Ori Avtalion
|
Ori Avtalion
|
||||||
P R Schaffner
|
P R Schaffner
|
||||||
@@ -646,6 +687,7 @@ Paolo Piacentini
|
|||||||
Pascal Terjan
|
Pascal Terjan
|
||||||
Pasha Kuznetsov
|
Pasha Kuznetsov
|
||||||
Pat Ray
|
Pat Ray
|
||||||
|
Patrice Guerin
|
||||||
Patrick Bihan-Faou
|
Patrick Bihan-Faou
|
||||||
Patrick Monnerat
|
Patrick Monnerat
|
||||||
Patrick Scott
|
Patrick Scott
|
||||||
@@ -685,6 +727,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
|
||||||
@@ -692,7 +735,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
|
||||||
@@ -719,6 +764,7 @@ Renaud Duhaut
|
|||||||
Rene Bernhardt
|
Rene Bernhardt
|
||||||
Rene Rebe
|
Rene Rebe
|
||||||
Reuven Wachtfogel
|
Reuven Wachtfogel
|
||||||
|
Reza Arbab
|
||||||
Ricardo Cadime
|
Ricardo Cadime
|
||||||
Rich Gray
|
Rich Gray
|
||||||
Rich Rauenzahn
|
Rich Rauenzahn
|
||||||
@@ -735,22 +781,27 @@ Rick Richardson
|
|||||||
Rob Crittenden
|
Rob Crittenden
|
||||||
Rob Jones
|
Rob Jones
|
||||||
Rob Stanzel
|
Rob Stanzel
|
||||||
|
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 Weaver
|
Robert Weaver
|
||||||
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
|
||||||
@@ -761,15 +812,16 @@ 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 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
|
||||||
Saul good
|
Saul good
|
||||||
Scott Barrett
|
Scott Barrett
|
||||||
@@ -808,6 +860,7 @@ Stephen Kick
|
|||||||
Stephen More
|
Stephen More
|
||||||
Sterling Hughes
|
Sterling Hughes
|
||||||
Steve Green
|
Steve Green
|
||||||
|
Steve H Truong
|
||||||
Steve Holme
|
Steve Holme
|
||||||
Steve Lhomme
|
Steve Lhomme
|
||||||
Steve Little
|
Steve Little
|
||||||
@@ -822,11 +875,12 @@ 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
|
||||||
@@ -840,13 +894,15 @@ 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
|
||||||
@@ -863,6 +919,7 @@ Tomasz Lacki
|
|||||||
Tommie Gannert
|
Tommie Gannert
|
||||||
Tommy Tam
|
Tommy Tam
|
||||||
Ton Voon
|
Ton Voon
|
||||||
|
Toni Moreno
|
||||||
Toon Verwaest
|
Toon Verwaest
|
||||||
Tor Arntsen
|
Tor Arntsen
|
||||||
Torsten Foertsch
|
Torsten Foertsch
|
||||||
@@ -872,7 +929,7 @@ Traian Nicolescu
|
|||||||
Troels Walsted Hansen
|
Troels Walsted Hansen
|
||||||
Troy Engel
|
Troy Engel
|
||||||
Tupone Alfredo
|
Tupone Alfredo
|
||||||
Ulf H<EFBFBD>rnhammar
|
Ulf Härnhammar
|
||||||
Ulrich Zadow
|
Ulrich Zadow
|
||||||
Venkat Akella
|
Venkat Akella
|
||||||
Victor Snezhko
|
Victor Snezhko
|
||||||
@@ -891,6 +948,7 @@ Vojtech Janota
|
|||||||
Vojtech Minarik
|
Vojtech Minarik
|
||||||
Vsevolod Novikov
|
Vsevolod Novikov
|
||||||
Walter J. Mack
|
Walter J. Mack
|
||||||
|
Ward Willats
|
||||||
Wayne Haigh
|
Wayne Haigh
|
||||||
Werner Koch
|
Werner Koch
|
||||||
Wesley Laxton
|
Wesley Laxton
|
||||||
|
258
docs/TODO
258
docs/TODO
@@ -17,6 +17,7 @@
|
|||||||
1.4 signal-based resolver timeouts
|
1.4 signal-based resolver timeouts
|
||||||
1.5 get rid of PATH_MAX
|
1.5 get rid of PATH_MAX
|
||||||
1.6 progress callback without doubles
|
1.6 progress callback without doubles
|
||||||
|
1.7 Happy Eyeball dual stack connect
|
||||||
|
|
||||||
2. libcurl - multi interface
|
2. libcurl - multi interface
|
||||||
2.1 More non-blocking
|
2.1 More non-blocking
|
||||||
@@ -54,52 +55,69 @@
|
|||||||
7.6 Provide callback for cert verification
|
7.6 Provide callback for cert verification
|
||||||
7.7 Support other SSL libraries
|
7.7 Support other SSL libraries
|
||||||
7.9 improve configure --with-ssl
|
7.9 improve configure --with-ssl
|
||||||
|
7.10 Support DANE
|
||||||
|
|
||||||
8. GnuTLS
|
8. GnuTLS
|
||||||
8.1 SSL engine stuff
|
8.1 SSL engine stuff
|
||||||
8.3 check connection
|
8.3 check connection
|
||||||
8.4 non-gcrypt
|
|
||||||
|
|
||||||
9. Other protocols
|
9. SMTP
|
||||||
|
9.1 Specify the preferred authentication mechanism
|
||||||
|
9.2 Initial response
|
||||||
|
9.3 Pipelining
|
||||||
|
|
||||||
10. New protocols
|
10. POP3
|
||||||
10.1 RSYNC
|
10.1 auth= in URLs
|
||||||
|
|
||||||
11. Client
|
11. IMAP
|
||||||
11.1 sync
|
11.1 SASL based authentication mechanisms
|
||||||
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. LDAP
|
||||||
12.1 roffit
|
12.1 SASL based authentication mechanisms
|
||||||
|
|
||||||
13. Test suite
|
13. Other protocols
|
||||||
13.1 SSL tunnel
|
|
||||||
13.2 nicer lacking perl message
|
|
||||||
13.3 more protocols supported
|
|
||||||
13.4 more platforms supported
|
|
||||||
|
|
||||||
14. Next SONAME bump
|
14. New protocols
|
||||||
14.1 http-style HEAD output for ftp
|
14.1 RSYNC
|
||||||
14.2 combine error codes
|
|
||||||
14.3 extend CURLOPT_SOCKOPTFUNCTION prototype
|
|
||||||
|
|
||||||
15. Next major release
|
15. SASL
|
||||||
15.1 cleanup return codes
|
15.1 Other authentication mechanisms
|
||||||
15.2 remove obsolete defines
|
|
||||||
15.3 size_t
|
16. Client
|
||||||
15.4 remove several functions
|
16.1 sync
|
||||||
15.5 remove CURLOPT_FAILONERROR
|
16.2 glob posts
|
||||||
15.6 remove CURLOPT_DNS_USE_GLOBAL_CACHE
|
16.3 prevent file overwriting
|
||||||
15.7 remove progress meter from libcurl
|
16.4 simultaneous parallel transfers
|
||||||
15.8 remove 'curl_httppost' from public
|
16.5 provide formpost headers
|
||||||
15.9 have form functions use CURL handle argument
|
16.6 url-specific options
|
||||||
|
16.7 warning when setting an option
|
||||||
|
16.8 IPv6 addresses with globbing
|
||||||
|
|
||||||
|
17. Build
|
||||||
|
17.1 roffit
|
||||||
|
|
||||||
|
18. Test suite
|
||||||
|
18.1 SSL tunnel
|
||||||
|
18.2 nicer lacking perl message
|
||||||
|
18.3 more protocols supported
|
||||||
|
18.4 more platforms supported
|
||||||
|
|
||||||
|
19. Next SONAME bump
|
||||||
|
19.1 http-style HEAD output for ftp
|
||||||
|
19.2 combine error codes
|
||||||
|
19.3 extend CURLOPT_SOCKOPTFUNCTION prototype
|
||||||
|
|
||||||
|
20. Next major release
|
||||||
|
20.1 cleanup return codes
|
||||||
|
20.2 remove obsolete defines
|
||||||
|
20.3 size_t
|
||||||
|
20.4 remove several functions
|
||||||
|
20.5 remove CURLOPT_FAILONERROR
|
||||||
|
20.6 remove CURLOPT_DNS_USE_GLOBAL_CACHE
|
||||||
|
20.7 remove progress meter from libcurl
|
||||||
|
20.8 remove 'curl_httppost' from public
|
||||||
|
20.9 have form functions use CURL handle argument
|
||||||
|
20.10 Add CURLOPT_MAIL_CLIENT option
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
|
|
||||||
@@ -147,6 +165,19 @@
|
|||||||
have both co-exist for a forseeable time until we can remove the double-using
|
have both co-exist for a forseeable time until we can remove the double-using
|
||||||
one.
|
one.
|
||||||
|
|
||||||
|
1.7 Happy Eyeball dual stack connect
|
||||||
|
|
||||||
|
In order to make alternative technologies not suffer when transitioning, like
|
||||||
|
when introducing IPv6 as an alternative to IPv4 and there are more than one
|
||||||
|
option existing simultaneously there are reasons to reconsider internal
|
||||||
|
choices.
|
||||||
|
|
||||||
|
To make libcurl do blazing fast IPv6 in a dual-stack configuration, this needs
|
||||||
|
to be addressed:
|
||||||
|
|
||||||
|
http://tools.ietf.org/html/rfc6555
|
||||||
|
|
||||||
|
|
||||||
2. libcurl - multi interface
|
2. libcurl - multi interface
|
||||||
|
|
||||||
2.1 More non-blocking
|
2.1 More non-blocking
|
||||||
@@ -156,7 +187,6 @@
|
|||||||
|
|
||||||
- Name resolves on non-windows unless c-ares is used
|
- Name resolves on non-windows unless c-ares is used
|
||||||
- NSS SSL connections
|
- NSS SSL connections
|
||||||
- Active FTP connections
|
|
||||||
- HTTP proxy CONNECT operations
|
- HTTP proxy CONNECT operations
|
||||||
- SOCKS proxy handshakes
|
- SOCKS proxy handshakes
|
||||||
- file:// transfers
|
- file:// transfers
|
||||||
@@ -325,6 +355,13 @@ to provide the data to send.
|
|||||||
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...
|
||||||
|
|
||||||
|
7.10 Support DANE
|
||||||
|
|
||||||
|
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
|
||||||
|
|
||||||
|
|
||||||
8. GnuTLS
|
8. GnuTLS
|
||||||
|
|
||||||
8.1 SSL engine stuff
|
8.1 SSL engine stuff
|
||||||
@@ -336,29 +373,71 @@ to provide the data to send.
|
|||||||
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
|
|
||||||
|
|
||||||
libcurl assumes that there are gcrypt functions available when
|
9. SMTP
|
||||||
GnuTLS is.
|
|
||||||
|
|
||||||
GnuTLS can be built to use libnettle instead as crypto library,
|
9.1 Specify the preferred authentication mechanism
|
||||||
which breaks the previously mentioned assumption
|
|
||||||
|
|
||||||
The correct fix would be to detect which crypto layer that is in use and
|
Add the ability to specify the preferred authentication mechanism or a list
|
||||||
adapt our code to use that instead of blindly assuming gcrypt.
|
of mechanisms that should be used. Not only that, but the order that is
|
||||||
|
returned by the server during the EHLO response should be honored by curl.
|
||||||
|
|
||||||
9. Other protocols
|
9.2 Initial response
|
||||||
|
|
||||||
10. New protocols
|
Add the ability for the user to specify whether the initial response is
|
||||||
|
included in the AUTH command. Some email servers, such as Microsoft
|
||||||
|
Exchange, can work with either whilst others need to have the initial
|
||||||
|
response sent separately:
|
||||||
|
|
||||||
10.1 RSYNC
|
http://curl.haxx.se/mail/lib-2012-03/0114.html
|
||||||
|
|
||||||
There's no RFC for protocol nor URI/URL format. An implementation should
|
9.3 Pipelining
|
||||||
most probably use an existing rsync library, such as librsync.
|
|
||||||
|
|
||||||
11. Client
|
Add support for pipelining emails.
|
||||||
|
|
||||||
11.1 sync
|
10. POP3
|
||||||
|
|
||||||
|
10.1 auth= in URLs
|
||||||
|
|
||||||
|
Being able to specify the preferred authentication mechanism in the URL as
|
||||||
|
per RFC2384.
|
||||||
|
|
||||||
|
11. IMAP
|
||||||
|
|
||||||
|
11.1 SASL based authentication mechanisms
|
||||||
|
|
||||||
|
Curl currently sends usernames and passwords as clear text whilst SASL based
|
||||||
|
authentication mechanisms can be more secure. As such, support should be
|
||||||
|
added to support these authentication mechanisms.
|
||||||
|
|
||||||
|
12. LDAP
|
||||||
|
|
||||||
|
12.1 SASL based authentication mechansims
|
||||||
|
|
||||||
|
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.
|
||||||
|
|
||||||
|
13. Other protocols
|
||||||
|
|
||||||
|
14. New protocols
|
||||||
|
|
||||||
|
14.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.
|
||||||
|
|
||||||
|
15. SASL
|
||||||
|
|
||||||
|
15.1 Other authentication mechanisms
|
||||||
|
|
||||||
|
Add support for gssapi to SMTP and POP3.
|
||||||
|
|
||||||
|
16. Client
|
||||||
|
|
||||||
|
16.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"
|
||||||
@@ -367,12 +446,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
|
16.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
|
16.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
|
||||||
@@ -380,14 +459,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
|
16.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
|
16.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
|
||||||
@@ -401,7 +480,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
|
16.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,
|
||||||
@@ -415,62 +494,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
|
16.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
|
16.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
|
17. Build
|
||||||
|
|
||||||
12.1 roffit
|
17.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/hugehelp.c
|
||||||
|
|
||||||
13. Test suite
|
18. Test suite
|
||||||
|
|
||||||
13.1 SSL tunnel
|
18.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
|
18.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
|
18.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
|
18.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
|
19. Next SONAME bump
|
||||||
|
|
||||||
14.1 http-style HEAD output for ftp
|
19.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
|
19.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
|
||||||
@@ -480,37 +554,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
|
19.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
|
20. Next major release
|
||||||
|
|
||||||
15.1 cleanup return codes
|
20.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
|
20.2 remove obsolete defines
|
||||||
|
|
||||||
remove obsolete defines from curl/curl.h
|
remove obsolete defines from curl/curl.h
|
||||||
|
|
||||||
15.3 size_t
|
20.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
|
20.4 remove several functions
|
||||||
|
|
||||||
remove the following functions from the public API:
|
remove the following functions from the public API:
|
||||||
|
|
||||||
@@ -531,18 +612,18 @@ to provide the data to send.
|
|||||||
|
|
||||||
curl_multi_socket_all
|
curl_multi_socket_all
|
||||||
|
|
||||||
15.5 remove CURLOPT_FAILONERROR
|
20.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
|
20.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
|
20.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
|
||||||
@@ -552,7 +633,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
|
20.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
|
||||||
@@ -561,10 +642,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
|
20.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.
|
||||||
|
|
||||||
|
20.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)
|
||||||
|
416
docs/curl.1
416
docs/curl.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
|
||||||
@@ -20,7 +20,7 @@
|
|||||||
.\" *
|
.\" *
|
||||||
.\" **************************************************************************
|
.\" **************************************************************************
|
||||||
.\"
|
.\"
|
||||||
.TH curl 1 "14 April 2009" "Curl 7.21.6" "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.
|
||||||
@@ -399,9 +397,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
|
||||||
@@ -434,17 +432,19 @@ 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>"
|
||||||
(SSL) Tells curl to use the specified certificate directory to verify the
|
(SSL) Tells curl to use the specified certificate directory to verify the
|
||||||
peer. The certificates must be in PEM format, and if curl is built against
|
peer. Multiple paths can be provided by separating them with ":" (e.g.
|
||||||
OpenSSL, the directory must have been processed using the c_rehash utility
|
\&"path1:path2:path3"). The certificates must be in PEM format, and if curl is
|
||||||
supplied with OpenSSL. Using \fI--capath\fP can allow OpenSSL-powered curl to
|
built against OpenSSL, the directory must have been processed using the
|
||||||
make SSL-connections much more efficiently than using \fI--cacert\fP if the
|
c_rehash utility supplied with OpenSSL. Using \fI--capath\fP can allow
|
||||||
\fI--cacert\fP file contains many CA certificates.
|
OpenSSL-powered curl to make SSL-connections much more efficiently than using
|
||||||
|
\fI--cacert\fP if the \fI--cacert\fP file contains many CA certificates.
|
||||||
|
|
||||||
If this option is used several times, the last one will be used.
|
If this option is set, the default capath value will be ignored, and if it is
|
||||||
|
used several times, the last one will be used.
|
||||||
.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.
|
||||||
|
|
||||||
@@ -492,7 +492,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
|
||||||
@@ -504,7 +504,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
|
||||||
@@ -525,9 +525,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.
|
||||||
@@ -548,7 +548,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)
|
||||||
@@ -575,16 +575,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
|
||||||
@@ -593,9 +593,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
|
||||||
@@ -606,10 +606,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
|
||||||
@@ -622,7 +621,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
|
||||||
@@ -637,8 +636,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
|
||||||
@@ -709,7 +709,8 @@ 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 this option is used several times, the last one will be used. If
|
||||||
|
unspecified, the option defaults to 60 seconds.
|
||||||
.IP "--key <key>"
|
.IP "--key <key>"
|
||||||
(SSL/SSH) Private key file name. Allows you to provide your private key in this
|
(SSL/SSH) Private key file name. Allows you to provide your private key in this
|
||||||
separate file.
|
separate file.
|
||||||
@@ -759,13 +760,9 @@ was 301, 302, or 303. If the response code was any other 3xx code, curl will
|
|||||||
re-send the following request using the same unmodified method.
|
re-send the following request using the same unmodified method.
|
||||||
.IP "--libcurl <file>"
|
.IP "--libcurl <file>"
|
||||||
Append this option to any ordinary curl command line, and you will get a
|
Append this option to any ordinary curl command line, and you will get a
|
||||||
libcurl-using source code written to the file that does the equivalent
|
libcurl-using C source code written to the file that does the equivalent
|
||||||
of what your command-line operation does!
|
of what your command-line operation does!
|
||||||
|
|
||||||
NOTE: this does not properly support -F and the sending of multipart
|
|
||||||
formposts, so in those cases the output program will be missing necessary
|
|
||||||
calls to \fIcurl_formadd(3)\fP, and possibly more.
|
|
||||||
|
|
||||||
If this option is used several times, the last given file name will be
|
If this option is used several times, the last given file name will be
|
||||||
used. (Added in 7.16.1)
|
used. (Added in 7.16.1)
|
||||||
.IP "--limit-rate <speed>"
|
.IP "--limit-rate <speed>"
|
||||||
@@ -803,6 +800,12 @@ useful for preventing your batch jobs from hanging for hours due to slow
|
|||||||
networks or links going down. See also the \fI--connect-timeout\fP option.
|
networks or links going down. See also 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 "--mail-auth <address>"
|
||||||
|
(SMTP) Specify a single address. This will be used to specify the
|
||||||
|
authentication address (identity) of a submitted message that is being relayed
|
||||||
|
to another server.
|
||||||
|
|
||||||
|
(Added in 7.25.0)
|
||||||
.IP "--mail-from <address>"
|
.IP "--mail-from <address>"
|
||||||
(SMTP) Specify a single address that the given mail should get sent from.
|
(SMTP) Specify a single address that the given mail should get sent from.
|
||||||
|
|
||||||
@@ -812,9 +815,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.
|
||||||
@@ -827,6 +830,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
|
||||||
@@ -860,7 +888,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
|
||||||
@@ -880,12 +908,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.
|
||||||
@@ -922,8 +949,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>
|
||||||
@@ -991,16 +1017,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)
|
||||||
@@ -1089,24 +1115,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
|
||||||
@@ -1164,9 +1190,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
|
||||||
@@ -1178,7 +1205,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>"
|
||||||
@@ -1186,7 +1213,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
|
||||||
@@ -1218,7 +1245,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
|
||||||
@@ -1226,7 +1253,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
|
||||||
@@ -1235,13 +1262,12 @@ 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 mute.
|
Curl mute.
|
||||||
.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
|
||||||
@@ -1256,6 +1282,12 @@ connection if the server doesn't support SSL/TLS. (Added in 7.20.0)
|
|||||||
|
|
||||||
This option was formerly known as \fI--ftp-ssl-reqd\fP (added in 7.15.5). That
|
This option was formerly known as \fI--ftp-ssl-reqd\fP (added in 7.15.5). That
|
||||||
option name can still be used but will be removed in a future version.
|
option name can still be used but will be removed in a future version.
|
||||||
|
.IP "--ssl-allow-beast"
|
||||||
|
(SSL) This option tells curl to not work around a security flaw in the SSL3
|
||||||
|
and TLS1.0 protocols known as BEAST. If this option isn't used, the SSL layer
|
||||||
|
may use work-arounds known to cause interoperability problems with some older
|
||||||
|
SSL implementations. WARNING: this option loosens the SSL security, and by
|
||||||
|
using this flag you ask for exactly that. (Added in 7.25.0)
|
||||||
.IP "--socks4 <host[:port]>"
|
.IP "--socks4 <host[:port]>"
|
||||||
Use the specified SOCKS4 proxy. If the port number is not specified, it is
|
Use the specified SOCKS4 proxy. If the port number is not specified, it is
|
||||||
assumed at port 1080. (Added in 7.15.2)
|
assumed at port 1080. (Added in 7.15.2)
|
||||||
@@ -1322,8 +1354,7 @@ implementation does not. The option \fI--socks5-gssapi-nec\fP allows the
|
|||||||
unprotected exchange of the protection mode negotiation. (Added in 7.19.4).
|
unprotected exchange of the protection mode negotiation. (Added in 7.19.4).
|
||||||
.IP "--stderr <file>"
|
.IP "--stderr <file>"
|
||||||
Redirect all writes to stderr to the specified file instead. If the file name
|
Redirect all writes to stderr to the specified file instead. If the file name
|
||||||
is a plain '-', it is instead written to stdout. This option has no point when
|
is a plain '-', it is instead written to stdout.
|
||||||
you're using a shell with decent redirecting capabilities.
|
|
||||||
|
|
||||||
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 "-t, --telnet-option <OPT=val>"
|
.IP "-t, --telnet-option <OPT=val>"
|
||||||
@@ -1340,7 +1371,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
|
||||||
@@ -1383,7 +1414,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>"
|
||||||
@@ -1468,12 +1499,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
|
||||||
@@ -1484,21 +1524,51 @@ 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 num_connects
|
||||||
The total time, in seconds, that the full operation lasted. The time will be
|
Number of new connects made in the recent transfer. (Added in 7.12.3)
|
||||||
displayed with millisecond resolution.
|
|
||||||
.TP
|
.TP
|
||||||
.B time_namelookup
|
.B num_redirects
|
||||||
The time, in seconds, it took from the start until the name resolving was
|
Number of redirects that were followed in the request. (Added in 7.12.3)
|
||||||
completed.
|
.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 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
|
||||||
@@ -1512,54 +1582,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.
|
||||||
|
|
||||||
@@ -1567,11 +1604,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.
|
||||||
@@ -1606,7 +1647,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.
|
||||||
@@ -1614,16 +1655,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
|
||||||
@@ -1674,6 +1716,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
|
||||||
@@ -1705,7 +1751,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://"
|
||||||
|
6
docs/examples/.gitignore
vendored
6
docs/examples/.gitignore
vendored
@@ -11,6 +11,7 @@ ftp-wildcard
|
|||||||
ftpget
|
ftpget
|
||||||
ftpgetinfo
|
ftpgetinfo
|
||||||
ftpgetresp
|
ftpgetresp
|
||||||
|
ftpsget
|
||||||
ftpupload
|
ftpupload
|
||||||
getinfo
|
getinfo
|
||||||
getinmemory
|
getinmemory
|
||||||
@@ -18,12 +19,15 @@ http-post
|
|||||||
httpcustomheader
|
httpcustomheader
|
||||||
httpput
|
httpput
|
||||||
https
|
https
|
||||||
|
imap
|
||||||
multi-app
|
multi-app
|
||||||
multi-debugcallback
|
multi-debugcallback
|
||||||
multi-double
|
multi-double
|
||||||
multi-post
|
multi-post
|
||||||
multi-single
|
multi-single
|
||||||
persistant
|
persistant
|
||||||
|
pop3s
|
||||||
|
pop3slist
|
||||||
post-callback
|
post-callback
|
||||||
postit2
|
postit2
|
||||||
progressfunc
|
progressfunc
|
||||||
@@ -31,9 +35,11 @@ resolve
|
|||||||
rtsp
|
rtsp
|
||||||
sendrecv
|
sendrecv
|
||||||
sepheaders
|
sepheaders
|
||||||
|
sftpget
|
||||||
simple
|
simple
|
||||||
simplepost
|
simplepost
|
||||||
simplesmtp
|
simplesmtp
|
||||||
simplessl
|
simplessl
|
||||||
smtp-multi
|
smtp-multi
|
||||||
smtp-tls
|
smtp-tls
|
||||||
|
url2file
|
||||||
|
@@ -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
|
||||||
@@ -40,12 +40,12 @@ INCLUDES = -I$(top_builddir)/include/curl \
|
|||||||
|
|
||||||
LIBDIR = $(top_builddir)/lib
|
LIBDIR = $(top_builddir)/lib
|
||||||
|
|
||||||
if STATICLIB
|
AM_CPPFLAGS = -DCURL_NO_OLDIES
|
||||||
# we need this define when building with a static lib on Windows
|
|
||||||
STATICCPPFLAGS = -DCURL_STATICLIB
|
|
||||||
endif
|
|
||||||
|
|
||||||
CPPFLAGS = -DCURL_NO_OLDIES $(STATICCPPFLAGS)
|
# Mostly for Windows build targets, when using static libcurl
|
||||||
|
if USE_CPPFLAG_CURL_STATICLIB
|
||||||
|
AM_CPPFLAGS += -DCURL_STATICLIB
|
||||||
|
endif
|
||||||
|
|
||||||
# Dependencies
|
# Dependencies
|
||||||
LDADD = $(LIBDIR)/libcurl.la
|
LDADD = $(LIBDIR)/libcurl.la
|
||||||
|
@@ -5,7 +5,7 @@ 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
|
progressfunc pop3s pop3slist imap url2file sftpget ftpsget
|
||||||
|
|
||||||
# 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.
|
||||||
|
@@ -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.7
|
||||||
## 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.7
|
||||||
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.8x
|
||||||
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.2
|
||||||
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
|
||||||
@@ -58,7 +52,7 @@ endif
|
|||||||
ifndef LIBIDN_PATH
|
ifndef LIBIDN_PATH
|
||||||
LIBIDN_PATH = ../../../libidn-1.18
|
LIBIDN_PATH = ../../../libidn-1.18
|
||||||
endif
|
endif
|
||||||
# Edit the path below to point to the base of your MS idndlpackage.
|
# Edit the path below to point to the base of your MS IDN package.
|
||||||
# Microsoft Internationalized Domain Names (IDN) Mitigation APIs 1.1
|
# Microsoft Internationalized Domain Names (IDN) Mitigation APIs 1.1
|
||||||
# http://www.microsoft.com/downloads/en/details.aspx?FamilyID=ad6158d7-ddba-416a-9109-07607425a815
|
# http://www.microsoft.com/downloads/en/details.aspx?FamilyID=ad6158d7-ddba-416a-9109-07607425a815
|
||||||
ifndef WINIDN_PATH
|
ifndef WINIDN_PATH
|
||||||
@@ -81,19 +75,44 @@ 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)
|
||||||
CFLAGS += -D_AMD64_
|
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.7
|
||||||
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.8x
|
||||||
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.2
|
||||||
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.
|
||||||
|
@@ -55,6 +55,7 @@ htmltitle.cc - download a HTML file and extract the <title> tag from a HTML
|
|||||||
http-post.c - HTTP POST
|
http-post.c - HTTP POST
|
||||||
httpput.c - HTTP PUT a local file
|
httpput.c - HTTP PUT a local file
|
||||||
https.c - simple HTTPS transfer
|
https.c - simple HTTPS transfer
|
||||||
|
imap.c - simple IMAP transfer
|
||||||
multi-app.c - a multi-interface app
|
multi-app.c - a multi-interface app
|
||||||
multi-debugcallback.c - a multi-interface app using the debug callback
|
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
|
||||||
@@ -63,6 +64,8 @@ multi-single.c - a multi-interface app getting a single file
|
|||||||
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
|
||||||
|
pop3s.c - POP3S transfer
|
||||||
|
pop3slist.c - POP3S LIST
|
||||||
post-callback.c - send a HTTP POST using a callback
|
post-callback.c - send a HTTP POST using a callback
|
||||||
postit2.c - send a HTTP multipart formpost
|
postit2.c - send a HTTP multipart formpost
|
||||||
sampleconv.c - showing how a program on a non-ASCII platform would invoke
|
sampleconv.c - showing how a program on a non-ASCII platform would invoke
|
||||||
@@ -73,4 +76,5 @@ simple.c - the most simple download a URL source
|
|||||||
simplepost.c - HTTP POST
|
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
|
||||||
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,6 +27,7 @@
|
|||||||
# ifdef __VMS
|
# ifdef __VMS
|
||||||
typedef int intptr_t;
|
typedef int intptr_t;
|
||||||
# endif
|
# endif
|
||||||
|
# include <stdint.h>
|
||||||
# include <unistd.h>
|
# include <unistd.h>
|
||||||
#endif
|
#endif
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
@@ -41,7 +42,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"
|
||||||
@@ -88,12 +88,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;
|
||||||
}
|
}
|
||||||
@@ -158,6 +162,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);
|
||||||
|
@@ -239,8 +239,7 @@ static CURLcode sslctxfun(CURL * curl, void * sslctx, void * parm) {
|
|||||||
SSL_CTX_set_cipher_list(ctx,"RC4-MD5");
|
SSL_CTX_set_cipher_list(ctx,"RC4-MD5");
|
||||||
SSL_CTX_set_mode(ctx, SSL_MODE_AUTO_RETRY);
|
SSL_CTX_set_mode(ctx, SSL_MODE_AUTO_RETRY);
|
||||||
|
|
||||||
X509_STORE_add_cert(ctx->cert_store,sk_X509_value(p->ca,
|
X509_STORE_add_cert(SSL_CTX_get_cert_store(ctx), sk_X509_value(p->ca, sk_X509_num(p->ca)-1));
|
||||||
sk_X509_num(p->ca)-1));
|
|
||||||
|
|
||||||
SSL_CTX_set_verify_depth(ctx,2);
|
SSL_CTX_set_verify_depth(ctx,2);
|
||||||
|
|
||||||
|
@@ -132,6 +132,10 @@ int main(void)
|
|||||||
|
|
||||||
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
|
||||||
@@ -36,6 +36,7 @@
|
|||||||
#else
|
#else
|
||||||
#include <sys/types.h> /* socket types */
|
#include <sys/types.h> /* socket types */
|
||||||
#include <sys/socket.h> /* socket definitions */
|
#include <sys/socket.h> /* socket definitions */
|
||||||
|
#include <netinet/in.h>
|
||||||
#include <arpa/inet.h> /* inet (3) funtions */
|
#include <arpa/inet.h> /* inet (3) funtions */
|
||||||
#include <unistd.h> /* misc. UNIX functions */
|
#include <unistd.h> /* misc. UNIX functions */
|
||||||
#endif
|
#endif
|
||||||
@@ -56,7 +57,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;
|
||||||
@@ -65,6 +69,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;
|
||||||
}
|
}
|
||||||
@@ -95,7 +102,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,14 +64,21 @@ 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));
|
||||||
|
|
||||||
/* now extract transfer info */
|
}
|
||||||
curl_easy_getinfo(curl, CURLINFO_SPEED_UPLOAD, &speed_upload);
|
else {
|
||||||
curl_easy_getinfo(curl, CURLINFO_TOTAL_TIME, &total_time);
|
/* now extract transfer info */
|
||||||
|
curl_easy_getinfo(curl, CURLINFO_SPEED_UPLOAD, &speed_upload);
|
||||||
|
curl_easy_getinfo(curl, CURLINFO_TOTAL_TIME, &total_time);
|
||||||
|
|
||||||
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);
|
||||||
|
@@ -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);
|
||||||
|
@@ -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;
|
||||||
}
|
}
|
||||||
|
@@ -38,10 +38,18 @@ 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);
|
||||||
|
@@ -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;
|
||||||
}
|
}
|
||||||
|
@@ -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
|
||||||
@@ -19,27 +19,26 @@
|
|||||||
* KIND, either express or implied.
|
* KIND, either express or implied.
|
||||||
*
|
*
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
/* Simple hack trying to get a valid printf format string for size_t.
|
#include <stdio.h>
|
||||||
* If that fails for your platform you can define your own _FMT_SIZE_T,
|
#include <curl/curl.h>
|
||||||
* f.e.: -D_FMT_SIZE_T="zd"
|
|
||||||
*/
|
|
||||||
#ifndef _PRINTF_MACRO_H
|
|
||||||
#define _PRINTF_MACRO_H
|
|
||||||
|
|
||||||
#ifndef _FMT_SIZE_T
|
int main(void)
|
||||||
#ifdef WIN32
|
{
|
||||||
#define _FMT_SIZE_T "Id"
|
CURL *curl;
|
||||||
#else
|
CURLcode res = CURLE_OK;
|
||||||
/*
|
|
||||||
"zd" is a GNU extension to POSIX; so we dont use it for size_t but hack around
|
|
||||||
#define _FMT_SIZE_T "zd"
|
|
||||||
*/
|
|
||||||
#ifdef __x86_64__
|
|
||||||
#define _FMT_SIZE_T "lu"
|
|
||||||
#else
|
|
||||||
#define _FMT_SIZE_T "u"
|
|
||||||
#endif /* __x86_64__ */
|
|
||||||
#endif /* WIN32 */
|
|
||||||
#endif /* !_FMT_SIZE_T */
|
|
||||||
|
|
||||||
#endif /* !_PRINTF_MACRO_H */
|
curl = curl_easy_init();
|
||||||
|
if(curl) {
|
||||||
|
/* Set username and password */
|
||||||
|
curl_easy_setopt(curl, CURLOPT_USERPWD, "user:password");
|
||||||
|
|
||||||
|
/* This will fetch the mailbox named "foobar" */
|
||||||
|
curl_easy_setopt(curl, CURLOPT_URL, "imap://imap.example.com/foobar");
|
||||||
|
|
||||||
|
res = curl_easy_perform(curl);
|
||||||
|
|
||||||
|
/* always cleanup */
|
||||||
|
curl_easy_cleanup(curl);
|
||||||
|
}
|
||||||
|
return (int)res;
|
||||||
|
}
|
@@ -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);
|
||||||
|
|
||||||
|
@@ -55,7 +55,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,7 +106,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);
|
||||||
|
|
||||||
|
@@ -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);
|
||||||
|
73
docs/examples/pop3s.c
Normal file
73
docs/examples/pop3s.c
Normal file
@@ -0,0 +1,73 @@
|
|||||||
|
/***************************************************************************
|
||||||
|
* _ _ ____ _
|
||||||
|
* Project ___| | | | _ \| |
|
||||||
|
* / __| | | | |_) | |
|
||||||
|
* | (__| |_| | _ <| |___
|
||||||
|
* \___|\___/|_| \_\_____|
|
||||||
|
*
|
||||||
|
* Copyright (C) 1998 - 2011, 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>
|
||||||
|
|
||||||
|
int main(void)
|
||||||
|
{
|
||||||
|
CURL *curl;
|
||||||
|
CURLcode res;
|
||||||
|
|
||||||
|
curl = curl_easy_init();
|
||||||
|
if(curl) {
|
||||||
|
/* Set username and password */
|
||||||
|
curl_easy_setopt(curl, CURLOPT_USERPWD, "user:password");
|
||||||
|
|
||||||
|
/* This will only fetch the message with ID "1" of the given mailbox */
|
||||||
|
curl_easy_setopt(curl, CURLOPT_URL, "pop3s://user@pop.example.com/1");
|
||||||
|
|
||||||
|
#ifdef SKIP_PEER_VERIFICATION
|
||||||
|
/*
|
||||||
|
* If you want to connect to a site who isn't using a certificate that is
|
||||||
|
* signed by one of the certs in the CA bundle you have, you can skip the
|
||||||
|
* verification of the server's certificate. This makes the connection
|
||||||
|
* A LOT LESS SECURE.
|
||||||
|
*
|
||||||
|
* If you have a CA cert for the server stored someplace else than in the
|
||||||
|
* default bundle, then the CURLOPT_CAPATH option might come handy for
|
||||||
|
* you.
|
||||||
|
*/
|
||||||
|
curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 0L);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef SKIP_HOSTNAME_VERFICATION
|
||||||
|
/*
|
||||||
|
* If the site you're connecting to uses a different host name that what
|
||||||
|
* they have mentioned in their server certificate's commonName (or
|
||||||
|
* subjectAltName) fields, libcurl will refuse to connect. You can skip
|
||||||
|
* this check, but this will make the connection less secure.
|
||||||
|
*/
|
||||||
|
curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 0L);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* Perform the request, res will get the return code */
|
||||||
|
res = curl_easy_perform(curl);
|
||||||
|
/* Check for errors */
|
||||||
|
if(res != CURLE_OK)
|
||||||
|
fprintf(stderr, "curl_easy_perform() failed: %s\n",
|
||||||
|
curl_easy_strerror(res));
|
||||||
|
|
||||||
|
/* always cleanup */
|
||||||
|
curl_easy_cleanup(curl);
|
||||||
|
}
|
||||||
|
return 0;
|
||||||
|
}
|
73
docs/examples/pop3slist.c
Normal file
73
docs/examples/pop3slist.c
Normal file
@@ -0,0 +1,73 @@
|
|||||||
|
/***************************************************************************
|
||||||
|
* _ _ ____ _
|
||||||
|
* Project ___| | | | _ \| |
|
||||||
|
* / __| | | | |_) | |
|
||||||
|
* | (__| |_| | _ <| |___
|
||||||
|
* \___|\___/|_| \_\_____|
|
||||||
|
*
|
||||||
|
* Copyright (C) 1998 - 2011, 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>
|
||||||
|
|
||||||
|
int main(void)
|
||||||
|
{
|
||||||
|
CURL *curl;
|
||||||
|
CURLcode res;
|
||||||
|
|
||||||
|
curl = curl_easy_init();
|
||||||
|
if(curl) {
|
||||||
|
/* Set username and password */
|
||||||
|
curl_easy_setopt(curl, CURLOPT_USERPWD, "user:password");
|
||||||
|
|
||||||
|
/* This will list every message of the given mailbox */
|
||||||
|
curl_easy_setopt(curl, CURLOPT_URL, "pop3s://user@pop.example.com/");
|
||||||
|
|
||||||
|
#ifdef SKIP_PEER_VERIFICATION
|
||||||
|
/*
|
||||||
|
* If you want to connect to a site who isn't using a certificate that is
|
||||||
|
* signed by one of the certs in the CA bundle you have, you can skip the
|
||||||
|
* verification of the server's certificate. This makes the connection
|
||||||
|
* A LOT LESS SECURE.
|
||||||
|
*
|
||||||
|
* If you have a CA cert for the server stored someplace else than in the
|
||||||
|
* default bundle, then the CURLOPT_CAPATH option might come handy for
|
||||||
|
* you.
|
||||||
|
*/
|
||||||
|
curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 0L);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef SKIP_HOSTNAME_VERFICATION
|
||||||
|
/*
|
||||||
|
* If the site you're connecting to uses a different host name that what
|
||||||
|
* they have mentioned in their server certificate's commonName (or
|
||||||
|
* subjectAltName) fields, libcurl will refuse to connect. You can skip
|
||||||
|
* this check, but this will make the connection less secure.
|
||||||
|
*/
|
||||||
|
curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 0L);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* Perform the request, res will get the return code */
|
||||||
|
res = curl_easy_perform(curl);
|
||||||
|
/* Check for errors */
|
||||||
|
if(res != CURLE_OK)
|
||||||
|
fprintf(stderr, "curl_easy_perform() failed: %s\n",
|
||||||
|
curl_easy_strerror(res));
|
||||||
|
|
||||||
|
/* always cleanup */
|
||||||
|
curl_easy_cleanup(curl);
|
||||||
|
}
|
||||||
|
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
|
||||||
@@ -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)
|
||||||
@@ -60,6 +60,16 @@ int main(void)
|
|||||||
pooh.readptr = data;
|
pooh.readptr = data;
|
||||||
pooh.sizeleft = strlen(data);
|
pooh.sizeleft = 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);
|
||||||
|
@@ -22,12 +22,32 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <curl/curl.h>
|
#include <curl/curl.h>
|
||||||
|
|
||||||
#define STOP_DOWNLOAD_AFTER_THIS_MANY_BYTES 6000
|
#define STOP_DOWNLOAD_AFTER_THIS_MANY_BYTES 6000
|
||||||
|
#define MINIMAL_PROGRESS_FUNCTIONALITY_INTERVAL 3
|
||||||
|
|
||||||
|
struct myprogress {
|
||||||
|
double lastruntime;
|
||||||
|
CURL *curl;
|
||||||
|
};
|
||||||
|
|
||||||
static int progress(void *p,
|
static int progress(void *p,
|
||||||
double dltotal, double dlnow,
|
double dltotal, double dlnow,
|
||||||
double ultotal, double ulnow)
|
double ultotal, double ulnow)
|
||||||
{
|
{
|
||||||
|
struct myprogress *myp = (struct myprogress *)p;
|
||||||
|
CURL *curl = myp->curl;
|
||||||
|
double curtime = 0;
|
||||||
|
|
||||||
|
curl_easy_getinfo(curl, CURLINFO_TOTAL_TIME, &curtime);
|
||||||
|
|
||||||
|
/* under certain circumstances it may be desirable for certain functionality
|
||||||
|
to only run every N seconds, in order to do this the transaction time can
|
||||||
|
be used */
|
||||||
|
if((curtime - myp->lastruntime) >= MINIMAL_PROGRESS_FUNCTIONALITY_INTERVAL) {
|
||||||
|
myp->lastruntime = curtime;
|
||||||
|
fprintf(stderr, "TOTAL TIME: %f \r\n", curtime);
|
||||||
|
}
|
||||||
|
|
||||||
fprintf(stderr, "UP: %g of %g DOWN: %g of %g\r\n",
|
fprintf(stderr, "UP: %g of %g DOWN: %g of %g\r\n",
|
||||||
ulnow, ultotal, dlnow, dltotal);
|
ulnow, ultotal, dlnow, dltotal);
|
||||||
|
|
||||||
@@ -40,11 +60,17 @@ int main(void)
|
|||||||
{
|
{
|
||||||
CURL *curl;
|
CURL *curl;
|
||||||
CURLcode res=0;
|
CURLcode res=0;
|
||||||
|
struct myprogress prog;
|
||||||
|
|
||||||
curl = curl_easy_init();
|
curl = curl_easy_init();
|
||||||
if(curl) {
|
if(curl) {
|
||||||
|
prog.lastruntime = 0;
|
||||||
|
prog.curl = curl;
|
||||||
|
|
||||||
curl_easy_setopt(curl, CURLOPT_URL, "http://example.com/");
|
curl_easy_setopt(curl, CURLOPT_URL, "http://example.com/");
|
||||||
curl_easy_setopt(curl, CURLOPT_PROGRESSFUNCTION, progress);
|
curl_easy_setopt(curl, CURLOPT_PROGRESSFUNCTION, progress);
|
||||||
|
/* pass the struct pointer into the progress function */
|
||||||
|
curl_easy_setopt(curl, CURLOPT_PROGRESSDATA, &prog);
|
||||||
curl_easy_setopt(curl, CURLOPT_NOPROGRESS, 0L);
|
curl_easy_setopt(curl, CURLOPT_NOPROGRESS, 0L);
|
||||||
res = curl_easy_perform(curl);
|
res = curl_easy_perform(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
|
||||||
@@ -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 */
|
||||||
|
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;
|
||||||
|
}
|
@@ -30,7 +30,13 @@ 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");
|
||||||
|
|
||||||
|
/* 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);
|
||||||
|
@@ -118,7 +118,13 @@ 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);
|
||||||
|
/* Check for errors */
|
||||||
|
if(res != CURLE_OK)
|
||||||
|
fprintf(stderr, "curl_easy_perform() failed: %s\n",
|
||||||
|
curl_easy_strerror(res));
|
||||||
|
|
||||||
break; /* we are done... */
|
break; /* we are done... */
|
||||||
}
|
}
|
||||||
/* always cleanup */
|
/* always cleanup */
|
||||||
|
@@ -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);
|
||||||
|
81
docs/examples/url2file.c
Normal file
81
docs/examples/url2file.c
Normal file
@@ -0,0 +1,81 @@
|
|||||||
|
/***************************************************************************
|
||||||
|
* _ _ ____ _
|
||||||
|
* 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 <stdlib.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
|
||||||
|
#include <curl/curl.h>
|
||||||
|
|
||||||
|
static size_t write_data(void *ptr, size_t size, size_t nmemb, void *stream)
|
||||||
|
{
|
||||||
|
size_t written = fwrite(ptr, size, nmemb, (FILE *)stream);
|
||||||
|
return written;
|
||||||
|
}
|
||||||
|
|
||||||
|
int main(int argc, char *argv[])
|
||||||
|
{
|
||||||
|
CURL *curl_handle;
|
||||||
|
static const char *pagefilename = "page.out";
|
||||||
|
FILE *pagefile;
|
||||||
|
|
||||||
|
if(argc < 2 ) {
|
||||||
|
printf("Usage: %s <URL>\n", argv[0]);
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
curl_global_init(CURL_GLOBAL_ALL);
|
||||||
|
|
||||||
|
/* init the curl session */
|
||||||
|
curl_handle = curl_easy_init();
|
||||||
|
|
||||||
|
/* set URL to get here */
|
||||||
|
curl_easy_setopt(curl_handle, CURLOPT_URL, argv[1]);
|
||||||
|
|
||||||
|
/* Switch on full protocol/debug output while testing */
|
||||||
|
curl_easy_setopt(curl_handle, CURLOPT_VERBOSE, 1L);
|
||||||
|
|
||||||
|
/* disable progress meter, set to 0L to enable and disable debug output */
|
||||||
|
curl_easy_setopt(curl_handle, CURLOPT_NOPROGRESS, 1L);
|
||||||
|
|
||||||
|
/* send all data to this function */
|
||||||
|
curl_easy_setopt(curl_handle, CURLOPT_WRITEFUNCTION, write_data);
|
||||||
|
|
||||||
|
/* open the file */
|
||||||
|
pagefile = fopen(pagefilename, "wb");
|
||||||
|
if (pagefile) {
|
||||||
|
|
||||||
|
/* write the page body to this file handle. CURLOPT_FILE is also known as
|
||||||
|
CURLOPT_WRITEDATA*/
|
||||||
|
curl_easy_setopt(curl_handle, CURLOPT_FILE, pagefile);
|
||||||
|
|
||||||
|
/* get it! */
|
||||||
|
curl_easy_perform(curl_handle);
|
||||||
|
|
||||||
|
/* close the header file */
|
||||||
|
fclose(pagefile);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* cleanup curl stuff */
|
||||||
|
curl_easy_cleanup(curl_handle);
|
||||||
|
|
||||||
|
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,12 +77,12 @@ 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)
|
||||||
|
|
||||||
EXTRA_DIST = $(man_MANS) $(HTMLPAGES) index.html $(PDFPAGES) libcurl.m4 ABI \
|
EXTRA_DIST = $(man_MANS) $(HTMLPAGES) index.html $(PDFPAGES) libcurl.m4 ABI \
|
||||||
symbols-in-versions
|
symbols-in-versions symbols.pl
|
||||||
MAN2HTML= roffit --mandir=. < $< >$@
|
MAN2HTML= roffit --mandir=. < $< >$@
|
||||||
|
|
||||||
SUFFIXES = .3 .html
|
SUFFIXES = .3 .html
|
||||||
|
@@ -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
|
||||||
@@ -44,11 +44,13 @@ The following information can be extracted:
|
|||||||
.IP CURLINFO_EFFECTIVE_URL
|
.IP CURLINFO_EFFECTIVE_URL
|
||||||
Pass a pointer to a char pointer to receive the last used effective URL.
|
Pass a pointer to a char pointer to receive the last used effective URL.
|
||||||
.IP CURLINFO_RESPONSE_CODE
|
.IP CURLINFO_RESPONSE_CODE
|
||||||
Pass a pointer to a long to receive the last received HTTP or FTP code. This
|
Pass a pointer to a long to receive the last received HTTP, FTP or SMTP
|
||||||
option was known as CURLINFO_HTTP_CODE in libcurl 7.10.7 and earlier. This
|
response code. This option was previously known as CURLINFO_HTTP_CODE in
|
||||||
will be zero if no server response code has been received. Note that a proxy's
|
libcurl 7.10.7 and earlier. The value will be zero if no server response code
|
||||||
CONNECT response should be read with \fICURLINFO_HTTP_CONNECTCODE\fP and not
|
has been received. Note that a proxy's CONNECT response should be read with
|
||||||
this.
|
\fICURLINFO_HTTP_CONNECTCODE\fP and not this.
|
||||||
|
|
||||||
|
Support for SMTP responses added in 7.25.0.
|
||||||
.IP CURLINFO_HTTP_CONNECTCODE
|
.IP CURLINFO_HTTP_CONNECTCODE
|
||||||
Pass a pointer to a long to receive the last received proxy response code to a
|
Pass a pointer to a long to receive the last received proxy response code to a
|
||||||
CONNECT request.
|
CONNECT request.
|
||||||
|
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 - 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,9 +23,9 @@
|
|||||||
.SH NAME
|
.SH NAME
|
||||||
curl_easy_strerror - return string describing error code
|
curl_easy_strerror - return string describing error code
|
||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
.nf
|
#include <curl/curl.h>
|
||||||
.B #include <curl/curl.h>
|
|
||||||
.BI "const char *curl_easy_strerror(CURLcode " errornum ");"
|
const char *curl_easy_strerror(CURLcode errornum);
|
||||||
.SH DESCRIPTION
|
.SH DESCRIPTION
|
||||||
The curl_easy_strerror() function returns a string describing the CURLcode
|
The curl_easy_strerror() function returns a string describing the CURLcode
|
||||||
error code passed in the argument \fIerrornum\fP.
|
error code passed in the argument \fIerrornum\fP.
|
||||||
|
@@ -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
|
||||||
@@ -66,6 +66,10 @@ 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.
|
||||||
.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.
|
||||||
|
@@ -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), "
|
||||||
|
@@ -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
|
||||||
@@ -132,8 +132,8 @@ timeout value to use when waiting for socket activities.
|
|||||||
them for activity. This can be done through your application code, or by way
|
them for activity. This can be done through your application code, or by way
|
||||||
of an external library such as libevent or glib.
|
of an external library such as libevent or glib.
|
||||||
|
|
||||||
6. Call curl_multi_socket_action() to kickstart everything. To get one or more
|
6. Call curl_multi_socket_action(...CURL_SOCKET_TIMEOUT...) to kickstart
|
||||||
callbacks called.
|
everything. To get one or more callbacks called.
|
||||||
|
|
||||||
7. Wait for activity on any of libcurl's sockets, use the timeout value your
|
7. Wait for activity on any of libcurl's sockets, use the timeout value your
|
||||||
callback has been told
|
callback has been told
|
||||||
|
75
docs/libcurl/curl_multi_wait.3
Normal file
75
docs/libcurl/curl_multi_wait.3
Normal file
@@ -0,0 +1,75 @@
|
|||||||
|
.\" **************************************************************************
|
||||||
|
.\" * _ _ ____ _
|
||||||
|
.\" * 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.
|
||||||
|
.\" *
|
||||||
|
.\" **************************************************************************
|
||||||
|
.TH curl_multi_wait 3 "12 Jul 2012" "libcurl 7.28.0" "libcurl Manual"
|
||||||
|
.SH NAME
|
||||||
|
curl_multi_wait - polls on all easy handles in a multi handle
|
||||||
|
.SH SYNOPSIS
|
||||||
|
.nf
|
||||||
|
#include <curl/curl.h>
|
||||||
|
|
||||||
|
CURLMcode curl_multi_wait(CURLM *multi_handle,
|
||||||
|
struct curl_waitfd extra_fds[],
|
||||||
|
unsigned int extra_nfds,
|
||||||
|
int timeout_ms,
|
||||||
|
int *numfds);
|
||||||
|
.ad
|
||||||
|
.SH DESCRIPTION
|
||||||
|
This function polls on all file descriptors used by the curl easy handles
|
||||||
|
contained in the given multi handle set. It will block until activity is
|
||||||
|
detected on at least one of the handles or \fItimeout_ms\fP has passed.
|
||||||
|
|
||||||
|
The calling application may pass additional curl_waitfd structures which are
|
||||||
|
similar to \fIpoll(2)\fP's pollfd structure to be waited on in the same call.
|
||||||
|
|
||||||
|
On completion, if \fInumfds\fP is supplied, it will be populated with the
|
||||||
|
number of file descriptors on which interesting events occured.
|
||||||
|
|
||||||
|
If no extra file descriptors are provided and libcurl has no file descriptor
|
||||||
|
to offer to wait for, this function will return immediately.
|
||||||
|
|
||||||
|
This function is encouraged to be used instead of select(3) when using the
|
||||||
|
multi interface to allow applications to easier circumvent the common problem
|
||||||
|
with 1024 maximum file descriptors.
|
||||||
|
.SH curl_waitfd
|
||||||
|
.nf
|
||||||
|
struct curl_waitfd {
|
||||||
|
curl_socket_t fd;
|
||||||
|
short events;
|
||||||
|
short revents;
|
||||||
|
};
|
||||||
|
.fi
|
||||||
|
.IP CURL_WAIT_POLLIN
|
||||||
|
Bit flag to curl_waitfd.events indicating the socket should poll on read
|
||||||
|
events such as new data received.
|
||||||
|
.IP CURL_WAIT_POLLPRI
|
||||||
|
Bit flag to curl_waitfd.events indicating the socket should poll on high
|
||||||
|
priority read events such as out of band data.
|
||||||
|
.IP CURL_WAIT_POLLOUT
|
||||||
|
Bit flag to curl_waitfd.events indicating the socket should poll on write
|
||||||
|
events such as the socket being clear to write without blocking.
|
||||||
|
.SH RETURN VALUE
|
||||||
|
CURLMcode type, general libcurl multi interface error code. See
|
||||||
|
\fIlibcurl-errors(3)\fP
|
||||||
|
.SH AVAILABILITY
|
||||||
|
This function was added in libcurl 7.28.0.
|
||||||
|
.SH "SEE ALSO"
|
||||||
|
.BR curl_multi_fdset "(3), " curl_multi_perform "(3)"
|
@@ -65,7 +65,7 @@ object. Note that when you use the multi interface, all easy handles added to
|
|||||||
the same multi handle will share DNS cache by default without this having to
|
the same multi handle will share DNS cache by default without this having to
|
||||||
be used!
|
be used!
|
||||||
.IP CURL_LOCK_DATA_SSL_SESSION
|
.IP CURL_LOCK_DATA_SSL_SESSION
|
||||||
SSL session IDs will be shared accross the easy handles using this shared
|
SSL session IDs will be shared across the easy handles using this shared
|
||||||
object. This will reduce the time spent in the SSL handshake when reconnecting
|
object. This will reduce the time spent in the SSL handshake when reconnecting
|
||||||
to the same server. Note SSL session IDs are reused within the same easy handle
|
to the same server. Note SSL session IDs are reused within the same easy handle
|
||||||
by default.
|
by default.
|
||||||
|
@@ -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
|
||||||
@@ -66,20 +66,21 @@ remote server is probably not an OK FTP server.
|
|||||||
.IP "CURLE_REMOTE_ACCESS_DENIED (9)"
|
.IP "CURLE_REMOTE_ACCESS_DENIED (9)"
|
||||||
We were denied access to the resource given in the URL. For FTP, this occurs
|
We were denied access to the resource given in the URL. For FTP, this occurs
|
||||||
while trying to change to the remote directory.
|
while trying to change to the remote directory.
|
||||||
|
.IP "CURLE_FTP_ACCEPT_FAILED (10)"
|
||||||
|
While waiting for the server to connect back when an active FTP session is
|
||||||
|
used, an error code was sent over the control connection or similar.
|
||||||
.IP "CURLE_FTP_WEIRD_PASS_REPLY (11)"
|
.IP "CURLE_FTP_WEIRD_PASS_REPLY (11)"
|
||||||
After having sent the FTP password to the server, libcurl expects a proper
|
After having sent the FTP password to the server, libcurl expects a proper
|
||||||
reply. This error code indicates that an unexpected code was returned.
|
reply. This error code indicates that an unexpected code was returned.
|
||||||
|
.IP "CURLE_FTP_ACCEPT_TIMEOUT (12)"
|
||||||
|
During an active FTP session while waiting for the server to connect, the
|
||||||
|
\fICURLOPT_ACCEPTTIMOUT_MS\fP (or the internal default) timeout expired.
|
||||||
.IP "CURLE_FTP_WEIRD_PASV_REPLY (13)"
|
.IP "CURLE_FTP_WEIRD_PASV_REPLY (13)"
|
||||||
libcurl failed to get a sensible result back from the server as a response to
|
libcurl failed to get a sensible result back from the server as a response to
|
||||||
either a PASV or a EPSV command. The server is flawed.
|
either a PASV or a EPSV command. The server is flawed.
|
||||||
.IP "CURLE_FTP_WEIRD_227_FORMAT (14)"
|
.IP "CURLE_FTP_WEIRD_227_FORMAT (14)"
|
||||||
FTP servers return a 227-line as a response to a PASV command. If libcurl
|
FTP servers return a 227-line as a response to a PASV command. If libcurl
|
||||||
fails to parse that line, this return code is passed back.
|
fails to parse that line, this return code is passed back.
|
||||||
.IP "CURLE_FTP_PRET_FAILED (84)"
|
|
||||||
The FTP server does not understand the PRET command at all or does not support
|
|
||||||
the given argument. Be careful when using \fICURLOPT_CUSTOMREQUEST\fP, a
|
|
||||||
custom LIST command will be sent with PRET CMD before PASV as well. (Added in
|
|
||||||
7.20.0)
|
|
||||||
.IP "CURLE_FTP_CANT_GET_HOST (15)"
|
.IP "CURLE_FTP_CANT_GET_HOST (15)"
|
||||||
An internal failure to lookup the host used for the new connection.
|
An internal failure to lookup the host used for the new connection.
|
||||||
.IP "CURLE_FTP_COULDNT_SET_TYPE (17)"
|
.IP "CURLE_FTP_COULDNT_SET_TYPE (17)"
|
||||||
@@ -227,7 +228,10 @@ Failed to load CRL file (Added in 7.19.0)
|
|||||||
.IP "CURLE_SSL_ISSUER_ERROR (83)"
|
.IP "CURLE_SSL_ISSUER_ERROR (83)"
|
||||||
Issuer check failed (Added in 7.19.0)
|
Issuer check failed (Added in 7.19.0)
|
||||||
.IP "CURLE_FTP_PRET_FAILED (84)"
|
.IP "CURLE_FTP_PRET_FAILED (84)"
|
||||||
PRET command failed
|
The FTP server does not understand the PRET command at all or does not support
|
||||||
|
the given argument. Be careful when using \fICURLOPT_CUSTOMREQUEST\fP, a
|
||||||
|
custom LIST command will be sent with PRET CMD before PASV as well. (Added in
|
||||||
|
7.20.0)
|
||||||
.IP "CURLE_RTSP_CSEQ_ERROR (85)"
|
.IP "CURLE_RTSP_CSEQ_ERROR (85)"
|
||||||
Mismatch of RTSP CSeq numbers.
|
Mismatch of RTSP CSeq numbers.
|
||||||
.IP "CURLE_RTSP_SESSION_ERROR (86)"
|
.IP "CURLE_RTSP_SESSION_ERROR (86)"
|
||||||
@@ -244,7 +248,10 @@ This is the generic return code used by functions in the libcurl multi
|
|||||||
interface. Also consider \fIcurl_multi_strerror(3)\fP.
|
interface. Also consider \fIcurl_multi_strerror(3)\fP.
|
||||||
.IP "CURLM_CALL_MULTI_PERFORM (-1)"
|
.IP "CURLM_CALL_MULTI_PERFORM (-1)"
|
||||||
This is not really an error. It means you should call
|
This is not really an error. It means you should call
|
||||||
\fIcurl_multi_perform(3)\fP again without doing select() or similar in between.
|
\fIcurl_multi_perform(3)\fP again without doing select() or similar in
|
||||||
|
between. Before version 7.20.0 this could be returned by
|
||||||
|
\fIcurl_multi_perform(3)\fP, but in later versions this return code is never
|
||||||
|
used.
|
||||||
.IP "CURLM_OK (0)"
|
.IP "CURLM_OK (0)"
|
||||||
Things are fine.
|
Things are fine.
|
||||||
.IP "CURLM_BAD_HANDLE (1)"
|
.IP "CURLM_BAD_HANDLE (1)"
|
||||||
@@ -278,5 +285,5 @@ An invalid share object was passed to the function.
|
|||||||
Not enough memory was available.
|
Not enough memory was available.
|
||||||
(Added in 7.12.0)
|
(Added in 7.12.0)
|
||||||
.IP "CURLSHE_NOT_BUILT_IN (5)"
|
.IP "CURLSHE_NOT_BUILT_IN (5)"
|
||||||
The requsted sharing could not be done because the library you use don't have
|
The requested sharing could not be done because the library you use don't have
|
||||||
that particular feature enabled. (Added in 7.23.0)
|
that particular feature enabled. (Added in 7.23.0)
|
||||||
|
@@ -144,7 +144,6 @@ the future, you should be aware of the following current restrictions:
|
|||||||
.nf
|
.nf
|
||||||
- Name resolves unless the c-ares or threaded-resolver backends are used
|
- Name resolves unless the c-ares or threaded-resolver backends are used
|
||||||
- NSS SSL connections
|
- NSS SSL connections
|
||||||
- Active FTP connections
|
|
||||||
- HTTP proxy CONNECT operations
|
- HTTP proxy CONNECT operations
|
||||||
- SOCKS proxy handshakes
|
- SOCKS proxy handshakes
|
||||||
- file:// transfers
|
- file:// transfers
|
||||||
|
@@ -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
|
||||||
@@ -41,8 +41,7 @@ You create a shared object with \fIcurl_share_init(3)\fP. It returns a handle
|
|||||||
for a newly created one.
|
for a newly created one.
|
||||||
|
|
||||||
You tell the shared object what data you want it to share by using
|
You tell the shared object what data you want it to share by using
|
||||||
\fIcurl_share_setopt(3)\fP. Currently you can only share DNS and/or COOKIE
|
\fIcurl_share_setopt(3)\fP.
|
||||||
data.
|
|
||||||
|
|
||||||
Since you can use this share from multiple threads, and libcurl has no
|
Since you can use this share from multiple threads, and libcurl has no
|
||||||
internal thread synchronization, you must provide mutex callbacks if you're
|
internal thread synchronization, you must provide mutex callbacks if you're
|
||||||
|
@@ -817,10 +817,6 @@ This header is required by HTTP 1.1 and even many 1.0 servers and should be
|
|||||||
the name of the server we want to talk to. This includes the port number if
|
the name of the server we want to talk to. This includes the port number if
|
||||||
anything but default.
|
anything but default.
|
||||||
|
|
||||||
.IP "Pragma"
|
|
||||||
\&"no-cache". Tells a possible proxy to not grab a copy from the cache but to
|
|
||||||
fetch a fresh one.
|
|
||||||
|
|
||||||
.IP "Accept"
|
.IP "Accept"
|
||||||
\&"*/*".
|
\&"*/*".
|
||||||
|
|
||||||
@@ -1303,9 +1299,7 @@ ones at any time), you start the transfers by calling
|
|||||||
|
|
||||||
\fIcurl_multi_perform(3)\fP is asynchronous. It will only execute as little as
|
\fIcurl_multi_perform(3)\fP is asynchronous. It will only execute as little as
|
||||||
possible and then return back control to your program. It is designed to never
|
possible and then return back control to your program. It is designed to never
|
||||||
block. If it returns CURLM_CALL_MULTI_PERFORM you better call it again soon,
|
block.
|
||||||
as that is a signal that it still has local data to send or remote data to
|
|
||||||
receive.
|
|
||||||
|
|
||||||
The best usage of this interface is when you do a select() on all possible
|
The best usage of this interface is when you do a select() on all possible
|
||||||
file descriptors or sockets to know when to call libcurl again. This also
|
file descriptors or sockets to know when to call libcurl again. This also
|
||||||
@@ -1341,9 +1335,21 @@ to figure out success on each individual transfer.
|
|||||||
[ seeding, passwords, keys, certificates, ENGINE, ca certs ]
|
[ seeding, passwords, keys, certificates, ENGINE, ca certs ]
|
||||||
|
|
||||||
.SH "Sharing Data Between Easy Handles"
|
.SH "Sharing Data Between Easy Handles"
|
||||||
|
You can share some data between easy handles when the easy interface is used,
|
||||||
|
and some data is share automatically when you use the multi interface.
|
||||||
|
|
||||||
[ fill in ]
|
When you add easy handles to a multi handle, these easy handles will
|
||||||
|
automatically share a lot of the data that otherwise would be kept on a
|
||||||
|
per-easy handle basis when the easy interface is used.
|
||||||
|
|
||||||
|
The DNS cache is shared between handles within a multi handle, making
|
||||||
|
subsequent name resolvings faster and the connection pool that is kept to
|
||||||
|
better allow persistent connections and connection re-use is shared. If you're
|
||||||
|
using the easy interface, you can still share these between specific easy
|
||||||
|
handles by using the share interface, see \fIlibcurl-share(3)\fP.
|
||||||
|
|
||||||
|
Some things are never shared automatically, not within multi handles, like for
|
||||||
|
example cookies so the only way to share that is with the share interface.
|
||||||
.SH "Footnotes"
|
.SH "Footnotes"
|
||||||
|
|
||||||
.IP "[1]"
|
.IP "[1]"
|
||||||
|
@@ -146,7 +146,7 @@ AC_DEFUN([LIBCURL_CHECK_CONFIG],
|
|||||||
_libcurl_save_libs=$LIBS
|
_libcurl_save_libs=$LIBS
|
||||||
LIBS="$LIBCURL $LIBS"
|
LIBS="$LIBCURL $LIBS"
|
||||||
|
|
||||||
AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <curl/curl.h>],[
|
AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <curl/curl.h>]],[[
|
||||||
/* Try and use a few common options to force a failure if we are
|
/* Try and use a few common options to force a failure if we are
|
||||||
missing symbols or can't link. */
|
missing symbols or can't link. */
|
||||||
int x;
|
int x;
|
||||||
@@ -158,7 +158,7 @@ x=CURLOPT_ERRORBUFFER;
|
|||||||
x=CURLOPT_STDERR;
|
x=CURLOPT_STDERR;
|
||||||
x=CURLOPT_VERBOSE;
|
x=CURLOPT_VERBOSE;
|
||||||
if (x) ;
|
if (x) ;
|
||||||
])],libcurl_cv_lib_curl_usable=yes,libcurl_cv_lib_curl_usable=no)
|
]])],libcurl_cv_lib_curl_usable=yes,libcurl_cv_lib_curl_usable=no)
|
||||||
|
|
||||||
CPPFLAGS=$_libcurl_save_cppflags
|
CPPFLAGS=$_libcurl_save_cppflags
|
||||||
LIBS=$_libcurl_save_libs
|
LIBS=$_libcurl_save_libs
|
||||||
|
@@ -45,6 +45,8 @@ CURLE_COULDNT_RESOLVE_PROXY 7.1
|
|||||||
CURLE_FAILED_INIT 7.1
|
CURLE_FAILED_INIT 7.1
|
||||||
CURLE_FILESIZE_EXCEEDED 7.10.8
|
CURLE_FILESIZE_EXCEEDED 7.10.8
|
||||||
CURLE_FILE_COULDNT_READ_FILE 7.1
|
CURLE_FILE_COULDNT_READ_FILE 7.1
|
||||||
|
CURLE_FTP_ACCEPT_FAILED 7.24.0
|
||||||
|
CURLE_FTP_ACCEPT_TIMEOUT 7.24.0
|
||||||
CURLE_FTP_ACCESS_DENIED 7.1
|
CURLE_FTP_ACCESS_DENIED 7.1
|
||||||
CURLE_FTP_BAD_DOWNLOAD_RESUME 7.1 7.1
|
CURLE_FTP_BAD_DOWNLOAD_RESUME 7.1 7.1
|
||||||
CURLE_FTP_BAD_FILE_LIST 7.21.0
|
CURLE_FTP_BAD_FILE_LIST 7.21.0
|
||||||
@@ -286,6 +288,7 @@ CURLOPTTYPE_FUNCTIONPOINT 7.1
|
|||||||
CURLOPTTYPE_LONG 7.1
|
CURLOPTTYPE_LONG 7.1
|
||||||
CURLOPTTYPE_OBJECTPOINT 7.1
|
CURLOPTTYPE_OBJECTPOINT 7.1
|
||||||
CURLOPTTYPE_OFF_T 7.11.0
|
CURLOPTTYPE_OFF_T 7.11.0
|
||||||
|
CURLOPT_ACCEPTTIMEOUT_MS 7.24.0
|
||||||
CURLOPT_ACCEPT_ENCODING 7.21.6
|
CURLOPT_ACCEPT_ENCODING 7.21.6
|
||||||
CURLOPT_ADDRESS_SCOPE 7.19.0
|
CURLOPT_ADDRESS_SCOPE 7.19.0
|
||||||
CURLOPT_APPEND 7.17.0
|
CURLOPT_APPEND 7.17.0
|
||||||
@@ -320,6 +323,7 @@ CURLOPT_DEBUGDATA 7.9.6
|
|||||||
CURLOPT_DEBUGFUNCTION 7.9.6
|
CURLOPT_DEBUGFUNCTION 7.9.6
|
||||||
CURLOPT_DIRLISTONLY 7.17.0
|
CURLOPT_DIRLISTONLY 7.17.0
|
||||||
CURLOPT_DNS_CACHE_TIMEOUT 7.9.3
|
CURLOPT_DNS_CACHE_TIMEOUT 7.9.3
|
||||||
|
CURLOPT_DNS_SERVERS 7.24.0
|
||||||
CURLOPT_DNS_USE_GLOBAL_CACHE 7.9.3 7.11.1
|
CURLOPT_DNS_USE_GLOBAL_CACHE 7.9.3 7.11.1
|
||||||
CURLOPT_EGDSOCKET 7.7
|
CURLOPT_EGDSOCKET 7.7
|
||||||
CURLOPT_ENCODING 7.10
|
CURLOPT_ENCODING 7.10
|
||||||
@@ -380,6 +384,7 @@ CURLOPT_LOCALPORT 7.15.2
|
|||||||
CURLOPT_LOCALPORTRANGE 7.15.2
|
CURLOPT_LOCALPORTRANGE 7.15.2
|
||||||
CURLOPT_LOW_SPEED_LIMIT 7.1
|
CURLOPT_LOW_SPEED_LIMIT 7.1
|
||||||
CURLOPT_LOW_SPEED_TIME 7.1
|
CURLOPT_LOW_SPEED_TIME 7.1
|
||||||
|
CURLOPT_MAIL_AUTH 7.25.0
|
||||||
CURLOPT_MAIL_FROM 7.20.0
|
CURLOPT_MAIL_FROM 7.20.0
|
||||||
CURLOPT_MAIL_RCPT 7.20.0
|
CURLOPT_MAIL_RCPT 7.20.0
|
||||||
CURLOPT_MAXCONNECTS 7.7
|
CURLOPT_MAXCONNECTS 7.7
|
||||||
@@ -403,7 +408,7 @@ CURLOPT_OPENSOCKETFUNCTION 7.17.1
|
|||||||
CURLOPT_PASSWDDATA 7.4.2 7.11.1 7.15.5
|
CURLOPT_PASSWDDATA 7.4.2 7.11.1 7.15.5
|
||||||
CURLOPT_PASSWDFUNCTION 7.4.2 7.11.1 7.15.5
|
CURLOPT_PASSWDFUNCTION 7.4.2 7.11.1 7.15.5
|
||||||
CURLOPT_PASSWORD 7.19.1
|
CURLOPT_PASSWORD 7.19.1
|
||||||
CURLOPT_PASV_HOST 7.12.1 7.15.6 7.15.5
|
CURLOPT_PASV_HOST 7.12.1 7.16.0 7.15.5
|
||||||
CURLOPT_PORT 7.1
|
CURLOPT_PORT 7.1
|
||||||
CURLOPT_POST 7.1
|
CURLOPT_POST 7.1
|
||||||
CURLOPT_POST301 7.17.1 7.19.1
|
CURLOPT_POST301 7.17.1 7.19.1
|
||||||
@@ -478,10 +483,14 @@ CURLOPT_SSLVERSION 7.1
|
|||||||
CURLOPT_SSL_CIPHER_LIST 7.9
|
CURLOPT_SSL_CIPHER_LIST 7.9
|
||||||
CURLOPT_SSL_CTX_DATA 7.10.6
|
CURLOPT_SSL_CTX_DATA 7.10.6
|
||||||
CURLOPT_SSL_CTX_FUNCTION 7.10.6
|
CURLOPT_SSL_CTX_FUNCTION 7.10.6
|
||||||
|
CURLOPT_SSL_OPTIONS 7.25.0
|
||||||
CURLOPT_SSL_SESSIONID_CACHE 7.16.0
|
CURLOPT_SSL_SESSIONID_CACHE 7.16.0
|
||||||
CURLOPT_SSL_VERIFYHOST 7.8.1
|
CURLOPT_SSL_VERIFYHOST 7.8.1
|
||||||
CURLOPT_SSL_VERIFYPEER 7.4.2
|
CURLOPT_SSL_VERIFYPEER 7.4.2
|
||||||
CURLOPT_STDERR 7.1
|
CURLOPT_STDERR 7.1
|
||||||
|
CURLOPT_TCP_KEEPALIVE 7.25.0
|
||||||
|
CURLOPT_TCP_KEEPIDLE 7.25.0
|
||||||
|
CURLOPT_TCP_KEEPINTVL 7.25.0
|
||||||
CURLOPT_TCP_NODELAY 7.11.2
|
CURLOPT_TCP_NODELAY 7.11.2
|
||||||
CURLOPT_TELNETOPTIONS 7.7
|
CURLOPT_TELNETOPTIONS 7.7
|
||||||
CURLOPT_TFTP_BLKSIZE 7.19.4
|
CURLOPT_TFTP_BLKSIZE 7.19.4
|
||||||
@@ -558,7 +567,9 @@ CURLSHOPT_SHARE 7.10.3
|
|||||||
CURLSHOPT_UNLOCKFUNC 7.10.3
|
CURLSHOPT_UNLOCKFUNC 7.10.3
|
||||||
CURLSHOPT_UNSHARE 7.10.3
|
CURLSHOPT_UNSHARE 7.10.3
|
||||||
CURLSHOPT_USERDATA 7.10.3
|
CURLSHOPT_USERDATA 7.10.3
|
||||||
CURLSOCKTYPE_IPCXN 7.15.6
|
CURLSOCKTYPE_ACCEPT 7.28.0
|
||||||
|
CURLSOCKTYPE_IPCXN 7.16.0
|
||||||
|
CURLSSH_AUTH_AGENT 7.28.0
|
||||||
CURLSSH_AUTH_ANY 7.16.1
|
CURLSSH_AUTH_ANY 7.16.1
|
||||||
CURLSSH_AUTH_DEFAULT 7.16.1
|
CURLSSH_AUTH_DEFAULT 7.16.1
|
||||||
CURLSSH_AUTH_HOST 7.16.1
|
CURLSSH_AUTH_HOST 7.16.1
|
||||||
@@ -566,6 +577,7 @@ CURLSSH_AUTH_KEYBOARD 7.16.1
|
|||||||
CURLSSH_AUTH_NONE 7.16.1
|
CURLSSH_AUTH_NONE 7.16.1
|
||||||
CURLSSH_AUTH_PASSWORD 7.16.1
|
CURLSSH_AUTH_PASSWORD 7.16.1
|
||||||
CURLSSH_AUTH_PUBLICKEY 7.16.1
|
CURLSSH_AUTH_PUBLICKEY 7.16.1
|
||||||
|
CURLSSLOPT_ALLOW_BEAST 7.25.0
|
||||||
CURLUSESSL_ALL 7.17.0
|
CURLUSESSL_ALL 7.17.0
|
||||||
CURLUSESSL_CONTROL 7.17.0
|
CURLUSESSL_CONTROL 7.17.0
|
||||||
CURLUSESSL_NONE 7.17.0
|
CURLUSESSL_NONE 7.17.0
|
||||||
@@ -639,6 +651,7 @@ CURL_READFUNC_PAUSE 7.18.0
|
|||||||
CURL_REDIR_GET_ALL 7.19.1
|
CURL_REDIR_GET_ALL 7.19.1
|
||||||
CURL_REDIR_POST_301 7.19.1
|
CURL_REDIR_POST_301 7.19.1
|
||||||
CURL_REDIR_POST_302 7.19.1
|
CURL_REDIR_POST_302 7.19.1
|
||||||
|
CURL_REDIR_POST_303 7.25.1
|
||||||
CURL_REDIR_POST_ALL 7.19.1
|
CURL_REDIR_POST_ALL 7.19.1
|
||||||
CURL_RTSPREQ_ANNOUNCE 7.20.0
|
CURL_RTSPREQ_ANNOUNCE 7.20.0
|
||||||
CURL_RTSPREQ_DESCRIBE 7.20.0
|
CURL_RTSPREQ_DESCRIBE 7.20.0
|
||||||
@@ -686,4 +699,7 @@ CURL_VERSION_SPNEGO 7.10.8
|
|||||||
CURL_VERSION_SSL 7.10
|
CURL_VERSION_SSL 7.10
|
||||||
CURL_VERSION_SSPI 7.13.2
|
CURL_VERSION_SSPI 7.13.2
|
||||||
CURL_VERSION_TLSAUTH_SRP 7.21.4
|
CURL_VERSION_TLSAUTH_SRP 7.21.4
|
||||||
|
CURL_WAIT_POLLIN 7.28.0
|
||||||
|
CURL_WAIT_POLLOUT 7.28.0
|
||||||
|
CURL_WAIT_POLLPRI 7.28.0
|
||||||
CURL_WRITEFUNC_PAUSE 7.18.0
|
CURL_WRITEFUNC_PAUSE 7.18.0
|
||||||
|
100
docs/libcurl/symbols.pl
Executable file
100
docs/libcurl/symbols.pl
Executable file
@@ -0,0 +1,100 @@
|
|||||||
|
#!/usr/bin/perl
|
||||||
|
#***************************************************************************
|
||||||
|
# _ _ ____ _
|
||||||
|
# Project ___| | | | _ \| |
|
||||||
|
# / __| | | | |_) | |
|
||||||
|
# | (__| |_| | _ <| |___
|
||||||
|
# \___|\___/|_| \_\_____|
|
||||||
|
#
|
||||||
|
# Copyright (C) 2011, 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.
|
||||||
|
#
|
||||||
|
###########################################################################
|
||||||
|
#
|
||||||
|
# Experience has shown that the symbols-in-versions file is very useful to
|
||||||
|
# applications that want to build with a wide range of libcurl versions.
|
||||||
|
# It is however easy to get it wrong and the source gets a bit messy with all
|
||||||
|
# the fixed numerical comparisions.
|
||||||
|
#
|
||||||
|
# The point of this script is to provide an easy-to-use macro for libcurl-
|
||||||
|
# using applications to do preprocessor checks for specific libcurl defines,
|
||||||
|
# and yet make the code clearly show what the macro is used for.
|
||||||
|
#
|
||||||
|
# Run this script and generate libcurl-symbols.h and then use that header in
|
||||||
|
# a fashion similar to:
|
||||||
|
#
|
||||||
|
# #include "libcurl-symbols.h"
|
||||||
|
#
|
||||||
|
# #if LIBCURL_HAS(CURLOPT_MUTE)
|
||||||
|
# has mute
|
||||||
|
# #else
|
||||||
|
# no mute
|
||||||
|
# #endif
|
||||||
|
#
|
||||||
|
#
|
||||||
|
open F, "<symbols-in-versions";
|
||||||
|
|
||||||
|
sub str2num {
|
||||||
|
my ($str)=@_;
|
||||||
|
if($str =~ /([0-9]*)\.([0-9]*)\.*([0-9]*)/) {
|
||||||
|
return sprintf("0x%06x", $1<<16 | $2 << 8 | $3);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
print <<EOS
|
||||||
|
|
||||||
|
#include <curl/curl.h>
|
||||||
|
|
||||||
|
#define LIBCURL_HAS(x) \\
|
||||||
|
(defined(x ## _FIRST) && (x ## _FIRST <= LIBCURL_VERSION_NUM) && \\
|
||||||
|
(!defined(x ## _LAST) || ( x ## _LAST >= LIBCURL_VERSION_NUM)))
|
||||||
|
|
||||||
|
EOS
|
||||||
|
;
|
||||||
|
|
||||||
|
while(<F>) {
|
||||||
|
if(/^(CURL[^ ]*)[ \t]*(.*)/) {
|
||||||
|
my ($sym, $vers)=($1, $2);
|
||||||
|
|
||||||
|
my $intr;
|
||||||
|
my $rm;
|
||||||
|
my $dep;
|
||||||
|
|
||||||
|
# is there removed info?
|
||||||
|
if($vers =~ /([\d.]+)[ \t-]+([\d.]+)[ \t]+([\d.]+)/) {
|
||||||
|
($intr, $dep, $rm)=($1, $2, $3);
|
||||||
|
}
|
||||||
|
# is it a dep-only line?
|
||||||
|
elsif($vers =~ /([\d.]+)[ \t-]+([\d.]+)/) {
|
||||||
|
($intr, $dep)=($1, $2);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
$intr = $vers;
|
||||||
|
}
|
||||||
|
|
||||||
|
my $inum = str2num($intr);
|
||||||
|
|
||||||
|
print <<EOS
|
||||||
|
#define ${sym}_FIRST $inum /* Added in $intr */
|
||||||
|
EOS
|
||||||
|
;
|
||||||
|
my $irm = str2num($rm);
|
||||||
|
if($rm) {
|
||||||
|
print <<EOS
|
||||||
|
#define ${sym}_LAST $irm /* Last featured in $rm */
|
||||||
|
EOS
|
||||||
|
;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
51
docs/mk-ca-bundle.1
Normal file
51
docs/mk-ca-bundle.1
Normal file
@@ -0,0 +1,51 @@
|
|||||||
|
.Dd April 27, 2012
|
||||||
|
.Dt MK-CA-BUNDLE 1
|
||||||
|
.Os
|
||||||
|
.Sh NAME
|
||||||
|
.Nm mk-ca-bundle
|
||||||
|
.Nd create a new ca-bundle.crt from mozilla's certdata.txt
|
||||||
|
.Sh SYNOPSIS
|
||||||
|
.Nm
|
||||||
|
.Op Fl bilnqtuv
|
||||||
|
.Or outputfile
|
||||||
|
.Sh DESCRIPTION
|
||||||
|
The
|
||||||
|
.Nm
|
||||||
|
tool downloads the certdata.txt file from Mozilla's source tree, then
|
||||||
|
parses certdata.txt and extracts CA Root Certificates into PEM format.
|
||||||
|
These are then processed with the OpenSSL commandline tool to produce the
|
||||||
|
final ca-bundle.crt file.
|
||||||
|
.Sh OPTIONS
|
||||||
|
The following options are supported by
|
||||||
|
.Nm :
|
||||||
|
.Bl -tag -width _h
|
||||||
|
.It Fl b
|
||||||
|
backup an existing version of ca-bundle.crt
|
||||||
|
.It Fl i
|
||||||
|
print version info about used modules
|
||||||
|
.It Fl l
|
||||||
|
print license info about certdata.txt
|
||||||
|
.It Fl n
|
||||||
|
no download of certdata.txt (to use existing)
|
||||||
|
.It Fl q
|
||||||
|
be really quiet (no progress output at all)
|
||||||
|
.It Fl t
|
||||||
|
include plain text listing of certificates
|
||||||
|
.It Fl u
|
||||||
|
unlink (remove) certdata.txt after processing
|
||||||
|
.It Fl v
|
||||||
|
be verbose and print out processed CAs
|
||||||
|
.El
|
||||||
|
.Sh EXIT STATUS
|
||||||
|
.Ex -std
|
||||||
|
.Sh SEE ALSO
|
||||||
|
.Xr curl 1
|
||||||
|
.Sh HISTORY
|
||||||
|
.Nm
|
||||||
|
was based on the parse-certs script written by
|
||||||
|
.An Roland Krikava
|
||||||
|
and hacked by
|
||||||
|
.An Guenter Knauf .
|
||||||
|
This manual page was written by
|
||||||
|
.An Jan Schaumann
|
||||||
|
.Aq jschauma@netmeister.org .
|
1
include/curl/.gitignore
vendored
1
include/curl/.gitignore
vendored
@@ -1,3 +1,4 @@
|
|||||||
curlbuild.h
|
curlbuild.h
|
||||||
|
stamp-h2
|
||||||
stamp-h3
|
stamp-h3
|
||||||
curlver.h.dist
|
curlver.h.dist
|
||||||
|
@@ -7,7 +7,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
|
||||||
@@ -69,7 +69,7 @@
|
|||||||
require it! */
|
require it! */
|
||||||
#if defined(_AIX) || defined(__NOVELL_LIBC__) || defined(__NetBSD__) || \
|
#if defined(_AIX) || defined(__NOVELL_LIBC__) || defined(__NetBSD__) || \
|
||||||
defined(__minix) || defined(__SYMBIAN32__) || defined(__INTEGRITY) || \
|
defined(__minix) || defined(__SYMBIAN32__) || defined(__INTEGRITY) || \
|
||||||
defined(ANDROID) || \
|
defined(ANDROID) || defined(__ANDROID__) || \
|
||||||
(defined(__FreeBSD_version) && (__FreeBSD_version < 800000))
|
(defined(__FreeBSD_version) && (__FreeBSD_version < 800000))
|
||||||
#include <sys/select.h>
|
#include <sys/select.h>
|
||||||
#endif
|
#endif
|
||||||
@@ -309,8 +309,9 @@ typedef size_t (*curl_read_callback)(char *buffer,
|
|||||||
void *instream);
|
void *instream);
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
CURLSOCKTYPE_IPCXN, /* socket created for a specific IP connection */
|
CURLSOCKTYPE_IPCXN, /* socket created for a specific IP connection */
|
||||||
CURLSOCKTYPE_LAST /* never use */
|
CURLSOCKTYPE_ACCEPT, /* socket created by accept() call */
|
||||||
|
CURLSOCKTYPE_LAST /* never use */
|
||||||
} curlsocktype;
|
} curlsocktype;
|
||||||
|
|
||||||
/* The return code from the sockopt_callback can signal information back
|
/* The return code from the sockopt_callback can signal information back
|
||||||
@@ -411,9 +412,12 @@ typedef enum {
|
|||||||
CURLE_REMOTE_ACCESS_DENIED, /* 9 a service was denied by the server
|
CURLE_REMOTE_ACCESS_DENIED, /* 9 a service was denied by the server
|
||||||
due to lack of access - when login fails
|
due to lack of access - when login fails
|
||||||
this is not returned. */
|
this is not returned. */
|
||||||
CURLE_OBSOLETE10, /* 10 - NOT USED */
|
CURLE_FTP_ACCEPT_FAILED, /* 10 - [was obsoleted in April 2006 for
|
||||||
|
7.15.4, reused in Dec 2011 for 7.24.0]*/
|
||||||
CURLE_FTP_WEIRD_PASS_REPLY, /* 11 */
|
CURLE_FTP_WEIRD_PASS_REPLY, /* 11 */
|
||||||
CURLE_OBSOLETE12, /* 12 - NOT USED */
|
CURLE_FTP_ACCEPT_TIMEOUT, /* 12 - timeout occurred accepting server
|
||||||
|
[was obsoleted in August 2007 for 7.17.0,
|
||||||
|
reused in Dec 2011 for 7.24.0]*/
|
||||||
CURLE_FTP_WEIRD_PASV_REPLY, /* 13 */
|
CURLE_FTP_WEIRD_PASV_REPLY, /* 13 */
|
||||||
CURLE_FTP_WEIRD_227_FORMAT, /* 14 */
|
CURLE_FTP_WEIRD_227_FORMAT, /* 14 */
|
||||||
CURLE_FTP_CANT_GET_HOST, /* 15 */
|
CURLE_FTP_CANT_GET_HOST, /* 15 */
|
||||||
@@ -511,13 +515,16 @@ typedef enum {
|
|||||||
CURLE_RTSP_SESSION_ERROR, /* 86 - mismatch of RTSP Session Ids */
|
CURLE_RTSP_SESSION_ERROR, /* 86 - mismatch of RTSP Session Ids */
|
||||||
CURLE_FTP_BAD_FILE_LIST, /* 87 - unable to parse FTP file list */
|
CURLE_FTP_BAD_FILE_LIST, /* 87 - unable to parse FTP file list */
|
||||||
CURLE_CHUNK_FAILED, /* 88 - chunk callback reported error */
|
CURLE_CHUNK_FAILED, /* 88 - chunk callback reported error */
|
||||||
|
|
||||||
CURL_LAST /* never use! */
|
CURL_LAST /* never use! */
|
||||||
} CURLcode;
|
} CURLcode;
|
||||||
|
|
||||||
#ifndef CURL_NO_OLDIES /* define this to test if your app builds with all
|
#ifndef CURL_NO_OLDIES /* define this to test if your app builds with all
|
||||||
the obsolete stuff removed! */
|
the obsolete stuff removed! */
|
||||||
|
|
||||||
|
/* Previously obsoletes error codes re-used in 7.24.0 */
|
||||||
|
#define CURLE_OBSOLETE10 CURLE_FTP_ACCEPT_FAILED
|
||||||
|
#define CURLE_OBSOLETE12 CURLE_FTP_ACCEPT_TIMEOUT
|
||||||
|
|
||||||
/* compatibility with older names */
|
/* compatibility with older names */
|
||||||
#define CURLOPT_ENCODING CURLOPT_ACCEPT_ENCODING
|
#define CURLOPT_ENCODING CURLOPT_ACCEPT_ENCODING
|
||||||
|
|
||||||
@@ -592,18 +599,32 @@ typedef enum {
|
|||||||
in 7.18.0 */
|
in 7.18.0 */
|
||||||
} curl_proxytype; /* this enum was added in 7.10 */
|
} curl_proxytype; /* this enum was added in 7.10 */
|
||||||
|
|
||||||
#define CURLAUTH_NONE 0 /* nothing */
|
/*
|
||||||
#define CURLAUTH_BASIC (1<<0) /* Basic (default) */
|
* Bitmasks for CURLOPT_HTTPAUTH and CURLOPT_PROXYAUTH options:
|
||||||
#define CURLAUTH_DIGEST (1<<1) /* Digest */
|
*
|
||||||
#define CURLAUTH_GSSNEGOTIATE (1<<2) /* GSS-Negotiate */
|
* CURLAUTH_NONE - No HTTP authentication
|
||||||
#define CURLAUTH_NTLM (1<<3) /* NTLM */
|
* CURLAUTH_BASIC - HTTP Basic authentication (default)
|
||||||
#define CURLAUTH_DIGEST_IE (1<<4) /* Digest with IE flavour */
|
* CURLAUTH_DIGEST - HTTP Digest authentication
|
||||||
#define CURLAUTH_NTLM_WB (1<<5) /* NTLM delegating to winbind helper */
|
* CURLAUTH_GSSNEGOTIATE - HTTP GSS-Negotiate authentication
|
||||||
#define CURLAUTH_ONLY (1<<31) /* used together with a single other
|
* CURLAUTH_NTLM - HTTP NTLM authentication
|
||||||
type to force no auth or just that
|
* CURLAUTH_DIGEST_IE - HTTP Digest authentication with IE flavour
|
||||||
single type */
|
* CURLAUTH_NTLM_WB - HTTP NTLM authentication delegated to winbind helper
|
||||||
#define CURLAUTH_ANY (~CURLAUTH_DIGEST_IE) /* all fine types set */
|
* CURLAUTH_ONLY - Use together with a single other type to force no
|
||||||
#define CURLAUTH_ANYSAFE (~(CURLAUTH_BASIC|CURLAUTH_DIGEST_IE))
|
* authentication or just that single type
|
||||||
|
* CURLAUTH_ANY - All fine types set
|
||||||
|
* CURLAUTH_ANYSAFE - All fine types except Basic
|
||||||
|
*/
|
||||||
|
|
||||||
|
#define CURLAUTH_NONE ((unsigned long)0)
|
||||||
|
#define CURLAUTH_BASIC (((unsigned long)1)<<0)
|
||||||
|
#define CURLAUTH_DIGEST (((unsigned long)1)<<1)
|
||||||
|
#define CURLAUTH_GSSNEGOTIATE (((unsigned long)1)<<2)
|
||||||
|
#define CURLAUTH_NTLM (((unsigned long)1)<<3)
|
||||||
|
#define CURLAUTH_DIGEST_IE (((unsigned long)1)<<4)
|
||||||
|
#define CURLAUTH_NTLM_WB (((unsigned long)1)<<5)
|
||||||
|
#define CURLAUTH_ONLY (((unsigned long)1)<<31)
|
||||||
|
#define CURLAUTH_ANY (~CURLAUTH_DIGEST_IE)
|
||||||
|
#define CURLAUTH_ANYSAFE (~(CURLAUTH_BASIC|CURLAUTH_DIGEST_IE))
|
||||||
|
|
||||||
#define CURLSSH_AUTH_ANY ~0 /* all types supported by the server */
|
#define CURLSSH_AUTH_ANY ~0 /* all types supported by the server */
|
||||||
#define CURLSSH_AUTH_NONE 0 /* none allowed, silly but complete */
|
#define CURLSSH_AUTH_NONE 0 /* none allowed, silly but complete */
|
||||||
@@ -611,6 +632,7 @@ typedef enum {
|
|||||||
#define CURLSSH_AUTH_PASSWORD (1<<1) /* password */
|
#define CURLSSH_AUTH_PASSWORD (1<<1) /* password */
|
||||||
#define CURLSSH_AUTH_HOST (1<<2) /* host key files */
|
#define CURLSSH_AUTH_HOST (1<<2) /* host key files */
|
||||||
#define CURLSSH_AUTH_KEYBOARD (1<<3) /* keyboard interactive */
|
#define CURLSSH_AUTH_KEYBOARD (1<<3) /* keyboard interactive */
|
||||||
|
#define CURLSSH_AUTH_AGENT (1<<4) /* agent (ssh-agent, pageant...) */
|
||||||
#define CURLSSH_AUTH_DEFAULT CURLSSH_AUTH_ANY
|
#define CURLSSH_AUTH_DEFAULT CURLSSH_AUTH_ANY
|
||||||
|
|
||||||
#define CURLGSSAPI_DELEGATION_NONE 0 /* no delegation (default) */
|
#define CURLGSSAPI_DELEGATION_NONE 0 /* no delegation (default) */
|
||||||
@@ -667,6 +689,15 @@ typedef enum {
|
|||||||
CURLUSESSL_LAST /* not an option, never use */
|
CURLUSESSL_LAST /* not an option, never use */
|
||||||
} curl_usessl;
|
} curl_usessl;
|
||||||
|
|
||||||
|
/* Definition of bits for the CURLOPT_SSL_OPTIONS argument: */
|
||||||
|
|
||||||
|
/* - ALLOW_BEAST tells libcurl to allow the BEAST SSL vulnerability in the
|
||||||
|
name of improving interoperability with older servers. Some SSL libraries
|
||||||
|
have introduced work-arounds for this flaw but those work-arounds sometimes
|
||||||
|
make the SSL communication fail. To regain functionality with those broken
|
||||||
|
servers, a user can this way allow the vulnerability back. */
|
||||||
|
#define CURLSSLOPT_ALLOW_BEAST (1<<0)
|
||||||
|
|
||||||
#ifndef CURL_NO_OLDIES /* define this to test if your app builds with all
|
#ifndef CURL_NO_OLDIES /* define this to test if your app builds with all
|
||||||
the obsolete stuff removed! */
|
the obsolete stuff removed! */
|
||||||
|
|
||||||
@@ -1016,9 +1047,8 @@ typedef enum {
|
|||||||
/* Set to the Entropy Gathering Daemon socket pathname */
|
/* Set to the Entropy Gathering Daemon socket pathname */
|
||||||
CINIT(EGDSOCKET, OBJECTPOINT, 77),
|
CINIT(EGDSOCKET, OBJECTPOINT, 77),
|
||||||
|
|
||||||
/* Time-out connect operations after this amount of seconds, if connects
|
/* Time-out connect operations after this amount of seconds, if connects are
|
||||||
are OK within this time, then fine... This only aborts the connect
|
OK within this time, then fine... This only aborts the connect phase. */
|
||||||
phase. [Only works on unix-style/SIGALRM operating systems] */
|
|
||||||
CINIT(CONNECTTIMEOUT, LONG, 78),
|
CINIT(CONNECTTIMEOUT, LONG, 78),
|
||||||
|
|
||||||
/* Function that will be called to store headers (instead of fwrite). The
|
/* Function that will be called to store headers (instead of fwrite). The
|
||||||
@@ -1192,9 +1222,9 @@ typedef enum {
|
|||||||
CINIT(NETRC_FILE, OBJECTPOINT, 118),
|
CINIT(NETRC_FILE, OBJECTPOINT, 118),
|
||||||
|
|
||||||
/* Enable SSL/TLS for FTP, pick one of:
|
/* Enable SSL/TLS for FTP, pick one of:
|
||||||
CURLFTPSSL_TRY - try using SSL, proceed anyway otherwise
|
CURLUSESSL_TRY - try using SSL, proceed anyway otherwise
|
||||||
CURLFTPSSL_CONTROL - SSL for the control connection or fail
|
CURLUSESSL_CONTROL - SSL for the control connection or fail
|
||||||
CURLFTPSSL_ALL - SSL for all communication or fail
|
CURLUSESSL_ALL - SSL for all communication or fail
|
||||||
*/
|
*/
|
||||||
CINIT(USE_SSL, LONG, 119),
|
CINIT(USE_SSL, LONG, 119),
|
||||||
|
|
||||||
@@ -1486,6 +1516,26 @@ typedef enum {
|
|||||||
/* allow GSSAPI credential delegation */
|
/* allow GSSAPI credential delegation */
|
||||||
CINIT(GSSAPI_DELEGATION, LONG, 210),
|
CINIT(GSSAPI_DELEGATION, LONG, 210),
|
||||||
|
|
||||||
|
/* Set the name servers to use for DNS resolution */
|
||||||
|
CINIT(DNS_SERVERS, OBJECTPOINT, 211),
|
||||||
|
|
||||||
|
/* Time-out accept operations (currently for FTP only) after this amount
|
||||||
|
of miliseconds. */
|
||||||
|
CINIT(ACCEPTTIMEOUT_MS, LONG, 212),
|
||||||
|
|
||||||
|
/* Set TCP keepalive */
|
||||||
|
CINIT(TCP_KEEPALIVE, LONG, 213),
|
||||||
|
|
||||||
|
/* non-universal keepalive knobs (Linux, AIX, HP-UX, more) */
|
||||||
|
CINIT(TCP_KEEPIDLE, LONG, 214),
|
||||||
|
CINIT(TCP_KEEPINTVL, LONG, 215),
|
||||||
|
|
||||||
|
/* Enable/disable specific SSL features with a bitmask, see CURLSSLOPT_* */
|
||||||
|
CINIT(SSL_OPTIONS, LONG, 216),
|
||||||
|
|
||||||
|
/* set the SMTP auth originator */
|
||||||
|
CINIT(MAIL_AUTH, OBJECTPOINT, 217),
|
||||||
|
|
||||||
CURLOPT_LASTENTRY /* the last unused */
|
CURLOPT_LASTENTRY /* the last unused */
|
||||||
} CURLoption;
|
} CURLoption;
|
||||||
|
|
||||||
@@ -1589,13 +1639,16 @@ enum CURL_TLSAUTH {
|
|||||||
};
|
};
|
||||||
|
|
||||||
/* symbols to use with CURLOPT_POSTREDIR.
|
/* symbols to use with CURLOPT_POSTREDIR.
|
||||||
CURL_REDIR_POST_301 and CURL_REDIR_POST_302 can be bitwise ORed so that
|
CURL_REDIR_POST_301, CURL_REDIR_POST_302 and CURL_REDIR_POST_303
|
||||||
CURL_REDIR_POST_301 | CURL_REDIR_POST_302 == CURL_REDIR_POST_ALL */
|
can be bitwise ORed so that CURL_REDIR_POST_301 | CURL_REDIR_POST_302
|
||||||
|
| CURL_REDIR_POST_303 == CURL_REDIR_POST_ALL */
|
||||||
|
|
||||||
#define CURL_REDIR_GET_ALL 0
|
#define CURL_REDIR_GET_ALL 0
|
||||||
#define CURL_REDIR_POST_301 1
|
#define CURL_REDIR_POST_301 1
|
||||||
#define CURL_REDIR_POST_302 2
|
#define CURL_REDIR_POST_302 2
|
||||||
#define CURL_REDIR_POST_ALL (CURL_REDIR_POST_301|CURL_REDIR_POST_302)
|
#define CURL_REDIR_POST_303 4
|
||||||
|
#define CURL_REDIR_POST_ALL \
|
||||||
|
(CURL_REDIR_POST_301|CURL_REDIR_POST_302|CURL_REDIR_POST_303)
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
CURL_TIMECOND_NONE,
|
CURL_TIMECOND_NONE,
|
||||||
|
@@ -7,7 +7,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
|
||||||
@@ -26,16 +26,16 @@
|
|||||||
a script at release-time. This was made its own header file in 7.11.2 */
|
a script at release-time. This was made its own header file in 7.11.2 */
|
||||||
|
|
||||||
/* This is the global package copyright */
|
/* This is the global package copyright */
|
||||||
#define LIBCURL_COPYRIGHT "1996 - 2011 Daniel Stenberg, <daniel@haxx.se>."
|
#define LIBCURL_COPYRIGHT "1996 - 2012 Daniel Stenberg, <daniel@haxx.se>."
|
||||||
|
|
||||||
/* This is the version number of the libcurl package from which this header
|
/* This is the version number of the libcurl package from which this header
|
||||||
file origins: */
|
file origins: */
|
||||||
#define LIBCURL_VERSION "7.24.0-DEV"
|
#define LIBCURL_VERSION "7.28.0-DEV"
|
||||||
|
|
||||||
/* The numeric version number is also available "in parts" by using these
|
/* The numeric version number is also available "in parts" by using these
|
||||||
defines: */
|
defines: */
|
||||||
#define LIBCURL_VERSION_MAJOR 7
|
#define LIBCURL_VERSION_MAJOR 7
|
||||||
#define LIBCURL_VERSION_MINOR 24
|
#define LIBCURL_VERSION_MINOR 28
|
||||||
#define LIBCURL_VERSION_PATCH 0
|
#define LIBCURL_VERSION_PATCH 0
|
||||||
|
|
||||||
/* This is the numeric version of the libcurl version number, meant for easier
|
/* This is the numeric version of the libcurl version number, meant for easier
|
||||||
@@ -53,7 +53,7 @@
|
|||||||
and it is always a greater number in a more recent release. It makes
|
and it is always a greater number in a more recent release. It makes
|
||||||
comparisons with greater than and less than work.
|
comparisons with greater than and less than work.
|
||||||
*/
|
*/
|
||||||
#define LIBCURL_VERSION_NUM 0x071800
|
#define LIBCURL_VERSION_NUM 0x071c00
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* This is the date and time when the full source package was created. The
|
* This is the date and time when the full source package was created. The
|
||||||
|
@@ -7,7 +7,7 @@
|
|||||||
* | (__| |_| | _ <| |___
|
* | (__| |_| | _ <| |___
|
||||||
* \___|\___/|_| \_\_____|
|
* \___|\___/|_| \_\_____|
|
||||||
*
|
*
|
||||||
* Copyright (C) 1998 - 2007, 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,6 +89,19 @@ struct CURLMsg {
|
|||||||
};
|
};
|
||||||
typedef struct CURLMsg CURLMsg;
|
typedef struct CURLMsg CURLMsg;
|
||||||
|
|
||||||
|
/* Based on poll(2) structure and values.
|
||||||
|
* We don't use pollfd and POLL* constants explicitly
|
||||||
|
* to cover platforms without poll(). */
|
||||||
|
#define CURL_WAIT_POLLIN 0x0001
|
||||||
|
#define CURL_WAIT_POLLPRI 0x0002
|
||||||
|
#define CURL_WAIT_POLLOUT 0x0004
|
||||||
|
|
||||||
|
struct curl_waitfd {
|
||||||
|
curl_socket_t fd;
|
||||||
|
short events;
|
||||||
|
short revents; /* not supported yet */
|
||||||
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Name: curl_multi_init()
|
* Name: curl_multi_init()
|
||||||
*
|
*
|
||||||
@@ -133,6 +146,20 @@ CURL_EXTERN CURLMcode curl_multi_fdset(CURLM *multi_handle,
|
|||||||
fd_set *exc_fd_set,
|
fd_set *exc_fd_set,
|
||||||
int *max_fd);
|
int *max_fd);
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Name: curl_multi_wait()
|
||||||
|
*
|
||||||
|
* Desc: Poll on all fds within a CURLM set as well as any
|
||||||
|
* additional fds passed to the function.
|
||||||
|
*
|
||||||
|
* Returns: CURLMcode type, general multi error code.
|
||||||
|
*/
|
||||||
|
CURL_EXTERN CURLMcode curl_multi_wait(CURLM *multi_handle,
|
||||||
|
struct curl_waitfd extra_fds[],
|
||||||
|
unsigned int extra_nfds,
|
||||||
|
int timeout_ms,
|
||||||
|
int *ret);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Name: curl_multi_perform()
|
* Name: curl_multi_perform()
|
||||||
*
|
*
|
||||||
|
@@ -7,7 +7,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
|
||||||
@@ -141,8 +141,9 @@ __extension__ ({ \
|
|||||||
|
|
||||||
/* To define a new warning, use _CURL_WARNING(identifier, "message") */
|
/* To define a new warning, use _CURL_WARNING(identifier, "message") */
|
||||||
#define _CURL_WARNING(id, message) \
|
#define _CURL_WARNING(id, message) \
|
||||||
static void __attribute__((warning(message))) __attribute__((unused)) \
|
static void __attribute__((__warning__(message))) \
|
||||||
__attribute__((noinline)) id(void) { __asm__(""); }
|
__attribute__((__unused__)) __attribute__((__noinline__)) \
|
||||||
|
id(void) { __asm__(""); }
|
||||||
|
|
||||||
_CURL_WARNING(_curl_easy_setopt_err_long,
|
_CURL_WARNING(_curl_easy_setopt_err_long,
|
||||||
"curl_easy_setopt expects a long argument for this option")
|
"curl_easy_setopt expects a long argument for this option")
|
||||||
|
5
lib/.gitignore
vendored
5
lib/.gitignore
vendored
@@ -10,3 +10,8 @@ libcurl.plist.dist
|
|||||||
libcurl.vcproj
|
libcurl.vcproj
|
||||||
vc6libcurl.dsp
|
vc6libcurl.dsp
|
||||||
Makefile.vc10.dist
|
Makefile.vc10.dist
|
||||||
|
libcurl.vers
|
||||||
|
*.a
|
||||||
|
*.res
|
||||||
|
*.imp
|
||||||
|
*.nlm
|
||||||
|
@@ -83,13 +83,13 @@ CFLAGS += -dWANT_IDN_PROTOTYPES
|
|||||||
!ifdef %zlib_root
|
!ifdef %zlib_root
|
||||||
ZLIB_ROOT = $(%zlib_root)
|
ZLIB_ROOT = $(%zlib_root)
|
||||||
!else
|
!else
|
||||||
ZLIB_ROOT = ..$(DS)..$(DS)zlib-1.2.5
|
ZLIB_ROOT = ..$(DS)..$(DS)zlib-1.2.7
|
||||||
!endif
|
!endif
|
||||||
|
|
||||||
!ifdef %libssh2_root
|
!ifdef %libssh2_root
|
||||||
LIBSSH2_ROOT = $(%libssh2_root)
|
LIBSSH2_ROOT = $(%libssh2_root)
|
||||||
!else
|
!else
|
||||||
LIBSSH2_ROOT = ..$(DS)..$(DS)libssh2-1.3.0
|
LIBSSH2_ROOT = ..$(DS)..$(DS)libssh2-1.4.2
|
||||||
!endif
|
!endif
|
||||||
|
|
||||||
!ifdef %librtmp_root
|
!ifdef %librtmp_root
|
||||||
@@ -101,7 +101,7 @@ LIBRTMP_ROOT = ..$(DS)..$(DS)rtmpdump-2.3
|
|||||||
!ifdef %openssl_root
|
!ifdef %openssl_root
|
||||||
OPENSSL_ROOT = $(%openssl_root)
|
OPENSSL_ROOT = $(%openssl_root)
|
||||||
!else
|
!else
|
||||||
OPENSSL_ROOT = ..$(DS)..$(DS)openssl-0.9.8r
|
OPENSSL_ROOT = ..$(DS)..$(DS)openssl-0.9.8x
|
||||||
!endif
|
!endif
|
||||||
|
|
||||||
!ifdef %ares_root
|
!ifdef %ares_root
|
||||||
|
@@ -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,14 +30,14 @@ DOCS = README.encoding README.memoryleak README.ares README.curlx \
|
|||||||
|
|
||||||
CMAKE_DIST = CMakeLists.txt curl_config.h.cmake
|
CMAKE_DIST = CMakeLists.txt curl_config.h.cmake
|
||||||
|
|
||||||
EXTRA_DIST = Makefile.b32 Makefile.m32 Makefile.vc6 $(DSP) \
|
EXTRA_DIST = Makefile.b32 Makefile.m32 Makefile.vc6 $(DSP) \
|
||||||
vc6libcurl.dsw config-win32.h config-win32ce.h config-riscos.h \
|
vc6libcurl.dsw config-win32.h config-win32ce.h config-riscos.h \
|
||||||
config-mac.h curl_config.h.in makefile.dj config-dos.h libcurl.plist \
|
config-mac.h curl_config.h.in makefile.dj config-dos.h libcurl.plist \
|
||||||
libcurl.rc config-amigaos.h amigaos.c amigaos.h makefile.amiga \
|
libcurl.rc config-amigaos.h makefile.amiga \
|
||||||
Makefile.netware nwlib.c nwos.c libcurl.imp msvcproj.head msvcproj.foot \
|
Makefile.netware nwlib.c nwos.c msvcproj.head msvcproj.foot \
|
||||||
config-win32ce.h config-os400.h setup-os400.h config-symbian.h \
|
config-win32ce.h config-os400.h setup-os400.h config-symbian.h \
|
||||||
Makefile.Watcom config-tpf.h $(DOCS) $(VCPROJ) mk-ca-bundle.pl \
|
Makefile.Watcom config-tpf.h $(DOCS) $(VCPROJ) mk-ca-bundle.pl \
|
||||||
mk-ca-bundle.vbs firefox-db2pem.sh $(CMAKE_DIST) config-vxworks.h \
|
mk-ca-bundle.vbs firefox-db2pem.sh $(CMAKE_DIST) config-vxworks.h \
|
||||||
Makefile.vxworks config-vms.h checksrc.pl
|
Makefile.vxworks config-vms.h checksrc.pl
|
||||||
|
|
||||||
CLEANFILES = $(DSP) $(VCPROJ)
|
CLEANFILES = $(DSP) $(VCPROJ)
|
||||||
@@ -48,6 +48,8 @@ LIBCURL_LIBS = @LIBCURL_LIBS@
|
|||||||
# This might hold -Werror
|
# This might hold -Werror
|
||||||
CFLAGS += @CURL_CFLAG_EXTRAS@
|
CFLAGS += @CURL_CFLAG_EXTRAS@
|
||||||
|
|
||||||
|
CFLAG_CURL_SYMBOL_HIDING = @CFLAG_CURL_SYMBOL_HIDING@
|
||||||
|
|
||||||
# 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
|
||||||
# being currently built and tested are searched before the library which
|
# being currently built and tested are searched before the library which
|
||||||
@@ -77,6 +79,18 @@ INCLUDES = -I$(top_builddir)/include/curl \
|
|||||||
-I$(top_srcdir)/lib
|
-I$(top_srcdir)/lib
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
AM_CPPFLAGS =
|
||||||
|
|
||||||
|
# Mostly for Windows build targets, when building libcurl library
|
||||||
|
if USE_CPPFLAG_BUILDING_LIBCURL
|
||||||
|
AM_CPPFLAGS += -DBUILDING_LIBCURL
|
||||||
|
endif
|
||||||
|
|
||||||
|
# Mostly for Windows build targets, when building static libcurl
|
||||||
|
if USE_CPPFLAG_CURL_STATICLIB
|
||||||
|
AM_CPPFLAGS += -DCURL_STATICLIB
|
||||||
|
endif
|
||||||
|
|
||||||
if SONAME_BUMP
|
if SONAME_BUMP
|
||||||
#
|
#
|
||||||
# Bumping of SONAME conditionally may seem like a weird thing to do, and yeah
|
# Bumping of SONAME conditionally may seem like a weird thing to do, and yeah
|
||||||
@@ -116,7 +130,19 @@ if MIMPURE
|
|||||||
MIMPURE = -mimpure-text
|
MIMPURE = -mimpure-text
|
||||||
endif
|
endif
|
||||||
|
|
||||||
libcurl_la_LDFLAGS = $(UNDEF) $(VERSIONINFO) $(MIMPURE) $(LIBCURL_LIBS)
|
if VERSIONED_SYMBOLS
|
||||||
|
VERSIONED_SYMBOLS = -Wl,--version-script=libcurl.vers
|
||||||
|
endif
|
||||||
|
|
||||||
|
libcurl_la_LDFLAGS = $(UNDEF) $(VERSIONINFO) $(MIMPURE) $(VERSIONED_SYMBOLS) $(LIBCURL_LIBS)
|
||||||
|
|
||||||
|
if DOING_CURL_SYMBOL_HIDING
|
||||||
|
libcurl_la_CPPFLAGS = $(AM_CPPFLAGS) -DCURL_HIDDEN_SYMBOLS
|
||||||
|
libcurl_la_CFLAGS = $(AM_CFLAGS) $(CFLAG_CURL_SYMBOL_HIDING)
|
||||||
|
else
|
||||||
|
libcurl_la_CPPFLAGS = $(AM_CPPFLAGS)
|
||||||
|
libcurl_la_CFLAGS = $(AM_CFLAGS)
|
||||||
|
endif
|
||||||
|
|
||||||
# unit testing static library built only along with unit tests
|
# unit testing static library built only along with unit tests
|
||||||
if BUILD_UNITTESTS
|
if BUILD_UNITTESTS
|
||||||
@@ -127,6 +153,7 @@ endif
|
|||||||
|
|
||||||
libcurlu_la_CPPFLAGS = $(AM_CPPFLAGS) -DUNITTESTS
|
libcurlu_la_CPPFLAGS = $(AM_CPPFLAGS) -DUNITTESTS
|
||||||
libcurlu_la_LDFLAGS = -static $(LIBCURL_LIBS)
|
libcurlu_la_LDFLAGS = -static $(LIBCURL_LIBS)
|
||||||
|
libcurlu_la_CFLAGS = $(AM_CFLAGS)
|
||||||
|
|
||||||
# Makefile.inc provides the CSOURCES and HHEADERS defines
|
# Makefile.inc provides the CSOURCES and HHEADERS defines
|
||||||
include Makefile.inc
|
include Makefile.inc
|
||||||
|
@@ -22,12 +22,12 @@ BCCDIR = $(MAKEDIR)\..
|
|||||||
|
|
||||||
# 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.7
|
||||||
!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.8q
|
OPENSSL_PATH = ..\..\openssl-0.9.8x
|
||||||
!endif
|
!endif
|
||||||
|
|
||||||
# Set libcurl static lib, dll and import lib
|
# Set libcurl static lib, dll and import lib
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user