Compare commits
438 Commits
http2-push
...
HTTPS-prox
Author | SHA1 | Date | |
---|---|---|---|
![]() |
ed24d41cb1 | ||
![]() |
cc9b053d84 | ||
![]() |
3e7a1ff9a6 | ||
![]() |
e21bd4ecb5 | ||
![]() |
4bb13975a8 | ||
![]() |
4e28002898 | ||
![]() |
ff8d352ae9 | ||
![]() |
250d786bd2 | ||
![]() |
0cf80c05ea | ||
![]() |
b27893d15c | ||
![]() |
05cd55f229 | ||
![]() |
ec6d8a38ae | ||
![]() |
127a7b0257 | ||
![]() |
043c5f5c33 | ||
![]() |
171de1bef8 | ||
![]() |
f956ebf252 | ||
![]() |
68a7d38aa0 | ||
![]() |
b4c39010b5 | ||
![]() |
a72207ecf0 | ||
![]() |
6c5f4303fe | ||
![]() |
39904d6f7d | ||
![]() |
88f585c3a1 | ||
![]() |
051485d9e0 | ||
![]() |
3c4065f402 | ||
![]() |
d0ddfe2216 | ||
![]() |
ca770d87e2 | ||
![]() |
ee04bee82b | ||
![]() |
6cfd646f58 | ||
![]() |
808a17ee67 | ||
![]() |
ba4d8f7eba | ||
![]() |
febda2f305 | ||
![]() |
ceb396c54a | ||
![]() |
796c6ef02b | ||
![]() |
60cf8157c7 | ||
![]() |
ad2d517545 | ||
![]() |
1ee0aded89 | ||
![]() |
f322ca7765 | ||
![]() |
fd0c678e21 | ||
![]() |
aba281e762 | ||
![]() |
64e959ffe3 | ||
![]() |
86e2197337 | ||
![]() |
6c20a87105 | ||
![]() |
b430d94fb2 | ||
![]() |
0755308a6a | ||
![]() |
53b13d0c71 | ||
![]() |
431ba85829 | ||
![]() |
eb3703f052 | ||
![]() |
d7e352402c | ||
![]() |
278ea24a7a | ||
![]() |
1f82df9146 | ||
![]() |
077fd8f1fa | ||
![]() |
b6baa108fa | ||
![]() |
88702ebb31 | ||
![]() |
d6d58dd558 | ||
![]() |
a7c4bcd971 | ||
![]() |
3c24400636 | ||
![]() |
dcf5b614ca | ||
![]() |
6479f5a076 | ||
![]() |
d64add3c71 | ||
![]() |
a215381c94 | ||
![]() |
3e0d64d075 | ||
![]() |
01b7d8274c | ||
![]() |
7023d8aa37 | ||
![]() |
eaa98cef8d | ||
![]() |
4e3d396900 | ||
![]() |
f54a4aa9a3 | ||
![]() |
6225c48a03 | ||
![]() |
9b7f8ab21b | ||
![]() |
2200bf6205 | ||
![]() |
729b92afbe | ||
![]() |
23b8fc15c8 | ||
![]() |
e3c85405d0 | ||
![]() |
2581585961 | ||
![]() |
007f3e0971 | ||
![]() |
23c4090fd3 | ||
![]() |
50bff12ac8 | ||
![]() |
1a614c6c37 | ||
![]() |
505d966850 | ||
![]() |
748ffc77c6 | ||
![]() |
60c86297bf | ||
![]() |
cd3aba1a5c | ||
![]() |
f6fbbd6dc3 | ||
![]() |
210fc95c0f | ||
![]() |
3bd7f28000 | ||
![]() |
3f7b1bb89f | ||
![]() |
1ea3a7d5e4 | ||
![]() |
cba5bc5854 | ||
![]() |
ca5f9341ef | ||
![]() |
49a991346e | ||
![]() |
fbf09b7775 | ||
![]() |
f6ce8c9abb | ||
![]() |
4c62066cec | ||
![]() |
9b87078d55 | ||
![]() |
370ee919b3 | ||
![]() |
e2f430c74a | ||
![]() |
ea2c959db4 | ||
![]() |
ca20ca54b2 | ||
![]() |
d9a1776b32 | ||
![]() |
72d99f2e7b | ||
![]() |
2f4f4108d6 | ||
![]() |
03b6e07816 | ||
![]() |
6288cb9304 | ||
![]() |
eefd5a95af | ||
![]() |
b1fc8c0e97 | ||
![]() |
529f9310b1 | ||
![]() |
b1199def8c | ||
![]() |
b7d894d808 | ||
![]() |
d31ed6ac71 | ||
![]() |
419d410ca0 | ||
![]() |
3042cb5043 | ||
![]() |
23cc0c00d4 | ||
![]() |
ace68fdc0c | ||
![]() |
9744ef2289 | ||
![]() |
c238d4da1b | ||
![]() |
5fecdc26f7 | ||
![]() |
257a1c0d14 | ||
![]() |
fe7590f729 | ||
![]() |
72646c2e48 | ||
![]() |
4201e4a9ac | ||
![]() |
4c773bcb47 | ||
![]() |
cb922d47d6 | ||
![]() |
06b5fd8fde | ||
![]() |
5cf0166636 | ||
![]() |
19cb0c4a88 | ||
![]() |
e77b5b7453 | ||
![]() |
684816cd9b | ||
![]() |
2b98cb57c4 | ||
![]() |
3fde8a4971 | ||
![]() |
443e81ea47 | ||
![]() |
c6aedf680f | ||
![]() |
854976ad7b | ||
![]() |
14d5a86b3e | ||
![]() |
db532eff1e | ||
![]() |
3ad83bc3a6 | ||
![]() |
13ddb9e54a | ||
![]() |
7715a70ba2 | ||
![]() |
6f8ecea059 | ||
![]() |
048f84637f | ||
![]() |
d30ad55c59 | ||
![]() |
08e5fb4465 | ||
![]() |
2e373f4a6f | ||
![]() |
bce689605d | ||
![]() |
8256b44e5a | ||
![]() |
da2d3b5805 | ||
![]() |
3771da335b | ||
![]() |
8bb43ecd05 | ||
![]() |
645fc44764 | ||
![]() |
2c000d91f3 | ||
![]() |
aed57fdc95 | ||
![]() |
69ea579700 | ||
![]() |
b1d55997e5 | ||
![]() |
2eb4f5efe9 | ||
![]() |
5bf36ea30d | ||
![]() |
c6ff538ebd | ||
![]() |
8fd190c04f | ||
![]() |
ec9cbb1757 | ||
![]() |
69b89050d4 | ||
![]() |
963b7bd4f7 | ||
![]() |
af90becf4b | ||
![]() |
46ad4f7f93 | ||
![]() |
790d6de485 | ||
![]() |
4f037367ed | ||
![]() |
32fc638ddf | ||
![]() |
119037325d | ||
![]() |
710bb89cf3 | ||
![]() |
095fe60e27 | ||
![]() |
4d60e125de | ||
![]() |
7c478cad57 | ||
![]() |
0110cced2a | ||
![]() |
5f87906e0e | ||
![]() |
684bf30802 | ||
![]() |
6b56901b56 | ||
![]() |
7362008c1c | ||
![]() |
1467dec147 | ||
![]() |
0583ed3e48 | ||
![]() |
67ae07c2e0 | ||
![]() |
3f8d4e264d | ||
![]() |
bb72b9453d | ||
![]() |
5fde69cdc3 | ||
![]() |
443014e905 | ||
![]() |
37af1766e9 | ||
![]() |
67dbf8aa9c | ||
![]() |
4d95491636 | ||
![]() |
47b7d658b4 | ||
![]() |
f65e07ca59 | ||
![]() |
30c131f51f | ||
![]() |
c979a3d0c4 | ||
![]() |
c184a5c6bc | ||
![]() |
c00cec9864 | ||
![]() |
958d2ffb19 | ||
![]() |
a9fd53887b | ||
![]() |
65ca3b083c | ||
![]() |
82e3e8e31f | ||
![]() |
887a4a19aa | ||
![]() |
b550a1c067 | ||
![]() |
202162daeb | ||
![]() |
a7cb6a28e2 | ||
![]() |
3d4ffa71f7 | ||
![]() |
cdba82e1c2 | ||
![]() |
68c620fdc7 | ||
![]() |
fad9604613 | ||
![]() |
0e17369f5b | ||
![]() |
481e0de00a | ||
![]() |
df6a4d3519 | ||
![]() |
e30763c72e | ||
![]() |
6a0bd6ce8b | ||
![]() |
4e6f7aee64 | ||
![]() |
1b8a5afe78 | ||
![]() |
87e533ace0 | ||
![]() |
27620171ff | ||
![]() |
664398e43b | ||
![]() |
3a4f42dd0c | ||
![]() |
5ea0004438 | ||
![]() |
f1ccf68e8c | ||
![]() |
d36d83ba4b | ||
![]() |
5dc556031b | ||
![]() |
0e91737615 | ||
![]() |
7380433d6a | ||
![]() |
a60bde79f9 | ||
![]() |
82db076d9f | ||
![]() |
25a2e8ebaf | ||
![]() |
1869164293 | ||
![]() |
4ceddcf8ca | ||
![]() |
e1a4bab86a | ||
![]() |
8a0ff1e529 | ||
![]() |
668231c309 | ||
![]() |
cb6a07fed0 | ||
![]() |
b604b7f040 | ||
![]() |
9bb198026e | ||
![]() |
749c0ca05b | ||
![]() |
c764cb4add | ||
![]() |
6099f5fcac | ||
![]() |
4963948089 | ||
![]() |
b850437991 | ||
![]() |
eb8283bb1a | ||
![]() |
415f0370ea | ||
![]() |
347a6ee597 | ||
![]() |
2a59fb25cc | ||
![]() |
fb0825cb0a | ||
![]() |
dfeb85a187 | ||
![]() |
96a3488eae | ||
![]() |
45e918564a | ||
![]() |
1abb218fe0 | ||
![]() |
ac7be02e69 | ||
![]() |
37f173cfd0 | ||
![]() |
2132708ac2 | ||
![]() |
4a889441d3 | ||
![]() |
ce034356d2 | ||
![]() |
f21408132a | ||
![]() |
aec249f89f | ||
![]() |
e7d171da6b | ||
![]() |
874413b3e1 | ||
![]() |
62f306ff34 | ||
![]() |
36f6f6f4f2 | ||
![]() |
a78534794e | ||
![]() |
110d99c661 | ||
![]() |
6d91b70d8b | ||
![]() |
2acaf3c804 | ||
![]() |
9756d1da76 | ||
![]() |
22cb631198 | ||
![]() |
613e5022fe | ||
![]() |
2c12ac8de2 | ||
![]() |
30aa38c818 | ||
![]() |
8363656cb4 | ||
![]() |
38ef1b3e7f | ||
![]() |
1d89fd983a | ||
![]() |
b3c7f5159a | ||
![]() |
1cea72bfde | ||
![]() |
14ff86256b | ||
![]() |
e4fb5f2f61 | ||
![]() |
e67e71d62b | ||
![]() |
618dfd65e4 | ||
![]() |
1f1f131e09 | ||
![]() |
9518139c73 | ||
![]() |
5a136398ed | ||
![]() |
7166d91a03 | ||
![]() |
31673ff517 | ||
![]() |
bedf0a588e | ||
![]() |
6ba9a1b952 | ||
![]() |
bc66c21c23 | ||
![]() |
a9c97fba81 | ||
![]() |
1a85c8ef15 | ||
![]() |
9e1b1ca606 | ||
![]() |
15da07d2f2 | ||
![]() |
5be0c88297 | ||
![]() |
052a9dfdad | ||
![]() |
7332ac565c | ||
![]() |
105828a309 | ||
![]() |
2bcd3ef7b2 | ||
![]() |
1a7f66a3de | ||
![]() |
c75a1e7750 | ||
![]() |
daf7f98c11 | ||
![]() |
bb0acba67d | ||
![]() |
5778e6f526 | ||
![]() |
c8a656d3c7 | ||
![]() |
9ee40ce2ab | ||
![]() |
0b8e9c8522 | ||
![]() |
9a5574ca7b | ||
![]() |
ade6682f8d | ||
![]() |
002d58f1e8 | ||
![]() |
cde447217f | ||
![]() |
9d29afdfe3 | ||
![]() |
0cc0b7e268 | ||
![]() |
aa9ead36a4 | ||
![]() |
ecece2cfb5 | ||
![]() |
4d13b78aec | ||
![]() |
39dcf352d2 | ||
![]() |
55a255ee9c | ||
![]() |
4c47cbf533 | ||
![]() |
c22fae7ccc | ||
![]() |
d712da787e | ||
![]() |
2b743dcf8e | ||
![]() |
333c36b276 | ||
![]() |
1ab763acce | ||
![]() |
a8e9e0c205 | ||
![]() |
4a21346ef3 | ||
![]() |
4aee1f9cf5 | ||
![]() |
b9b7ccd04a | ||
![]() |
84d122a8d6 | ||
![]() |
5b9151231d | ||
![]() |
cf8975387f | ||
![]() |
0342ada31f | ||
![]() |
3f5f042e5d | ||
![]() |
bb6b521f69 | ||
![]() |
8279dd7d39 | ||
![]() |
fe6049f04b | ||
![]() |
7f11259eb7 | ||
![]() |
473807b95f | ||
![]() |
f08e30d7bc | ||
![]() |
6428b8de42 | ||
![]() |
97c9d31884 | ||
![]() |
9947f259bf | ||
![]() |
33de75ed63 | ||
![]() |
df5965ebf4 | ||
![]() |
6e566451ce | ||
![]() |
07f7cdc309 | ||
![]() |
3725748599 | ||
![]() |
1e67bc5eaf | ||
![]() |
12f915ca2a | ||
![]() |
4b96240d3f | ||
![]() |
1b3d3f9237 | ||
![]() |
c4eb10e2f0 | ||
![]() |
3b4ee0d432 | ||
![]() |
c092b0f0f3 | ||
![]() |
f75b6065db | ||
![]() |
11ab3f8918 | ||
![]() |
a1b2a6bd93 | ||
![]() |
c8331f515e | ||
![]() |
23b84e448f | ||
![]() |
0da1f5dc5c | ||
![]() |
909f0a82b0 | ||
![]() |
8b1d00ac1a | ||
![]() |
f7dcc7c118 | ||
![]() |
ecf7618e12 | ||
![]() |
5b9a006b8f | ||
![]() |
fc69e2f7ec | ||
![]() |
bdd8cf4777 | ||
![]() |
dda81c1d5f | ||
![]() |
2d7e165761 | ||
![]() |
8356022d17 | ||
![]() |
467309406e | ||
![]() |
b656715da3 | ||
![]() |
9b95306d4c | ||
![]() |
98e8b050ef | ||
![]() |
d9efd36907 | ||
![]() |
1627930177 | ||
![]() |
299b74fcfc | ||
![]() |
279965c923 | ||
![]() |
7db03e5c21 | ||
![]() |
a728225a92 | ||
![]() |
29e5cf2a2d | ||
![]() |
0f645adc95 | ||
![]() |
373b77bca2 | ||
![]() |
6d62d2c55d | ||
![]() |
14b9e780d4 | ||
![]() |
8204844f47 | ||
![]() |
b46a7744bc | ||
![]() |
a284b0ebc4 | ||
![]() |
c5d060cab4 | ||
![]() |
98835eed29 | ||
![]() |
cee21eb6a7 | ||
![]() |
da650c1e54 | ||
![]() |
40c921f8b8 | ||
![]() |
7a8e861a56 | ||
![]() |
ad32457623 | ||
![]() |
32d4260c2d | ||
![]() |
1df8d28381 | ||
![]() |
fa0eeedf35 | ||
![]() |
68d17643f5 | ||
![]() |
aab76af1fa | ||
![]() |
172b2beba6 | ||
![]() |
606b29fe0d | ||
![]() |
60b19630b0 | ||
![]() |
de74e856e6 | ||
![]() |
cd20e81e89 | ||
![]() |
79416fb2d6 | ||
![]() |
8f0178a56b | ||
![]() |
845b011614 | ||
![]() |
ce1bf87a04 | ||
![]() |
5602ad721b | ||
![]() |
55b78c5ae9 | ||
![]() |
c00b18d540 | ||
![]() |
4ed8537be6 | ||
![]() |
cd2644fe2c | ||
![]() |
1c5997ae9d | ||
![]() |
f9087b7499 | ||
![]() |
7df237b0b1 | ||
![]() |
211b265ffd | ||
![]() |
316054e8cd | ||
![]() |
66a5f76583 | ||
![]() |
f7e2cd278a | ||
![]() |
b505df4b68 | ||
![]() |
616cecfdb6 | ||
![]() |
b59f296bf6 | ||
![]() |
e58bd8e41a | ||
![]() |
e6749055d6 | ||
![]() |
8208dd3b22 | ||
![]() |
0c46abd79a | ||
![]() |
1f70cdef98 | ||
![]() |
e3e06e1aee | ||
![]() |
37402b5eb8 | ||
![]() |
3d90ec5448 | ||
![]() |
69c77f69a5 | ||
![]() |
dc2cbfda89 | ||
![]() |
1b5eba8324 | ||
![]() |
ddb106d7f6 | ||
![]() |
77044b53f7 | ||
![]() |
c712aa0ebe | ||
![]() |
a384f28ca6 | ||
![]() |
bf445b6e12 | ||
![]() |
a3a55d80ec | ||
![]() |
e9f0dd43bc | ||
![]() |
f65ab8864e | ||
![]() |
feea9263e9 | ||
![]() |
ea7134ac87 | ||
![]() |
70191958b5 | ||
![]() |
5156982377 | ||
![]() |
903b6e0556 |
62
.gitignore
vendored
62
.gitignore
vendored
@@ -1,51 +1,51 @@
|
|||||||
.deps
|
*.asc
|
||||||
.libs
|
|
||||||
*.lib
|
|
||||||
*.pdb
|
|
||||||
*.dll
|
*.dll
|
||||||
*.exe
|
*.exe
|
||||||
*.obj
|
|
||||||
*.asc
|
|
||||||
.*.swp
|
|
||||||
Debug
|
|
||||||
Release
|
|
||||||
*.exp
|
*.exp
|
||||||
|
*.la
|
||||||
|
*.lib
|
||||||
|
*.lo
|
||||||
|
*.o
|
||||||
|
*.obj
|
||||||
|
*.pdb
|
||||||
|
*~
|
||||||
|
.*.swp
|
||||||
|
.cproject
|
||||||
|
.deps
|
||||||
|
.dirstamp
|
||||||
|
.libs
|
||||||
|
.project
|
||||||
|
.settings
|
||||||
|
/build/
|
||||||
|
/builds/
|
||||||
|
CHANGES.dist
|
||||||
|
Debug
|
||||||
|
INSTALL
|
||||||
Makefile
|
Makefile
|
||||||
Makefile.in
|
Makefile.in
|
||||||
|
Release
|
||||||
|
TAGS
|
||||||
aclocal.m4
|
aclocal.m4
|
||||||
|
aclocal.m4.bak
|
||||||
autom4te.cache
|
autom4te.cache
|
||||||
|
compile
|
||||||
config.cache
|
config.cache
|
||||||
config.guess
|
config.guess
|
||||||
config.log
|
config.log
|
||||||
config.status
|
config.status
|
||||||
config.sub
|
config.sub
|
||||||
configure
|
configure
|
||||||
depcomp
|
|
||||||
libtool
|
|
||||||
ltmain.sh
|
|
||||||
compile
|
|
||||||
curl-config
|
|
||||||
libcurl.pc
|
|
||||||
missing
|
|
||||||
curl-*.tar.gz
|
|
||||||
curl-*.tar.bz2
|
curl-*.tar.bz2
|
||||||
|
curl-*.tar.gz
|
||||||
curl-*.tar.lzma
|
curl-*.tar.lzma
|
||||||
curl-*.zip
|
curl-*.zip
|
||||||
INSTALL
|
curl-config
|
||||||
|
depcomp
|
||||||
install-sh
|
install-sh
|
||||||
*.o
|
libcurl.pc
|
||||||
*.lo
|
libtool
|
||||||
*.la
|
ltmain.sh
|
||||||
|
missing
|
||||||
mkinstalldirs
|
mkinstalldirs
|
||||||
tags
|
tags
|
||||||
TAGS
|
|
||||||
*~
|
|
||||||
aclocal.m4.bak
|
|
||||||
CHANGES.dist
|
|
||||||
.project
|
|
||||||
.cproject
|
|
||||||
.settings
|
|
||||||
.dirstamp
|
|
||||||
test-driver
|
test-driver
|
||||||
/build/
|
|
||||||
/builds/
|
|
||||||
|
10
.travis.yml
10
.travis.yml
@@ -1,5 +1,15 @@
|
|||||||
|
os:
|
||||||
|
- linux
|
||||||
|
- osx
|
||||||
|
|
||||||
|
sudo: false
|
||||||
|
|
||||||
language: c
|
language: c
|
||||||
|
|
||||||
|
install:
|
||||||
|
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew update > /dev/null; fi
|
||||||
|
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew install openssl libidn rtmpdump libssh2 c-ares libmetalink libressl nghttp2; fi
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- ./buildconf
|
- ./buildconf
|
||||||
|
|
||||||
|
14
CHANGES
14
CHANGES
@@ -1,15 +1,7 @@
|
|||||||
_ _ ____ _
|
See http://curl.haxx.se/changes.html for the edited and human readable online
|
||||||
___| | | | _ \| |
|
version of what has changed over the years in different curl releases.
|
||||||
/ __| | | | |_) | |
|
|
||||||
| (__| |_| | _ <| |___
|
|
||||||
\___|\___/|_| \_\_____|
|
|
||||||
|
|
||||||
Changelog
|
Generate a CHANGES file like the one present in evey release like this:
|
||||||
|
|
||||||
This file no longer holds the changelog. Now you can generate it yourself
|
|
||||||
like this:
|
|
||||||
|
|
||||||
$ git log --pretty=fuller --no-color --date=short --decorate=full | \
|
$ git log --pretty=fuller --no-color --date=short --decorate=full | \
|
||||||
./log2changes.pl
|
./log2changes.pl
|
||||||
|
|
||||||
The older, manually edited, changelog is found in git named CHANGES.0
|
|
||||||
|
@@ -139,7 +139,7 @@ int main(void)
|
|||||||
rc = gethostbyname_r(address, &h, &hdata);
|
rc = gethostbyname_r(address, &h, &hdata);
|
||||||
#elif defined(HAVE_GETHOSTBYNAME_R_5) || \
|
#elif defined(HAVE_GETHOSTBYNAME_R_5) || \
|
||||||
defined(HAVE_GETHOSTBYNAME_R_5_REENTRANT)
|
defined(HAVE_GETHOSTBYNAME_R_5_REENTRANT)
|
||||||
rc = gethostbyname_r(address, &h, buffer, 8192, 0, &h_errnop);
|
rc = gethostbyname_r(address, &h, buffer, 8192, &h_errnop);
|
||||||
(void)hp; /* not used for test */
|
(void)hp; /* not used for test */
|
||||||
#elif defined(HAVE_GETHOSTBYNAME_R_6) || \
|
#elif defined(HAVE_GETHOSTBYNAME_R_6) || \
|
||||||
defined(HAVE_GETHOSTBYNAME_R_6_REENTRANT)
|
defined(HAVE_GETHOSTBYNAME_R_6_REENTRANT)
|
||||||
|
@@ -10,8 +10,8 @@ endmacro(add_header_include)
|
|||||||
|
|
||||||
set(signature_call_conv)
|
set(signature_call_conv)
|
||||||
if(HAVE_WINDOWS_H)
|
if(HAVE_WINDOWS_H)
|
||||||
add_header_include(HAVE_WINDOWS_H "windows.h")
|
|
||||||
add_header_include(HAVE_WINSOCK2_H "winsock2.h")
|
add_header_include(HAVE_WINSOCK2_H "winsock2.h")
|
||||||
|
add_header_include(HAVE_WINDOWS_H "windows.h")
|
||||||
add_header_include(HAVE_WINSOCK_H "winsock.h")
|
add_header_include(HAVE_WINSOCK_H "winsock.h")
|
||||||
set(_source_epilogue
|
set(_source_epilogue
|
||||||
"${_source_epilogue}\n#ifndef WIN32_LEAN_AND_MEAN\n#define WIN32_LEAN_AND_MEAN\n#endif")
|
"${_source_epilogue}\n#ifndef WIN32_LEAN_AND_MEAN\n#define WIN32_LEAN_AND_MEAN\n#endif")
|
||||||
|
@@ -122,10 +122,10 @@ endif()
|
|||||||
option(CURL_HIDDEN_SYMBOLS "Set to ON to hide libcurl internal symbols (=hide all symbols that aren't officially external)." ON)
|
option(CURL_HIDDEN_SYMBOLS "Set to ON to hide libcurl internal symbols (=hide all symbols that aren't officially external)." ON)
|
||||||
mark_as_advanced(CURL_HIDDEN_SYMBOLS)
|
mark_as_advanced(CURL_HIDDEN_SYMBOLS)
|
||||||
|
|
||||||
# IF(WIN32)
|
IF(WIN32)
|
||||||
# OPTION(CURL_WINDOWS_SSPI "Use windows libraries to allow NTLM authentication without openssl" ON)
|
OPTION(CURL_WINDOWS_SSPI "Use windows libraries to allow NTLM authentication without openssl" ON)
|
||||||
# MARK_AS_ADVANCED(CURL_WINDOWS_SSPI)
|
MARK_AS_ADVANCED(CURL_WINDOWS_SSPI)
|
||||||
# ENDIF()
|
ENDIF()
|
||||||
|
|
||||||
option(HTTP_ONLY "disables all protocols except HTTP (This overrides all CURL_DISABLE_* options)" OFF)
|
option(HTTP_ONLY "disables all protocols except HTTP (This overrides all CURL_DISABLE_* options)" OFF)
|
||||||
mark_as_advanced(HTTP_ONLY)
|
mark_as_advanced(HTTP_ONLY)
|
||||||
@@ -186,7 +186,7 @@ option(DISABLED_THREADSAFE "Set to explicitly specify we don't want to use threa
|
|||||||
mark_as_advanced(DISABLED_THREADSAFE)
|
mark_as_advanced(DISABLED_THREADSAFE)
|
||||||
option(ENABLE_IPV6 "Define if you want to enable IPv6 support" ON)
|
option(ENABLE_IPV6 "Define if you want to enable IPv6 support" ON)
|
||||||
mark_as_advanced(ENABLE_IPV6)
|
mark_as_advanced(ENABLE_IPV6)
|
||||||
if(ENABLE_IPV6)
|
if(ENABLE_IPV6 AND NOT WIN32)
|
||||||
include(CheckStructHasMember)
|
include(CheckStructHasMember)
|
||||||
check_struct_has_member("struct sockaddr_in6" sin6_addr "netinet/in.h"
|
check_struct_has_member("struct sockaddr_in6" sin6_addr "netinet/in.h"
|
||||||
HAVE_SOCKADDR_IN6_SIN6_ADDR)
|
HAVE_SOCKADDR_IN6_SIN6_ADDR)
|
||||||
@@ -355,9 +355,10 @@ if(NOT CURL_DISABLE_LDAP)
|
|||||||
check_include_file_concat("winber.h" HAVE_WINBER_H)
|
check_include_file_concat("winber.h" HAVE_WINBER_H)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
set(CMAKE_REQUIRED_INCLUDES_BAK ${CMAKE_REQUIRED_INCLUDES})
|
||||||
set(CMAKE_LDAP_INCLUDE_DIR "" CACHE STRING "Path to LDAP include directory")
|
set(CMAKE_LDAP_INCLUDE_DIR "" CACHE STRING "Path to LDAP include directory")
|
||||||
if(CMAKE_LDAP_INCLUDE_DIR)
|
if(CMAKE_LDAP_INCLUDE_DIR)
|
||||||
set(CMAKE_REQUIRED_INCLUDES ${CMAKE_LDAP_INCLUDE_DIR})
|
list(APPEND CMAKE_REQUIRED_INCLUDES ${CMAKE_LDAP_INCLUDE_DIR})
|
||||||
endif()
|
endif()
|
||||||
check_include_file_concat("ldap.h" HAVE_LDAP_H)
|
check_include_file_concat("ldap.h" HAVE_LDAP_H)
|
||||||
check_include_file_concat("lber.h" HAVE_LBER_H)
|
check_include_file_concat("lber.h" HAVE_LBER_H)
|
||||||
@@ -365,9 +366,11 @@ if(NOT CURL_DISABLE_LDAP)
|
|||||||
if(NOT HAVE_LDAP_H)
|
if(NOT HAVE_LDAP_H)
|
||||||
message(STATUS "LDAP_H not found CURL_DISABLE_LDAP set ON")
|
message(STATUS "LDAP_H not found CURL_DISABLE_LDAP set ON")
|
||||||
set(CURL_DISABLE_LDAP ON CACHE BOOL "" FORCE)
|
set(CURL_DISABLE_LDAP ON CACHE BOOL "" FORCE)
|
||||||
|
set(CMAKE_REQUIRED_INCLUDES ${CMAKE_REQUIRED_INCLUDES_BAK}) #LDAP includes won't be used
|
||||||
elseif(NOT HAVE_LIBLDAP)
|
elseif(NOT HAVE_LIBLDAP)
|
||||||
message(STATUS "LDAP library '${CMAKE_LDAP_LIB}' not found CURL_DISABLE_LDAP set ON")
|
message(STATUS "LDAP library '${CMAKE_LDAP_LIB}' not found CURL_DISABLE_LDAP set ON")
|
||||||
set(CURL_DISABLE_LDAP ON CACHE BOOL "" FORCE)
|
set(CURL_DISABLE_LDAP ON CACHE BOOL "" FORCE)
|
||||||
|
set(CMAKE_REQUIRED_INCLUDES ${CMAKE_REQUIRED_INCLUDES_BAK}) #LDAP includes won't be used
|
||||||
else()
|
else()
|
||||||
if(CMAKE_USE_OPENLDAP)
|
if(CMAKE_USE_OPENLDAP)
|
||||||
set(USE_OPENLDAP ON)
|
set(USE_OPENLDAP ON)
|
||||||
@@ -448,6 +451,7 @@ if(CURL_ZLIB)
|
|||||||
set(HAVE_LIBZ ON)
|
set(HAVE_LIBZ ON)
|
||||||
list(APPEND CURL_LIBS ${ZLIB_LIBRARIES})
|
list(APPEND CURL_LIBS ${ZLIB_LIBRARIES})
|
||||||
include_directories(${ZLIB_INCLUDE_DIRS})
|
include_directories(${ZLIB_INCLUDE_DIRS})
|
||||||
|
list(APPEND CMAKE_REQUIRED_INCLUDES ${ZLIB_INCLUDE_DIRS})
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
@@ -463,7 +467,7 @@ if(CMAKE_USE_LIBSSH2)
|
|||||||
if(LIBSSH2_FOUND)
|
if(LIBSSH2_FOUND)
|
||||||
list(APPEND CURL_LIBS ${LIBSSH2_LIBRARY})
|
list(APPEND CURL_LIBS ${LIBSSH2_LIBRARY})
|
||||||
set(CMAKE_REQUIRED_LIBRARIES ${LIBSSH2_LIBRARY})
|
set(CMAKE_REQUIRED_LIBRARIES ${LIBSSH2_LIBRARY})
|
||||||
set(CMAKE_REQUIRED_INCLUDES "${LIBSSH2_INCLUDE_DIR}")
|
list(APPEND CMAKE_REQUIRED_INCLUDES "${LIBSSH2_INCLUDE_DIR}")
|
||||||
include_directories("${LIBSSH2_INCLUDE_DIR}")
|
include_directories("${LIBSSH2_INCLUDE_DIR}")
|
||||||
set(HAVE_LIBSSH2 ON)
|
set(HAVE_LIBSSH2 ON)
|
||||||
set(USE_LIBSSH2 ON)
|
set(USE_LIBSSH2 ON)
|
||||||
@@ -491,12 +495,12 @@ mark_as_advanced(CMAKE_USE_GSSAPI)
|
|||||||
if(CMAKE_USE_GSSAPI)
|
if(CMAKE_USE_GSSAPI)
|
||||||
find_package(GSS)
|
find_package(GSS)
|
||||||
|
|
||||||
set(HAVE_GSS_API ${GSS_FOUND})
|
set(HAVE_GSSAPI ${GSS_FOUND})
|
||||||
if(GSS_FOUND)
|
if(GSS_FOUND)
|
||||||
|
|
||||||
message(STATUS "Found ${GSS_FLAVOUR} GSSAPI version: \"${GSS_VERSION}\"")
|
message(STATUS "Found ${GSS_FLAVOUR} GSSAPI version: \"${GSS_VERSION}\"")
|
||||||
|
|
||||||
set(CMAKE_REQUIRED_INCLUDES ${GSS_INCLUDE_DIR})
|
list(APPEND CMAKE_REQUIRED_INCLUDES ${GSS_INCLUDE_DIRECTORIES})
|
||||||
check_include_file_concat("gssapi/gssapi.h" HAVE_GSSAPI_GSSAPI_H)
|
check_include_file_concat("gssapi/gssapi.h" HAVE_GSSAPI_GSSAPI_H)
|
||||||
check_include_file_concat("gssapi/gssapi_generic.h" HAVE_GSSAPI_GSSAPI_GENERIC_H)
|
check_include_file_concat("gssapi/gssapi_generic.h" HAVE_GSSAPI_GSSAPI_GENERIC_H)
|
||||||
check_include_file_concat("gssapi/gssapi_krb5.h" HAVE_GSSAPI_GSSAPI_KRB5_H)
|
check_include_file_concat("gssapi/gssapi_krb5.h" HAVE_GSSAPI_GSSAPI_KRB5_H)
|
||||||
@@ -532,7 +536,7 @@ if(CMAKE_USE_GSSAPI)
|
|||||||
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
include_directories(${GSS_INCLUDE_DIR})
|
include_directories(${GSS_INCLUDE_DIRECTORIES})
|
||||||
link_directories(${GSS_LINK_DIRECTORIES})
|
link_directories(${GSS_LINK_DIRECTORIES})
|
||||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${GSS_COMPILER_FLAGS}")
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${GSS_COMPILER_FLAGS}")
|
||||||
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} ${GSS_LINKER_FLAGS}")
|
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} ${GSS_LINKER_FLAGS}")
|
||||||
@@ -552,12 +556,25 @@ else()
|
|||||||
unset(USE_UNIX_SOCKETS CACHE)
|
unset(USE_UNIX_SOCKETS CACHE)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
||||||
# Check for header files
|
# Check for header files
|
||||||
if(NOT UNIX)
|
if(NOT UNIX)
|
||||||
check_include_file_concat("windows.h" HAVE_WINDOWS_H)
|
check_include_file_concat("windows.h" HAVE_WINDOWS_H)
|
||||||
check_include_file_concat("winsock.h" HAVE_WINSOCK_H)
|
check_include_file_concat("winsock.h" HAVE_WINSOCK_H)
|
||||||
check_include_file_concat("ws2tcpip.h" HAVE_WS2TCPIP_H)
|
check_include_file_concat("ws2tcpip.h" HAVE_WS2TCPIP_H)
|
||||||
check_include_file_concat("winsock2.h" HAVE_WINSOCK2_H)
|
check_include_file_concat("winsock2.h" HAVE_WINSOCK2_H)
|
||||||
|
if(CURL_WINDOWS_SSPI)
|
||||||
|
set(CMAKE_REQUIRED_DEFINITIONS "${CMAKE_REQUIRED_DEFINITIONS} -DSECURITY_WIN32")
|
||||||
|
check_include_file_concat("sspi.h" HAVE_SSPI_H)
|
||||||
|
if(HAVE_SSPI_H)
|
||||||
|
check_include_file_concat("schannel.h" HAVE_SCHANNEL_H)
|
||||||
|
set(USE_WINDOWS_SSPI ON)
|
||||||
|
if(HAVE_SCHANNEL_H)
|
||||||
|
set(USE_SCHANNEL ON)
|
||||||
|
set(SSL_ENABLED ON)
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
endif(NOT UNIX)
|
endif(NOT UNIX)
|
||||||
|
|
||||||
check_include_file_concat("stdio.h" HAVE_STDIO_H)
|
check_include_file_concat("stdio.h" HAVE_STDIO_H)
|
||||||
@@ -1046,12 +1063,12 @@ _add_if("AsynchDNS" USE_ARES OR USE_THREADS_POSIX)
|
|||||||
_add_if("IDN" HAVE_LIBIDN)
|
_add_if("IDN" HAVE_LIBIDN)
|
||||||
# TODO SSP1 (WinSSL) check is missing
|
# TODO SSP1 (WinSSL) check is missing
|
||||||
_add_if("SSPI" USE_WINDOWS_SSPI)
|
_add_if("SSPI" USE_WINDOWS_SSPI)
|
||||||
_add_if("GSS-API" HAVE_GSS_API)
|
_add_if("GSS-API" HAVE_GSSAPI)
|
||||||
# TODO SSP1 missing for SPNEGO
|
# TODO SSP1 missing for SPNEGO
|
||||||
_add_if("SPNEGO" NOT CURL_DISABLE_CRYPTO_AUTH AND
|
_add_if("SPNEGO" NOT CURL_DISABLE_CRYPTO_AUTH AND
|
||||||
(HAVE_GSS_API OR USE_WINDOWS_SSPI))
|
(HAVE_GSSAPI OR USE_WINDOWS_SSPI))
|
||||||
_add_if("Kerberos" NOT CURL_DISABLE_CRYPTO_AUTH AND
|
_add_if("Kerberos" NOT CURL_DISABLE_CRYPTO_AUTH AND
|
||||||
(HAVE_GSS_API OR USE_WINDOWS_SSPI))
|
(HAVE_GSSAPI OR USE_WINDOWS_SSPI))
|
||||||
# NTLM support requires crypto function adaptions from various SSL libs
|
# NTLM support requires crypto function adaptions from various SSL libs
|
||||||
# TODO alternative SSL libs tests for SSP1, GNUTLS, NSS, DARWINSSL
|
# TODO alternative SSL libs tests for SSP1, GNUTLS, NSS, DARWINSSL
|
||||||
if(NOT CURL_DISABLE_CRYPTO_AUTH AND (USE_OPENSSL OR
|
if(NOT CURL_DISABLE_CRYPTO_AUTH AND (USE_OPENSSL OR
|
||||||
@@ -1136,7 +1153,7 @@ set(VERSIONNUM "${CURL_VERSION_NUM}")
|
|||||||
# Finally generate a "curl-config" matching this config
|
# Finally generate a "curl-config" matching this config
|
||||||
configure_file("${CURL_SOURCE_DIR}/curl-config.in"
|
configure_file("${CURL_SOURCE_DIR}/curl-config.in"
|
||||||
"${CURL_BINARY_DIR}/curl-config" @ONLY)
|
"${CURL_BINARY_DIR}/curl-config" @ONLY)
|
||||||
install(FILES "${CMAKE_BINARY_DIR}/curl-config"
|
install(FILES "${CURL_BINARY_DIR}/curl-config"
|
||||||
DESTINATION bin
|
DESTINATION bin
|
||||||
PERMISSIONS
|
PERMISSIONS
|
||||||
OWNER_READ OWNER_WRITE OWNER_EXECUTE
|
OWNER_READ OWNER_WRITE OWNER_EXECUTE
|
||||||
@@ -1146,7 +1163,7 @@ install(FILES "${CMAKE_BINARY_DIR}/curl-config"
|
|||||||
# Finally generate a pkg-config file matching this config
|
# Finally generate a pkg-config file matching this config
|
||||||
configure_file("${CURL_SOURCE_DIR}/libcurl.pc.in"
|
configure_file("${CURL_SOURCE_DIR}/libcurl.pc.in"
|
||||||
"${CURL_BINARY_DIR}/libcurl.pc" @ONLY)
|
"${CURL_BINARY_DIR}/libcurl.pc" @ONLY)
|
||||||
install(FILES "${CMAKE_BINARY_DIR}/libcurl.pc"
|
install(FILES "${CURL_BINARY_DIR}/libcurl.pc"
|
||||||
DESTINATION lib/pkgconfig)
|
DESTINATION lib/pkgconfig)
|
||||||
|
|
||||||
# This needs to be run very last so other parts of the scripts can take advantage of this.
|
# This needs to be run very last so other parts of the scripts can take advantage of this.
|
||||||
|
@@ -65,7 +65,7 @@ else
|
|||||||
ARCHES64='-arch x86_64'
|
ARCHES64='-arch x86_64'
|
||||||
#We "know" that 10.4 and earlier do not support 64bit
|
#We "know" that 10.4 and earlier do not support 64bit
|
||||||
OLD_SDK64=`ls $SDK_PATH|egrep -v "10.[0-4]"|head -1`
|
OLD_SDK64=`ls $SDK_PATH|egrep -v "10.[0-4]"|head -1`
|
||||||
NEW_SDK64=`ls -r $SDK_PATH|egrep -v "10.[0-4]"|head -1`
|
NEW_SDK64=`ls -r $SDK_PATH|egrep -v "10.[0-4][^0-9]" | head -1`
|
||||||
if test $USE_OLD -gt 0
|
if test $USE_OLD -gt 0
|
||||||
then
|
then
|
||||||
SDK64=$OLD_SDK64
|
SDK64=$OLD_SDK64
|
||||||
|
84
Makefile.am
84
Makefile.am
@@ -32,86 +32,97 @@ CMAKE_DIST = CMakeLists.txt CMake/CMakeConfigurableFile.in \
|
|||||||
VC6_LIBTMPL = projects/Windows/VC6/lib/libcurl.tmpl
|
VC6_LIBTMPL = projects/Windows/VC6/lib/libcurl.tmpl
|
||||||
VC6_LIBDSP = projects/Windows/VC6/lib/libcurl.dsp.dist
|
VC6_LIBDSP = projects/Windows/VC6/lib/libcurl.dsp.dist
|
||||||
VC6_LIBDSP_DEPS = $(VC6_LIBTMPL) Makefile.am lib/Makefile.inc
|
VC6_LIBDSP_DEPS = $(VC6_LIBTMPL) Makefile.am lib/Makefile.inc
|
||||||
VC6_SRCTMPL = projects/Windows/VC6/src/curlsrc.tmpl
|
VC6_SRCTMPL = projects/Windows/VC6/src/curl.tmpl
|
||||||
VC6_SRCDSP = projects/Windows/VC6/src/curlsrc.dsp.dist
|
VC6_SRCDSP = projects/Windows/VC6/src/curl.dsp.dist
|
||||||
VC6_SRCDSP_DEPS = $(VC6_SRCTMPL) Makefile.am src/Makefile.inc
|
VC6_SRCDSP_DEPS = $(VC6_SRCTMPL) Makefile.am src/Makefile.inc
|
||||||
|
|
||||||
VC7_LIBTMPL = projects/Windows/VC7/lib/libcurl.tmpl
|
VC7_LIBTMPL = projects/Windows/VC7/lib/libcurl.tmpl
|
||||||
VC7_LIBVCPROJ = projects/Windows/VC7/lib/libcurl.vcproj.dist
|
VC7_LIBVCPROJ = projects/Windows/VC7/lib/libcurl.vcproj.dist
|
||||||
VC7_LIBVCPROJ_DEPS = $(VC7_LIBTMPL) Makefile.am lib/Makefile.inc
|
VC7_LIBVCPROJ_DEPS = $(VC7_LIBTMPL) Makefile.am lib/Makefile.inc
|
||||||
VC7_SRCTMPL = projects/Windows/VC7/src/curlsrc.tmpl
|
VC7_SRCTMPL = projects/Windows/VC7/src/curl.tmpl
|
||||||
VC7_SRCVCPROJ = projects/Windows/VC7/src/curlsrc.vcproj.dist
|
VC7_SRCVCPROJ = projects/Windows/VC7/src/curl.vcproj.dist
|
||||||
VC7_SRCVCPROJ_DEPS = $(VC7_SRCTMPL) Makefile.am src/Makefile.inc
|
VC7_SRCVCPROJ_DEPS = $(VC7_SRCTMPL) Makefile.am src/Makefile.inc
|
||||||
|
|
||||||
VC71_LIBTMPL = projects/Windows/VC7.1/lib/libcurl.tmpl
|
VC71_LIBTMPL = projects/Windows/VC7.1/lib/libcurl.tmpl
|
||||||
VC71_LIBVCPROJ = projects/Windows/VC7.1/lib/libcurl.vcproj.dist
|
VC71_LIBVCPROJ = projects/Windows/VC7.1/lib/libcurl.vcproj.dist
|
||||||
VC71_LIBVCPROJ_DEPS = $(VC71_LIBTMPL) Makefile.am lib/Makefile.inc
|
VC71_LIBVCPROJ_DEPS = $(VC71_LIBTMPL) Makefile.am lib/Makefile.inc
|
||||||
VC71_SRCTMPL = projects/Windows/VC7.1/src/curlsrc.tmpl
|
VC71_SRCTMPL = projects/Windows/VC7.1/src/curl.tmpl
|
||||||
VC71_SRCVCPROJ = projects/Windows/VC7.1/src/curlsrc.vcproj.dist
|
VC71_SRCVCPROJ = projects/Windows/VC7.1/src/curl.vcproj.dist
|
||||||
VC71_SRCVCPROJ_DEPS = $(VC71_SRCTMPL) Makefile.am src/Makefile.inc
|
VC71_SRCVCPROJ_DEPS = $(VC71_SRCTMPL) Makefile.am src/Makefile.inc
|
||||||
|
|
||||||
VC8_LIBTMPL = projects/Windows/VC8/lib/libcurl.tmpl
|
VC8_LIBTMPL = projects/Windows/VC8/lib/libcurl.tmpl
|
||||||
VC8_LIBVCPROJ = projects/Windows/VC8/lib/libcurl.vcproj.dist
|
VC8_LIBVCPROJ = projects/Windows/VC8/lib/libcurl.vcproj.dist
|
||||||
VC8_LIBVCPROJ_DEPS = $(VC8_LIBTMPL) Makefile.am lib/Makefile.inc
|
VC8_LIBVCPROJ_DEPS = $(VC8_LIBTMPL) Makefile.am lib/Makefile.inc
|
||||||
VC8_SRCTMPL = projects/Windows/VC8/src/curlsrc.tmpl
|
VC8_SRCTMPL = projects/Windows/VC8/src/curl.tmpl
|
||||||
VC8_SRCVCPROJ = projects/Windows/VC8/src/curlsrc.vcproj.dist
|
VC8_SRCVCPROJ = projects/Windows/VC8/src/curl.vcproj.dist
|
||||||
VC8_SRCVCPROJ_DEPS = $(VC8_SRCTMPL) Makefile.am src/Makefile.inc
|
VC8_SRCVCPROJ_DEPS = $(VC8_SRCTMPL) Makefile.am src/Makefile.inc
|
||||||
|
|
||||||
VC9_LIBTMPL = projects/Windows/VC9/lib/libcurl.tmpl
|
VC9_LIBTMPL = projects/Windows/VC9/lib/libcurl.tmpl
|
||||||
VC9_LIBVCPROJ = projects/Windows/VC9/lib/libcurl.vcproj.dist
|
VC9_LIBVCPROJ = projects/Windows/VC9/lib/libcurl.vcproj.dist
|
||||||
VC9_LIBVCPROJ_DEPS = $(VC9_LIBTMPL) Makefile.am lib/Makefile.inc
|
VC9_LIBVCPROJ_DEPS = $(VC9_LIBTMPL) Makefile.am lib/Makefile.inc
|
||||||
VC9_SRCTMPL = projects/Windows/VC9/src/curlsrc.tmpl
|
VC9_SRCTMPL = projects/Windows/VC9/src/curl.tmpl
|
||||||
VC9_SRCVCPROJ = projects/Windows/VC9/src/curlsrc.vcproj.dist
|
VC9_SRCVCPROJ = projects/Windows/VC9/src/curl.vcproj.dist
|
||||||
VC9_SRCVCPROJ_DEPS = $(VC9_SRCTMPL) Makefile.am src/Makefile.inc
|
VC9_SRCVCPROJ_DEPS = $(VC9_SRCTMPL) Makefile.am src/Makefile.inc
|
||||||
|
|
||||||
VC10_LIBTMPL = projects/Windows/VC10/lib/libcurl.tmpl
|
VC10_LIBTMPL = projects/Windows/VC10/lib/libcurl.tmpl
|
||||||
VC10_LIBVCXPROJ = projects/Windows/VC10/lib/libcurl.vcxproj.dist
|
VC10_LIBVCXPROJ = projects/Windows/VC10/lib/libcurl.vcxproj.dist
|
||||||
VC10_LIBVCXPROJ_DEPS = $(VC10_LIBTMPL) Makefile.am lib/Makefile.inc
|
VC10_LIBVCXPROJ_DEPS = $(VC10_LIBTMPL) Makefile.am lib/Makefile.inc
|
||||||
VC10_SRCTMPL = projects/Windows/VC10/src/curlsrc.tmpl
|
VC10_SRCTMPL = projects/Windows/VC10/src/curl.tmpl
|
||||||
VC10_SRCVCXPROJ = projects/Windows/VC10/src/curlsrc.vcxproj.dist
|
VC10_SRCVCXPROJ = projects/Windows/VC10/src/curl.vcxproj.dist
|
||||||
VC10_SRCVCXPROJ_DEPS = $(VC10_SRCTMPL) Makefile.am src/Makefile.inc
|
VC10_SRCVCXPROJ_DEPS = $(VC10_SRCTMPL) Makefile.am src/Makefile.inc
|
||||||
|
|
||||||
VC11_LIBTMPL = projects/Windows/VC11/lib/libcurl.tmpl
|
VC11_LIBTMPL = projects/Windows/VC11/lib/libcurl.tmpl
|
||||||
VC11_LIBVCXPROJ = projects/Windows/VC11/lib/libcurl.vcxproj.dist
|
VC11_LIBVCXPROJ = projects/Windows/VC11/lib/libcurl.vcxproj.dist
|
||||||
VC11_LIBVCXPROJ_DEPS = $(VC11_LIBTMPL) Makefile.am lib/Makefile.inc
|
VC11_LIBVCXPROJ_DEPS = $(VC11_LIBTMPL) Makefile.am lib/Makefile.inc
|
||||||
VC11_SRCTMPL = projects/Windows/VC11/src/curlsrc.tmpl
|
VC11_SRCTMPL = projects/Windows/VC11/src/curl.tmpl
|
||||||
VC11_SRCVCXPROJ = projects/Windows/VC11/src/curlsrc.vcxproj.dist
|
VC11_SRCVCXPROJ = projects/Windows/VC11/src/curl.vcxproj.dist
|
||||||
VC11_SRCVCXPROJ_DEPS = $(VC11_SRCTMPL) Makefile.am src/Makefile.inc
|
VC11_SRCVCXPROJ_DEPS = $(VC11_SRCTMPL) Makefile.am src/Makefile.inc
|
||||||
|
|
||||||
VC12_LIBTMPL = projects/Windows/VC12/lib/libcurl.tmpl
|
VC12_LIBTMPL = projects/Windows/VC12/lib/libcurl.tmpl
|
||||||
VC12_LIBVCXPROJ = projects/Windows/VC12/lib/libcurl.vcxproj.dist
|
VC12_LIBVCXPROJ = projects/Windows/VC12/lib/libcurl.vcxproj.dist
|
||||||
VC12_LIBVCXPROJ_DEPS = $(VC12_LIBTMPL) Makefile.am lib/Makefile.inc
|
VC12_LIBVCXPROJ_DEPS = $(VC12_LIBTMPL) Makefile.am lib/Makefile.inc
|
||||||
VC12_SRCTMPL = projects/Windows/VC12/src/curlsrc.tmpl
|
VC12_SRCTMPL = projects/Windows/VC12/src/curl.tmpl
|
||||||
VC12_SRCVCXPROJ = projects/Windows/VC12/src/curlsrc.vcxproj.dist
|
VC12_SRCVCXPROJ = projects/Windows/VC12/src/curl.vcxproj.dist
|
||||||
VC12_SRCVCXPROJ_DEPS = $(VC12_SRCTMPL) Makefile.am src/Makefile.inc
|
VC12_SRCVCXPROJ_DEPS = $(VC12_SRCTMPL) Makefile.am src/Makefile.inc
|
||||||
|
|
||||||
|
VC14_LIBTMPL = projects/Windows/VC14/lib/libcurl.tmpl
|
||||||
|
VC14_LIBVCXPROJ = projects/Windows/VC14/lib/libcurl.vcxproj.dist
|
||||||
|
VC14_LIBVCXPROJ_DEPS = $(VC14_LIBTMPL) Makefile.am lib/Makefile.inc
|
||||||
|
VC14_SRCTMPL = projects/Windows/VC14/src/curl.tmpl
|
||||||
|
VC14_SRCVCXPROJ = projects/Windows/VC14/src/curl.vcxproj.dist
|
||||||
|
VC14_SRCVCXPROJ_DEPS = $(VC14_SRCTMPL) Makefile.am src/Makefile.inc
|
||||||
|
|
||||||
VC_DIST = projects/README \
|
VC_DIST = projects/README \
|
||||||
projects/build-openssl.bat \
|
projects/build-openssl.bat \
|
||||||
|
projects/build-wolfssl.bat \
|
||||||
projects/checksrc.bat \
|
projects/checksrc.bat \
|
||||||
projects/Windows/VC6/curl-all.dsw \
|
projects/Windows/VC6/curl-all.dsw \
|
||||||
projects/Windows/VC6/lib/libcurl.dsw \
|
projects/Windows/VC6/lib/libcurl.dsw \
|
||||||
projects/Windows/VC6/src/curlsrc.dsw \
|
projects/Windows/VC6/src/curl.dsw \
|
||||||
projects/Windows/VC7/curl-all.sln \
|
projects/Windows/VC7/curl-all.sln \
|
||||||
projects/Windows/VC7/lib/libcurl.sln \
|
projects/Windows/VC7/lib/libcurl.sln \
|
||||||
projects/Windows/VC7/src/curlsrc.sln \
|
projects/Windows/VC7/src/curl.sln \
|
||||||
projects/Windows/VC7.1/curl-all.sln \
|
projects/Windows/VC7.1/curl-all.sln \
|
||||||
projects/Windows/VC7.1/lib/libcurl.sln \
|
projects/Windows/VC7.1/lib/libcurl.sln \
|
||||||
projects/Windows/VC7.1/src/curlsrc.sln \
|
projects/Windows/VC7.1/src/curl.sln \
|
||||||
projects/Windows/VC8/curl-all.sln \
|
projects/Windows/VC8/curl-all.sln \
|
||||||
projects/Windows/VC8/lib/libcurl.sln \
|
projects/Windows/VC8/lib/libcurl.sln \
|
||||||
projects/Windows/VC8/src/curlsrc.sln \
|
projects/Windows/VC8/src/curl.sln \
|
||||||
projects/Windows/VC9/curl-all.sln \
|
projects/Windows/VC9/curl-all.sln \
|
||||||
projects/Windows/VC9/lib/libcurl.sln \
|
projects/Windows/VC9/lib/libcurl.sln \
|
||||||
projects/Windows/VC9/src/curlsrc.sln \
|
projects/Windows/VC9/src/curl.sln \
|
||||||
projects/Windows/VC10/curl-all.sln \
|
projects/Windows/VC10/curl-all.sln \
|
||||||
projects/Windows/VC10/lib/libcurl.sln \
|
projects/Windows/VC10/lib/libcurl.sln \
|
||||||
projects/Windows/VC10/src/curlsrc.sln \
|
projects/Windows/VC10/src/curl.sln \
|
||||||
projects/Windows/VC11/curl-all.sln \
|
projects/Windows/VC11/curl-all.sln \
|
||||||
projects/Windows/VC11/lib/libcurl.sln \
|
projects/Windows/VC11/lib/libcurl.sln \
|
||||||
projects/Windows/VC11/src/curlsrc.sln \
|
projects/Windows/VC11/src/curl.sln \
|
||||||
projects/Windows/VC12/curl-all.sln \
|
projects/Windows/VC12/curl-all.sln \
|
||||||
projects/Windows/VC12/lib/libcurl.sln \
|
projects/Windows/VC12/lib/libcurl.sln \
|
||||||
projects/Windows/VC12/src/curlsrc.sln
|
projects/Windows/VC12/src/curl.sln \
|
||||||
|
projects/Windows/VC14/curl-all.sln \
|
||||||
|
projects/Windows/VC14/lib/libcurl.sln \
|
||||||
|
projects/Windows/VC14/src/curl.sln
|
||||||
|
|
||||||
WINBUILD_DIST = winbuild/BUILD.WINDOWS.txt winbuild/gen_resp_file.bat \
|
WINBUILD_DIST = winbuild/BUILD.WINDOWS.txt winbuild/gen_resp_file.bat \
|
||||||
winbuild/MakefileBuild.vc winbuild/Makefile.vc \
|
winbuild/MakefileBuild.vc winbuild/Makefile.vc \
|
||||||
@@ -124,7 +135,8 @@ EXTRA_DIST = CHANGES COPYING maketgz Makefile.dist curl-config.in \
|
|||||||
CLEANFILES = $(VC6_LIBDSP) $(VC6_SRCDSP) $(VC7_LIBVCPROJ) $(VC7_SRCVCPROJ) \
|
CLEANFILES = $(VC6_LIBDSP) $(VC6_SRCDSP) $(VC7_LIBVCPROJ) $(VC7_SRCVCPROJ) \
|
||||||
$(VC71_LIBVCPROJ) $(VC71_SRCVCPROJ) $(VC8_LIBVCPROJ) $(VC8_SRCVCPROJ) \
|
$(VC71_LIBVCPROJ) $(VC71_SRCVCPROJ) $(VC8_LIBVCPROJ) $(VC8_SRCVCPROJ) \
|
||||||
$(VC9_LIBVCPROJ) $(VC9_SRCVCPROJ) $(VC10_LIBVCXPROJ) $(VC10_SRCVCXPROJ) \
|
$(VC9_LIBVCPROJ) $(VC9_SRCVCPROJ) $(VC10_LIBVCXPROJ) $(VC10_SRCVCXPROJ) \
|
||||||
$(VC11_LIBVCXPROJ) $(VC11_SRCVCXPROJ) $(VC12_LIBVCXPROJ) $(VC12_SRCVCXPROJ)
|
$(VC11_LIBVCXPROJ) $(VC11_SRCVCXPROJ) $(VC12_LIBVCXPROJ) $(VC12_SRCVCXPROJ) \
|
||||||
|
$(VC14_LIBVCXPROJ) $(VC14_SRCVCXPROJ)
|
||||||
|
|
||||||
bin_SCRIPTS = curl-config
|
bin_SCRIPTS = curl-config
|
||||||
|
|
||||||
@@ -269,7 +281,7 @@ vc-ide: $(VC6_LIBDSP_DEPS) $(VC6_SRCDSP_DEPS) $(VC7_LIBVCPROJ_DEPS) \
|
|||||||
$(VC8_LIBVCPROJ_DEPS) $(VC8_SRCVCPROJ_DEPS) $(VC9_LIBVCPROJ_DEPS) \
|
$(VC8_LIBVCPROJ_DEPS) $(VC8_SRCVCPROJ_DEPS) $(VC9_LIBVCPROJ_DEPS) \
|
||||||
$(VC9_SRCVCPROJ_DEPS) $(VC10_LIBVCXPROJ_DEPS) $(VC10_SRCVCXPROJ_DEPS) \
|
$(VC9_SRCVCPROJ_DEPS) $(VC10_LIBVCXPROJ_DEPS) $(VC10_SRCVCXPROJ_DEPS) \
|
||||||
$(VC11_LIBVCXPROJ_DEPS) $(VC11_SRCVCXPROJ_DEPS) $(VC12_LIBVCXPROJ_DEPS) \
|
$(VC11_LIBVCXPROJ_DEPS) $(VC11_SRCVCXPROJ_DEPS) $(VC12_LIBVCXPROJ_DEPS) \
|
||||||
$(VC12_SRCVCXPROJ_DEPS)
|
$(VC12_SRCVCXPROJ_DEPS) $(VC14_LIBVCXPROJ_DEPS) $(VC14_SRCVCXPROJ_DEPS)
|
||||||
@(win32_lib_srcs='$(LIB_CFILES)'; \
|
@(win32_lib_srcs='$(LIB_CFILES)'; \
|
||||||
win32_lib_hdrs='$(LIB_HFILES) config-win32.h'; \
|
win32_lib_hdrs='$(LIB_HFILES) config-win32.h'; \
|
||||||
win32_lib_rc='$(LIB_RCFILES)'; \
|
win32_lib_rc='$(LIB_RCFILES)'; \
|
||||||
@@ -530,4 +542,22 @@ function gen_element(type, dir, file)\
|
|||||||
-v src_rc="$$win32_src_rc" \
|
-v src_rc="$$win32_src_rc" \
|
||||||
-v src_x_srcs="$$sorted_src_x_srcs" \
|
-v src_x_srcs="$$sorted_src_x_srcs" \
|
||||||
-v src_x_hdrs="$$sorted_src_x_hdrs" \
|
-v src_x_hdrs="$$sorted_src_x_hdrs" \
|
||||||
"$$awk_code" $(srcdir)/$(VC12_SRCTMPL) > $(VC12_SRCVCXPROJ) || { exit 1; };)
|
"$$awk_code" $(srcdir)/$(VC12_SRCTMPL) > $(VC12_SRCVCXPROJ) || { exit 1; }; \
|
||||||
|
\
|
||||||
|
echo "generating '$(VC14_LIBVCXPROJ)'"; \
|
||||||
|
awk -v proj_type=vcxproj \
|
||||||
|
-v lib_srcs="$$sorted_lib_srcs" \
|
||||||
|
-v lib_hdrs="$$sorted_lib_hdrs" \
|
||||||
|
-v lib_rc="$$win32_lib_rc" \
|
||||||
|
-v lib_vtls_srcs="$$sorted_lib_vtls_srcs" \
|
||||||
|
-v lib_vtls_hdrs="$$sorted_lib_vtls_hdrs" \
|
||||||
|
"$$awk_code" $(srcdir)/$(VC14_LIBTMPL) > $(VC14_LIBVCXPROJ) || { exit 1; }; \
|
||||||
|
\
|
||||||
|
echo "generating '$(VC14_SRCVCXPROJ)'"; \
|
||||||
|
awk -v proj_type=vcxproj \
|
||||||
|
-v src_srcs="$$sorted_src_srcs" \
|
||||||
|
-v src_hdrs="$$sorted_src_hdrs" \
|
||||||
|
-v src_rc="$$win32_src_rc" \
|
||||||
|
-v src_x_srcs="$$sorted_src_x_srcs" \
|
||||||
|
-v src_x_hdrs="$$sorted_src_x_hdrs" \
|
||||||
|
"$$awk_code" $(srcdir)/$(VC14_SRCTMPL) > $(VC14_SRCVCXPROJ) || { exit 1; };)
|
||||||
|
@@ -5,7 +5,7 @@
|
|||||||
# | (__| |_| | _ <| |___
|
# | (__| |_| | _ <| |___
|
||||||
# \___|\___/|_| \_\_____|
|
# \___|\___/|_| \_\_____|
|
||||||
#
|
#
|
||||||
# Copyright (C) 1998 - 2014, Daniel Stenberg, <daniel@haxx.se>, et al.
|
# Copyright (C) 1998 - 2015, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
#
|
#
|
||||||
# This software is licensed as described in the file COPYING, which
|
# This software is licensed as described in the file COPYING, which
|
||||||
# you should have received as part of this distribution. The terms
|
# you should have received as part of this distribution. The terms
|
||||||
@@ -566,6 +566,17 @@ src/Makefile.vc12: src/Makefile.vc6
|
|||||||
@echo "generate $@"
|
@echo "generate $@"
|
||||||
@sed -e "s#/GX /DWIN32 /YX#/EHsc /DWIN32#" -e "s#/GZ#/RTC1#" -e "s/ws2_32.lib/ws2_32.lib/g" -e "s/vc6/vc12/g" -e "s/VC6/VC12/g" src/Makefile.vc6 > src/Makefile.vc12
|
@sed -e "s#/GX /DWIN32 /YX#/EHsc /DWIN32#" -e "s#/GZ#/RTC1#" -e "s/ws2_32.lib/ws2_32.lib/g" -e "s/vc6/vc12/g" -e "s/VC6/VC12/g" src/Makefile.vc6 > src/Makefile.vc12
|
||||||
|
|
||||||
|
# VC14 makefiles are for use with VS2015
|
||||||
|
vc14: lib/Makefile.vc14 src/Makefile.vc14
|
||||||
|
|
||||||
|
lib/Makefile.vc14: lib/Makefile.vc6
|
||||||
|
@echo "generate $@"
|
||||||
|
@sed -e "s#/GX /DWIN32 /YX#/EHsc /DWIN32#" -e "s#/GZ#/RTC1#" -e "s/ws2_32.lib/ws2_32.lib/g" -e "s/vc6/vc14/g" -e "s/VC6/VC14/g" lib/Makefile.vc6 > lib/Makefile.vc14
|
||||||
|
|
||||||
|
src/Makefile.vc14: src/Makefile.vc6
|
||||||
|
@echo "generate $@"
|
||||||
|
@sed -e "s#/GX /DWIN32 /YX#/EHsc /DWIN32#" -e "s#/GZ#/RTC1#" -e "s/ws2_32.lib/ws2_32.lib/g" -e "s/vc6/vc14/g" -e "s/VC6/VC14/g" src/Makefile.vc6 > src/Makefile.vc14
|
||||||
|
|
||||||
ca-bundle: lib/mk-ca-bundle.pl
|
ca-bundle: lib/mk-ca-bundle.pl
|
||||||
@echo "generate a fresh ca-bundle.crt"
|
@echo "generate a fresh ca-bundle.crt"
|
||||||
@perl $< -b -l -u lib/ca-bundle.crt
|
@perl $< -b -l -u lib/ca-bundle.crt
|
||||||
|
101
RELEASE-NOTES
101
RELEASE-NOTES
@@ -1,19 +1,73 @@
|
|||||||
Curl and libcurl 7.44.0
|
Curl and libcurl 7.46.0
|
||||||
|
|
||||||
Public curl releases: 148
|
Public curl releases: 150
|
||||||
Command line options: 176
|
Command line options: 177
|
||||||
curl_easy_setopt() options: 219
|
curl_easy_setopt() options: 221
|
||||||
Public functions in libcurl: 58
|
Public functions in libcurl: 61
|
||||||
Contributors: 1291
|
Contributors: 1322
|
||||||
|
|
||||||
This release includes the following changes:
|
This release includes the following changes:
|
||||||
|
|
||||||
o
|
o configure: build silently by default
|
||||||
|
o cookies: Add support for Publix Suffix List with libpsl
|
||||||
|
o vtls: added support for mbedTLS [7]
|
||||||
|
o Added CURLOPT_STREAM_DEPENDS [8]
|
||||||
|
o Added CURLOPT_STREAM_DEPENDS_E [9]
|
||||||
|
o Added CURLOPT_STREAM_WEIGHT [10]
|
||||||
|
o Added CURLFORM_CONTENTLEN [14]
|
||||||
|
o oauth2: Added support for OAUTHBEARER SASL mechanism to IMAP, POP3 and SNMP
|
||||||
|
|
||||||
This release includes the following bugfixes:
|
This release includes the following bugfixes:
|
||||||
|
|
||||||
o
|
o des: Fix header conditional for Curl_des_set_odd_parity
|
||||||
|
o ntlm: get rid of unconditional use of long long [1]
|
||||||
|
o CURLOPT_CERTINFO.3: fix reference to CURLINFO_CERTINFO
|
||||||
|
o docs: CURLINFO_LASTSOCKET => CURLINFO_ACTIVESOCKET [2]
|
||||||
|
o http2: Fix http2_recv to return -1 if recv returned -1
|
||||||
|
o curl_global_init_mem: set function pointers before doing init
|
||||||
|
o ntlm: error out without 64bit support as the code needs it [1]
|
||||||
|
o openssl: Fix set up of pkcs12 certificate verification chain
|
||||||
|
o acinclude: remove PKGCONFIG override [3]
|
||||||
|
o test1531: case the size to fix the test on non-largefile builds
|
||||||
|
o fread_func: move callback pointer from set to state struct [4]
|
||||||
|
o test1601: fix compilation with --enable-debug and --disable-crypto-auth
|
||||||
|
o http2: Don't pass unitialized name+len pairs to nghttp2_submit_request [5]
|
||||||
|
o curlbuild.h: Fix non-configure compiling to mips and sh4 targets
|
||||||
|
o tool: Generate easysrc with last cache linked-list [6]
|
||||||
|
o cmake: Fix for add_subdirectory(curl) use-case
|
||||||
|
o vtls: fix compiler warning for TLS backends without sha256
|
||||||
|
o build: fix for MSDOS/djgpp
|
||||||
|
o checksrc: add crude // detection
|
||||||
|
o http2: on_frame_recv: trust the conn/data input
|
||||||
|
o ftp: allow CURLOPT_IGNORE_CONTENT_LENGTH to ignore size [11]
|
||||||
|
o polarssl/mbedtls: fix name space pollution
|
||||||
|
o build: Fix mingw ssl gdi32 order [12]
|
||||||
|
o build: Fix support for PKG_CONFIG
|
||||||
|
o MacOSX-Framework: sdk regex fix for sdk 10.10 and later
|
||||||
|
o socks: Fix incorrect port numbers in failed connect messages
|
||||||
|
o curl.1: -E: s/private certificate/client certificate
|
||||||
|
o curl.h: s/HTTPPOST_/CURL_HTTPOST_ [13]
|
||||||
|
o curl_formadd: support >2GB files on windows [14]
|
||||||
|
o http redirects: %-encode bytes outside of ascii range [15]
|
||||||
|
o rawstr: Speed up Curl_raw_toupper by 40%
|
||||||
|
o curl_ntlm_core: fix 2 curl_off_t constant overflows.
|
||||||
|
o getinfo: CURLINFO_ACTIVESOCKET: fix bad socket value
|
||||||
|
o tftp tests: verify sent options too
|
||||||
|
o imap: Don't call imap_atom() when no mailbox specified in LIST command
|
||||||
|
o imap: Fixed double quote in LIST command when mailbox contains spaces
|
||||||
|
o imap: Don't check for continuation when executing a CUSTOMREQUEST [16]
|
||||||
|
o acinclude: Remove check for 16-bit curl_off_t
|
||||||
|
o BoringSSL: Work with stricter BIO_get_mem_data() [17]
|
||||||
|
o cmake: Add missing feature macros in config header [18]
|
||||||
|
o sasl_sspi: fixed unicode build for digest authentication [19]
|
||||||
|
o sasl_sspi: fix identity memory leak in digest authentication
|
||||||
|
o unit1602: Fixed failure in torture test
|
||||||
|
o unit1603: Added unit tests for hash functions
|
||||||
|
o vtls/openssl: remove unused traces of yassl ifdefs
|
||||||
|
o openssl: remove #ifdefs for < 0.9.7 support
|
||||||
|
o typecheck-gcc.h: add some missing options
|
||||||
|
o curl: mark two more options strings for --libcurl output
|
||||||
|
o openssl: Free modules on cleanup [20]
|
||||||
|
|
||||||
This release includes the following known bugs:
|
This release includes the following known bugs:
|
||||||
|
|
||||||
@@ -22,10 +76,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:
|
||||||
|
|
||||||
|
Anders Bakken, Dan Fandrich, Daniel Hwang, Daniel Stenberg, Dmitry S. Baikov,
|
||||||
|
Douglas Creager, Erik Johansson, Gisle Vanem, Javier G. Sogo, John Levon,
|
||||||
|
Jonas Minnberg, Justin Ehlert, Kamil Dudka, Kang Lin, Kurt Fankhauser,
|
||||||
|
Lauri Kasanen, Marcel Raad, Patrick Monnerat, Rainer Jung, Ray Satiro,
|
||||||
|
Richard Hosking, Sebastian Pohlschmidt, Stefan Bühler, Steve Holme,
|
||||||
|
Svyatoslav Mishyn, Tatsuhiro Tsujikawa, Tim Rühsen, xiangbin li,
|
||||||
|
(28 contributors)
|
||||||
|
|
||||||
Thanks! (and sorry if I forgot to mention someone)
|
Thanks! (and sorry if I forgot to mention someone)
|
||||||
|
|
||||||
References to bug reports and discussions on issues:
|
References to bug reports and discussions on issues:
|
||||||
|
|
||||||
[1] =
|
[1] = http://curl.haxx.se/bug/?i=478
|
||||||
|
[2] = http://curl.haxx.se/bug/?i=479
|
||||||
|
[3] = http://curl.haxx.se/mail/lib-2015-10/0035.html
|
||||||
|
[4] = http://curl.haxx.se/bug/?i=346
|
||||||
|
[5] = http://curl.haxx.se/bug/?i=493
|
||||||
|
[6] = http://curl.haxx.se/bug/?i=452
|
||||||
|
[7] = http://curl.haxx.se/bug/?i=496
|
||||||
|
[8] = http://curl.haxx.se/libcurl/c/CURLOPT_STREAM_DEPENDS.html
|
||||||
|
[9] = http://curl.haxx.se/libcurl/c/CURLOPT_STREAM_DEPENDS_E.html
|
||||||
|
[10] = http://curl.haxx.se/libcurl/c/CURLOPT_STREAM_WEIGHT.html
|
||||||
|
[11] = http://curl.haxx.se/bug/?i=480
|
||||||
|
[12] = https://github.com/bagder/curl/pull/501
|
||||||
|
[13] = http://curl.haxx.se/bug/?i=506
|
||||||
|
[14] = http://curl.haxx.se/bug/?i=425
|
||||||
|
[15] = http://curl.haxx.se/bug/?i=473
|
||||||
|
[16] = http://curl.haxx.se/bug/?i=486
|
||||||
|
[17] = http://curl.haxx.se/bug/?i=524
|
||||||
|
[18] = http://curl.haxx.se/bug/?i=523
|
||||||
|
[19] = http://curl.haxx.se/bug/?i=525
|
||||||
|
[20] = http://curl.haxx.se/bug/?i=526
|
||||||
|
58
acinclude.m4
58
acinclude.m4
@@ -5,7 +5,7 @@
|
|||||||
# | (__| |_| | _ <| |___
|
# | (__| |_| | _ <| |___
|
||||||
# \___|\___/|_| \_\_____|
|
# \___|\___/|_| \_\_____|
|
||||||
#
|
#
|
||||||
# Copyright (C) 1998 - 2013, Daniel Stenberg, <daniel@haxx.se>, et al.
|
# Copyright (C) 1998 - 2015, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
#
|
#
|
||||||
# This software is licensed as described in the file COPYING, which
|
# This software is licensed as described in the file COPYING, which
|
||||||
# you should have received as part of this distribution. The terms
|
# you should have received as part of this distribution. The terms
|
||||||
@@ -1851,8 +1851,10 @@ AC_DEFUN([CURL_CHECK_FUNC_CLOCK_GETTIME_MONOTONIC], [
|
|||||||
AC_REQUIRE([AC_HEADER_TIME])dnl
|
AC_REQUIRE([AC_HEADER_TIME])dnl
|
||||||
AC_CHECK_HEADERS(sys/types.h sys/time.h time.h)
|
AC_CHECK_HEADERS(sys/types.h sys/time.h time.h)
|
||||||
AC_MSG_CHECKING([for monotonic clock_gettime])
|
AC_MSG_CHECKING([for monotonic clock_gettime])
|
||||||
AC_COMPILE_IFELSE([
|
#
|
||||||
AC_LANG_PROGRAM([[
|
if test "x$dontwant_rt" == "xno" ; then
|
||||||
|
AC_COMPILE_IFELSE([
|
||||||
|
AC_LANG_PROGRAM([[
|
||||||
#ifdef HAVE_SYS_TYPES_H
|
#ifdef HAVE_SYS_TYPES_H
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#endif
|
#endif
|
||||||
@@ -1866,17 +1868,18 @@ AC_DEFUN([CURL_CHECK_FUNC_CLOCK_GETTIME_MONOTONIC], [
|
|||||||
#include <time.h>
|
#include <time.h>
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
]],[[
|
]],[[
|
||||||
struct timespec ts;
|
struct timespec ts;
|
||||||
(void)clock_gettime(CLOCK_MONOTONIC, &ts);
|
(void)clock_gettime(CLOCK_MONOTONIC, &ts);
|
||||||
]])
|
]])
|
||||||
],[
|
],[
|
||||||
AC_MSG_RESULT([yes])
|
AC_MSG_RESULT([yes])
|
||||||
ac_cv_func_clock_gettime="yes"
|
ac_cv_func_clock_gettime="yes"
|
||||||
],[
|
],[
|
||||||
AC_MSG_RESULT([no])
|
AC_MSG_RESULT([no])
|
||||||
ac_cv_func_clock_gettime="no"
|
ac_cv_func_clock_gettime="no"
|
||||||
])
|
])
|
||||||
|
fi
|
||||||
dnl Definition of HAVE_CLOCK_GETTIME_MONOTONIC is intentionally postponed
|
dnl Definition of HAVE_CLOCK_GETTIME_MONOTONIC is intentionally postponed
|
||||||
dnl until library linking and run-time checks for clock_gettime succeed.
|
dnl until library linking and run-time checks for clock_gettime succeed.
|
||||||
])
|
])
|
||||||
@@ -2834,7 +2837,6 @@ AC_DEFUN([CURL_CONFIGURE_CURL_OFF_T], [
|
|||||||
#
|
#
|
||||||
x_LP64_long=""
|
x_LP64_long=""
|
||||||
x_LP32_long=""
|
x_LP32_long=""
|
||||||
x_LP16_long=""
|
|
||||||
#
|
#
|
||||||
if test "$ac_cv_sizeof_long" -eq "8" &&
|
if test "$ac_cv_sizeof_long" -eq "8" &&
|
||||||
test "$ac_cv_sizeof_voidp" -ge "8"; then
|
test "$ac_cv_sizeof_voidp" -ge "8"; then
|
||||||
@@ -2842,9 +2844,6 @@ AC_DEFUN([CURL_CONFIGURE_CURL_OFF_T], [
|
|||||||
elif test "$ac_cv_sizeof_long" -eq "4" &&
|
elif test "$ac_cv_sizeof_long" -eq "4" &&
|
||||||
test "$ac_cv_sizeof_voidp" -ge "4"; then
|
test "$ac_cv_sizeof_voidp" -ge "4"; then
|
||||||
x_LP32_long="long"
|
x_LP32_long="long"
|
||||||
elif test "$ac_cv_sizeof_long" -eq "2" &&
|
|
||||||
test "$ac_cv_sizeof_voidp" -ge "2"; then
|
|
||||||
x_LP16_long="long"
|
|
||||||
fi
|
fi
|
||||||
#
|
#
|
||||||
dnl DO_CURL_OFF_T_CHECK results are stored in next 3 vars
|
dnl DO_CURL_OFF_T_CHECK results are stored in next 3 vars
|
||||||
@@ -2878,17 +2877,6 @@ AC_DEFUN([CURL_CONFIGURE_CURL_OFF_T], [
|
|||||||
done
|
done
|
||||||
AC_MSG_RESULT([$curl_typeof_curl_off_t])
|
AC_MSG_RESULT([$curl_typeof_curl_off_t])
|
||||||
fi
|
fi
|
||||||
if test "$curl_typeof_curl_off_t" = "unknown"; then
|
|
||||||
AC_MSG_CHECKING([for 16-bit curl_off_t data type])
|
|
||||||
for t2 in \
|
|
||||||
"$x_LP16_long" \
|
|
||||||
'int16_t' \
|
|
||||||
'__int16' \
|
|
||||||
'int' ; do
|
|
||||||
DO_CURL_OFF_T_CHECK([$t2], [2])
|
|
||||||
done
|
|
||||||
AC_MSG_RESULT([$curl_typeof_curl_off_t])
|
|
||||||
fi
|
|
||||||
if test "$curl_typeof_curl_off_t" = "unknown"; then
|
if test "$curl_typeof_curl_off_t" = "unknown"; then
|
||||||
AC_MSG_ERROR([cannot find data type for curl_off_t.])
|
AC_MSG_ERROR([cannot find data type for curl_off_t.])
|
||||||
fi
|
fi
|
||||||
@@ -3049,12 +3037,14 @@ dnl Optionally PKG_CONFIG_LIBDIR may be given as $pcdir.
|
|||||||
dnl
|
dnl
|
||||||
|
|
||||||
AC_DEFUN([CURL_CHECK_PKGCONFIG], [
|
AC_DEFUN([CURL_CHECK_PKGCONFIG], [
|
||||||
|
if test -n "$PKG_CONFIG"; then
|
||||||
|
PKGCONFIG="$PKG_CONFIG"
|
||||||
|
else
|
||||||
|
AC_PATH_TOOL([PKGCONFIG], [pkg-config], [no],
|
||||||
|
[$PATH:/usr/bin:/usr/local/bin])
|
||||||
|
fi
|
||||||
|
|
||||||
PKGCONFIG="no"
|
if test "x$PKGCONFIG" != "xno"; then
|
||||||
|
|
||||||
AC_PATH_TOOL( PKGCONFIG, pkg-config, no, $PATH:/usr/bin:/usr/local/bin)
|
|
||||||
|
|
||||||
if test x$PKGCONFIG != xno; then
|
|
||||||
AC_MSG_CHECKING([for $1 options with pkg-config])
|
AC_MSG_CHECKING([for $1 options with pkg-config])
|
||||||
dnl ask pkg-config about $1
|
dnl ask pkg-config about $1
|
||||||
itexists=`CURL_EXPORT_PCDIR([$2]) dnl
|
itexists=`CURL_EXPORT_PCDIR([$2]) dnl
|
||||||
|
19
appveyor.yml
Normal file
19
appveyor.yml
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
version: 7.45.0.{build}
|
||||||
|
|
||||||
|
environment:
|
||||||
|
matrix:
|
||||||
|
- PRJ_GEN: "Visual Studio 11 2012 Win64"
|
||||||
|
BDIR: msvc2012
|
||||||
|
PRJ_CFG: Release
|
||||||
|
- PRJ_GEN: "Visual Studio 12 2013 Win64"
|
||||||
|
BDIR: msvc2013
|
||||||
|
PRJ_CFG: Release
|
||||||
|
- PRJ_GEN: "Visual Studio 14 2015 Win64"
|
||||||
|
BDIR: msvc2015
|
||||||
|
PRJ_CFG: Release
|
||||||
|
|
||||||
|
build_script:
|
||||||
|
- mkdir build.%BDIR%
|
||||||
|
- cd build.%BDIR%
|
||||||
|
- cmake .. -G"%PRJ_GEN%"
|
||||||
|
- cmake --build . --config %PRJ_CFG% --clean-first
|
374
buildconf.bat
374
buildconf.bat
@@ -1,38 +1,352 @@
|
|||||||
@echo off
|
@echo off
|
||||||
REM
|
rem ***************************************************************************
|
||||||
REM
|
rem * _ _ ____ _
|
||||||
REM This batch file must be used to set up a git tree to build on
|
rem * Project ___| | | | _ \| |
|
||||||
REM systems where there is no autotools support (i.e. Microsoft).
|
rem * / __| | | | |_) | |
|
||||||
REM
|
rem * | (__| |_| | _ <| |___
|
||||||
REM This file is not included nor needed for curl's release
|
rem * \___|\___/|_| \_\_____|
|
||||||
REM archives, neither for curl's daily snapshot archives.
|
rem *
|
||||||
|
rem * Copyright (C) 1998 - 2015, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
|
rem *
|
||||||
|
rem * This software is licensed as described in the file COPYING, which
|
||||||
|
rem * you should have received as part of this distribution. The terms
|
||||||
|
rem * are also available at http://curl.haxx.se/docs/copyright.html.
|
||||||
|
rem *
|
||||||
|
rem * You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
||||||
|
rem * copies of the Software, and permit persons to whom the Software is
|
||||||
|
rem * furnished to do so, under the terms of the COPYING file.
|
||||||
|
rem *
|
||||||
|
rem * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
||||||
|
rem * KIND, either express or implied.
|
||||||
|
rem *
|
||||||
|
rem ***************************************************************************
|
||||||
|
|
||||||
if exist GIT-INFO goto start_doing
|
rem NOTES
|
||||||
ECHO ERROR: This file shall only be used with a curl git tree checkout.
|
rem
|
||||||
goto end_all
|
rem This batch file must be used to set up a git tree to build on systems where
|
||||||
:start_doing
|
rem there is no autotools support (i.e. DOS and Windows).
|
||||||
|
rem
|
||||||
|
rem This file is not included or required for curl's release archives or daily
|
||||||
|
rem snapshot archives.
|
||||||
|
|
||||||
REM create tool_hugehelp.c
|
:begin
|
||||||
if not exist src\tool_hugehelp.c.cvs goto end_hugehelp_c
|
rem Set our variables
|
||||||
copy /Y src\tool_hugehelp.c.cvs src\tool_hugehelp.c
|
if "%OS%" == "Windows_NT" setlocal
|
||||||
:end_hugehelp_c
|
set MODE=GENERATE
|
||||||
|
|
||||||
REM create Makefile
|
rem Switch to this batch file's directory
|
||||||
if not exist Makefile.dist goto end_makefile
|
cd /d "%~0\.." 1>NUL 2>&1
|
||||||
copy /Y Makefile.dist Makefile
|
|
||||||
:end_makefile
|
|
||||||
|
|
||||||
REM create curlbuild.h
|
rem Check we are running from a curl git repository
|
||||||
if not exist include\curl\curlbuild.h.dist goto end_curlbuild_h
|
if not exist GIT-INFO goto norepo
|
||||||
copy /Y include\curl\curlbuild.h.dist include\curl\curlbuild.h
|
|
||||||
:end_curlbuild_h
|
|
||||||
|
|
||||||
REM setup c-ares git tree
|
rem Detect programs. HAVE_<PROGNAME>
|
||||||
if not exist ares\buildconf.bat goto end_c_ares
|
rem When not found the variable is set undefined. The undefined pattern
|
||||||
cd ares
|
rem allows for statements like "if not defined HAVE_PERL (command)"
|
||||||
call buildconf.bat
|
groff --version <NUL 1>NUL 2>&1
|
||||||
cd ..
|
if errorlevel 1 (set HAVE_GROFF=) else (set HAVE_GROFF=Y)
|
||||||
:end_c_ares
|
nroff --version <NUL 1>NUL 2>&1
|
||||||
|
if errorlevel 1 (set HAVE_NROFF=) else (set HAVE_NROFF=Y)
|
||||||
|
perl --version <NUL 1>NUL 2>&1
|
||||||
|
if errorlevel 1 (set HAVE_PERL=) else (set HAVE_PERL=Y)
|
||||||
|
gzip --version <NUL 1>NUL 2>&1
|
||||||
|
if errorlevel 1 (set HAVE_GZIP=) else (set HAVE_GZIP=Y)
|
||||||
|
|
||||||
:end_all
|
:parseArgs
|
||||||
|
if "%~1" == "" goto start
|
||||||
|
|
||||||
|
if /i "%~1" == "-clean" (
|
||||||
|
set MODE=CLEAN
|
||||||
|
) else if /i "%~1" == "-?" (
|
||||||
|
goto syntax
|
||||||
|
) else if /i "%~1" == "-h" (
|
||||||
|
goto syntax
|
||||||
|
) else if /i "%~1" == "-help" (
|
||||||
|
goto syntax
|
||||||
|
) else (
|
||||||
|
goto unknown
|
||||||
|
)
|
||||||
|
|
||||||
|
shift & goto parseArgs
|
||||||
|
|
||||||
|
:start
|
||||||
|
if "%MODE%" == "GENERATE" (
|
||||||
|
echo.
|
||||||
|
echo Generating prerequisite files
|
||||||
|
|
||||||
|
call :generate
|
||||||
|
if errorlevel 4 goto nogencurlbuild
|
||||||
|
if errorlevel 3 goto nogenhugehelp
|
||||||
|
if errorlevel 2 goto nogenmakefile
|
||||||
|
if errorlevel 1 goto warning
|
||||||
|
|
||||||
|
) else (
|
||||||
|
echo.
|
||||||
|
echo Removing prerequisite files
|
||||||
|
|
||||||
|
call :clean
|
||||||
|
if errorlevel 3 goto nocleancurlbuild
|
||||||
|
if errorlevel 2 goto nocleanhugehelp
|
||||||
|
if errorlevel 1 goto nocleanmakefile
|
||||||
|
)
|
||||||
|
|
||||||
|
goto success
|
||||||
|
|
||||||
|
rem Main generate function.
|
||||||
|
rem
|
||||||
|
rem Returns:
|
||||||
|
rem
|
||||||
|
rem 0 - success
|
||||||
|
rem 1 - success with simplified tool_hugehelp.c
|
||||||
|
rem 2 - failed to generate Makefile
|
||||||
|
rem 3 - failed to generate tool_hugehelp.c
|
||||||
|
rem 4 - failed to generate curlbuild.h
|
||||||
|
rem
|
||||||
|
:generate
|
||||||
|
if "%OS%" == "Windows_NT" setlocal
|
||||||
|
set BASIC_HUGEHELP=0
|
||||||
|
|
||||||
|
rem Create Makefile
|
||||||
|
echo * %CD%\Makefile
|
||||||
|
if exist Makefile.dist (
|
||||||
|
copy /Y Makefile.dist Makefile 1>NUL 2>&1
|
||||||
|
if errorlevel 1 (
|
||||||
|
if "%OS%" == "Windows_NT" endlocal
|
||||||
|
exit /B 2
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
|
rem Create tool_hugehelp.c
|
||||||
|
echo * %CD%\src\tool_hugehelp.c
|
||||||
|
call :genHugeHelp
|
||||||
|
if errorlevel 2 (
|
||||||
|
if "%OS%" == "Windows_NT" endlocal
|
||||||
|
exit /B 3
|
||||||
|
)
|
||||||
|
if errorlevel 1 (
|
||||||
|
set BASIC_HUGEHELP=1
|
||||||
|
)
|
||||||
|
cmd /c exit 0
|
||||||
|
|
||||||
|
rem Create curlbuild.h
|
||||||
|
echo * %CD%\include\curl\curlbuild.h
|
||||||
|
if exist include\curl\curlbuild.h.dist (
|
||||||
|
copy /Y include\curl\curlbuild.h.dist include\curl\curlbuild.h 1>NUL 2>&1
|
||||||
|
if errorlevel 1 (
|
||||||
|
if "%OS%" == "Windows_NT" endlocal
|
||||||
|
exit /B 4
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
|
rem Setup c-ares git tree
|
||||||
|
if exist ares\buildconf.bat (
|
||||||
|
echo.
|
||||||
|
echo Configuring c-ares build environment
|
||||||
|
cd ares
|
||||||
|
call buildconf.bat
|
||||||
|
cd ..
|
||||||
|
)
|
||||||
|
|
||||||
|
if "%BASIC_HUGEHELP%" == "1" (
|
||||||
|
if "%OS%" == "Windows_NT" endlocal
|
||||||
|
exit /B 1
|
||||||
|
)
|
||||||
|
|
||||||
|
if "%OS%" == "Windows_NT" endlocal
|
||||||
|
exit /B 0
|
||||||
|
|
||||||
|
rem Main clean function.
|
||||||
|
rem
|
||||||
|
rem Returns:
|
||||||
|
rem
|
||||||
|
rem 0 - success
|
||||||
|
rem 1 - failed to clean Makefile
|
||||||
|
rem 2 - failed to clean tool_hugehelp.c
|
||||||
|
rem 3 - failed to clean curlbuild.h
|
||||||
|
rem
|
||||||
|
:clean
|
||||||
|
rem Remove Makefile
|
||||||
|
echo * %CD%\Makefile
|
||||||
|
if exist Makefile (
|
||||||
|
del Makefile 2>NUL
|
||||||
|
if exist Makefile (
|
||||||
|
exit /B 1
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
|
rem Remove tool_hugehelp.c
|
||||||
|
echo * %CD%\src\tool_hugehelp.c
|
||||||
|
if exist src\tool_hugehelp.c (
|
||||||
|
del src\tool_hugehelp.c 2>NUL
|
||||||
|
if exist src\tool_hugehelp.c (
|
||||||
|
exit /B 2
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
|
rem Remove curlbuild.h
|
||||||
|
echo * %CD%\include\curl\curlbuild.h
|
||||||
|
if exist include\curl\curlbuild.h (
|
||||||
|
del include\curl\curlbuild.h 2>NUL
|
||||||
|
if exist include\curl\curlbuild.h (
|
||||||
|
exit /B 3
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
|
exit /B
|
||||||
|
|
||||||
|
rem Function to generate src\tool_hugehelp.c
|
||||||
|
rem
|
||||||
|
rem Returns:
|
||||||
|
rem
|
||||||
|
rem 0 - full tool_hugehelp.c generated
|
||||||
|
rem 1 - simplified tool_hugehelp.c
|
||||||
|
rem 2 - failure
|
||||||
|
rem
|
||||||
|
:genHugeHelp
|
||||||
|
if "%OS%" == "Windows_NT" setlocal
|
||||||
|
set LC_ALL=C
|
||||||
|
set ROFFCMD=
|
||||||
|
set BASIC=1
|
||||||
|
|
||||||
|
if defined HAVE_PERL (
|
||||||
|
if defined HAVE_GROFF (
|
||||||
|
set ROFFCMD=groff -mtty-char -Tascii -P-c -man
|
||||||
|
) else if defined HAVE_NROFF (
|
||||||
|
set ROFFCMD=nroff -c -Tascii -man
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
|
if defined ROFFCMD (
|
||||||
|
echo #include "tool_setup.h"> src\tool_hugehelp.c
|
||||||
|
echo #include "tool_hugehelp.h">> src\tool_hugehelp.c
|
||||||
|
|
||||||
|
if defined HAVE_GZIP (
|
||||||
|
echo #ifndef HAVE_LIBZ>> src\tool_hugehelp.c
|
||||||
|
)
|
||||||
|
|
||||||
|
%ROFFCMD% docs\curl.1 2>NUL | perl src\mkhelp.pl docs\MANUAL >> src\tool_hugehelp.c
|
||||||
|
if defined HAVE_GZIP (
|
||||||
|
echo #else>> src\tool_hugehelp.c
|
||||||
|
%ROFFCMD% docs\curl.1 2>NUL | perl src\mkhelp.pl -c docs\MANUAL >> src\tool_hugehelp.c
|
||||||
|
echo #endif /^* HAVE_LIBZ ^*/>> src\tool_hugehelp.c
|
||||||
|
)
|
||||||
|
|
||||||
|
set BASIC=0
|
||||||
|
) else (
|
||||||
|
if exist src\tool_hugehelp.c.cvs (
|
||||||
|
copy /Y src\tool_hugehelp.c.cvs src\tool_hugehelp.c 1>NUL 2>&1
|
||||||
|
) else (
|
||||||
|
echo #include "tool_setup.h"> src\tool_hugehelp.c
|
||||||
|
echo #include "tool_hugehelp.hd">> src\tool_hugehelp.c
|
||||||
|
echo.>> src\tool_hugehelp.c
|
||||||
|
echo void hugehelp(void^)>> src\tool_hugehelp.c
|
||||||
|
echo {>> src\tool_hugehelp.c
|
||||||
|
echo #ifdef USE_MANUAL>> src\tool_hugehelp.c
|
||||||
|
echo fputs("Built-in manual not included\n", stdout^);>> src\tool_hugehelp.c
|
||||||
|
echo #endif>> src\tool_hugehelp.c
|
||||||
|
echo }>> src\tool_hugehelp.c
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
|
findstr "/C:void hugehelp(void)" src\tool_hugehelp.c 1>NUL 2>&1
|
||||||
|
if errorlevel 1 (
|
||||||
|
if "%OS%" == "Windows_NT" endlocal
|
||||||
|
exit /B 2
|
||||||
|
)
|
||||||
|
|
||||||
|
if "%BASIC%" == "1" (
|
||||||
|
if "%OS%" == "Windows_NT" endlocal
|
||||||
|
exit /B 1
|
||||||
|
)
|
||||||
|
|
||||||
|
if "%OS%" == "Windows_NT" endlocal
|
||||||
|
exit /B 0
|
||||||
|
|
||||||
|
rem Function to clean-up local variables under DOS, Windows 3.x and
|
||||||
|
rem Windows 9x as setlocal isn't available until Windows NT
|
||||||
|
rem
|
||||||
|
:dosCleanup
|
||||||
|
set MODE=
|
||||||
|
set HAVE_GROFF=
|
||||||
|
set HAVE_NROFF=
|
||||||
|
set HAVE_PERL=
|
||||||
|
set HAVE_GZIP=
|
||||||
|
set BASIC_HUGEHELP=
|
||||||
|
set LC_ALL
|
||||||
|
set ROFFCMD=
|
||||||
|
set BASIC=
|
||||||
|
|
||||||
|
exit /B
|
||||||
|
|
||||||
|
:syntax
|
||||||
|
rem Display the help
|
||||||
|
echo.
|
||||||
|
echo Usage: buildconf [-clean]
|
||||||
|
echo.
|
||||||
|
echo -clean - Removes the files
|
||||||
|
goto error
|
||||||
|
|
||||||
|
:unknown
|
||||||
|
echo.
|
||||||
|
echo Error: Unknown argument '%1'
|
||||||
|
goto error
|
||||||
|
|
||||||
|
:norepo
|
||||||
|
echo.
|
||||||
|
echo Error: This batch file should only be used with a curl git repository
|
||||||
|
goto error
|
||||||
|
|
||||||
|
:nogenmakefile
|
||||||
|
echo.
|
||||||
|
echo Error: Unable to generate Makefile
|
||||||
|
goto error
|
||||||
|
|
||||||
|
:nogenhugehelp
|
||||||
|
echo.
|
||||||
|
echo Error: Unable to generate src\tool_hugehelp.c
|
||||||
|
goto error
|
||||||
|
|
||||||
|
:nogencurlbuild
|
||||||
|
echo.
|
||||||
|
echo Error: Unable to generate include\curl\curlbuild.h
|
||||||
|
goto error
|
||||||
|
|
||||||
|
:nocleanmakefile
|
||||||
|
echo.
|
||||||
|
echo Error: Unable to clean Makefile
|
||||||
|
goto error
|
||||||
|
|
||||||
|
:nocleanhugehelp
|
||||||
|
echo.
|
||||||
|
echo Error: Unable to clean src\tool_hugehelp.c
|
||||||
|
goto error
|
||||||
|
|
||||||
|
:nocleancurlbuild
|
||||||
|
echo.
|
||||||
|
echo Error: Unable to clean include\curl\curlbuild.h
|
||||||
|
goto error
|
||||||
|
|
||||||
|
:warning
|
||||||
|
echo.
|
||||||
|
echo Warning: The curl manual could not be integrated in the source. This means when
|
||||||
|
echo you build curl the manual will not be available (curl --man^). Integration of
|
||||||
|
echo the manual is not required and a summary of the options will still be available
|
||||||
|
echo (curl --help^). To integrate the manual your PATH is required to have
|
||||||
|
echo groff/nroff, perl and optionally gzip for compression.
|
||||||
|
goto success
|
||||||
|
|
||||||
|
:error
|
||||||
|
if "%OS%" == "Windows_NT" (
|
||||||
|
endlocal
|
||||||
|
) else (
|
||||||
|
call :dosCleanup
|
||||||
|
)
|
||||||
|
exit /B 1
|
||||||
|
|
||||||
|
:success
|
||||||
|
if "%OS%" == "Windows_NT" (
|
||||||
|
endlocal
|
||||||
|
) else (
|
||||||
|
call :dosCleanup
|
||||||
|
)
|
||||||
|
exit /B 0
|
||||||
|
230
configure.ac
230
configure.ac
@@ -39,6 +39,7 @@ AC_CONFIG_SRCDIR([lib/urldata.h])
|
|||||||
AC_CONFIG_HEADERS(lib/curl_config.h include/curl/curlbuild.h)
|
AC_CONFIG_HEADERS(lib/curl_config.h include/curl/curlbuild.h)
|
||||||
AC_CONFIG_MACRO_DIR([m4])
|
AC_CONFIG_MACRO_DIR([m4])
|
||||||
AM_MAINTAINER_MODE
|
AM_MAINTAINER_MODE
|
||||||
|
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
|
||||||
|
|
||||||
CURL_CHECK_OPTION_DEBUG
|
CURL_CHECK_OPTION_DEBUG
|
||||||
CURL_CHECK_OPTION_OPTIMIZE
|
CURL_CHECK_OPTION_OPTIMIZE
|
||||||
@@ -47,6 +48,7 @@ CURL_CHECK_OPTION_WERROR
|
|||||||
CURL_CHECK_OPTION_CURLDEBUG
|
CURL_CHECK_OPTION_CURLDEBUG
|
||||||
CURL_CHECK_OPTION_SYMBOL_HIDING
|
CURL_CHECK_OPTION_SYMBOL_HIDING
|
||||||
CURL_CHECK_OPTION_ARES
|
CURL_CHECK_OPTION_ARES
|
||||||
|
CURL_CHECK_OPTION_RT
|
||||||
|
|
||||||
XC_CHECK_PATH_SEPARATOR
|
XC_CHECK_PATH_SEPARATOR
|
||||||
|
|
||||||
@@ -147,7 +149,7 @@ AC_SUBST(PKGADD_VENDOR)
|
|||||||
|
|
||||||
dnl
|
dnl
|
||||||
dnl initialize all the info variables
|
dnl initialize all the info variables
|
||||||
curl_ssl_msg="no (--with-{ssl,gnutls,nss,polarssl,cyassl,axtls,winssl,darwinssl} )"
|
curl_ssl_msg="no (--with-{ssl,gnutls,nss,polarssl,mbedtls,cyassl,axtls,winssl,darwinssl} )"
|
||||||
curl_ssh_msg="no (--with-libssh2)"
|
curl_ssh_msg="no (--with-libssh2)"
|
||||||
curl_zlib_msg="no (--with-zlib)"
|
curl_zlib_msg="no (--with-zlib)"
|
||||||
curl_gss_msg="no (--with-gssapi)"
|
curl_gss_msg="no (--with-gssapi)"
|
||||||
@@ -165,6 +167,7 @@ curl_verbose_msg="enabled (--disable-verbose)"
|
|||||||
curl_rtsp_msg="no (--enable-rtsp)"
|
curl_rtsp_msg="no (--enable-rtsp)"
|
||||||
curl_rtmp_msg="no (--with-librtmp)"
|
curl_rtmp_msg="no (--with-librtmp)"
|
||||||
curl_mtlnk_msg="no (--with-libmetalink)"
|
curl_mtlnk_msg="no (--with-libmetalink)"
|
||||||
|
curl_psl_msg="no (--with-libpsl)"
|
||||||
|
|
||||||
init_ssl_msg=${curl_ssl_msg}
|
init_ssl_msg=${curl_ssl_msg}
|
||||||
|
|
||||||
@@ -1396,6 +1399,24 @@ if test "$curl_ssl_msg" = "$init_ssl_msg" && test X"$OPT_SSL" != Xno; then
|
|||||||
CLEANCPPFLAGS="$CPPFLAGS"
|
CLEANCPPFLAGS="$CPPFLAGS"
|
||||||
CLEANLIBS="$LIBS"
|
CLEANLIBS="$LIBS"
|
||||||
|
|
||||||
|
dnl This is for Msys/Mingw
|
||||||
|
case $host in
|
||||||
|
*-*-msys* | *-*-mingw*)
|
||||||
|
AC_MSG_CHECKING([for gdi32])
|
||||||
|
my_ac_save_LIBS=$LIBS
|
||||||
|
LIBS="-lgdi32 $LIBS"
|
||||||
|
AC_TRY_LINK([#include <windef.h>
|
||||||
|
#include <wingdi.h>],
|
||||||
|
[GdiFlush();],
|
||||||
|
[ dnl worked!
|
||||||
|
AC_MSG_RESULT([yes])],
|
||||||
|
[ dnl failed, restore LIBS
|
||||||
|
LIBS=$my_ac_save_LIBS
|
||||||
|
AC_MSG_RESULT(no)]
|
||||||
|
)
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
case "$OPT_SSL" in
|
case "$OPT_SSL" in
|
||||||
yes)
|
yes)
|
||||||
dnl --with-ssl (without path) used
|
dnl --with-ssl (without path) used
|
||||||
@@ -1474,31 +1495,13 @@ if test "$curl_ssl_msg" = "$init_ssl_msg" && test X"$OPT_SSL" != Xno; then
|
|||||||
CPPFLAGS="$CPPFLAGS $SSL_CPPFLAGS"
|
CPPFLAGS="$CPPFLAGS $SSL_CPPFLAGS"
|
||||||
LDFLAGS="$LDFLAGS $SSL_LDFLAGS"
|
LDFLAGS="$LDFLAGS $SSL_LDFLAGS"
|
||||||
|
|
||||||
dnl This is for Msys/Mingw
|
AC_CHECK_LIB(crypto, HMAC_Update,[
|
||||||
case $host in
|
|
||||||
*-*-msys* | *-*-mingw*)
|
|
||||||
AC_MSG_CHECKING([for gdi32])
|
|
||||||
my_ac_save_LIBS=$LIBS
|
|
||||||
LIBS="-lgdi32 $LIBS"
|
|
||||||
AC_TRY_LINK([#include <windef.h>
|
|
||||||
#include <wingdi.h>],
|
|
||||||
[GdiFlush();],
|
|
||||||
[ dnl worked!
|
|
||||||
AC_MSG_RESULT([yes])],
|
|
||||||
[ dnl failed, restore LIBS
|
|
||||||
LIBS=$my_ac_save_LIBS
|
|
||||||
AC_MSG_RESULT(no)]
|
|
||||||
)
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
AC_CHECK_LIB(crypto, CRYPTO_lock,[
|
|
||||||
HAVECRYPTO="yes"
|
HAVECRYPTO="yes"
|
||||||
LIBS="-lcrypto $LIBS"
|
LIBS="-lcrypto $LIBS"
|
||||||
],[
|
],[
|
||||||
LDFLAGS="$CLEANLDFLAGS -L$LIB_OPENSSL"
|
LDFLAGS="$CLEANLDFLAGS -L$LIB_OPENSSL"
|
||||||
CPPFLAGS="$CLEANCPPFLAGS -I$PREFIX_OPENSSL/include/openssl -I$PREFIX_OPENSSL/include"
|
CPPFLAGS="$CLEANCPPFLAGS -I$PREFIX_OPENSSL/include/openssl -I$PREFIX_OPENSSL/include"
|
||||||
AC_CHECK_LIB(crypto, CRYPTO_add_lock,[
|
AC_CHECK_LIB(crypto, HMAC_Init_ex,[
|
||||||
HAVECRYPTO="yes"
|
HAVECRYPTO="yes"
|
||||||
LIBS="-lcrypto $LIBS"], [
|
LIBS="-lcrypto $LIBS"], [
|
||||||
LDFLAGS="$CLEANLDFLAGS"
|
LDFLAGS="$CLEANLDFLAGS"
|
||||||
@@ -1508,6 +1511,46 @@ if test "$curl_ssl_msg" = "$init_ssl_msg" && test X"$OPT_SSL" != Xno; then
|
|||||||
])
|
])
|
||||||
|
|
||||||
|
|
||||||
|
if test X"$HAVECRYPTO" = X"yes"; then
|
||||||
|
AC_MSG_CHECKING([OpenSSL linking without -ldl])
|
||||||
|
saved_libs=$LIBS
|
||||||
|
AC_TRY_LINK(
|
||||||
|
[
|
||||||
|
#include <openssl/evp.h>
|
||||||
|
],
|
||||||
|
[
|
||||||
|
SSLeay_add_all_algorithms();
|
||||||
|
],
|
||||||
|
[
|
||||||
|
AC_MSG_RESULT(yes)
|
||||||
|
LIBS="$saved_libs"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
AC_MSG_RESULT(no)
|
||||||
|
AC_MSG_CHECKING([OpenSSL linking with -ldl])
|
||||||
|
LIBS="-ldl $LIBS"
|
||||||
|
AC_TRY_LINK(
|
||||||
|
[
|
||||||
|
#include <openssl/evp.h>
|
||||||
|
],
|
||||||
|
[
|
||||||
|
SSLeay_add_all_algorithms();
|
||||||
|
],
|
||||||
|
[
|
||||||
|
AC_MSG_RESULT(yes)
|
||||||
|
LIBS="$saved_libs -ldl"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
AC_MSG_RESULT(no)
|
||||||
|
LIBS="$saved_libs"
|
||||||
|
]
|
||||||
|
)
|
||||||
|
|
||||||
|
]
|
||||||
|
)
|
||||||
|
|
||||||
|
fi
|
||||||
|
|
||||||
if test X"$HAVECRYPTO" = X"yes"; then
|
if test X"$HAVECRYPTO" = X"yes"; then
|
||||||
dnl This is only reasonable to do if crypto actually is there: check for
|
dnl This is only reasonable to do if crypto actually is there: check for
|
||||||
dnl SSL libs NOTE: it is important to do this AFTER the crypto lib
|
dnl SSL libs NOTE: it is important to do this AFTER the crypto lib
|
||||||
@@ -1579,7 +1622,8 @@ if test "$curl_ssl_msg" = "$init_ssl_msg" && test X"$OPT_SSL" != Xno; then
|
|||||||
dnl Older versions of Cyassl (some time before 2.9.4) don't have
|
dnl Older versions of Cyassl (some time before 2.9.4) don't have
|
||||||
dnl SSL_get_shutdown (but this check won't actually detect it there
|
dnl SSL_get_shutdown (but this check won't actually detect it there
|
||||||
dnl as it's a macro that needs the header files be included)
|
dnl as it's a macro that needs the header files be included)
|
||||||
dnl BoringSSL doesn't have DES_set_odd_parity
|
dnl BoringSSL didn't have DES_set_odd_parity for a while but now it is
|
||||||
|
dnl back again.
|
||||||
|
|
||||||
AC_CHECK_FUNCS( RAND_status \
|
AC_CHECK_FUNCS( RAND_status \
|
||||||
RAND_screen \
|
RAND_screen \
|
||||||
@@ -1591,14 +1635,22 @@ if test "$curl_ssl_msg" = "$init_ssl_msg" && test X"$OPT_SSL" != Xno; then
|
|||||||
DES_set_odd_parity )
|
DES_set_odd_parity )
|
||||||
|
|
||||||
AC_MSG_CHECKING([for BoringSSL])
|
AC_MSG_CHECKING([for BoringSSL])
|
||||||
if test "x$ac_cv_func_DES_set_odd_parity" != "xyes"; then
|
AC_COMPILE_IFELSE([
|
||||||
curl_ssl_msg="enabled (BoringSSL)"
|
AC_LANG_PROGRAM([[
|
||||||
AC_DEFINE_UNQUOTED(HAVE_BORINGSSL, 1,
|
#include <openssl/base.h>
|
||||||
[Define to 1 if using BoringSSL.])
|
]],[[
|
||||||
AC_MSG_RESULT([yes])
|
#ifndef OPENSSL_IS_BORINGSSL
|
||||||
else
|
#error not boringssl
|
||||||
AC_MSG_RESULT([no])
|
#endif
|
||||||
fi
|
]])
|
||||||
|
],[
|
||||||
|
AC_MSG_RESULT([yes])
|
||||||
|
AC_DEFINE_UNQUOTED(HAVE_BORINGSSL, 1,
|
||||||
|
[Define to 1 if using BoringSSL.])
|
||||||
|
],[
|
||||||
|
AC_MSG_RESULT([no])
|
||||||
|
])
|
||||||
|
|
||||||
AC_MSG_CHECKING([for libressl])
|
AC_MSG_CHECKING([for libressl])
|
||||||
AC_COMPILE_IFELSE([
|
AC_COMPILE_IFELSE([
|
||||||
AC_LANG_PROGRAM([[
|
AC_LANG_PROGRAM([[
|
||||||
@@ -1786,6 +1838,7 @@ if test "$curl_ssl_msg" = "$init_ssl_msg"; then
|
|||||||
AC_MSG_NOTICE([Added $gtlslib to LD_LIBRARY_PATH])
|
AC_MSG_NOTICE([Added $gtlslib to LD_LIBRARY_PATH])
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
AC_CHECK_FUNCS(gnutls_certificate_set_x509_key_file2)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
fi
|
fi
|
||||||
@@ -1923,6 +1976,93 @@ if test "$curl_ssl_msg" = "$init_ssl_msg"; then
|
|||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
dnl ----------------------------------------------------
|
||||||
|
dnl check for mbedTLS
|
||||||
|
dnl ----------------------------------------------------
|
||||||
|
|
||||||
|
OPT_MBEDTLS=no
|
||||||
|
|
||||||
|
_cppflags=$CPPFLAGS
|
||||||
|
_ldflags=$LDFLAGS
|
||||||
|
AC_ARG_WITH(mbedtls,dnl
|
||||||
|
AC_HELP_STRING([--with-mbedtls=PATH],[where to look for mbedTLS, PATH points to the installation root])
|
||||||
|
AC_HELP_STRING([--without-mbedtls], [disable mbedTLS detection]),
|
||||||
|
OPT_MBEDTLS=$withval)
|
||||||
|
|
||||||
|
if test "$curl_ssl_msg" = "$init_ssl_msg"; then
|
||||||
|
|
||||||
|
if test X"$OPT_MBEDTLS" != Xno; then
|
||||||
|
|
||||||
|
if test "$OPT_MBEDTLS" = "yes"; then
|
||||||
|
OPT_MBEDTLS=""
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test -z "$OPT_MBEDTLS" ; then
|
||||||
|
dnl check for lib first without setting any new path
|
||||||
|
|
||||||
|
AC_CHECK_LIB(mbedtls, mbedtls_havege_init,
|
||||||
|
dnl libmbedtls found, set the variable
|
||||||
|
[
|
||||||
|
AC_DEFINE(USE_MBEDTLS, 1, [if mbedTLS is enabled])
|
||||||
|
AC_SUBST(USE_MBEDTLS, [1])
|
||||||
|
MBEDTLS_ENABLED=1
|
||||||
|
USE_MBEDTLS="yes"
|
||||||
|
curl_ssl_msg="enabled (mbedTLS)"
|
||||||
|
], [], -lmbedx509 -lmbedcrypto)
|
||||||
|
fi
|
||||||
|
|
||||||
|
addld=""
|
||||||
|
addlib=""
|
||||||
|
addcflags=""
|
||||||
|
mbedtlslib=""
|
||||||
|
|
||||||
|
if test "x$USE_MBEDTLS" != "xyes"; then
|
||||||
|
dnl add the path and test again
|
||||||
|
addld=-L$OPT_MBEDTLS/lib$libsuff
|
||||||
|
addcflags=-I$OPT_MBEDTLS/include
|
||||||
|
mbedtlslib=$OPT_MBEDTLS/lib$libsuff
|
||||||
|
|
||||||
|
LDFLAGS="$LDFLAGS $addld"
|
||||||
|
if test "$addcflags" != "-I/usr/include"; then
|
||||||
|
CPPFLAGS="$CPPFLAGS $addcflags"
|
||||||
|
fi
|
||||||
|
|
||||||
|
AC_CHECK_LIB(mbedtls, mbedtls_ssl_init,
|
||||||
|
[
|
||||||
|
AC_DEFINE(USE_MBEDTLS, 1, [if mbedTLS is enabled])
|
||||||
|
AC_SUBST(USE_MBEDTLS, [1])
|
||||||
|
MBEDTLS_ENABLED=1
|
||||||
|
USE_MBEDTLS="yes"
|
||||||
|
curl_ssl_msg="enabled (mbedTLS)"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
CPPFLAGS=$_cppflags
|
||||||
|
LDFLAGS=$_ldflags
|
||||||
|
], -lmbedx509 -lmbedcrypto)
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test "x$USE_MBEDTLS" = "xyes"; then
|
||||||
|
AC_MSG_NOTICE([detected mbedTLS])
|
||||||
|
|
||||||
|
LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS"
|
||||||
|
|
||||||
|
if test -n "$mbedtlslib"; then
|
||||||
|
dnl when shared libs were found in a path that the run-time
|
||||||
|
dnl linker doesn't search through, we need to add it to
|
||||||
|
dnl LD_LIBRARY_PATH to prevent further configure tests to fail
|
||||||
|
dnl due to this
|
||||||
|
if test "x$cross_compiling" != "xyes"; then
|
||||||
|
LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$mbedtlslib"
|
||||||
|
export LD_LIBRARY_PATH
|
||||||
|
AC_MSG_NOTICE([Added $mbedtlslib to LD_LIBRARY_PATH])
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
fi dnl mbedTLS not disabled
|
||||||
|
|
||||||
|
fi
|
||||||
|
|
||||||
dnl ----------------------------------------------------
|
dnl ----------------------------------------------------
|
||||||
dnl check for CyaSSL
|
dnl check for CyaSSL
|
||||||
dnl ----------------------------------------------------
|
dnl ----------------------------------------------------
|
||||||
@@ -2247,7 +2387,7 @@ if test "$curl_ssl_msg" = "$init_ssl_msg"; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test "x$OPENSSL_ENABLED$GNUTLS_ENABLED$NSS_ENABLED$POLARSSL_ENABLED$AXTLS_ENABLED$CYASSL_ENABLED$WINSSL_ENABLED$DARWINSSL_ENABLED" = "x"; then
|
if test "x$OPENSSL_ENABLED$GNUTLS_ENABLED$NSS_ENABLED$POLARSSL_ENABLED$MBEDTLS_ENABLED$AXTLS_ENABLED$CYASSL_ENABLED$WINSSL_ENABLED$DARWINSSL_ENABLED" = "x"; then
|
||||||
AC_MSG_WARN([SSL disabled, you will not be able to use HTTPS, FTPS, NTLM and more.])
|
AC_MSG_WARN([SSL disabled, you will not be able to use HTTPS, FTPS, NTLM and more.])
|
||||||
AC_MSG_WARN([Use --with-ssl, --with-gnutls, --with-polarssl, --with-cyassl, --with-nss, --with-axtls, --with-winssl, or --with-darwinssl to address this.])
|
AC_MSG_WARN([Use --with-ssl, --with-gnutls, --with-polarssl, --with-cyassl, --with-nss, --with-axtls, --with-winssl, or --with-darwinssl to address this.])
|
||||||
else
|
else
|
||||||
@@ -2262,6 +2402,27 @@ dnl **********************************************************************
|
|||||||
|
|
||||||
CURL_CHECK_CA_BUNDLE
|
CURL_CHECK_CA_BUNDLE
|
||||||
|
|
||||||
|
dnl **********************************************************************
|
||||||
|
dnl Check for libpsl
|
||||||
|
dnl **********************************************************************
|
||||||
|
|
||||||
|
AC_ARG_WITH(libpsl,
|
||||||
|
AS_HELP_STRING([--without-libpsl],
|
||||||
|
[disable support for libpsl cookie checking]),
|
||||||
|
with_libpsl=$withval,
|
||||||
|
with_libpsl=yes)
|
||||||
|
if test $with_libpsl != "no"; then
|
||||||
|
AC_SEARCH_LIBS(psl_builtin, psl,
|
||||||
|
[curl_psl_msg="yes";
|
||||||
|
AC_DEFINE([USE_LIBPSL], [1], [PSL support enabled])
|
||||||
|
],
|
||||||
|
[curl_psl_msg="no (libpsl not found)";
|
||||||
|
AC_MSG_WARN([libpsl was not found])
|
||||||
|
]
|
||||||
|
)
|
||||||
|
fi
|
||||||
|
AM_CONDITIONAL([USE_LIBPSL], [test "$curl_psl_msg" = "yes"])
|
||||||
|
|
||||||
dnl **********************************************************************
|
dnl **********************************************************************
|
||||||
dnl Check for libmetalink
|
dnl Check for libmetalink
|
||||||
dnl **********************************************************************
|
dnl **********************************************************************
|
||||||
@@ -3217,7 +3378,7 @@ if test "x$want_thres" = xyes && test "x$want_ares" = xyes; then
|
|||||||
[Options --enable-threaded-resolver and --enable-ares are mutually exclusive])
|
[Options --enable-threaded-resolver and --enable-ares are mutually exclusive])
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test "$want_thres" = "yes"; then
|
if test "$want_thres" = "yes" && test "$dontwant_rt" = "no"; then
|
||||||
AC_CHECK_HEADER(pthread.h,
|
AC_CHECK_HEADER(pthread.h,
|
||||||
[ AC_DEFINE(HAVE_PTHREAD_H, 1, [if you have <pthread.h>])
|
[ AC_DEFINE(HAVE_PTHREAD_H, 1, [if you have <pthread.h>])
|
||||||
save_CFLAGS="$CFLAGS"
|
save_CFLAGS="$CFLAGS"
|
||||||
@@ -3485,6 +3646,10 @@ if test "x$HAVE_GSSAPI" = "x1"; then
|
|||||||
SUPPORT_FEATURES="$SUPPORT_FEATURES GSS-API"
|
SUPPORT_FEATURES="$SUPPORT_FEATURES GSS-API"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if test "x$curl_psl_msg" = "xyes"; then
|
||||||
|
SUPPORT_FEATURES="$SUPPORT_FEATURES PSL"
|
||||||
|
fi
|
||||||
|
|
||||||
if test "x$CURL_DISABLE_CRYPTO_AUTH" != "x1" -a \
|
if test "x$CURL_DISABLE_CRYPTO_AUTH" != "x1" -a \
|
||||||
\( "x$HAVE_GSSAPI" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \); then
|
\( "x$HAVE_GSSAPI" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \); then
|
||||||
SUPPORT_FEATURES="$SUPPORT_FEATURES SPNEGO"
|
SUPPORT_FEATURES="$SUPPORT_FEATURES SPNEGO"
|
||||||
@@ -3690,6 +3855,7 @@ AC_MSG_NOTICE([Configured to build curl/libcurl:
|
|||||||
RTSP support: ${curl_rtsp_msg}
|
RTSP support: ${curl_rtsp_msg}
|
||||||
RTMP support: ${curl_rtmp_msg}
|
RTMP support: ${curl_rtmp_msg}
|
||||||
metalink support: ${curl_mtlnk_msg}
|
metalink support: ${curl_mtlnk_msg}
|
||||||
|
PSL support: ${curl_psl_msg}
|
||||||
HTTP2 support: ${curl_h2_msg}
|
HTTP2 support: ${curl_h2_msg}
|
||||||
Protocols: ${SUPPORT_PROTOCOLS}
|
Protocols: ${SUPPORT_PROTOCOLS}
|
||||||
])
|
])
|
||||||
|
32
docs/CODE_OF_CONDUCT.md
Normal file
32
docs/CODE_OF_CONDUCT.md
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
Contributor Code of Conduct
|
||||||
|
===========================
|
||||||
|
|
||||||
|
As contributors and maintainers of this project, we pledge to respect all
|
||||||
|
people who contribute through reporting issues, posting feature requests,
|
||||||
|
updating documentation, submitting pull requests or patches, and other
|
||||||
|
activities.
|
||||||
|
|
||||||
|
We are committed to making participation in this project a harassment-free
|
||||||
|
experience for everyone, regardless of level of experience, gender, gender
|
||||||
|
identity and expression, sexual orientation, disability, personal appearance,
|
||||||
|
body size, race, ethnicity, age, or religion.
|
||||||
|
|
||||||
|
Examples of unacceptable behavior by participants include the use of sexual
|
||||||
|
language or imagery, derogatory comments or personal attacks, trolling, public
|
||||||
|
or private harassment, insults, or other unprofessional conduct.
|
||||||
|
|
||||||
|
Project maintainers have the right and responsibility to remove, edit, or
|
||||||
|
reject comments, commits, code, wiki edits, issues, and other contributions
|
||||||
|
that are not aligned to this Code of Conduct. Project maintainers who do not
|
||||||
|
follow the Code of Conduct may be removed from the project team.
|
||||||
|
|
||||||
|
This code of conduct applies both within project spaces and in public spaces
|
||||||
|
when an individual is representing the project or its community.
|
||||||
|
|
||||||
|
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
||||||
|
reported by opening an issue or contacting one or more of the project
|
||||||
|
maintainers.
|
||||||
|
|
||||||
|
This Code of Conduct is adapted from the [Contributor
|
||||||
|
Covenant](http://contributor-covenant.org), version 1.1.0, available at
|
||||||
|
[http://contributor-covenant.org/version/1/1/0/](http://contributor-covenant.org/version/1/1/0/)
|
@@ -1,176 +0,0 @@
|
|||||||
Date: February 11, 2007
|
|
||||||
Author: Daniel Stenberg <daniel@haxx.se>
|
|
||||||
URL: http://curl.haxx.se/legal/distro-dilemma.html
|
|
||||||
|
|
||||||
Condition
|
|
||||||
|
|
||||||
This document is written to describe the situation as it is right now.
|
|
||||||
libcurl 7.16.1 is currently the latest version available. Things may of
|
|
||||||
course change in the future.
|
|
||||||
|
|
||||||
This document reflects my view and understanding of these things. Please tell
|
|
||||||
me where and how you think I'm wrong, and I'll try to correct my mistakes.
|
|
||||||
|
|
||||||
Background
|
|
||||||
|
|
||||||
The Free Software Foundation has deemed the Original BSD license[1] to be
|
|
||||||
"incompatible"[2] with GPL[3]. I'd rather say it is the other way around, but
|
|
||||||
the point is the same: if you distribute a binary version of a GPL program,
|
|
||||||
it MUST NOT be linked with any Original BSD-licensed parts or libraries.
|
|
||||||
Doing so will violate the GPL license. For a long time, very many GPL
|
|
||||||
licensed programs have avoided this license mess by adding an exception[8] to
|
|
||||||
their license. And many others have just closed their eyes for this problem.
|
|
||||||
|
|
||||||
libcurl is MIT-style[4] licensed - how on earth did this dilemma fall onto
|
|
||||||
our plates?
|
|
||||||
|
|
||||||
libcurl is only a little library. libcurl can be built to use OpenSSL for its
|
|
||||||
SSL/TLS capabilities. OpenSSL is basically Original BSD licensed[5].
|
|
||||||
|
|
||||||
If libcurl built to use OpenSSL is used by a GPL-licensed application and you
|
|
||||||
decide to distribute a binary version of it (Linux distros - for example -
|
|
||||||
tend to), you have a clash. GPL vs Original BSD.
|
|
||||||
|
|
||||||
This dilemma is not libcurl-specific nor is it specific to any particular
|
|
||||||
Linux distro. (This article mentions and refers to Debian several times, but
|
|
||||||
only because Debian seems to be the only Linux distro to have faced this
|
|
||||||
issue yet since no other distro is shipping libcurl built with two SSL
|
|
||||||
libraries.)
|
|
||||||
|
|
||||||
Part of the Operating System
|
|
||||||
|
|
||||||
This would not be a problem if the used lib would be considered part of the
|
|
||||||
underlying operating system, as then the GPL license has an exception
|
|
||||||
clause[6] that allows applications to use such libs without having to be
|
|
||||||
allowed to distribute it or its sources. Possibly some distros will claim
|
|
||||||
that OpenSSL is part of their operating system.
|
|
||||||
|
|
||||||
Debian does however not take this stance and has officially(?) claimed that
|
|
||||||
OpenSSL is not a required part of the Debian operating system
|
|
||||||
|
|
||||||
Some people claim that this paragraph cannot be exploited this way by a Linux
|
|
||||||
distro, but I am not a lawyer and that is a discussion left outside of this
|
|
||||||
document.
|
|
||||||
|
|
||||||
GnuTLS
|
|
||||||
|
|
||||||
Since May 2005 libcurl can get built to use GnuTLS instead of OpenSSL. GnuTLS
|
|
||||||
is an LGPL[7] licensed library that offers a matching set of features as
|
|
||||||
OpenSSL does. Now, you can build and distribute an TLS/SSL capable libcurl
|
|
||||||
without including any Original BSD licensed code.
|
|
||||||
|
|
||||||
I believe Debian is the first (only?) distro that provides libcurl/GnuTLS
|
|
||||||
packages.
|
|
||||||
|
|
||||||
yassl
|
|
||||||
|
|
||||||
libcurl can get also get built to use yassl for the TLS/SSL layer. yassl is a
|
|
||||||
GPL[3] licensed library.
|
|
||||||
|
|
||||||
|
|
||||||
GnuTLS vs OpenSSL vs yassl
|
|
||||||
|
|
||||||
While these three libraries offer similar features, they are not equal.
|
|
||||||
libcurl does not (yet) offer a standardized stable ABI if you decide to
|
|
||||||
switch from using libcurl-openssl to libcurl-gnutls or vice-versa. The GnuTLS
|
|
||||||
and yassl support is very recent in libcurl and it has not been tested nor
|
|
||||||
used very extensively, while the OpenSSL equivalent code has been used and
|
|
||||||
thus matured since 1999.
|
|
||||||
|
|
||||||
GnuTLS
|
|
||||||
- LGPL licensed
|
|
||||||
- supports SRP
|
|
||||||
- lacks SSLv2 support
|
|
||||||
- lacks MD2 support (used by at least some CA certs)
|
|
||||||
- lacks the crypto functions libcurl uses for NTLM
|
|
||||||
|
|
||||||
OpenSSL
|
|
||||||
- Original BSD licensed
|
|
||||||
- lacks SRP
|
|
||||||
- supports SSLv2
|
|
||||||
- older and more widely used
|
|
||||||
- provides crypto functions libcurl uses for NTLM
|
|
||||||
- libcurl can do non-blocking connects with it in 7.15.4 and later
|
|
||||||
|
|
||||||
yassl
|
|
||||||
- GPL licensed
|
|
||||||
- much untested and unproven in the real work by (lib)curl users so we don't
|
|
||||||
know a lot about restrictions or benefits from using this
|
|
||||||
|
|
||||||
The Better License, Original BSD, GPL or LGPL?
|
|
||||||
|
|
||||||
It isn't obvious or without debate to any objective interested party that
|
|
||||||
either of these licenses are the "better" or even the "preferred" one in a
|
|
||||||
generic situation.
|
|
||||||
|
|
||||||
Instead, I think we should accept the fact that the SSL/TLS libraries and
|
|
||||||
their different licenses will fit different applications and their authors
|
|
||||||
differently depending on the applications' licenses and their general usage
|
|
||||||
pattern (considering how GPL and LGPL libraries for example can be burdensome
|
|
||||||
for embedded systems usage).
|
|
||||||
|
|
||||||
In Debian land, there seems to be a common opinion that LGPL is "maximally
|
|
||||||
compatible" with apps while Original BSD is not. Like this:
|
|
||||||
|
|
||||||
https://lists.debian.org/debian-devel/2005/09/msg01417.html
|
|
||||||
|
|
||||||
More SSL Libraries
|
|
||||||
|
|
||||||
In libcurl, there's no stopping us here. There are more Open Source/Free
|
|
||||||
SSL/TLS libraries out there and we would very much like to support them as
|
|
||||||
well, to offer application authors an even wider scope of choice.
|
|
||||||
|
|
||||||
Application Angle of this Problem
|
|
||||||
|
|
||||||
libcurl is built to use one SSL/TLS library. It uses a single fixed name (by
|
|
||||||
default) on the built/created lib file, and applications are built/linked to
|
|
||||||
use that single lib. Replacing one libcurl instance with another one that
|
|
||||||
uses the other SSL/TLS library might break one or more applications (due to
|
|
||||||
ABI differences and/or different feature set). You want your application to
|
|
||||||
use the libcurl it was built for.
|
|
||||||
|
|
||||||
Project cURL Angle of this Problem
|
|
||||||
|
|
||||||
We distribute libcurl and everyone may build libcurl with either library at
|
|
||||||
their choice. This problem is not directly a problem of ours. It merely
|
|
||||||
affects users - GPL application authors only - of our lib as it comes
|
|
||||||
included and delivered on some distros.
|
|
||||||
|
|
||||||
libcurl has different ABI when built with different SSL/TLS libraries due to
|
|
||||||
these reasons:
|
|
||||||
|
|
||||||
1. No one has worked on fixing this. The mutex/lock callbacks should be set
|
|
||||||
with a generic libcurl function that should use the proper underlying
|
|
||||||
functions.
|
|
||||||
|
|
||||||
2. The CURLOPT_SSL_CTX_FUNCTION option is not possible to "emulate" on GnuTLS
|
|
||||||
but simply requires OpenSSL.
|
|
||||||
|
|
||||||
3. There might be some other subtle differences just because nobody has yet
|
|
||||||
tried to make a fixed ABI like this.
|
|
||||||
|
|
||||||
Distro Angle of this Problem
|
|
||||||
|
|
||||||
To my knowledge there is only one distro that ships libcurl built with either
|
|
||||||
OpenSSL or GnuTLS.
|
|
||||||
|
|
||||||
Debian Linux is now (since mid September 2005) providing two different
|
|
||||||
libcurl packages, one for libcurl built with OpenSSL and one built with
|
|
||||||
GnuTLS. They use different .so names and can this both be installed in a
|
|
||||||
single system simultaneously. This has been said to be a transitional system
|
|
||||||
not desired to keep in the long run.
|
|
||||||
|
|
||||||
Footnotes
|
|
||||||
|
|
||||||
[1] = http://www.xfree86.org/3.3.6/COPYRIGHT2.html#6
|
|
||||||
[2] = https://www.gnu.org/philosophy/bsd.html
|
|
||||||
[3] = https://www.gnu.org/licenses/gpl.html
|
|
||||||
[4] = http://curl.haxx.se/docs/copyright.html
|
|
||||||
[5] = https://www.openssl.org/source/license.html
|
|
||||||
[6] = https://www.gnu.org/licenses/gpl.html end of section 3
|
|
||||||
[7] = https://www.gnu.org/licenses/lgpl.html
|
|
||||||
[8] = https://en.wikipedia.org/wiki/OpenSSL_exception
|
|
||||||
|
|
||||||
Feedback/Updates provided by
|
|
||||||
|
|
||||||
Eric Cooper
|
|
12
docs/FAQ
12
docs/FAQ
@@ -1536,9 +1536,7 @@ FAQ
|
|||||||
|
|
||||||
7.2 Who wrote PHP/CURL?
|
7.2 Who wrote PHP/CURL?
|
||||||
|
|
||||||
PHP/CURL is a module that comes with the regular PHP package. It depends and
|
PHP/CURL was initially written by Sterling Hughes.
|
||||||
uses libcurl, so you need to have libcurl installed properly first before
|
|
||||||
PHP/CURL can be used. PHP/CURL was initially written by Sterling Hughes.
|
|
||||||
|
|
||||||
7.3 Can I perform multiple requests using the same handle?
|
7.3 Can I perform multiple requests using the same handle?
|
||||||
|
|
||||||
@@ -1547,4 +1545,10 @@ FAQ
|
|||||||
unknown to me).
|
unknown to me).
|
||||||
|
|
||||||
After a transfer, you just set new options in the handle and make another
|
After a transfer, you just set new options in the handle and make another
|
||||||
transfer. This will make libcurl to re-use the same connection if it can.
|
transfer. This will make libcurl re-use the same connection if it can.
|
||||||
|
|
||||||
|
7.4 Does PHP/CURL have dependencies?
|
||||||
|
|
||||||
|
PHP/CURL is a module that comes with the regular PHP package. It depends on
|
||||||
|
and uses libcurl, so you need to have libcurl installed properly before
|
||||||
|
PHP/CURL can be used.
|
||||||
|
27
docs/INSTALL
27
docs/INSTALL
@@ -473,12 +473,12 @@ Win32
|
|||||||
|
|
||||||
Legacy Windows and SSL
|
Legacy Windows and SSL
|
||||||
----------------------
|
----------------------
|
||||||
WinSSL (Windows SSPI, more specifically Schannel), is the native SSL library
|
|
||||||
that comes with the Windows OS. WinSSL in Windows <= XP is not able to
|
WinSSL (specifically SChannel from Windows SSPI), is the native SSL library
|
||||||
connect to servers that no longer support the legacy handshakes and
|
in Windows. However, WinSSL in Windows <= XP is unable to connect to servers
|
||||||
algorithms used by those versions. If you will be using curl in one of those
|
that no longer support the legacy handshakes and algorithms used by those
|
||||||
earlier versions of Windows you should choose another SSL backend like
|
versions. If you will be using curl in one of those earlier versions of
|
||||||
OpenSSL.
|
Windows you should choose another SSL backend such as OpenSSL.
|
||||||
|
|
||||||
Apple iOS and Mac OS X
|
Apple iOS and Mac OS X
|
||||||
======================
|
======================
|
||||||
@@ -950,9 +950,10 @@ REDUCING SIZE
|
|||||||
important factor. First, be sure to set the CFLAGS variable when
|
important factor. First, be sure to set the CFLAGS variable when
|
||||||
configuring with any relevant compiler optimization flags to reduce the
|
configuring with any relevant compiler optimization flags to reduce the
|
||||||
size of the binary. For gcc, this would mean at minimum the -Os option,
|
size of the binary. For gcc, this would mean at minimum the -Os option,
|
||||||
and potentially the -march=X and -mdynamic-no-pic options as well, e.g.
|
and potentially the -march=X, -mdynamic-no-pic and -flto options as well,
|
||||||
|
e.g.
|
||||||
|
|
||||||
./configure CFLAGS='-Os' ...
|
./configure CFLAGS='-Os' LDFLAGS='-Wl,-Bsymbolic'...
|
||||||
|
|
||||||
Note that newer compilers often produce smaller code than older versions
|
Note that newer compilers often produce smaller code than older versions
|
||||||
due to improved optimization.
|
due to improved optimization.
|
||||||
@@ -970,7 +971,9 @@ REDUCING SIZE
|
|||||||
--disable-ipv6 (disables support for IPv6)
|
--disable-ipv6 (disables support for IPv6)
|
||||||
--disable-manual (disables support for the built-in documentation)
|
--disable-manual (disables support for the built-in documentation)
|
||||||
--disable-proxy (disables support for HTTP and SOCKS proxies)
|
--disable-proxy (disables support for HTTP and SOCKS proxies)
|
||||||
|
--disable-unix-sockets (disables support for UNIX sockets)
|
||||||
--disable-verbose (eliminates debugging strings and error code strings)
|
--disable-verbose (eliminates debugging strings and error code strings)
|
||||||
|
--disable-versioned-symbols (disables support for versioned symbols)
|
||||||
--enable-hidden-symbols (eliminates unneeded symbols in the shared library)
|
--enable-hidden-symbols (eliminates unneeded symbols in the shared library)
|
||||||
--without-libidn (disables support for the libidn DNS library)
|
--without-libidn (disables support for the libidn DNS library)
|
||||||
--without-librtmp (disables support for RTMP)
|
--without-librtmp (disables support for RTMP)
|
||||||
@@ -983,7 +986,7 @@ REDUCING SIZE
|
|||||||
configure command-line, e.g.
|
configure command-line, e.g.
|
||||||
|
|
||||||
CFLAGS="-Os -ffunction-sections -fdata-sections \
|
CFLAGS="-Os -ffunction-sections -fdata-sections \
|
||||||
-fno-unwind-tables -fno-asynchronous-unwind-tables" \
|
-fno-unwind-tables -fno-asynchronous-unwind-tables -flto" \
|
||||||
LDFLAGS="-Wl,-s -Wl,-Bsymbolic -Wl,--gc-sections"
|
LDFLAGS="-Wl,-s -Wl,-Bsymbolic -Wl,--gc-sections"
|
||||||
|
|
||||||
Be sure also to strip debugging symbols from your binaries after
|
Be sure also to strip debugging symbols from your binaries after
|
||||||
@@ -993,9 +996,9 @@ REDUCING SIZE
|
|||||||
.comment section).
|
.comment section).
|
||||||
|
|
||||||
Using these techniques it is possible to create a basic HTTP-only shared
|
Using these techniques it is possible to create a basic HTTP-only shared
|
||||||
libcurl library for i386 Linux platforms that is only 114 KiB in size, and
|
libcurl library for i386 Linux platforms that is only 109 KiB in size, and
|
||||||
an FTP-only library that is 115 KiB in size (as of libcurl version 7.35.0,
|
an FTP-only library that is 109 KiB in size (as of libcurl version 7.45.0,
|
||||||
using gcc 4.8.2).
|
using gcc 4.9.2).
|
||||||
|
|
||||||
You may find that statically linking libcurl to your application will
|
You may find that statically linking libcurl to your application will
|
||||||
result in a lower total size than dynamically linking.
|
result in a lower total size than dynamically linking.
|
||||||
|
@@ -3,6 +3,9 @@ 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!
|
||||||
|
|
||||||
|
91. "curl_easy_perform hangs with imap and PolarSSL"
|
||||||
|
https://github.com/bagder/curl/issues/334
|
||||||
|
|
||||||
90. IMAP "SEARCH ALL" truncates output on large boxes. "A quick search of the
|
90. IMAP "SEARCH ALL" truncates output on large boxes. "A quick search of the
|
||||||
code reveals that pingpong.c contains some truncation code, at line 408,
|
code reveals that pingpong.c contains some truncation code, at line 408,
|
||||||
when it deems the server response to be too large truncating it to 40
|
when it deems the server response to be too large truncating it to 40
|
||||||
@@ -32,6 +35,7 @@ may have been fixed since this was written!
|
|||||||
CURLINFO_STARTTRANSFER_TIME is wrong. While using POST
|
CURLINFO_STARTTRANSFER_TIME is wrong. While using POST
|
||||||
CURLINFO_STARTTRANSFER_TIME minus CURLINFO_PRETRANSFER_TIME is near to zero
|
CURLINFO_STARTTRANSFER_TIME minus CURLINFO_PRETRANSFER_TIME is near to zero
|
||||||
every time.
|
every time.
|
||||||
|
https://github.com/bagder/curl/issues/218
|
||||||
http://curl.haxx.se/bug/view.cgi?id=1213
|
http://curl.haxx.se/bug/view.cgi?id=1213
|
||||||
|
|
||||||
84. CURLINFO_SSL_VERIFYRESULT is only implemented for the OpenSSL and NSS
|
84. CURLINFO_SSL_VERIFYRESULT is only implemented for the OpenSSL and NSS
|
||||||
@@ -58,16 +62,6 @@ may have been fixed since this was written!
|
|||||||
that can receive data. This is subject for change in the future.
|
that can receive data. This is subject for change in the future.
|
||||||
http://curl.haxx.se/bug/view.cgi?id=1116
|
http://curl.haxx.se/bug/view.cgi?id=1116
|
||||||
|
|
||||||
78. curl and libcurl don't always signal the client properly when "sending"
|
|
||||||
zero bytes files - it makes for example the command line client not creating
|
|
||||||
any file at all. Like when using FTP.
|
|
||||||
http://curl.haxx.se/bug/view.cgi?id=1063
|
|
||||||
|
|
||||||
76. The SOCKET type in Win64 is 64 bits large (and thus so is curl_socket_t on
|
|
||||||
that platform), and long is only 32 bits. It makes it impossible for
|
|
||||||
curl_easy_getinfo() to return a socket properly with the CURLINFO_LASTSOCKET
|
|
||||||
option as for all other operating systems.
|
|
||||||
|
|
||||||
75. NTLM authentication involving unicode user name or password only works
|
75. NTLM authentication involving unicode user name or password only works
|
||||||
properly if built with UNICODE defined together with the WinSSL/schannel
|
properly if built with UNICODE defined together with the WinSSL/schannel
|
||||||
backend. The original problem was mentioned in:
|
backend. The original problem was mentioned in:
|
||||||
@@ -245,13 +239,3 @@ may have been fixed since this was written!
|
|||||||
it seems HTTP servers send the *uncompressed* length in that header and
|
it seems HTTP servers send the *uncompressed* length in that header and
|
||||||
libcurl thinks of it as the *compressed* length. Some explanations are here:
|
libcurl thinks of it as the *compressed* length. Some explanations are here:
|
||||||
http://curl.haxx.se/mail/lib-2003-06/0146.html
|
http://curl.haxx.se/mail/lib-2003-06/0146.html
|
||||||
|
|
||||||
2. If a HTTP server responds to a HEAD request and includes a body (thus
|
|
||||||
violating the RFC2616), curl won't wait to read the response but just stop
|
|
||||||
reading and return back. If a second request (let's assume a GET) is then
|
|
||||||
immediately made to the same server again, the connection will be re-used
|
|
||||||
fine of course, and the second request will be sent off but when the
|
|
||||||
response is to get read, the previous response-body is what curl will read
|
|
||||||
and havoc is what happens.
|
|
||||||
More details on this is found in this libcurl mailing list thread:
|
|
||||||
http://curl.haxx.se/mail/lib-2002-08/0000.html
|
|
||||||
|
@@ -33,12 +33,12 @@ SUBDIRS = examples libcurl
|
|||||||
|
|
||||||
CLEANFILES = $(GENHTMLPAGES) $(PDFPAGES)
|
CLEANFILES = $(GENHTMLPAGES) $(PDFPAGES)
|
||||||
|
|
||||||
EXTRA_DIST = MANUAL BUGS CONTRIBUTE FAQ FEATURES INTERNALS SSLCERTS \
|
EXTRA_DIST = MANUAL BUGS CONTRIBUTE FAQ FEATURES INTERNALS SSLCERTS \
|
||||||
README.win32 RESOURCES TODO TheArtOfHttpScripting THANKS VERSIONS \
|
README.win32 RESOURCES TODO TheArtOfHttpScripting THANKS VERSIONS \
|
||||||
KNOWN_BUGS BINDINGS $(man_MANS) $(HTMLPAGES) HISTORY INSTALL \
|
KNOWN_BUGS BINDINGS $(man_MANS) $(HTMLPAGES) HISTORY INSTALL \
|
||||||
$(PDFPAGES) LICENSE-MIXING README.netware DISTRO-DILEMMA INSTALL.devcpp \
|
$(PDFPAGES) LICENSE-MIXING README.netware INSTALL.devcpp \
|
||||||
MAIL-ETIQUETTE HTTP-COOKIES SECURITY RELEASE-PROCEDURE \
|
MAIL-ETIQUETTE HTTP-COOKIES SECURITY RELEASE-PROCEDURE SSL-PROBLEMS \
|
||||||
SSL-PROBLEMS HTTP2.md ROADMAP.md
|
HTTP2.md ROADMAP.md CODE_OF_CONDUCT.md
|
||||||
|
|
||||||
MAN2HTML= roffit < $< >$@
|
MAN2HTML= roffit < $< >$@
|
||||||
|
|
||||||
|
@@ -24,6 +24,8 @@ in the source code repo
|
|||||||
|
|
||||||
- upload the 8 resulting files to the primary download directory
|
- upload the 8 resulting files to the primary download directory
|
||||||
|
|
||||||
|
- upload the 4 tarballs to github for the HTTPS download
|
||||||
|
|
||||||
in the curl-www repo
|
in the curl-www repo
|
||||||
--------------------
|
--------------------
|
||||||
|
|
||||||
@@ -78,9 +80,7 @@ Coming dates
|
|||||||
Based on the description above, here are some planned release dates (at the
|
Based on the description above, here are some planned release dates (at the
|
||||||
time of this writing):
|
time of this writing):
|
||||||
|
|
||||||
- June 17, 2015 (version 7.43.0)
|
- October 7, 2015 (version 7.45.0)
|
||||||
- August 12, 2015
|
|
||||||
- October 7, 2015
|
|
||||||
- December 2, 2015
|
- December 2, 2015
|
||||||
- January 27, 2016
|
- January 27, 2016
|
||||||
- March 23, 2016
|
- March 23, 2016
|
||||||
|
@@ -18,20 +18,6 @@ HTTP/2
|
|||||||
To decide: if we need to bundle parts of the nghttp2 stuff that probably
|
To decide: if we need to bundle parts of the nghttp2 stuff that probably
|
||||||
won't be shipped by many distros.
|
won't be shipped by many distros.
|
||||||
|
|
||||||
- stream properties API
|
|
||||||
|
|
||||||
Provide options for setting priorities and dependencies among the streams
|
|
||||||
(easy handles). They are mostly information set for the stream and sent to
|
|
||||||
the server so we don't have to add much logic for this.
|
|
||||||
|
|
||||||
- server push
|
|
||||||
|
|
||||||
Not exactly clear exactly how to support this API-wise, but by adding
|
|
||||||
handles without asking for a resource it could be a way to be prepared to
|
|
||||||
receive pushes in case such are sent. We probably need it to still specify
|
|
||||||
a URL with host name, port etc but we probably need a special option to
|
|
||||||
tell libcurl it is for server push purposes.
|
|
||||||
|
|
||||||
- provide option for HTTP/2 "prior knowledge" over clear text
|
- provide option for HTTP/2 "prior knowledge" over clear text
|
||||||
|
|
||||||
As it would avoid the roundtrip-heavy Upgrade: procedures when you _know_
|
As it would avoid the roundtrip-heavy Upgrade: procedures when you _know_
|
||||||
@@ -117,7 +103,7 @@ Improve
|
|||||||
|
|
||||||
2. curl -h output (considered overwhelming to users)
|
2. curl -h output (considered overwhelming to users)
|
||||||
|
|
||||||
3. we have > 160 command line options, is there a way to redo things to
|
3. we have > 170 command line options, is there a way to redo things to
|
||||||
simplify or improve the situation as we are likely to keep adding
|
simplify or improve the situation as we are likely to keep adding
|
||||||
features/options in the future too
|
features/options in the future too
|
||||||
|
|
||||||
|
@@ -26,7 +26,7 @@ CA bundle missing intermediate certificates
|
|||||||
problems if your CA cert does not have the certificates for the
|
problems if your CA cert does not have the certificates for the
|
||||||
intermediates in the whole trust chain.
|
intermediates in the whole trust chain.
|
||||||
|
|
||||||
SSL version
|
Protocol version
|
||||||
|
|
||||||
Some broken servers fail to support the protocol negotiation properly that
|
Some broken servers fail to support the protocol negotiation properly that
|
||||||
SSL servers are supposed to handle. This may cause the connection to fail
|
SSL servers are supposed to handle. This may cause the connection to fail
|
||||||
@@ -36,7 +36,9 @@ SSL version
|
|||||||
An additional complication can be that modern SSL libraries sometimes are
|
An additional complication can be that modern SSL libraries sometimes are
|
||||||
built with support for older SSL and TLS versions disabled!
|
built with support for older SSL and TLS versions disabled!
|
||||||
|
|
||||||
SSL ciphers
|
All versions of SSL are considered insecure and should be avoided. Use TLS.
|
||||||
|
|
||||||
|
Ciphers
|
||||||
|
|
||||||
Clients give servers a list of ciphers to select from. If the list doesn't
|
Clients give servers a list of ciphers to select from. If the list doesn't
|
||||||
include any ciphers the server wants/can use, the connection handshake
|
include any ciphers the server wants/can use, the connection handshake
|
||||||
@@ -51,6 +53,10 @@ SSL ciphers
|
|||||||
Note that these weak ciphers are identified as flawed. For example, this
|
Note that these weak ciphers are identified as flawed. For example, this
|
||||||
includes symmetric ciphers with less than 128 bit keys and RC4.
|
includes symmetric ciphers with less than 128 bit keys and RC4.
|
||||||
|
|
||||||
|
WinSSL in Windows XP is not able to connect to servers that no longer
|
||||||
|
support the legacy handshakes and algorithms used by those versions, so we
|
||||||
|
advice against building curl to use WinSSL on really old Windows versions.
|
||||||
|
|
||||||
References:
|
References:
|
||||||
|
|
||||||
https://tools.ietf.org/html/draft-popov-tls-prohibiting-rc4-01
|
https://tools.ietf.org/html/draft-popov-tls-prohibiting-rc4-01
|
||||||
@@ -65,3 +71,17 @@ Allow BEAST
|
|||||||
introduced. Exactly as it sounds, it re-introduces the BEAST vulnerability
|
introduced. Exactly as it sounds, it re-introduces the BEAST vulnerability
|
||||||
but on the other hand it allows curl to connect to that kind of strange
|
but on the other hand it allows curl to connect to that kind of strange
|
||||||
servers.
|
servers.
|
||||||
|
|
||||||
|
Disabling certificate revocation checks
|
||||||
|
|
||||||
|
Some SSL backends may do certificate revocation checks (CRL, OCSP, etc)
|
||||||
|
depending on the OS or build configuration. The --ssl-no-revoke option was
|
||||||
|
introduced in 7.44.0 to disable revocation checking but currently is only
|
||||||
|
supported for WinSSL (the native Windows SSL library), with an exception in
|
||||||
|
the case of Windows' Untrusted Publishers blacklist which it seems can't be
|
||||||
|
bypassed. This option may have broader support to accommodate other SSL
|
||||||
|
backends in the future.
|
||||||
|
|
||||||
|
References:
|
||||||
|
|
||||||
|
http://curl.haxx.se/docs/ssl-compared.html
|
||||||
|
33
docs/THANKS
33
docs/THANKS
@@ -131,12 +131,14 @@ Benbuck Nason
|
|||||||
Benjamin Gerard
|
Benjamin Gerard
|
||||||
Benjamin Gilbert
|
Benjamin Gilbert
|
||||||
Benjamin Johnson
|
Benjamin Johnson
|
||||||
|
Benjamin Kircher
|
||||||
Benoit Neil
|
Benoit Neil
|
||||||
Benoit Sigoure
|
Benoit Sigoure
|
||||||
Bernard Leak
|
Bernard Leak
|
||||||
Bernhard Reutner-Fischer
|
Bernhard Reutner-Fischer
|
||||||
Bert Huijben
|
Bert Huijben
|
||||||
Bertrand Demiddelaer
|
Bertrand Demiddelaer
|
||||||
|
Bertrand Simonnet
|
||||||
Bill Doyle
|
Bill Doyle
|
||||||
Bill Egert
|
Bill Egert
|
||||||
Bill Hoffman
|
Bill Hoffman
|
||||||
@@ -234,6 +236,7 @@ Cris Bailiff
|
|||||||
Cristian Rodríguez
|
Cristian Rodríguez
|
||||||
Curt Bogmine
|
Curt Bogmine
|
||||||
Cyrill Osterwalder
|
Cyrill Osterwalder
|
||||||
|
Cédric Connes
|
||||||
Cédric Deltheil
|
Cédric Deltheil
|
||||||
D. Flinkmann
|
D. Flinkmann
|
||||||
Da-Yoon Chung
|
Da-Yoon Chung
|
||||||
@@ -252,9 +255,13 @@ Dan Zitter
|
|||||||
Daniel Black
|
Daniel Black
|
||||||
Daniel Cater
|
Daniel Cater
|
||||||
Daniel Egger
|
Daniel Egger
|
||||||
|
Daniel Hwang
|
||||||
Daniel Johnson
|
Daniel Johnson
|
||||||
|
Daniel Kahn Gillmor
|
||||||
|
Daniel Lee Hwang
|
||||||
Daniel Melani
|
Daniel Melani
|
||||||
Daniel Mentz
|
Daniel Mentz
|
||||||
|
Daniel Seither
|
||||||
Daniel Steinberg
|
Daniel Steinberg
|
||||||
Daniel Stenberg
|
Daniel Stenberg
|
||||||
Daniel Theron
|
Daniel Theron
|
||||||
@@ -297,6 +304,7 @@ David Woodhouse
|
|||||||
David Wright
|
David Wright
|
||||||
David Yan
|
David Yan
|
||||||
Dengminwen
|
Dengminwen
|
||||||
|
Denis Feklushkin
|
||||||
Dennis Clarke
|
Dennis Clarke
|
||||||
Derek Higgins
|
Derek Higgins
|
||||||
Detlef Schmier
|
Detlef Schmier
|
||||||
@@ -364,12 +372,14 @@ Eric Lubin
|
|||||||
Eric Melville
|
Eric Melville
|
||||||
Eric Mertens
|
Eric Mertens
|
||||||
Eric Rautman
|
Eric Rautman
|
||||||
|
Eric Ridge
|
||||||
Eric S. Raymond
|
Eric S. Raymond
|
||||||
Eric Thelin
|
Eric Thelin
|
||||||
Eric Vergnaud
|
Eric Vergnaud
|
||||||
Eric Wong
|
Eric Wong
|
||||||
Eric Young
|
Eric Young
|
||||||
Erick Nuwendam
|
Erick Nuwendam
|
||||||
|
Erik Janssen
|
||||||
Erik Johansson
|
Erik Johansson
|
||||||
Ernest Beinrohr
|
Ernest Beinrohr
|
||||||
Erwan Legrand
|
Erwan Legrand
|
||||||
@@ -384,6 +394,7 @@ Fabian Hiernaux
|
|||||||
Fabian Keil
|
Fabian Keil
|
||||||
Fabrizio Ammollo
|
Fabrizio Ammollo
|
||||||
Fedor Karpelevitch
|
Fedor Karpelevitch
|
||||||
|
Feist Josselin
|
||||||
Felix Yan
|
Felix Yan
|
||||||
Felix von Leitner
|
Felix von Leitner
|
||||||
Feng Tu
|
Feng Tu
|
||||||
@@ -453,6 +464,7 @@ Guido Berhoerster
|
|||||||
Guillaume Arluison
|
Guillaume Arluison
|
||||||
Gunter Knauf
|
Gunter Knauf
|
||||||
Gustaf Hui
|
Gustaf Hui
|
||||||
|
Gustavo Grieco
|
||||||
Gwenole Beauchesne
|
Gwenole Beauchesne
|
||||||
Gökhan Şengün
|
Gökhan Şengün
|
||||||
Götz Babin-Ebell
|
Götz Babin-Ebell
|
||||||
@@ -497,6 +509,7 @@ Iida Yosiaki
|
|||||||
Ilguiz Latypov
|
Ilguiz Latypov
|
||||||
Ilja van Sprundel
|
Ilja van Sprundel
|
||||||
Immanuel Gregoire
|
Immanuel Gregoire
|
||||||
|
Inca R
|
||||||
Ingmar Runge
|
Ingmar Runge
|
||||||
Ingo Ralf Blum
|
Ingo Ralf Blum
|
||||||
Ingo Wilken
|
Ingo Wilken
|
||||||
@@ -507,6 +520,7 @@ Jack Zhang
|
|||||||
Jacky Lam
|
Jacky Lam
|
||||||
Jacob Meuser
|
Jacob Meuser
|
||||||
Jacob Moshenko
|
Jacob Moshenko
|
||||||
|
Jactry Zeng
|
||||||
Jad Chamcham
|
Jad Chamcham
|
||||||
Jakub Zakrzewski
|
Jakub Zakrzewski
|
||||||
James Bursa
|
James Bursa
|
||||||
@@ -720,6 +734,7 @@ Linas Vepstas
|
|||||||
Lindley French
|
Lindley French
|
||||||
Ling Thio
|
Ling Thio
|
||||||
Linus Nielsen Feltzing
|
Linus Nielsen Feltzing
|
||||||
|
Lior Kaplan
|
||||||
Lisa Xu
|
Lisa Xu
|
||||||
Liviu Chircu
|
Liviu Chircu
|
||||||
Liza Alenchery
|
Liza Alenchery
|
||||||
@@ -742,6 +757,7 @@ Maciej Karpiuk
|
|||||||
Maciej Puzio
|
Maciej Puzio
|
||||||
Maciej W. Rozycki
|
Maciej W. Rozycki
|
||||||
Maks Naumov
|
Maks Naumov
|
||||||
|
Maksim Stsepanenka
|
||||||
Mamoru Tasaka
|
Mamoru Tasaka
|
||||||
Mandy Wu
|
Mandy Wu
|
||||||
Manfred Schwarb
|
Manfred Schwarb
|
||||||
@@ -825,6 +841,7 @@ Michael Day
|
|||||||
Michael Goffioul
|
Michael Goffioul
|
||||||
Michael Jahn
|
Michael Jahn
|
||||||
Michael Jerris
|
Michael Jerris
|
||||||
|
Michael Kalinin
|
||||||
Michael Kaufmann
|
Michael Kaufmann
|
||||||
Michael Mealling
|
Michael Mealling
|
||||||
Michael Mueller
|
Michael Mueller
|
||||||
@@ -835,6 +852,7 @@ Michael Stillwell
|
|||||||
Michael Wallner
|
Michael Wallner
|
||||||
Michal Bonino
|
Michal Bonino
|
||||||
Michal Marek
|
Michal Marek
|
||||||
|
Michał Fita
|
||||||
Michał Górny
|
Michał Górny
|
||||||
Michał Kowalczyk
|
Michał Kowalczyk
|
||||||
Michel Promonet
|
Michel Promonet
|
||||||
@@ -868,6 +886,7 @@ Nagai H
|
|||||||
Nathan Coulter
|
Nathan Coulter
|
||||||
Nathan O'Sullivan
|
Nathan O'Sullivan
|
||||||
Nathanael Nerode
|
Nathanael Nerode
|
||||||
|
Nathaniel Waisbrot
|
||||||
Naveen Chandran
|
Naveen Chandran
|
||||||
Naveen Noel
|
Naveen Noel
|
||||||
Neil Bowers
|
Neil Bowers
|
||||||
@@ -903,6 +922,7 @@ Oliver Gondža
|
|||||||
Oliver Kuckertz
|
Oliver Kuckertz
|
||||||
Oliver Schindler
|
Oliver Schindler
|
||||||
Olivier Berger
|
Olivier Berger
|
||||||
|
Orange Tsai
|
||||||
Oren Souroujon
|
Oren Souroujon
|
||||||
Oren Tirosh
|
Oren Tirosh
|
||||||
Orgad Shaneh
|
Orgad Shaneh
|
||||||
@@ -998,6 +1018,7 @@ Rainer Canavan
|
|||||||
Rainer Jung
|
Rainer Jung
|
||||||
Rainer Koenig
|
Rainer Koenig
|
||||||
Rajesh Naganathan
|
Rajesh Naganathan
|
||||||
|
Rajkumar Mandal
|
||||||
Ralf S. Engelschall
|
Ralf S. Engelschall
|
||||||
Ralph Beckmann
|
Ralph Beckmann
|
||||||
Ralph Mitchell
|
Ralph Mitchell
|
||||||
@@ -1007,6 +1028,7 @@ Ravi Pratap
|
|||||||
Ray Dassen
|
Ray Dassen
|
||||||
Ray Pekowski
|
Ray Pekowski
|
||||||
Ray Satiro
|
Ray Satiro
|
||||||
|
Razvan Cojocaru
|
||||||
Reinout van Schouwen
|
Reinout van Schouwen
|
||||||
Remi Gacogne
|
Remi Gacogne
|
||||||
Renato Botelho
|
Renato Botelho
|
||||||
@@ -1031,6 +1053,7 @@ Richard Michael
|
|||||||
Richard Moore
|
Richard Moore
|
||||||
Richard Prescott
|
Richard Prescott
|
||||||
Richard Silverman
|
Richard Silverman
|
||||||
|
Richard van den Berg
|
||||||
Rick Jones
|
Rick Jones
|
||||||
Rick Richardson
|
Rick Richardson
|
||||||
Rob Crittenden
|
Rob Crittenden
|
||||||
@@ -1054,6 +1077,7 @@ Robson Braga Araujo
|
|||||||
Rodney Simmons
|
Rodney Simmons
|
||||||
Rodric Glaser
|
Rodric Glaser
|
||||||
Rodrigo Silva
|
Rodrigo Silva
|
||||||
|
Roger Leigh
|
||||||
Roland Blom
|
Roland Blom
|
||||||
Roland Krikava
|
Roland Krikava
|
||||||
Roland Zimmermann
|
Roland Zimmermann
|
||||||
@@ -1078,6 +1102,7 @@ Salvador Dávila
|
|||||||
Salvatore Sorrentino
|
Salvatore Sorrentino
|
||||||
Sam Deane
|
Sam Deane
|
||||||
Sam Hurst
|
Sam Hurst
|
||||||
|
Sam Roth
|
||||||
Sam Schanken
|
Sam Schanken
|
||||||
Sampo Kellomaki
|
Sampo Kellomaki
|
||||||
Samuel Díaz García
|
Samuel Díaz García
|
||||||
@@ -1157,15 +1182,18 @@ Sune Ahlgren
|
|||||||
Sven Anders
|
Sven Anders
|
||||||
Sven Neuhaus
|
Sven Neuhaus
|
||||||
Sven Wegener
|
Sven Wegener
|
||||||
|
Svyatoslav Mishyn
|
||||||
Symeon Paraschoudis
|
Symeon Paraschoudis
|
||||||
Sébastien Willemijns
|
Sébastien Willemijns
|
||||||
T. Bharath
|
T. Bharath
|
||||||
T. Yamada
|
T. Yamada
|
||||||
|
TJ Saunders
|
||||||
Tae Hyoung Ahn
|
Tae Hyoung Ahn
|
||||||
Taneli Vahakangas
|
Taneli Vahakangas
|
||||||
Tanguy Fautre
|
Tanguy Fautre
|
||||||
Tatsuhiro Tsujikawa
|
Tatsuhiro Tsujikawa
|
||||||
Temprimus
|
Temprimus
|
||||||
|
Terri Oda
|
||||||
Thomas Braun
|
Thomas Braun
|
||||||
Thomas J. Moore
|
Thomas J. Moore
|
||||||
Thomas Klausner
|
Thomas Klausner
|
||||||
@@ -1174,6 +1202,7 @@ Thomas Lopatic
|
|||||||
Thomas Ruecker
|
Thomas Ruecker
|
||||||
Thomas Schwinge
|
Thomas Schwinge
|
||||||
Thomas Tonino
|
Thomas Tonino
|
||||||
|
Thorsten Schöning
|
||||||
Tiit Pikma
|
Tiit Pikma
|
||||||
Till Maas
|
Till Maas
|
||||||
Tim Ansell
|
Tim Ansell
|
||||||
@@ -1186,6 +1215,7 @@ Tim Heckman
|
|||||||
Tim Newsome
|
Tim Newsome
|
||||||
Tim Ruehsen
|
Tim Ruehsen
|
||||||
Tim Sneddon
|
Tim Sneddon
|
||||||
|
Tim Stack
|
||||||
Tim Starling
|
Tim Starling
|
||||||
Timo Sirainen
|
Timo Sirainen
|
||||||
Tinus van den Berg
|
Tinus van den Berg
|
||||||
@@ -1195,7 +1225,6 @@ Tobias Stoeckmann
|
|||||||
Toby Peterson
|
Toby Peterson
|
||||||
Todd A Ouska
|
Todd A Ouska
|
||||||
Todd Kulesza
|
Todd Kulesza
|
||||||
Todd Ouska
|
|
||||||
Todd Vierling
|
Todd Vierling
|
||||||
Tom Benoist
|
Tom Benoist
|
||||||
Tom Donovan
|
Tom Donovan
|
||||||
@@ -1255,6 +1284,7 @@ Vojtech Janota
|
|||||||
Vojtech Minarik
|
Vojtech Minarik
|
||||||
Vojtěch Král
|
Vojtěch Král
|
||||||
Vsevolod Novikov
|
Vsevolod Novikov
|
||||||
|
W. Mark Kubacki
|
||||||
Waldek Kozba
|
Waldek Kozba
|
||||||
Walter J. Mack
|
Walter J. Mack
|
||||||
Ward Willats
|
Ward Willats
|
||||||
@@ -1294,4 +1324,5 @@ Zvi Har'El
|
|||||||
nk
|
nk
|
||||||
swalkaus at yahoo.com
|
swalkaus at yahoo.com
|
||||||
tommink[at]post.pl
|
tommink[at]post.pl
|
||||||
|
Štefan Kremeň
|
||||||
Никита Дорохин
|
Никита Дорохин
|
||||||
|
@@ -50,3 +50,4 @@ s/Jiří Hruška/Jiri Hruska/
|
|||||||
s/Viktor Szakats/Viktor Szakáts/
|
s/Viktor Szakats/Viktor Szakáts/
|
||||||
s/Jonathan Cardoso/Jonathan Cardoso Machado/
|
s/Jonathan Cardoso/Jonathan Cardoso Machado/
|
||||||
s/Linus Nielsen/Linus Nielsen Feltzing/
|
s/Linus Nielsen/Linus Nielsen Feltzing/
|
||||||
|
s/Todd Ouska$/Todd A Ouska/
|
||||||
|
54
docs/TODO
54
docs/TODO
@@ -26,6 +26,7 @@
|
|||||||
1.8 Allow SSL (HTTPS) to proxy
|
1.8 Allow SSL (HTTPS) to proxy
|
||||||
1.9 Cache negative name resolves
|
1.9 Cache negative name resolves
|
||||||
1.10 Support IDNA2008
|
1.10 Support IDNA2008
|
||||||
|
1.11 minimize dependencies with dynamicly loaded modules
|
||||||
|
|
||||||
2. libcurl - multi interface
|
2. libcurl - multi interface
|
||||||
2.1 More non-blocking
|
2.1 More non-blocking
|
||||||
@@ -51,6 +52,7 @@
|
|||||||
5.4 SPDY
|
5.4 SPDY
|
||||||
5.5 auth= in URLs
|
5.5 auth= in URLs
|
||||||
5.6 Refuse "downgrade" redirects
|
5.6 Refuse "downgrade" redirects
|
||||||
|
5.7 More compressions
|
||||||
|
|
||||||
6. TELNET
|
6. TELNET
|
||||||
6.1 ditch stdin
|
6.1 ditch stdin
|
||||||
@@ -113,6 +115,7 @@
|
|||||||
17.7 warning when sending binary output to terminal
|
17.7 warning when sending binary output to terminal
|
||||||
17.8 offer color-coded HTTP header output
|
17.8 offer color-coded HTTP header output
|
||||||
17.9 Choose the name of file in braces for complex URLs
|
17.9 Choose the name of file in braces for complex URLs
|
||||||
|
17.10 improve how curl works in a windows console window
|
||||||
|
|
||||||
18. Build
|
18. Build
|
||||||
18.1 roffit
|
18.1 roffit
|
||||||
@@ -225,6 +228,13 @@
|
|||||||
by libidn. libidn implements IDNA2003 which has been superseded by IDNA2008.
|
by libidn. libidn implements IDNA2003 which has been superseded by IDNA2008.
|
||||||
libidn2 is an existing library offering support for IDNA2008.
|
libidn2 is an existing library offering support for IDNA2008.
|
||||||
|
|
||||||
|
1.11 minimize dependencies with dynamicly loaded modules
|
||||||
|
|
||||||
|
We can create a system with loadable modules/plug-ins, where these modules
|
||||||
|
would be the ones that link to 3rd party libs. That would allow us to avoid
|
||||||
|
having to load ALL dependencies since only the necessary ones for this
|
||||||
|
app/invoke/used protocols would be necessary to load. See
|
||||||
|
https://github.com/bagder/curl/issues/349
|
||||||
|
|
||||||
2. libcurl - multi interface
|
2. libcurl - multi interface
|
||||||
|
|
||||||
@@ -363,6 +373,14 @@ This is not detailed in any FTP specification.
|
|||||||
Consider a way to tell curl to refuse to "downgrade" protocol with a redirect
|
Consider a way to tell curl to refuse to "downgrade" protocol with a redirect
|
||||||
and/or possibly a bit that refuses redirect to change protocol completely.
|
and/or possibly a bit that refuses redirect to change protocol completely.
|
||||||
|
|
||||||
|
5.7 More compressions
|
||||||
|
|
||||||
|
Compression algorithms that perform better than gzip are being considered for
|
||||||
|
use and inclusion in existing browsers. For example 'brotli'. If servers
|
||||||
|
follow along it is a good reason for us to also allow users to take advantage
|
||||||
|
of this. The algorithm: https://github.com/google/brotli The Firefox bug:
|
||||||
|
https://bugzilla.mozilla.org/show_bug.cgi?id=366559
|
||||||
|
|
||||||
|
|
||||||
6. TELNET
|
6. TELNET
|
||||||
|
|
||||||
@@ -615,32 +633,38 @@ Currently the SMB authentication uses NTLMv1.
|
|||||||
|
|
||||||
17.6 warning when setting an option
|
17.6 warning when setting an option
|
||||||
|
|
||||||
Display a warning when libcurl returns an error when setting an option.
|
Display a warning when libcurl returns an error when setting an option.
|
||||||
This can be useful to tell when support for a particular feature hasn't been
|
This can be useful to tell when support for a particular feature hasn't been
|
||||||
compiled into the library.
|
compiled into the library.
|
||||||
|
|
||||||
17.7 warning when sending binary output to terminal
|
17.7 warning when sending binary output to terminal
|
||||||
|
|
||||||
Provide a way that prompts the user for confirmation before binary data is
|
Provide a way that prompts the user for confirmation before binary data is
|
||||||
sent to the terminal, much in the style 'less' does it.
|
sent to the terminal, much in the style 'less' does it.
|
||||||
|
|
||||||
17.8 offer color-coded HTTP header output
|
17.8 offer color-coded HTTP header output
|
||||||
|
|
||||||
By offering different color output on the header name and the header
|
By offering different color output on the header name and the header
|
||||||
contents, they could be made more readable and thus help users working on
|
contents, they could be made more readable and thus help users working on
|
||||||
HTTP services.
|
HTTP services.
|
||||||
|
|
||||||
17.9 Choose the name of file in braces for complex URLs
|
17.9 Choose the name of file in braces for complex URLs
|
||||||
|
|
||||||
When using braces to download a list of URLs and you use complicated names
|
When using braces to download a list of URLs and you use complicated names
|
||||||
in the list of alternatives, it could be handy to allow curl to use other
|
in the list of alternatives, it could be handy to allow curl to use other
|
||||||
names when saving.
|
names when saving.
|
||||||
|
|
||||||
Consider a way to offer that. Possibly like
|
Consider a way to offer that. Possibly like
|
||||||
{partURL1:name1,partURL2:name2,partURL3:name3} where the name following the
|
{partURL1:name1,partURL2:name2,partURL3:name3} where the name following the
|
||||||
colon is the output name.
|
colon is the output name.
|
||||||
|
|
||||||
See https://github.com/bagder/curl/issues/221
|
See https://github.com/bagder/curl/issues/221
|
||||||
|
|
||||||
|
17.10 improve how curl works in a windows console window
|
||||||
|
|
||||||
|
If you pull the scrollbar when transferring with curl in a Windows console
|
||||||
|
window, the transfer is interrupted and can get disconnected. This can
|
||||||
|
probably be improved. See https://github.com/bagder/curl/issues/322
|
||||||
|
|
||||||
|
|
||||||
18. Build
|
18. Build
|
||||||
|
110
docs/curl.1
110
docs/curl.1
@@ -171,10 +171,11 @@ a level of control).
|
|||||||
.IP "-2, --sslv2"
|
.IP "-2, --sslv2"
|
||||||
(SSL) Forces curl to use SSL version 2 when negotiating with a remote SSL
|
(SSL) Forces curl to use SSL version 2 when negotiating with a remote SSL
|
||||||
server. Sometimes curl is built without SSLv2 support. SSLv2 is widely
|
server. Sometimes curl is built without SSLv2 support. SSLv2 is widely
|
||||||
considered insecure.
|
considered insecure (see RFC 6176).
|
||||||
.IP "-3, --sslv3"
|
.IP "-3, --sslv3"
|
||||||
(SSL) Forces curl to use SSL version 3 when negotiating with a remote SSL
|
(SSL) Forces curl to use SSL version 3 when negotiating with a remote SSL
|
||||||
server. Sometimes curl is built without SSLv3 support.
|
server. Sometimes curl is built without SSLv3 support. SSLv3 is widely
|
||||||
|
considered insecure (see RFC 7568).
|
||||||
.IP "-4, --ipv4"
|
.IP "-4, --ipv4"
|
||||||
This option tells curl to resolve names to IPv4 addresses only, and not for
|
This option tells curl to resolve names to IPv4 addresses only, and not for
|
||||||
example try IPv6.
|
example try IPv6.
|
||||||
@@ -212,7 +213,7 @@ be in the format "NAME1=VALUE1; NAME2=VALUE2".
|
|||||||
|
|
||||||
If no '=' symbol is used in the line, it is treated as a filename to use to
|
If no '=' symbol is used in the line, it is treated as a filename to use to
|
||||||
read previously stored cookie lines from, which should be used in this session
|
read previously stored cookie lines from, which should be used in this session
|
||||||
if they match. Using this method also activates the "cookie parser" which will
|
if they match. Using this method also activates the cookie engine which will
|
||||||
make curl record incoming cookies too, which may be handy if you're using this
|
make curl record incoming cookies too, which may be handy if you're using this
|
||||||
in combination with the \fI-L, --location\fP option. The file format of the
|
in combination with the \fI-L, --location\fP option. The file format of the
|
||||||
file to read cookies from should be plain HTTP headers or the Netscape/Mozilla
|
file to read cookies from should be plain HTTP headers or the Netscape/Mozilla
|
||||||
@@ -222,6 +223,15 @@ The file specified with \fI-b, --cookie\fP is only used as input. No cookies
|
|||||||
will be written to the file. To store cookies, use the \fI-c, --cookie-jar\fP
|
will be written to the file. To store cookies, use the \fI-c, --cookie-jar\fP
|
||||||
option.
|
option.
|
||||||
|
|
||||||
|
Exercise caution if you are using this option and multiple transfers may occur.
|
||||||
|
If you use the NAME1=VALUE1; format, or in a file use the Set-Cookie format and
|
||||||
|
don't specify a domain, then the cookie is sent for any domain (even after
|
||||||
|
redirects are followed) and cannot be modified by a server-set cookie. If the
|
||||||
|
cookie engine is enabled and a server sets a cookie of the same name then both
|
||||||
|
will be sent on a future transfer to that server, likely not what you intended.
|
||||||
|
To address these issues set a domain in Set-Cookie (doing that will include
|
||||||
|
sub-domains) or use the Netscape format.
|
||||||
|
|
||||||
If this option is used several times, the last one will be used.
|
If this option is used several times, the last one will be used.
|
||||||
.IP "-B, --use-ascii"
|
.IP "-B, --use-ascii"
|
||||||
(FTP/LDAP) Enable ASCII transfer. For FTP, this can also be enforced by using
|
(FTP/LDAP) Enable ASCII transfer. For FTP, this can also be enforced by using
|
||||||
@@ -253,6 +263,9 @@ won't fail or even report an error clearly. Using -v will get a warning
|
|||||||
displayed, but that is the only visible feedback you get about this possibly
|
displayed, but that is the only visible feedback you get about this possibly
|
||||||
lethal situation.
|
lethal situation.
|
||||||
|
|
||||||
|
Since 7.43.0 cookies that were imported in the Set-Cookie format without a
|
||||||
|
domain name are not exported by this option.
|
||||||
|
|
||||||
If this option is used several times, the last specified file name will be
|
If this option is used several times, the last specified file name will be
|
||||||
used.
|
used.
|
||||||
.IP "-C, --continue-at <offset>"
|
.IP "-C, --continue-at <offset>"
|
||||||
@@ -475,10 +488,10 @@ If this option is used several times, the last one will be used.
|
|||||||
(SSL) Tells curl to use the specified client certificate file when getting a
|
(SSL) Tells curl to use the specified client certificate file when getting a
|
||||||
file with HTTPS, FTPS or another SSL-based protocol. The certificate must be
|
file with HTTPS, FTPS or another SSL-based protocol. The certificate must be
|
||||||
in PKCS#12 format if using Secure Transport, or PEM format if using any other
|
in PKCS#12 format if using Secure Transport, or PEM format if using any other
|
||||||
engine. If the optional password isn't specified, it will be queried
|
engine. If the optional password isn't specified, it will be queried for on
|
||||||
for on the terminal. Note that this option assumes a \&"certificate" file that
|
the terminal. Note that this option assumes a \&"certificate" file that is the
|
||||||
is the private key and the private certificate concatenated! See \fI--cert\fP
|
private key and the client certificate concatenated! See \fI--cert\fP and
|
||||||
and \fI--key\fP to specify them independently.
|
\fI--key\fP to specify them independently.
|
||||||
|
|
||||||
If curl is built against the NSS SSL library then this option can tell
|
If curl is built against the NSS SSL library then this option can tell
|
||||||
curl the nickname of the certificate to use within the NSS database defined
|
curl the nickname of the certificate to use within the NSS database defined
|
||||||
@@ -544,9 +557,11 @@ OpenSSL-powered curl to make SSL-connections much more efficiently than using
|
|||||||
|
|
||||||
If this option is set, the default capath value will be ignored, and if it is
|
If this option is set, the default capath value will be ignored, and if it is
|
||||||
used several times, the last one will be used.
|
used several times, the last one will be used.
|
||||||
.IP "--pinnedpubkey <pinned public key>"
|
.IP "--pinnedpubkey <pinned public key (hashes)>"
|
||||||
(SSL) Tells curl to use the specified public key file to verify the peer. The
|
(SSL) Tells curl to use the specified public key file (or hashes) to verify the
|
||||||
file must contain a single public key in PEM or DER format.
|
peer. This can be a path to a file which contains a single public key in PEM or
|
||||||
|
DER format, or any number of base64 encoded sha256 hashes preceded by
|
||||||
|
\'sha256//\' and separated by \';\'
|
||||||
|
|
||||||
When negotiating a TLS or SSL connection, the server sends a certificate
|
When negotiating a TLS or SSL connection, the server sends a certificate
|
||||||
indicating its identity. A public key is extracted from this certificate and
|
indicating its identity. A public key is extracted from this certificate and
|
||||||
@@ -554,7 +569,8 @@ if it does not exactly match the public key provided to this option, curl will
|
|||||||
abort the connection before sending or receiving any data.
|
abort the connection before sending or receiving any data.
|
||||||
|
|
||||||
Added in 7.39.0 for OpenSSL, GnuTLS and GSKit. Added in 7.43.0 for NSS and
|
Added in 7.39.0 for OpenSSL, GnuTLS and GSKit. Added in 7.43.0 for NSS and
|
||||||
wolfSSL/CyaSSL. Other SSL backends not supported.
|
wolfSSL/CyaSSL. sha256 support added in 7.44.0 for OpenSSL,
|
||||||
|
GnuTLS, NSS and wolfSSL/CyaSSL. Other SSL backends not supported.
|
||||||
|
|
||||||
If this option is used several times, the last one will be used.
|
If this option is used several times, the last one will be used.
|
||||||
.IP "--cert-status"
|
.IP "--cert-status"
|
||||||
@@ -604,7 +620,9 @@ input:
|
|||||||
\fBcurl\fP -F password=@/etc/passwd www.mypasswords.com
|
\fBcurl\fP -F password=@/etc/passwd www.mypasswords.com
|
||||||
|
|
||||||
To read content from stdin instead of a file, use - as the filename. This goes
|
To read content from stdin instead of a file, use - as the filename. This goes
|
||||||
for both @ and < constructs.
|
for both @ and < constructs. Unfortunately it does not support reading the
|
||||||
|
file from a named pipe or similar, as it needs the full size before the
|
||||||
|
transfer starts.
|
||||||
|
|
||||||
You can also tell curl what Content-Type to use by using 'type=', in a manner
|
You can also tell curl what Content-Type to use by using 'type=', in a manner
|
||||||
similar to:
|
similar to:
|
||||||
@@ -771,10 +789,12 @@ This option can be used multiple times to add/replace/remove multiple headers.
|
|||||||
be the 128 bit MD5 checksum of the remote host's public key, curl will refuse
|
be the 128 bit MD5 checksum of the remote host's public key, curl will refuse
|
||||||
the connection with the host unless the md5sums match. (Added in 7.17.1)
|
the connection with the host unless the md5sums match. (Added in 7.17.1)
|
||||||
.IP "--ignore-content-length"
|
.IP "--ignore-content-length"
|
||||||
(HTTP)
|
For HTTP, Ignore the Content-Length header. This is particularly useful for
|
||||||
Ignore the Content-Length header. This is particularly useful for servers
|
servers running Apache 1.x, which will report incorrect Content-Length for
|
||||||
running Apache 1.x, which will report incorrect Content-Length for files
|
files larger than 2 gigabytes.
|
||||||
larger than 2 gigabytes.
|
|
||||||
|
For FTP (since 7.46.0), skip the RETR command to figure out the size before
|
||||||
|
downloading a file.
|
||||||
.IP "-i, --include"
|
.IP "-i, --include"
|
||||||
(HTTP) Include the HTTP-header in the output. The HTTP-header includes things
|
(HTTP) Include the HTTP-header in the output. The HTTP-header includes things
|
||||||
like server-name, date of the document, HTTP-version and more...
|
like server-name, date of the document, HTTP-version and more...
|
||||||
@@ -1245,21 +1265,21 @@ this option set you tell it not to do that.
|
|||||||
|
|
||||||
(Added in 7.42.0)
|
(Added in 7.42.0)
|
||||||
.IP "--post301"
|
.IP "--post301"
|
||||||
(HTTP) Tells curl to respect RFC 2616/10.3.2 and not convert POST requests
|
(HTTP) Tells curl to respect RFC 7230/6.4.2 and not convert POST requests
|
||||||
into GET requests when following a 301 redirection. The non-RFC behaviour is
|
into GET requests when following a 301 redirection. The non-RFC behaviour is
|
||||||
ubiquitous in web browsers, so curl does the conversion by default to maintain
|
ubiquitous in web browsers, so curl does the conversion by default to maintain
|
||||||
consistency. However, a server may require a POST to remain a POST after such
|
consistency. However, a server may require a POST to remain a POST after such
|
||||||
a redirection. This option is meaningful only when using \fI-L, --location\fP
|
a redirection. This option is meaningful only when using \fI-L, --location\fP
|
||||||
(Added in 7.17.1)
|
(Added in 7.17.1)
|
||||||
.IP "--post302"
|
.IP "--post302"
|
||||||
(HTTP) Tells curl to respect RFC 2616/10.3.2 and not convert POST requests
|
(HTTP) Tells curl to respect RFC 7230/6.4.3 and not convert POST requests
|
||||||
into GET requests when following a 302 redirection. The non-RFC behaviour is
|
into GET requests when following a 302 redirection. The non-RFC behaviour is
|
||||||
ubiquitous in web browsers, so curl does the conversion by default to maintain
|
ubiquitous in web browsers, so curl does the conversion by default to maintain
|
||||||
consistency. However, a server may require a POST to remain a POST after such
|
consistency. However, a server may require a POST to remain a POST after such
|
||||||
a redirection. This option is meaningful only when using \fI-L, --location\fP
|
a redirection. This option is meaningful only when using \fI-L, --location\fP
|
||||||
(Added in 7.19.1)
|
(Added in 7.19.1)
|
||||||
.IP "--post303"
|
.IP "--post303"
|
||||||
(HTTP) Tells curl to respect RFC 2616/10.3.2 and not convert POST requests
|
(HTTP) Tells curl to respect RFC 7230/6.4.4 and not convert POST requests
|
||||||
into GET requests when following a 303 redirection. The non-RFC behaviour is
|
into GET requests when following a 303 redirection. The non-RFC behaviour is
|
||||||
ubiquitous in web browsers, so curl does the conversion by default to maintain
|
ubiquitous in web browsers, so curl does the conversion by default to maintain
|
||||||
consistency. However, a server may require a POST to remain a POST after such
|
consistency. However, a server may require a POST to remain a POST after such
|
||||||
@@ -1306,9 +1326,40 @@ This option can be used multiple times, in which case the effect is the same
|
|||||||
as concatenating the protocols into one instance of the option.
|
as concatenating the protocols into one instance of the option.
|
||||||
|
|
||||||
(Added in 7.20.2)
|
(Added in 7.20.2)
|
||||||
|
.IP "--proto-default <protocol>"
|
||||||
|
Tells curl to use \fIprotocol\fP for any URL missing a scheme name.
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
|
.RS
|
||||||
|
.IP "--proto-default https ftp.mozilla.org"
|
||||||
|
https://ftp.mozilla.org
|
||||||
|
.RE
|
||||||
|
|
||||||
|
An unknown or unsupported protocol causes error
|
||||||
|
\fICURLE_UNSUPPORTED_PROTOCOL\fP.
|
||||||
|
|
||||||
|
This option does not change the default proxy protocol (http).
|
||||||
|
|
||||||
|
Without this option curl would make a guess based on the host, see \fI--url\fP
|
||||||
|
for details.
|
||||||
|
|
||||||
|
(Added in 7.45.0)
|
||||||
.IP "--proto-redir <protocols>"
|
.IP "--proto-redir <protocols>"
|
||||||
Tells curl to use the listed protocols after a redirect. See --proto for
|
Tells curl to use the listed protocols on redirect. See --proto for how
|
||||||
how protocols are represented.
|
protocols are represented.
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
|
.RS
|
||||||
|
.IP "--proto-redir -all,http,https"
|
||||||
|
Allow only HTTP and HTTPS on redirect.
|
||||||
|
.RE
|
||||||
|
|
||||||
|
By default curl will allow all protocols on redirect except several disabled
|
||||||
|
for security reasons: Since 7.19.4 FILE and SCP are disabled, and since 7.40.0
|
||||||
|
SMB and SMBS are also disabled. Specifying \fIall\fP or \fI+all\fP enables all
|
||||||
|
protocols on redirect, including those disabled for security.
|
||||||
|
|
||||||
(Added in 7.20.2)
|
(Added in 7.20.2)
|
||||||
.IP "--proxy-anyauth"
|
.IP "--proxy-anyauth"
|
||||||
@@ -1423,13 +1474,10 @@ specifies the last 500 bytes
|
|||||||
specifies the bytes from offset 9500 and forward
|
specifies the bytes from offset 9500 and forward
|
||||||
.TP
|
.TP
|
||||||
.B 0-0,-1
|
.B 0-0,-1
|
||||||
specifies the first and last byte only(*)(H)
|
specifies the first and last byte only(*)(HTTP)
|
||||||
.TP
|
|
||||||
.B 500-700,600-799
|
|
||||||
specifies 300 bytes from offset 500(H)
|
|
||||||
.TP
|
.TP
|
||||||
.B 100-199,500-599
|
.B 100-199,500-599
|
||||||
specifies two separate 100-byte ranges(*)(H)
|
specifies two separate 100-byte ranges(*) (HTTP)
|
||||||
.RE
|
.RE
|
||||||
.IP
|
.IP
|
||||||
(*) = NOTE that this will cause the server to reply with a multipart
|
(*) = NOTE that this will cause the server to reply with a multipart
|
||||||
@@ -1542,6 +1590,10 @@ and TLS1.0 protocols known as BEAST. If this option isn't used, the SSL layer
|
|||||||
may use workarounds known to cause interoperability problems with some older
|
may use workarounds known to cause interoperability problems with some older
|
||||||
SSL implementations. WARNING: this option loosens the SSL security, and by
|
SSL implementations. WARNING: this option loosens the SSL security, and by
|
||||||
using this flag you ask for exactly that. (Added in 7.25.0)
|
using this flag you ask for exactly that. (Added in 7.25.0)
|
||||||
|
.IP "--ssl-no-revoke"
|
||||||
|
(WinSSL) This option tells curl to disable certificate revocation checks.
|
||||||
|
WARNING: this option loosens the SSL security, and by using this flag you ask
|
||||||
|
for exactly that. (Added in 7.44.0)
|
||||||
.IP "--socks4 <host[:port]>"
|
.IP "--socks4 <host[:port]>"
|
||||||
Use the specified SOCKS4 proxy. If the port number is not specified, it is
|
Use the specified SOCKS4 proxy. If the port number is not specified, it is
|
||||||
assumed at port 1080. (Added in 7.15.2)
|
assumed at port 1080. (Added in 7.15.2)
|
||||||
@@ -1751,6 +1803,12 @@ If this option is used several times, the last one will be used.
|
|||||||
Specify a URL to fetch. This option is mostly handy when you want to specify
|
Specify a URL to fetch. This option is mostly handy when you want to specify
|
||||||
URL(s) in a config file.
|
URL(s) in a config file.
|
||||||
|
|
||||||
|
If the given URL is missing a scheme name (such as "http://" or "ftp://" etc)
|
||||||
|
then curl will make a guess based on the host. If the outermost sub-domain name
|
||||||
|
matches DICT, FTP, IMAP, LDAP, POP3 or SMTP then that protocol will be used,
|
||||||
|
otherwise HTTP will be used. Since 7.45.0 guessing can be disabled by setting a
|
||||||
|
default protocol, see \fI--proto-default\fP for details.
|
||||||
|
|
||||||
This option may be used any number of times. To control where this URL is
|
This option may be used any number of times. To control where this URL is
|
||||||
written, use the \fI-o, --output\fP or the \fI-O, --remote-name\fP options.
|
written, use the \fI-o, --output\fP or the \fI-O, --remote-name\fP options.
|
||||||
.IP "-v, --verbose"
|
.IP "-v, --verbose"
|
||||||
|
@@ -50,7 +50,7 @@ LIBRTMP_PATH = ../../../librtmp-2.4
|
|||||||
endif
|
endif
|
||||||
# Edit the path below to point to the base of your libidn package.
|
# Edit the path below to point to the base of your libidn package.
|
||||||
ifndef LIBIDN_PATH
|
ifndef LIBIDN_PATH
|
||||||
LIBIDN_PATH = ../../../libidn-1.30
|
LIBIDN_PATH = ../../../libidn-1.32
|
||||||
endif
|
endif
|
||||||
# Edit the path below to point to the base of your MS IDN package.
|
# Edit the path below to point to the base of your MS IDN package.
|
||||||
# Microsoft Internationalized Domain Names (IDN) Mitigation APIs 1.1
|
# Microsoft Internationalized Domain Names (IDN) Mitigation APIs 1.1
|
||||||
|
@@ -34,7 +34,7 @@ endif
|
|||||||
|
|
||||||
# Edit the path below to point to the base of your libidn package.
|
# Edit the path below to point to the base of your libidn package.
|
||||||
ifndef LIBIDN_PATH
|
ifndef LIBIDN_PATH
|
||||||
LIBIDN_PATH = ../../../libidn-1.30
|
LIBIDN_PATH = ../../../libidn-1.32
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# Edit the path below to point to the base of your librtmp package.
|
# Edit the path below to point to the base of your librtmp package.
|
||||||
|
@@ -330,7 +330,7 @@ static void new_conn(char *url, GlobalInfo *g )
|
|||||||
conn->url = strdup(url);
|
conn->url = strdup(url);
|
||||||
curl_easy_setopt(conn->easy, CURLOPT_URL, conn->url);
|
curl_easy_setopt(conn->easy, CURLOPT_URL, conn->url);
|
||||||
curl_easy_setopt(conn->easy, CURLOPT_WRITEFUNCTION, write_cb);
|
curl_easy_setopt(conn->easy, CURLOPT_WRITEFUNCTION, write_cb);
|
||||||
curl_easy_setopt(conn->easy, CURLOPT_WRITEDATA, &conn);
|
curl_easy_setopt(conn->easy, CURLOPT_WRITEDATA, conn);
|
||||||
curl_easy_setopt(conn->easy, CURLOPT_VERBOSE, 1L);
|
curl_easy_setopt(conn->easy, CURLOPT_VERBOSE, 1L);
|
||||||
curl_easy_setopt(conn->easy, CURLOPT_ERRORBUFFER, conn->error);
|
curl_easy_setopt(conn->easy, CURLOPT_ERRORBUFFER, conn->error);
|
||||||
curl_easy_setopt(conn->easy, CURLOPT_PRIVATE, conn);
|
curl_easy_setopt(conn->easy, CURLOPT_PRIVATE, conn);
|
||||||
|
@@ -5,7 +5,7 @@
|
|||||||
* | (__| |_| | _ <| |___
|
* | (__| |_| | _ <| |___
|
||||||
* \___|\___/|_| \_\_____|
|
* \___|\___/|_| \_\_____|
|
||||||
*
|
*
|
||||||
* Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al.
|
* Copyright (C) 1998 - 2015, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
*
|
*
|
||||||
* This software is licensed as described in the file COPYING, which
|
* This software is licensed as described in the file COPYING, which
|
||||||
* you should have received as part of this distribution. The terms
|
* you should have received as part of this distribution. The terms
|
||||||
@@ -19,8 +19,10 @@
|
|||||||
* KIND, either express or implied.
|
* KIND, either express or implied.
|
||||||
*
|
*
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
// Get a web page, parse it with libxml.
|
/* <DESC>
|
||||||
//
|
* Get a web page, extract the title with libxml.
|
||||||
|
* </DESC>
|
||||||
|
*/
|
||||||
// Written by Lars Nilsson
|
// Written by Lars Nilsson
|
||||||
//
|
//
|
||||||
// GNU C++ compile command line suggestion (edit paths accordingly):
|
// GNU C++ compile command line suggestion (edit paths accordingly):
|
||||||
|
@@ -5,7 +5,7 @@
|
|||||||
* | (__| |_| | _ <| |___
|
* | (__| |_| | _ <| |___
|
||||||
* \___|\___/|_| \_\_____|
|
* \___|\___/|_| \_\_____|
|
||||||
*
|
*
|
||||||
* Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al.
|
* Copyright (C) 1998 - 2015, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
*
|
*
|
||||||
* This software is licensed as described in the file COPYING, which
|
* This software is licensed as described in the file COPYING, which
|
||||||
* you should have received as part of this distribution. The terms
|
* you should have received as part of this distribution. The terms
|
||||||
@@ -19,6 +19,10 @@
|
|||||||
* KIND, either express or implied.
|
* KIND, either express or implied.
|
||||||
*
|
*
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
/* <DESC>
|
||||||
|
* simple HTTP POST using the easy interface
|
||||||
|
* </DESC>
|
||||||
|
*/
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <curl/curl.h>
|
#include <curl/curl.h>
|
||||||
|
|
||||||
|
@@ -19,6 +19,10 @@
|
|||||||
* KIND, either express or implied.
|
* KIND, either express or implied.
|
||||||
*
|
*
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
/* <DESC>
|
||||||
|
* Multiplexed HTTP/2 downloads over a single connection
|
||||||
|
* </DESC>
|
||||||
|
*/
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
|
@@ -19,6 +19,10 @@
|
|||||||
* KIND, either express or implied.
|
* KIND, either express or implied.
|
||||||
*
|
*
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
/* <DESC>
|
||||||
|
* HTTP/2 server push
|
||||||
|
* </DESC>
|
||||||
|
*/
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
|
@@ -19,6 +19,10 @@
|
|||||||
* KIND, either express or implied.
|
* KIND, either express or implied.
|
||||||
*
|
*
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
/* <DESC>
|
||||||
|
* Multiplexed HTTP/2 uploads over a single connection
|
||||||
|
* </DESC>
|
||||||
|
*/
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
|
@@ -5,7 +5,7 @@
|
|||||||
* | (__| |_| | _ <| |___
|
* | (__| |_| | _ <| |___
|
||||||
* \___|\___/|_| \_\_____|
|
* \___|\___/|_| \_\_____|
|
||||||
*
|
*
|
||||||
* Copyright (C) 1998 - 2014, Daniel Stenberg, <daniel@haxx.se>, et al.
|
* Copyright (C) 1998 - 2015, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
*
|
*
|
||||||
* This software is licensed as described in the file COPYING, which
|
* This software is licensed as described in the file COPYING, which
|
||||||
* you should have received as part of this distribution. The terms
|
* you should have received as part of this distribution. The terms
|
||||||
@@ -19,6 +19,10 @@
|
|||||||
* KIND, either express or implied.
|
* KIND, either express or implied.
|
||||||
*
|
*
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
/* <DESC>
|
||||||
|
* HTTP request with custom modified, removed and added headers
|
||||||
|
* </DESC>
|
||||||
|
*/
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <curl/curl.h>
|
#include <curl/curl.h>
|
||||||
|
|
||||||
|
@@ -5,7 +5,7 @@
|
|||||||
* | (__| |_| | _ <| |___
|
* | (__| |_| | _ <| |___
|
||||||
* \___|\___/|_| \_\_____|
|
* \___|\___/|_| \_\_____|
|
||||||
*
|
*
|
||||||
* Copyright (C) 1998 - 2012, Daniel Stenberg, <daniel@haxx.se>, et al.
|
* Copyright (C) 1998 - 2015, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
*
|
*
|
||||||
* This software is licensed as described in the file COPYING, which
|
* This software is licensed as described in the file COPYING, which
|
||||||
* you should have received as part of this distribution. The terms
|
* you should have received as part of this distribution. The terms
|
||||||
@@ -19,6 +19,10 @@
|
|||||||
* KIND, either express or implied.
|
* KIND, either express or implied.
|
||||||
*
|
*
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
/* <DESC>
|
||||||
|
* HTTP PUT with easy interface and read callback
|
||||||
|
* </DESC>
|
||||||
|
*/
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
|
@@ -5,7 +5,7 @@
|
|||||||
* | (__| |_| | _ <| |___
|
* | (__| |_| | _ <| |___
|
||||||
* \___|\___/|_| \_\_____|
|
* \___|\___/|_| \_\_____|
|
||||||
*
|
*
|
||||||
* Copyright (C) 1998 - 2012, Daniel Stenberg, <daniel@haxx.se>, et al.
|
* Copyright (C) 1998 - 2015, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
*
|
*
|
||||||
* This software is licensed as described in the file COPYING, which
|
* This software is licensed as described in the file COPYING, which
|
||||||
* you should have received as part of this distribution. The terms
|
* you should have received as part of this distribution. The terms
|
||||||
@@ -19,6 +19,10 @@
|
|||||||
* KIND, either express or implied.
|
* KIND, either express or implied.
|
||||||
*
|
*
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
/* <DESC>
|
||||||
|
* Simple HTTPS GET
|
||||||
|
* </DESC>
|
||||||
|
*/
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <curl/curl.h>
|
#include <curl/curl.h>
|
||||||
|
|
||||||
|
@@ -5,7 +5,7 @@
|
|||||||
* | (__| |_| | _ <| |___
|
* | (__| |_| | _ <| |___
|
||||||
* \___|\___/|_| \_\_____|
|
* \___|\___/|_| \_\_____|
|
||||||
*
|
*
|
||||||
* Copyright (C) 1998 - 2014, Daniel Stenberg, <daniel@haxx.se>, et al.
|
* Copyright (C) 1998 - 2015, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
*
|
*
|
||||||
* This software is licensed as described in the file COPYING, which
|
* This software is licensed as described in the file COPYING, which
|
||||||
* you should have received as part of this distribution. The terms
|
* you should have received as part of this distribution. The terms
|
||||||
@@ -19,6 +19,10 @@
|
|||||||
* KIND, either express or implied.
|
* KIND, either express or implied.
|
||||||
*
|
*
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
/* <DESC>
|
||||||
|
* Simple IMAP APPEND use
|
||||||
|
* </DESC>
|
||||||
|
*/
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <curl/curl.h>
|
#include <curl/curl.h>
|
||||||
|
@@ -19,10 +19,6 @@
|
|||||||
# KIND, either express or implied.
|
# KIND, either express or implied.
|
||||||
#
|
#
|
||||||
###########################################################################
|
###########################################################################
|
||||||
#
|
|
||||||
# Adapted for djgpp / Watt-32 / DOS by
|
|
||||||
# Gisle Vanem <gvanem@broadpark.no>
|
|
||||||
#
|
|
||||||
|
|
||||||
TOPDIR = ../..
|
TOPDIR = ../..
|
||||||
|
|
||||||
|
@@ -5,7 +5,7 @@
|
|||||||
* | (__| |_| | _ <| |___
|
* | (__| |_| | _ <| |___
|
||||||
* \___|\___/|_| \_\_____|
|
* \___|\___/|_| \_\_____|
|
||||||
*
|
*
|
||||||
* Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al.
|
* Copyright (C) 1998 - 2015, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
*
|
*
|
||||||
* This software is licensed as described in the file COPYING, which
|
* This software is licensed as described in the file COPYING, which
|
||||||
* you should have received as part of this distribution. The terms
|
* you should have received as part of this distribution. The terms
|
||||||
@@ -19,7 +19,10 @@
|
|||||||
* KIND, either express or implied.
|
* KIND, either express or implied.
|
||||||
*
|
*
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
/* This is an example showing the multi interface and the debug callback. */
|
/* <DESC>
|
||||||
|
* multi interface and debug callback
|
||||||
|
* </DESC>
|
||||||
|
*/
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
@@ -5,7 +5,7 @@
|
|||||||
* | (__| |_| | _ <| |___
|
* | (__| |_| | _ <| |___
|
||||||
* \___|\___/|_| \_\_____|
|
* \___|\___/|_| \_\_____|
|
||||||
*
|
*
|
||||||
* Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al.
|
* Copyright (C) 1998 - 2015, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
*
|
*
|
||||||
* This software is licensed as described in the file COPYING, which
|
* This software is licensed as described in the file COPYING, which
|
||||||
* you should have received as part of this distribution. The terms
|
* you should have received as part of this distribution. The terms
|
||||||
@@ -19,6 +19,10 @@
|
|||||||
* KIND, either express or implied.
|
* KIND, either express or implied.
|
||||||
*
|
*
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
/* <DESC>
|
||||||
|
* multi interface code doing two parallel HTTP transfers
|
||||||
|
* </DESC>
|
||||||
|
*/
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
@@ -5,7 +5,7 @@
|
|||||||
* | (__| |_| | _ <| |___
|
* | (__| |_| | _ <| |___
|
||||||
* \___|\___/|_| \_\_____|
|
* \___|\___/|_| \_\_____|
|
||||||
*
|
*
|
||||||
* Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al.
|
* Copyright (C) 1998 - 2015, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
*
|
*
|
||||||
* This software is licensed as described in the file COPYING, which
|
* This software is licensed as described in the file COPYING, which
|
||||||
* you should have received as part of this distribution. The terms
|
* you should have received as part of this distribution. The terms
|
||||||
@@ -19,8 +19,11 @@
|
|||||||
* KIND, either express or implied.
|
* KIND, either express or implied.
|
||||||
*
|
*
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
/* This is an example application source code using the multi interface
|
/* <DESC>
|
||||||
* to do a multipart formpost without "blocking". */
|
* using the multi interface to do a multipart formpost without blocking
|
||||||
|
* </DESC>
|
||||||
|
*/
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
|
@@ -5,7 +5,7 @@
|
|||||||
* | (__| |_| | _ <| |___
|
* | (__| |_| | _ <| |___
|
||||||
* \___|\___/|_| \_\_____|
|
* \___|\___/|_| \_\_____|
|
||||||
*
|
*
|
||||||
* Copyright (C) 1998 - 2014, Daniel Stenberg, <daniel@haxx.se>, et al.
|
* Copyright (C) 1998 - 2015, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
*
|
*
|
||||||
* This software is licensed as described in the file COPYING, which
|
* This software is licensed as described in the file COPYING, which
|
||||||
* you should have received as part of this distribution. The terms
|
* you should have received as part of this distribution. The terms
|
||||||
@@ -19,7 +19,10 @@
|
|||||||
* KIND, either express or implied.
|
* KIND, either express or implied.
|
||||||
*
|
*
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
/* This is a very simple example using the multi interface. */
|
/* <DESC>
|
||||||
|
* using the multi interface to do a single download
|
||||||
|
* </DESC>
|
||||||
|
*/
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
@@ -76,7 +79,7 @@ int main(void)
|
|||||||
|
|
||||||
if(mc != CURLM_OK)
|
if(mc != CURLM_OK)
|
||||||
{
|
{
|
||||||
fprintf(stderr, "curl_multi_fdset() failed, code %d.\n", mc);
|
fprintf(stderr, "curl_multi_wait() failed, code %d.\n", mc);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -5,7 +5,7 @@
|
|||||||
* | (__| |_| | _ <| |___
|
* | (__| |_| | _ <| |___
|
||||||
* \___|\___/|_| \_\_____|
|
* \___|\___/|_| \_\_____|
|
||||||
*
|
*
|
||||||
* Copyright (C) 1998 - 2014, Daniel Stenberg, <daniel@haxx.se>, et al.
|
* Copyright (C) 1998 - 2015, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
*
|
*
|
||||||
* This software is licensed as described in the file COPYING, which
|
* This software is licensed as described in the file COPYING, which
|
||||||
* you should have received as part of this distribution. The terms
|
* you should have received as part of this distribution. The terms
|
||||||
@@ -20,6 +20,10 @@
|
|||||||
*
|
*
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
|
/* <DESC>
|
||||||
|
* multi_socket API using libuv
|
||||||
|
* </DESC>
|
||||||
|
*/
|
||||||
/* Example application code using the multi socket interface to download
|
/* Example application code using the multi socket interface to download
|
||||||
multiple files at once, but instead of using curl_multi_perform and
|
multiple files at once, but instead of using curl_multi_perform and
|
||||||
curl_multi_wait, which uses select(), we use libuv.
|
curl_multi_wait, which uses select(), we use libuv.
|
||||||
|
@@ -5,7 +5,7 @@
|
|||||||
* | (__| |_| | _ <| |___
|
* | (__| |_| | _ <| |___
|
||||||
* \___|\___/|_| \_\_____|
|
* \___|\___/|_| \_\_____|
|
||||||
*
|
*
|
||||||
* Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al.
|
* Copyright (C) 1998 - 2015, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
*
|
*
|
||||||
* This software is licensed as described in the file COPYING, which
|
* This software is licensed as described in the file COPYING, which
|
||||||
* you should have received as part of this distribution. The terms
|
* you should have received as part of this distribution. The terms
|
||||||
@@ -19,8 +19,10 @@
|
|||||||
* KIND, either express or implied.
|
* KIND, either express or implied.
|
||||||
*
|
*
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
/* A multi-threaded example that uses pthreads extensively to fetch
|
/* <DESC>
|
||||||
* X remote files at once */
|
* A multi-threaded example that uses pthreads to fetch several files at once
|
||||||
|
* </DESC>
|
||||||
|
*/
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
|
@@ -5,7 +5,7 @@
|
|||||||
* | (__| |_| | _ <| |___
|
* | (__| |_| | _ <| |___
|
||||||
* \___|\___/|_| \_\_____|
|
* \___|\___/|_| \_\_____|
|
||||||
*
|
*
|
||||||
* Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al.
|
* Copyright (C) 1998 - 2015, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
*
|
*
|
||||||
* This software is licensed as described in the file COPYING, which
|
* This software is licensed as described in the file COPYING, which
|
||||||
* you should have received as part of this distribution. The terms
|
* you should have received as part of this distribution. The terms
|
||||||
@@ -19,16 +19,17 @@
|
|||||||
* KIND, either express or implied.
|
* KIND, either express or implied.
|
||||||
*
|
*
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
/* Example source code to show one way to set the necessary OpenSSL locking
|
/* <DESC>
|
||||||
* callbacks if you want to do multi-threaded transfers with HTTPS/FTPS with
|
* one way to set the necessary OpenSSL locking callbacks if you want to do
|
||||||
* libcurl built to use OpenSSL.
|
* multi-threaded transfers with HTTPS/FTPS with libcurl built to use OpenSSL.
|
||||||
*
|
* </DESC>
|
||||||
|
*/
|
||||||
|
/*
|
||||||
* This is not a complete stand-alone example.
|
* This is not a complete stand-alone example.
|
||||||
*
|
*
|
||||||
* Author: Jeremy Brown
|
* Author: Jeremy Brown
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
#include <openssl/err.h>
|
#include <openssl/err.h>
|
||||||
|
@@ -5,7 +5,7 @@
|
|||||||
* | (__| |_| | _ <| |___
|
* | (__| |_| | _ <| |___
|
||||||
* \___|\___/|_| \_\_____|
|
* \___|\___/|_| \_\_____|
|
||||||
*
|
*
|
||||||
* Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al.
|
* Copyright (C) 1998 - 2015, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
*
|
*
|
||||||
* This software is licensed as described in the file COPYING, which
|
* This software is licensed as described in the file COPYING, which
|
||||||
* you should have received as part of this distribution. The terms
|
* you should have received as part of this distribution. The terms
|
||||||
@@ -19,6 +19,10 @@
|
|||||||
* KIND, either express or implied.
|
* KIND, either express or implied.
|
||||||
*
|
*
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
/* <DESC>
|
||||||
|
* re-using handles to do HTTP persistent connections
|
||||||
|
* </DESC>
|
||||||
|
*/
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <curl/curl.h>
|
#include <curl/curl.h>
|
||||||
|
@@ -5,7 +5,7 @@
|
|||||||
* | (__| |_| | _ <| |___
|
* | (__| |_| | _ <| |___
|
||||||
* \___|\___/|_| \_\_____|
|
* \___|\___/|_| \_\_____|
|
||||||
*
|
*
|
||||||
* Copyright (C) 1998 - 2012, Daniel Stenberg, <daniel@haxx.se>, et al.
|
* Copyright (C) 1998 - 2015, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
*
|
*
|
||||||
* This software is licensed as described in the file COPYING, which
|
* This software is licensed as described in the file COPYING, which
|
||||||
* you should have received as part of this distribution. The terms
|
* you should have received as part of this distribution. The terms
|
||||||
@@ -19,8 +19,10 @@
|
|||||||
* KIND, either express or implied.
|
* KIND, either express or implied.
|
||||||
*
|
*
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
/* An example source code that issues a HTTP POST and we provide the actual
|
/* <DESC>
|
||||||
|
* An example source code that issues a HTTP POST and we provide the actual
|
||||||
* data through a read callback.
|
* data through a read callback.
|
||||||
|
* </DESC>
|
||||||
*/
|
*/
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
@@ -1,63 +1,55 @@
|
|||||||
_ _ ____ _
|
|
||||||
___| | | | _ \| |
|
|
||||||
/ __| | | | |_) | |
|
|
||||||
| (__| |_| | _ <| |___
|
|
||||||
\___|\___/|_| \_\_____|
|
|
||||||
|
|
||||||
libcurl's binary interface
|
|
||||||
|
|
||||||
ABI - Application Binary Interface
|
ABI - Application Binary Interface
|
||||||
----------------------------------
|
==================================
|
||||||
|
|
||||||
"ABI" describes the low-level interface between an application program and a
|
"ABI" describes the low-level interface between an application program and a
|
||||||
library. Calling conventions, function arguments, return values, struct
|
library. Calling conventions, function arguments, return values, struct
|
||||||
sizes/defines and more.
|
sizes/defines and more.
|
||||||
|
|
||||||
[Wikipedia has a longer description](http://en.wikipedia.org/wiki/Application_binary_interface)
|
[Wikipedia has a longer description](https://en.wikipedia.org/wiki/Application_binary_interface)
|
||||||
|
|
||||||
Upgrades
|
Upgrades
|
||||||
--------
|
--------
|
||||||
|
|
||||||
In the vast majority of all cases, a typical libcurl upgrade does not break
|
In the vast majority of all cases, a typical libcurl upgrade does not break
|
||||||
the ABI at all. Your application can remain using libcurl just as before,
|
the ABI at all. Your application can remain using libcurl just as before,
|
||||||
only with less bugs and possibly with added new features. You need to read
|
only with less bugs and possibly with added new features. You need to read
|
||||||
the release notes, and if they mention an ABI break/soname bump, you may
|
the release notes, and if they mention an ABI break/soname bump, you may have
|
||||||
have to verify that your application still builds fine and uses libcurl as
|
to verify that your application still builds fine and uses libcurl as it now
|
||||||
it now is defined to work.
|
is defined to work.
|
||||||
|
|
||||||
Version Numbers
|
Version Numbers
|
||||||
---------------
|
---------------
|
||||||
|
|
||||||
In libcurl land, you really can't tell by the libcurl version number if that
|
In libcurl land, you really can't tell by the libcurl version number if that
|
||||||
libcurl is binary compatible or not with another libcurl version.
|
libcurl is binary compatible or not with another libcurl version.
|
||||||
|
|
||||||
Soname Bumps
|
Soname Bumps
|
||||||
------------
|
------------
|
||||||
|
|
||||||
Whenever there are changes done to the library that will cause an ABI
|
Whenever there are changes done to the library that will cause an ABI
|
||||||
breakage, that may require your application to get attention or possibly be
|
breakage, that may require your application to get attention or possibly be
|
||||||
changed to adhere to new things, we will bump the soname. Then the library
|
changed to adhere to new things, we will bump the soname. Then the library
|
||||||
will get a different output name and thus can in fact be installed in
|
will get a different output name and thus can in fact be installed in
|
||||||
parallel with an older installed lib (on most systems). Thus, old
|
parallel with an older installed lib (on most systems). Thus, old
|
||||||
applications built against the previous ABI version will remain working and
|
applications built against the previous ABI version will remain working and
|
||||||
using the older lib, while newer applications build and use the newer one.
|
using the older lib, while newer applications build and use the newer one.
|
||||||
|
|
||||||
During the first seven years of libcurl releases, there have only been four
|
During the first seven years of libcurl releases, there have only been four
|
||||||
ABI breakages.
|
ABI breakages.
|
||||||
|
|
||||||
We are determined to bump the SONAME as rarely as possible. Ideally, we
|
We are determined to bump the SONAME as rarely as possible. Ideally, we
|
||||||
never do it again.
|
never do it again.
|
||||||
|
|
||||||
Downgrades
|
Downgrades
|
||||||
----------
|
----------
|
||||||
|
|
||||||
Going to an older libcurl version from one you're currently using can be a
|
Going to an older libcurl version from one you're currently using can be a
|
||||||
tricky thing. Mostly we add features and options to newer libcurls as that
|
tricky thing. Mostly we add features and options to newer libcurls as that
|
||||||
won't break ABI or hamper existing applications. This has the implication
|
won't break ABI or hamper existing applications. This has the implication
|
||||||
that going backwards may get you in a situation where you pick a libcurl
|
that going backwards may get you in a situation where you pick a libcurl that
|
||||||
that doesn't support the options your application needs. Or possibly you
|
doesn't support the options your application needs. Or possibly you even
|
||||||
even downgrade so far so you cross an ABI break border and thus a different
|
downgrade so far so you cross an ABI break border and thus a different
|
||||||
soname, and then your application may need to adapt to the modified ABI.
|
soname, and then your application may need to adapt to the modified ABI.
|
||||||
|
|
||||||
History
|
History
|
||||||
-------
|
-------
|
||||||
|
@@ -29,18 +29,19 @@ man_MANS = curl_easy_cleanup.3 curl_easy_getinfo.3 curl_easy_init.3 \
|
|||||||
curl_formadd.3 curl_formfree.3 curl_getdate.3 curl_getenv.3 \
|
curl_formadd.3 curl_formfree.3 curl_getdate.3 curl_getenv.3 \
|
||||||
curl_slist_append.3 curl_slist_free_all.3 curl_version.3 \
|
curl_slist_append.3 curl_slist_free_all.3 curl_version.3 \
|
||||||
curl_version_info.3 curl_escape.3 curl_unescape.3 curl_free.3 \
|
curl_version_info.3 curl_escape.3 curl_unescape.3 curl_free.3 \
|
||||||
curl_strequal.3 curl_mprintf.3 curl_global_init.3 curl_global_cleanup.3 \
|
curl_strequal.3 curl_mprintf.3 curl_global_init.3 \
|
||||||
curl_multi_add_handle.3 curl_multi_cleanup.3 curl_multi_fdset.3 \
|
curl_global_cleanup.3 curl_multi_add_handle.3 curl_multi_cleanup.3 \
|
||||||
curl_multi_info_read.3 curl_multi_init.3 curl_multi_perform.3 \
|
curl_multi_fdset.3 curl_multi_info_read.3 curl_multi_init.3 \
|
||||||
curl_multi_remove_handle.3 curl_share_cleanup.3 curl_share_init.3 \
|
curl_multi_perform.3 curl_multi_remove_handle.3 curl_share_cleanup.3 \
|
||||||
curl_share_setopt.3 libcurl.3 libcurl-easy.3 libcurl-multi.3 \
|
curl_share_init.3 curl_share_setopt.3 libcurl.3 libcurl-easy.3 \
|
||||||
libcurl-share.3 libcurl-errors.3 curl_easy_strerror.3 \
|
libcurl-multi.3 libcurl-share.3 libcurl-errors.3 curl_easy_strerror.3 \
|
||||||
curl_multi_strerror.3 curl_share_strerror.3 curl_global_init_mem.3 \
|
curl_multi_strerror.3 curl_share_strerror.3 curl_global_init_mem.3 \
|
||||||
libcurl-tutorial.3 curl_easy_reset.3 curl_easy_escape.3 \
|
libcurl-tutorial.3 curl_easy_reset.3 curl_easy_escape.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_wait.3 libcurl-symbols.3
|
curl_multi_socket_action.3 curl_multi_wait.3 libcurl-symbols.3 \
|
||||||
|
libcurl-thread.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 \
|
||||||
@@ -60,27 +61,28 @@ 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_wait.html libcurl-symbols.html
|
curl_multi_socket_action.html curl_multi_wait.html \
|
||||||
|
libcurl-symbols.html libcurl-thread.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 \
|
||||||
curl_easy_duphandle.pdf curl_formadd.pdf curl_formfree.pdf \
|
curl_easy_duphandle.pdf curl_formadd.pdf curl_formfree.pdf \
|
||||||
curl_getdate.pdf curl_getenv.pdf curl_slist_append.pdf \
|
curl_getdate.pdf curl_getenv.pdf curl_slist_append.pdf \
|
||||||
curl_slist_free_all.pdf curl_version.pdf curl_version_info.pdf \
|
curl_slist_free_all.pdf curl_version.pdf curl_version_info.pdf \
|
||||||
curl_escape.pdf curl_unescape.pdf curl_free.pdf curl_strequal.pdf \
|
curl_escape.pdf curl_unescape.pdf curl_free.pdf curl_strequal.pdf \
|
||||||
curl_mprintf.pdf curl_global_init.pdf curl_global_cleanup.pdf \
|
curl_mprintf.pdf curl_global_init.pdf curl_global_cleanup.pdf \
|
||||||
curl_multi_add_handle.pdf curl_multi_cleanup.pdf curl_multi_fdset.pdf \
|
curl_multi_add_handle.pdf curl_multi_cleanup.pdf curl_multi_fdset.pdf \
|
||||||
curl_multi_info_read.pdf curl_multi_init.pdf curl_multi_perform.pdf \
|
curl_multi_info_read.pdf curl_multi_init.pdf curl_multi_perform.pdf \
|
||||||
curl_multi_remove_handle.pdf curl_share_cleanup.pdf curl_share_init.pdf \
|
curl_multi_remove_handle.pdf curl_share_cleanup.pdf \
|
||||||
curl_share_setopt.pdf libcurl.pdf libcurl-multi.pdf libcurl-easy.pdf \
|
curl_share_init.pdf curl_share_setopt.pdf libcurl.pdf \
|
||||||
libcurl-share.pdf libcurl-errors.pdf curl_easy_strerror.pdf \
|
libcurl-multi.pdf libcurl-easy.pdf libcurl-share.pdf \
|
||||||
curl_multi_strerror.pdf curl_share_strerror.pdf \
|
libcurl-errors.pdf curl_easy_strerror.pdf curl_multi_strerror.pdf \
|
||||||
curl_global_init_mem.pdf libcurl-tutorial.pdf curl_easy_reset.pdf \
|
curl_share_strerror.pdf curl_global_init_mem.pdf libcurl-tutorial.pdf \
|
||||||
curl_easy_escape.pdf curl_easy_unescape.pdf curl_multi_setopt.pdf \
|
curl_easy_reset.pdf curl_easy_escape.pdf curl_easy_unescape.pdf \
|
||||||
curl_multi_socket.pdf curl_multi_timeout.pdf curl_formget.pdf \
|
curl_multi_setopt.pdf curl_multi_socket.pdf curl_multi_timeout.pdf \
|
||||||
curl_multi_assign.pdf curl_easy_pause.pdf curl_easy_recv.pdf \
|
curl_formget.pdf curl_multi_assign.pdf curl_easy_pause.pdf \
|
||||||
curl_easy_send.pdf curl_multi_socket_action.pdf curl_multi_wait.pdf \
|
curl_easy_recv.pdf curl_easy_send.pdf curl_multi_socket_action.pdf \
|
||||||
libcurl-symbols.pdf
|
curl_multi_wait.pdf libcurl-symbols.pdf libcurl-thread.pdf
|
||||||
|
|
||||||
m4macrodir = $(datadir)/aclocal
|
m4macrodir = $(datadir)/aclocal
|
||||||
dist_m4macro_DATA = libcurl.m4
|
dist_m4macro_DATA = libcurl.m4
|
||||||
|
@@ -26,7 +26,8 @@ curl_easy_escape - URL encodes the given string
|
|||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
.B #include <curl/curl.h>
|
.B #include <curl/curl.h>
|
||||||
.sp
|
.sp
|
||||||
.BI "char *curl_easy_escape( CURL *" curl ", char *" string ", int "length " );"
|
.BI "char *curl_easy_escape( CURL *" curl ", const char *" string
|
||||||
|
.BI ", int "length " );"
|
||||||
.ad
|
.ad
|
||||||
.SH DESCRIPTION
|
.SH DESCRIPTION
|
||||||
This function converts the given input \fIstring\fP to a URL encoded string
|
This function converts the given input \fIstring\fP to a URL encoded string
|
||||||
@@ -48,10 +49,10 @@ CURL *curl = curl_easy_init();
|
|||||||
if(curl) {
|
if(curl) {
|
||||||
char *output = curl_easy_escape(curl, "data to convert", 15);
|
char *output = curl_easy_escape(curl, "data to convert", 15);
|
||||||
if(output) {
|
if(output) {
|
||||||
printf("Encoded: %s\n", output);
|
printf("Encoded: %s\\n", output);
|
||||||
curl_free(output);
|
curl_free(output);
|
||||||
}
|
}
|
||||||
}}
|
}
|
||||||
.fi
|
.fi
|
||||||
.SH "SEE ALSO"
|
.SH "SEE ALSO"
|
||||||
.BR curl_easy_unescape "(3), " curl_free "(3), " RFC 3986
|
.BR curl_easy_unescape "(3), " curl_free "(3), " RFC 3986
|
||||||
|
@@ -34,256 +34,190 @@ third argument \fBMUST\fP be a pointer to a long, a pointer to a char *, a
|
|||||||
pointer to a struct curl_slist * or a pointer to a double (as this
|
pointer to a struct curl_slist * or a pointer to a double (as this
|
||||||
documentation describes further down). The data pointed-to will be filled in
|
documentation describes further down). The data pointed-to will be filled in
|
||||||
accordingly and can be relied upon only if the function returns CURLE_OK. Use
|
accordingly and can be relied upon only if the function returns CURLE_OK. Use
|
||||||
this function AFTER a performed transfer if you want to get transfer- oriented
|
this function AFTER a performed transfer if you want to get transfer related
|
||||||
data.
|
data.
|
||||||
|
|
||||||
You should not free the memory returned by this function unless it is
|
You should not free the memory returned by this function unless it is
|
||||||
explicitly mentioned below.
|
explicitly mentioned below.
|
||||||
.SH AVAILABLE INFORMATION
|
.SH AVAILABLE INFORMATION
|
||||||
The following information can be extracted:
|
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.
|
Last used URL.
|
||||||
|
See \fICURLINFO_EFFECTIVE_URL(3)\fP
|
||||||
|
|
||||||
.IP CURLINFO_RESPONSE_CODE
|
.IP CURLINFO_RESPONSE_CODE
|
||||||
Pass a pointer to a long to receive the last received HTTP, FTP or SMTP
|
Last received response code.
|
||||||
response code. This option was previously known as CURLINFO_HTTP_CODE in
|
See \fICURLINFO_RESPONSE_CODE(3)\fP
|
||||||
libcurl 7.10.7 and earlier. The value will be zero if no server response code
|
|
||||||
has been received. Note that a proxy's CONNECT response should be read with
|
|
||||||
\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
|
Last proxy CONNECT response code.
|
||||||
CONNECT request.
|
See \fICURLINFO_HTTP_CONNECTCODE(3)\fP
|
||||||
|
|
||||||
.IP CURLINFO_FILETIME
|
.IP CURLINFO_FILETIME
|
||||||
Pass a pointer to a long to receive the remote time of the retrieved document
|
Remote time of the retrieved document.
|
||||||
(in number of seconds since 1 jan 1970 in the GMT/UTC time zone). If you get
|
See \fICURLINFO_FILETIME(3)\fP
|
||||||
-1, it can be because of many reasons (unknown, the server hides it or the
|
|
||||||
server doesn't support the command that tells document time etc) and the time
|
|
||||||
of the document is unknown. Note that you must tell the server to collect this
|
|
||||||
information before the transfer is made, by using the
|
|
||||||
\fICURLOPT_FILETIME(3)\fP option to \fIcurl_easy_setopt(3)\fP or you will
|
|
||||||
unconditionally get a -1 back. (Added in 7.5)
|
|
||||||
.IP CURLINFO_TOTAL_TIME
|
.IP CURLINFO_TOTAL_TIME
|
||||||
Pass a pointer to a double to receive the total time in seconds for the
|
Total time of previous transfer.
|
||||||
previous transfer, including name resolving, TCP connect etc.
|
See \fICURLINFO_TOTAL_TIME(3)\fP
|
||||||
|
|
||||||
.IP CURLINFO_NAMELOOKUP_TIME
|
.IP CURLINFO_NAMELOOKUP_TIME
|
||||||
Pass a pointer to a double to receive the time, in seconds, it took from the
|
Time from start until name resolving completed.
|
||||||
start until the name resolving was completed.
|
See \fICURLINFO_NAMELOOKUP_TIME(3)\fP
|
||||||
|
|
||||||
.IP CURLINFO_CONNECT_TIME
|
.IP CURLINFO_CONNECT_TIME
|
||||||
Pass a pointer to a double to receive the time, in seconds, it took from the
|
Time from start until remote host or proxy completed.
|
||||||
start until the connect to the remote host (or proxy) was completed.
|
See \fICURLINFO_CONNECT_TIME(3)\fP
|
||||||
|
|
||||||
.IP CURLINFO_APPCONNECT_TIME
|
.IP CURLINFO_APPCONNECT_TIME
|
||||||
Pass a pointer to a double to receive the time, in seconds, it took from the
|
Time from start until SSL/SSH handshake completed.
|
||||||
start until the SSL/SSH connect/handshake to the remote host was completed.
|
See \fICURLINFO_APPCONNECT_TIME(3)\fP
|
||||||
This time is most often very near to the PRETRANSFER time, except for cases
|
|
||||||
such as HTTP pipelining where the pretransfer time can be delayed due to waits
|
|
||||||
in line for the pipeline and more. (Added in 7.19.0)
|
|
||||||
.IP CURLINFO_PRETRANSFER_TIME
|
.IP CURLINFO_PRETRANSFER_TIME
|
||||||
Pass a pointer to a double to receive the time, in seconds, it took from the
|
Time from start until just before the transfer begins.
|
||||||
start until the file transfer is just about to begin. This includes all
|
See \fICURLINFO_PRETRANSFER_TIME(3)\fP
|
||||||
pre-transfer commands and negotiations that are specific to the particular
|
|
||||||
protocol(s) involved. It does \fInot\fP involve the sending of the protocol-
|
|
||||||
specific request that triggers a transfer.
|
|
||||||
.IP CURLINFO_STARTTRANSFER_TIME
|
.IP CURLINFO_STARTTRANSFER_TIME
|
||||||
Pass a pointer to a double to receive the time, in seconds, it took from the
|
Time from start until just when the first byte is received.
|
||||||
start until the first byte is received by libcurl. This includes
|
See \fICURLINFO_STARTTRANSFER_TIME(3)\fP
|
||||||
CURLINFO_PRETRANSFER_TIME and also the time the server needs to calculate the
|
|
||||||
result.
|
|
||||||
.IP CURLINFO_REDIRECT_TIME
|
.IP CURLINFO_REDIRECT_TIME
|
||||||
Pass a pointer to a double to receive the total time, in seconds, it took for
|
Time taken for all redirect steps before the final transfer.
|
||||||
all redirection steps include name lookup, connect, pretransfer and transfer
|
See \fICURLINFO_REDIRECT_TIME(3)\fP
|
||||||
before final transaction was started. CURLINFO_REDIRECT_TIME contains the
|
|
||||||
complete execution time for multiple redirections. (Added in 7.9.7)
|
|
||||||
.IP CURLINFO_REDIRECT_COUNT
|
.IP CURLINFO_REDIRECT_COUNT
|
||||||
Pass a pointer to a long to receive the total number of redirections that were
|
Total number of redirects that were followed.
|
||||||
actually followed. (Added in 7.9.7)
|
See \fICURLINFO_REDIRECT_COUNT(3)\fP
|
||||||
|
|
||||||
.IP CURLINFO_REDIRECT_URL
|
.IP CURLINFO_REDIRECT_URL
|
||||||
Pass a pointer to a char pointer to receive the URL a redirect \fIwould\fP
|
URL a redirect would take you to, had you enabled redirects.
|
||||||
take you to if you would enable \fICURLOPT_FOLLOWLOCATION(3)\fP. This can come
|
See \fICURLINFO_REDIRECT_URL(3)\fP
|
||||||
very handy if you think using the built-in libcurl redirect logic isn't good
|
|
||||||
enough for you but you would still prefer to avoid implementing all the magic
|
|
||||||
of figuring out the new URL. (Added in 7.18.2)
|
|
||||||
.IP CURLINFO_SIZE_UPLOAD
|
.IP CURLINFO_SIZE_UPLOAD
|
||||||
Pass a pointer to a double to receive the total amount of bytes that were
|
Number of bytes uploaded.
|
||||||
uploaded.
|
See \fICURLINFO_SIZE_UPLOAD(3)\fP
|
||||||
|
|
||||||
.IP CURLINFO_SIZE_DOWNLOAD
|
.IP CURLINFO_SIZE_DOWNLOAD
|
||||||
Pass a pointer to a double to receive the total amount of bytes that were
|
Number of bytes downloaded.
|
||||||
downloaded. The amount is only for the latest transfer and will be reset again
|
See \fICURLINFO_SIZE_DOWNLOAD(3)\fP
|
||||||
for each new transfer. This counts actual payload data, what's also commonly
|
|
||||||
called body. All meta and header data are excluded and will not be counted in
|
|
||||||
this number.
|
|
||||||
.IP CURLINFO_SPEED_DOWNLOAD
|
.IP CURLINFO_SPEED_DOWNLOAD
|
||||||
Pass a pointer to a double to receive the average download speed that curl
|
Average download speed.
|
||||||
measured for the complete download. Measured in bytes/second.
|
See \fICURLINFO_SPEED_DOWNLOAD(3)\fP
|
||||||
|
|
||||||
.IP CURLINFO_SPEED_UPLOAD
|
.IP CURLINFO_SPEED_UPLOAD
|
||||||
Pass a pointer to a double to receive the average upload speed that curl
|
Average upload speed.
|
||||||
measured for the complete upload. Measured in bytes/second.
|
See \fICURLINFO_SPEED_UPLOAD(3)\fP
|
||||||
|
|
||||||
.IP CURLINFO_HEADER_SIZE
|
.IP CURLINFO_HEADER_SIZE
|
||||||
Pass a pointer to a long to receive the total size of all the headers
|
Number of bytes of all headers received.
|
||||||
received. Measured in number of bytes.
|
See \fICURLINFO_HEADER_SIZE(3)\fP
|
||||||
|
|
||||||
.IP CURLINFO_REQUEST_SIZE
|
.IP CURLINFO_REQUEST_SIZE
|
||||||
Pass a pointer to a long to receive the total size of the issued
|
Number of bytes sent in the issued HTTP requests.
|
||||||
requests. This is so far only for HTTP requests. Note that this may be more
|
See \fICURLINFO_REQUEST_SIZE(3)\fP
|
||||||
than one request if FOLLOWLOCATION is true.
|
|
||||||
.IP CURLINFO_SSL_VERIFYRESULT
|
.IP CURLINFO_SSL_VERIFYRESULT
|
||||||
Pass a pointer to a long to receive the result of the certification
|
Certificate verification result.
|
||||||
verification that was requested (using the \fICURLOPT_SSL_VERIFYPEER(3)\fP
|
See \fICURLINFO_SSL_VERIFYRESULT(3)\fP
|
||||||
option to \fIcurl_easy_setopt(3)\fP).
|
|
||||||
.IP CURLINFO_SSL_ENGINES
|
.IP CURLINFO_SSL_ENGINES
|
||||||
Pass the address of a 'struct curl_slist *' to receive a linked-list of
|
A list of OpenSSL crypto engines.
|
||||||
OpenSSL crypto-engines supported. Note that engines are normally implemented
|
See \fICURLINFO_SSL_ENGINES(3)\fP
|
||||||
in separate dynamic libraries. Hence not all the returned engines may be
|
|
||||||
available at run-time. \fBNOTE:\fP you must call \fIcurl_slist_free_all(3)\fP
|
|
||||||
on the list pointer once you're done with it, as libcurl will not free the
|
|
||||||
data for you. (Added in 7.12.3)
|
|
||||||
.IP CURLINFO_CONTENT_LENGTH_DOWNLOAD
|
.IP CURLINFO_CONTENT_LENGTH_DOWNLOAD
|
||||||
Pass a pointer to a double to receive the content-length of the download. This
|
Content length from the Content-Length header.
|
||||||
is the value read from the Content-Length: field. Since 7.19.4, this returns -1
|
See \fICURLINFO_CONTENT_LENGTH_DOWNLOAD(3)\fP
|
||||||
if the size isn't known.
|
|
||||||
.IP CURLINFO_CONTENT_LENGTH_UPLOAD
|
.IP CURLINFO_CONTENT_LENGTH_UPLOAD
|
||||||
Pass a pointer to a double to receive the specified size of the upload. Since
|
Upload size.
|
||||||
7.19.4, this returns -1 if the size isn't known.
|
See \fICURLINFO_CONTENT_LENGTH_UPLOAD(3)\fP
|
||||||
|
|
||||||
.IP CURLINFO_CONTENT_TYPE
|
.IP CURLINFO_CONTENT_TYPE
|
||||||
Pass a pointer to a char pointer to receive the content-type of the downloaded
|
Content type from the Content-Type header.
|
||||||
object. This is the value read from the Content-Type: field. If you get NULL,
|
See \fICURLINFO_CONTENT_TYPE(3)\fP
|
||||||
it means that the server didn't send a valid Content-Type header or that the
|
|
||||||
protocol used doesn't support this.
|
|
||||||
.IP CURLINFO_PRIVATE
|
.IP CURLINFO_PRIVATE
|
||||||
Pass a pointer to a char pointer to receive the pointer to the private data
|
User's private data pointer.
|
||||||
associated with the curl handle (set with the \fICURLOPT_PRIVATE(3)\fP option
|
See \fICURLINFO_PRIVATE(3)\fP
|
||||||
to \fIcurl_easy_setopt(3)\fP). Please note that for internal reasons, the
|
|
||||||
value is returned as a char pointer, although effectively being a 'void *'.
|
|
||||||
(Added in 7.10.3)
|
|
||||||
.IP CURLINFO_HTTPAUTH_AVAIL
|
.IP CURLINFO_HTTPAUTH_AVAIL
|
||||||
Pass a pointer to a long to receive a bitmask indicating the authentication
|
Available HTTP authentication methods.
|
||||||
method(s) available. The meaning of the bits is explained in the
|
See \fICURLINFO_HTTPAUTH_AVAIL(3)\fP
|
||||||
\fICURLOPT_HTTPAUTH(3)\fP option for \fIcurl_easy_setopt(3)\fP. (Added in
|
|
||||||
7.10.8)
|
|
||||||
.IP CURLINFO_PROXYAUTH_AVAIL
|
.IP CURLINFO_PROXYAUTH_AVAIL
|
||||||
Pass a pointer to a long to receive a bitmask indicating the authentication
|
Available HTTP proxy authentication methods.
|
||||||
method(s) available for your proxy authentication. (Added in 7.10.8)
|
See \fICURLINFO_PROXYAUTH_AVAIL(3)\fP
|
||||||
|
|
||||||
.IP CURLINFO_OS_ERRNO
|
.IP CURLINFO_OS_ERRNO
|
||||||
Pass a pointer to a long to receive the errno variable from a connect failure.
|
The errno from the last failure to connect.
|
||||||
Note that the value is only set on failure, it is not reset upon a
|
See \fICURLINFO_OS_ERRNO(3)\fP
|
||||||
successful operation. (Added in 7.12.2)
|
|
||||||
.IP CURLINFO_NUM_CONNECTS
|
.IP CURLINFO_NUM_CONNECTS
|
||||||
Pass a pointer to a long to receive how many new connections libcurl had to
|
Number of new successful connections used for previous transfer.
|
||||||
create to achieve the previous transfer (only the successful connects are
|
See \fICURLINFO_NUM_CONNECTS(3)\fP
|
||||||
counted). Combined with \fICURLINFO_REDIRECT_COUNT\fP you are able to know
|
|
||||||
how many times libcurl successfully reused existing connection(s) or not. See
|
|
||||||
the Connection Options of \fIcurl_easy_setopt(3)\fP to see how libcurl tries
|
|
||||||
to make persistent connections to save time. (Added in 7.12.3)
|
|
||||||
.IP CURLINFO_PRIMARY_IP
|
.IP CURLINFO_PRIMARY_IP
|
||||||
Pass a pointer to a char pointer to receive the pointer to a zero-terminated
|
IP address of the last connection.
|
||||||
string holding the IP address of the most recent connection done with this
|
See \fICURLINFO_PRIMARY_IP(3)\fP
|
||||||
\fBcurl\fP handle. This string may be IPv6 if that's enabled. Note that you
|
|
||||||
get a pointer to a memory area that will be re-used at next request so you
|
|
||||||
need to copy the string if you want to keep the information. (Added in 7.19.0)
|
|
||||||
.IP CURLINFO_PRIMARY_PORT
|
.IP CURLINFO_PRIMARY_PORT
|
||||||
Pass a pointer to a long to receive the destination port of the most recent
|
Port of the last connection.
|
||||||
connection done with this \fBcurl\fP handle. (Added in 7.21.0)
|
See \fICURLINFO_PRIMARY_PORT(3)\fP
|
||||||
|
|
||||||
.IP CURLINFO_LOCAL_IP
|
.IP CURLINFO_LOCAL_IP
|
||||||
Pass a pointer to a char pointer to receive the pointer to a zero-terminated
|
Local-end IP address of last connection.
|
||||||
string holding the local (source) IP address of the most recent connection done
|
See \fICURLINFO_LOCAL_IP(3)\fP
|
||||||
with this \fBcurl\fP handle. This string may be IPv6 if that's enabled. The
|
|
||||||
same restrictions apply as to \fICURLINFO_PRIMARY_IP\fP. (Added in 7.21.0)
|
|
||||||
.IP CURLINFO_LOCAL_PORT
|
.IP CURLINFO_LOCAL_PORT
|
||||||
Pass a pointer to a long to receive the local (source) port of the most recent
|
Local-end port of last connection.
|
||||||
connection done with this \fBcurl\fP handle. (Added in 7.21.0)
|
See \fICURLINFO_LOCAL_PORT(3)\fP
|
||||||
|
|
||||||
.IP CURLINFO_COOKIELIST
|
.IP CURLINFO_COOKIELIST
|
||||||
Pass a pointer to a 'struct curl_slist *' to receive a linked-list of all
|
List of all known cookies.
|
||||||
cookies cURL knows (expired ones, too). Don't forget to
|
See \fICURLINFO_COOKIELIST(3)\fP
|
||||||
\fIcurl_slist_free_all(3)\fP the list after it has been used. If there are no
|
|
||||||
cookies (cookies for the handle have not been enabled or simply none have been
|
|
||||||
received) 'struct curl_slist *' will be set to point to NULL. (Added in
|
|
||||||
7.14.1)
|
|
||||||
.IP CURLINFO_LASTSOCKET
|
.IP CURLINFO_LASTSOCKET
|
||||||
Pass a pointer to a long to receive the last socket used by this curl
|
Last socket used.
|
||||||
session. If the socket is no longer valid, -1 is returned. When you finish
|
See \fICURLINFO_LASTSOCKET(3)\fP
|
||||||
working with the socket, you must call curl_easy_cleanup() as usual and let
|
|
||||||
libcurl close the socket and cleanup other resources associated with the
|
.IP CURLINFO_ACTIVESOCKET
|
||||||
handle. This is typically used in combination with
|
The session's active socket.
|
||||||
\fICURLOPT_CONNECT_ONLY(3)\fP. (Added in 7.15.2)
|
See \fICURLINFO_ACTIVESOCKET(3)\fP
|
||||||
|
|
||||||
NOTE: this API is not really working on win64, since the SOCKET type on win64
|
|
||||||
is 64 bit large while its 'long' is only 32 bits.
|
|
||||||
.IP CURLINFO_FTP_ENTRY_PATH
|
.IP CURLINFO_FTP_ENTRY_PATH
|
||||||
Pass a pointer to a char pointer to receive a pointer to a string holding the
|
The entry path after logging in to an FTP server.
|
||||||
path of the entry path. That is the initial path libcurl ended up in when
|
See \fICURLINFO_FTP_ENTRY_PATH(3)\fP
|
||||||
logging on to the remote FTP server. This stores a NULL as pointer if
|
|
||||||
something is wrong. (Added in 7.15.4)
|
|
||||||
|
|
||||||
Also works for SFTP since 7.21.4
|
|
||||||
.IP CURLINFO_CERTINFO
|
.IP CURLINFO_CERTINFO
|
||||||
Pass a pointer to a 'struct curl_certinfo *' and you'll get it set to point to
|
Certificate chain.
|
||||||
struct that holds a number of linked lists with info about the certificate
|
See \fICURLINFO_CERTINFO(3)\fP
|
||||||
chain, assuming you had \fICURLOPT_CERTINFO(3)\fP enabled when the previous
|
|
||||||
request was done. The struct reports how many certs it found and then you can
|
|
||||||
extract info for each of those certs by following the linked lists. The info
|
|
||||||
chain is provided in a series of data in the format "name:content" where the
|
|
||||||
content is for the specific named data. See also the certinfo.c example. NOTE:
|
|
||||||
this option is only available in libcurl built with OpenSSL, NSS or GSKit
|
|
||||||
support. (Added in 7.19.1)
|
|
||||||
.IP CURLINFO_TLS_SESSION
|
.IP CURLINFO_TLS_SESSION
|
||||||
Pass a pointer to a 'struct curl_tlssessioninfo *'. The pointer will be
|
TLS session info that can be used for further processing.
|
||||||
initialized to refer to a 'struct curl_tlssessioninfo *' that will contain an
|
See \fICURLINFO_TLS_SESSION(3)\fP
|
||||||
enum indicating the SSL library used for the handshake and the respective
|
|
||||||
internal TLS session structure of this underlying SSL library.
|
|
||||||
|
|
||||||
This may then be used to extract certificate information in a format
|
|
||||||
convenient for further processing, such as manual validation. NOTE: this
|
|
||||||
option may not be available for all SSL backends; unsupported SSL backends
|
|
||||||
will return 'CURLSSLBACKEND_NONE' to indicate that they are not supported;
|
|
||||||
this does not mean that no SSL backend was used. (Added in 7.34.0)
|
|
||||||
|
|
||||||
.nf
|
|
||||||
struct curl_tlssessioninfo {
|
|
||||||
curl_sslbackend backend;
|
|
||||||
void *internals;
|
|
||||||
};
|
|
||||||
.fi
|
|
||||||
|
|
||||||
The \fIinternals\fP struct member will point to a TLS library specific pointer
|
|
||||||
with the following underlying types:
|
|
||||||
.RS
|
|
||||||
.IP OpenSSL
|
|
||||||
SSL_CTX *
|
|
||||||
.IP GnuTLS
|
|
||||||
gnutls_session_t
|
|
||||||
.IP NSS
|
|
||||||
PRFileDesc *
|
|
||||||
.IP gskit
|
|
||||||
gsk_handle
|
|
||||||
.RE
|
|
||||||
|
|
||||||
.IP CURLINFO_CONDITION_UNMET
|
.IP CURLINFO_CONDITION_UNMET
|
||||||
Pass a pointer to a long to receive the number 1 if the condition provided in
|
Whether or not a time conditional was met.
|
||||||
the previous request didn't match (see \fICURLOPT_TIMECONDITION(3)\fP). Alas,
|
See \fICURLINFO_CONDITION_UNMET(3)\fP
|
||||||
if this returns a 1 you know that the reason you didn't get data in return is
|
|
||||||
because it didn't fulfill the condition. The long ths argument points to will
|
|
||||||
get a zero stored if the condition instead was met. (Added in 7.19.4)
|
|
||||||
.IP CURLINFO_RTSP_SESSION_ID
|
.IP CURLINFO_RTSP_SESSION_ID
|
||||||
Pass a pointer to a char pointer to receive a pointer to a string holding the
|
RTSP session ID.
|
||||||
most recent RTSP Session ID.
|
See \fICURLINFO_RTSP_SESSION_ID(3)\fP
|
||||||
|
|
||||||
Applications wishing to resume an RTSP session on another connection should
|
|
||||||
retrieve this info before closing the active connection.
|
|
||||||
.IP CURLINFO_RTSP_CLIENT_CSEQ
|
.IP CURLINFO_RTSP_CLIENT_CSEQ
|
||||||
Pass a pointer to a long to receive the next CSeq that will be used by the
|
RTSP CSeq that will next be used.
|
||||||
application.
|
See \fICURLINFO_RTSP_CLIENT_CSEQ(3)\fP
|
||||||
|
|
||||||
.IP CURLINFO_RTSP_SERVER_CSEQ
|
.IP CURLINFO_RTSP_SERVER_CSEQ
|
||||||
Pass a pointer to a long to receive the next server CSeq that will be expected
|
RTSP CSeq that will next be expected.
|
||||||
by the application.
|
See \fICURLINFO_RTSP_SERVER_CSEQ(3)\fP
|
||||||
|
|
||||||
\fI(NOTE: listening for server initiated requests is currently
|
|
||||||
unimplemented).\fP
|
|
||||||
|
|
||||||
Applications wishing to resume an RTSP session on another connection should
|
|
||||||
retrieve this info before closing the active connection.
|
|
||||||
.IP CURLINFO_RTSP_CSEQ_RECV
|
.IP CURLINFO_RTSP_CSEQ_RECV
|
||||||
Pass a pointer to a long to receive the most recently received CSeq from the
|
RTSP CSeq last received.
|
||||||
server. If your application encounters a \fICURLE_RTSP_CSEQ_ERROR\fP then you
|
See \fICURLINFO_RTSP_CSEQ_RECV(3)\fP
|
||||||
may wish to troubleshoot and/or fix the CSeq mismatch by peeking at this value.
|
|
||||||
.SH TIMES
|
.SH TIMES
|
||||||
.nf
|
.nf
|
||||||
An overview of the six time values available from curl_easy_getinfo()
|
An overview of the six time values available from curl_easy_getinfo()
|
||||||
|
@@ -62,7 +62,7 @@ function is called again without this bit set. Thus, the read callback
|
|||||||
.IP CURLPAUSE_ALL
|
.IP CURLPAUSE_ALL
|
||||||
Convenience define that pauses both directions.
|
Convenience define that pauses both directions.
|
||||||
.IP CURLPAUSE_CONT
|
.IP CURLPAUSE_CONT
|
||||||
Convenience define that unpauses both directions
|
Convenience define that unpauses both directions.
|
||||||
.SH RETURN VALUE
|
.SH RETURN VALUE
|
||||||
CURLE_OK (zero) means that the option was set properly, and a non-zero return
|
CURLE_OK (zero) means that the option was set properly, and a non-zero return
|
||||||
code means something wrong occurred after the new state was set. See the
|
code means something wrong occurred after the new state was set. See the
|
||||||
|
@@ -42,14 +42,14 @@ buffer. The variable \fBn\fP points to will receive the number of received
|
|||||||
bytes.
|
bytes.
|
||||||
|
|
||||||
To establish the connection, set \fBCURLOPT_CONNECT_ONLY(3)\fP option before
|
To establish the connection, set \fBCURLOPT_CONNECT_ONLY(3)\fP option before
|
||||||
calling \fIcurl_easy_perform(3)\fP or \cIcurl_multi_perform(3)\fP. Note that
|
calling \fIcurl_easy_perform(3)\fP or \fIcurl_multi_perform(3)\fP. Note that
|
||||||
\fIcurl_easy_recv(3)\fP does not work on connections that were created without
|
\fIcurl_easy_recv(3)\fP does not work on connections that were created without
|
||||||
this option.
|
this option.
|
||||||
|
|
||||||
You must ensure that the socket has data to read before calling
|
You must ensure that the socket has data to read before calling
|
||||||
\fIcurl_easy_recv(3)\fP, otherwise the call will return \fBCURLE_AGAIN\fP -
|
\fIcurl_easy_recv(3)\fP, otherwise the call will return \fBCURLE_AGAIN\fP -
|
||||||
the socket is used in non-blocking mode internally. Use
|
the socket is used in non-blocking mode internally. Use
|
||||||
\fIcurl_easy_getinfo(3)\fP with \fBCURLINFO_LASTSOCKET\fP to obtain the
|
\fIcurl_easy_getinfo(3)\fP with \fBCURLINFO_ACTIVESOCKET(3)\fP to obtain the
|
||||||
socket; use your operating system facilities like \fIselect(2)\fP to check if
|
socket; use your operating system facilities like \fIselect(2)\fP to check if
|
||||||
it has any data you can read.
|
it has any data you can read.
|
||||||
.SH AVAILABILITY
|
.SH AVAILABILITY
|
||||||
|
@@ -47,7 +47,7 @@ this option.
|
|||||||
You must ensure that the socket is writable before calling
|
You must ensure that the socket is writable before calling
|
||||||
\fIcurl_easy_send(3)\fP, otherwise the call will return \fBCURLE_AGAIN\fP -
|
\fIcurl_easy_send(3)\fP, otherwise the call will return \fBCURLE_AGAIN\fP -
|
||||||
the socket is used in non-blocking mode internally. Use
|
the socket is used in non-blocking mode internally. Use
|
||||||
\fIcurl_easy_getinfo(3)\fP with \fBCURLINFO_LASTSOCKET\fP to obtain the
|
\fIcurl_easy_getinfo(3)\fP with \fBCURLINFO_ACTIVESOCKET(3)\fP to obtain the
|
||||||
socket; use your operating system facilities like \fIselect(2)\fP to check if
|
socket; use your operating system facilities like \fIselect(2)\fP to check if
|
||||||
it can be written to.
|
it can be written to.
|
||||||
.SH AVAILABILITY
|
.SH AVAILABILITY
|
||||||
|
@@ -153,6 +153,8 @@ Disable squashing /../ and /./ sequences in the path. See \fICURLOPT_PATH_AS_IS(
|
|||||||
Allowed protocols. See \fICURLOPT_PROTOCOLS(3)\fP
|
Allowed protocols. See \fICURLOPT_PROTOCOLS(3)\fP
|
||||||
.IP CURLOPT_REDIR_PROTOCOLS
|
.IP CURLOPT_REDIR_PROTOCOLS
|
||||||
Protocols to allow redirects to. See \fICURLOPT_REDIR_PROTOCOLS(3)\fP
|
Protocols to allow redirects to. See \fICURLOPT_REDIR_PROTOCOLS(3)\fP
|
||||||
|
.IP CURLOPT_DEFAULT_PROTOCOL
|
||||||
|
Default protocol. See \fICURLOPT_DEFAULT_PROTOCOL(3)\fP
|
||||||
.IP CURLOPT_PROXY
|
.IP CURLOPT_PROXY
|
||||||
Proxy to use. See \fICURLOPT_PROXY(3)\fP
|
Proxy to use. See \fICURLOPT_PROXY(3)\fP
|
||||||
.IP CURLOPT_PROXYPORT
|
.IP CURLOPT_PROXYPORT
|
||||||
@@ -295,6 +297,13 @@ Disable Transfer decoding. See \fICURLOPT_HTTP_TRANSFER_DECODING(3)\fP
|
|||||||
100-continue timeout. See \fICURLOPT_EXPECT_100_TIMEOUT_MS(3)\fP
|
100-continue timeout. See \fICURLOPT_EXPECT_100_TIMEOUT_MS(3)\fP
|
||||||
.IP CURLOPT_PIPEWAIT
|
.IP CURLOPT_PIPEWAIT
|
||||||
Wait on connection to pipeline on it. See \fICURLOPT_PIPEWAIT(3)\fP
|
Wait on connection to pipeline on it. See \fICURLOPT_PIPEWAIT(3)\fP
|
||||||
|
.IP CURLOPT_STREAM_DEPENDS
|
||||||
|
This HTTP/2 stream depends on another. See \fICURLOPT_STREAM_DEPENDS(3)\fP
|
||||||
|
.IP CURLOPT_STREAM_DEPENDS_E
|
||||||
|
This HTTP/2 stream depends on another exclusively. See
|
||||||
|
\fICURLOPT_STREAM_DEPENDS_E(3)\fP
|
||||||
|
.IP CURLOPT_STREAM_WEIGHT
|
||||||
|
Set this HTTP/2 stream's weight. See \fICURLOPT_STREAM_WEIGHT(3)\fP
|
||||||
.SH SMTP OPTIONS
|
.SH SMTP OPTIONS
|
||||||
.IP CURLOPT_MAIL_FROM
|
.IP CURLOPT_MAIL_FROM
|
||||||
Address of the sender. See \fICURLOPT_MAIL_FROM(3)\fP
|
Address of the sender. See \fICURLOPT_MAIL_FROM(3)\fP
|
||||||
@@ -527,8 +536,8 @@ if(curl) {
|
|||||||
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);
|
||||||
curl_easy_cleanup(curl);
|
curl_easy_cleanup(curl);
|
||||||
}}
|
}
|
||||||
.fi
|
.fi
|
||||||
.SH "SEE ALSO"
|
.SH "SEE ALSO"
|
||||||
.BR curl_easy_init "(3), " curl_easy_cleanup "(3), " curl_easy_reset "(3), "
|
.BR curl_easy_init "(3), " curl_easy_cleanup "(3), " curl_easy_reset "(3), "
|
||||||
.BR curl_multi_setopt "(3), "
|
.BR curl_easy_getinfo "(3), " curl_multi_setopt "(3), "
|
||||||
|
@@ -26,8 +26,8 @@ curl_easy_unescape - URL decodes the given string
|
|||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
.B #include <curl/curl.h>
|
.B #include <curl/curl.h>
|
||||||
.sp
|
.sp
|
||||||
.BI "char *curl_easy_unescape( CURL *" curl ", char *" url ", int "inlength
|
.BI "char *curl_easy_unescape( CURL *" curl ", const char *" url
|
||||||
.BI ", int *" outlength " );"
|
.BI ", int "inlength ", int *" outlength " );"
|
||||||
.ad
|
.ad
|
||||||
.SH DESCRIPTION
|
.SH DESCRIPTION
|
||||||
This function converts the given URL encoded input string to a "plain string"
|
This function converts the given URL encoded input string to a "plain string"
|
||||||
|
@@ -25,7 +25,7 @@ curl_escape - URL encodes the given string
|
|||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
.B #include <curl/curl.h>
|
.B #include <curl/curl.h>
|
||||||
.sp
|
.sp
|
||||||
.BI "char *curl_escape( char *" url ", int "length " );"
|
.BI "char *curl_escape( const char *" url ", int "length " );"
|
||||||
.ad
|
.ad
|
||||||
.SH DESCRIPTION
|
.SH DESCRIPTION
|
||||||
Obsolete function. Use \fIcurl_easy_escape(3)\fP instead!
|
Obsolete function. Use \fIcurl_easy_escape(3)\fP instead!
|
||||||
|
@@ -5,7 +5,7 @@
|
|||||||
.\" * | (__| |_| | _ <| |___
|
.\" * | (__| |_| | _ <| |___
|
||||||
.\" * \___|\___/|_| \_\_____|
|
.\" * \___|\___/|_| \_\_____|
|
||||||
.\" *
|
.\" *
|
||||||
.\" * Copyright (C) 1998 - 2014, Daniel Stenberg, <daniel@haxx.se>, et al.
|
.\" * Copyright (C) 1998 - 2015, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
.\" *
|
.\" *
|
||||||
.\" * This software is licensed as described in the file COPYING, which
|
.\" * This software is licensed as described in the file COPYING, which
|
||||||
.\" * you should have received as part of this distribution. The terms
|
.\" * you should have received as part of this distribution. The terms
|
||||||
@@ -83,7 +83,18 @@ to send away. libcurl will use the pointer and refer to the data in your
|
|||||||
application, so you must make sure it remains until curl no longer needs it.
|
application, so you must make sure it remains until curl no longer needs it.
|
||||||
If the data isn't NUL-terminated, or if you'd like it to contain zero bytes,
|
If the data isn't NUL-terminated, or if you'd like it to contain zero bytes,
|
||||||
you must set its length with \fBCURLFORM_CONTENTSLENGTH\fP.
|
you must set its length with \fBCURLFORM_CONTENTSLENGTH\fP.
|
||||||
|
.IP CURLFORM_CONTENTLEN
|
||||||
|
followed by a curl_off_t value giving the length of the contents. Note that
|
||||||
|
for \fICURLFORM_STREAM\fP contents, this option is mandatory.
|
||||||
|
|
||||||
|
If you pass a 0 (zero) for this option, libcurl will instead do a strlen() on
|
||||||
|
the contents to figure out the size. If you really want to send a zero byte
|
||||||
|
content then you must make sure strlen() on the data pointer returns zero.
|
||||||
|
|
||||||
|
(Option added in 7.46.0)
|
||||||
.IP CURLFORM_CONTENTSLENGTH
|
.IP CURLFORM_CONTENTSLENGTH
|
||||||
|
(This option is deprecated. Use \fICURLFORM_CONTENTLEN\fP instead!)
|
||||||
|
|
||||||
followed by a long giving the length of the contents. Note that for
|
followed by a long giving the length of the contents. Note that for
|
||||||
\fICURLFORM_STREAM\fP contents, this option is mandatory.
|
\fICURLFORM_STREAM\fP contents, this option is mandatory.
|
||||||
|
|
||||||
@@ -103,6 +114,9 @@ given file match one of the internally known file extensions. For
|
|||||||
providing multiple \fBCURLFORM_FILE\fP arguments each followed by the filename
|
providing multiple \fBCURLFORM_FILE\fP arguments each followed by the filename
|
||||||
(and each \fICURLFORM_FILE\fP is allowed to have a
|
(and each \fICURLFORM_FILE\fP is allowed to have a
|
||||||
\fICURLFORM_CONTENTTYPE\fP).
|
\fICURLFORM_CONTENTTYPE\fP).
|
||||||
|
|
||||||
|
The given upload file has to exist in its full in the file system already when
|
||||||
|
the upload starts, as libcurl needs to read the correct file size beforehand.
|
||||||
.IP CURLFORM_CONTENTTYPE
|
.IP CURLFORM_CONTENTTYPE
|
||||||
is used in combination with \fICURLFORM_FILE\fP. Followed by a pointer to a
|
is used in combination with \fICURLFORM_FILE\fP. Followed by a pointer to a
|
||||||
string which provides the content-type for this part, possibly instead of an
|
string which provides the content-type for this part, possibly instead of an
|
||||||
|
@@ -5,7 +5,7 @@
|
|||||||
.\" * | (__| |_| | _ <| |___
|
.\" * | (__| |_| | _ <| |___
|
||||||
.\" * \___|\___/|_| \_\_____|
|
.\" * \___|\___/|_| \_\_____|
|
||||||
.\" *
|
.\" *
|
||||||
.\" * Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al.
|
.\" * Copyright (C) 1998 - 2015, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
.\" *
|
.\" *
|
||||||
.\" * This software is licensed as described in the file COPYING, which
|
.\" * This software is licensed as described in the file COPYING, which
|
||||||
.\" * you should have received as part of this distribution. The terms
|
.\" * you should have received as part of this distribution. The terms
|
||||||
@@ -26,7 +26,7 @@ curl_formget - serialize a previously built multipart/formdata HTTP POST chain
|
|||||||
.nf
|
.nf
|
||||||
.B #include <curl/curl.h>
|
.B #include <curl/curl.h>
|
||||||
|
|
||||||
void curl_formget(struct curl_httppost * form, void *userp,
|
int curl_formget(struct curl_httppost * form, void *userp,
|
||||||
curl_formget_callback append );
|
curl_formget_callback append );
|
||||||
.SH DESCRIPTION
|
.SH DESCRIPTION
|
||||||
curl_formget() is used to serialize data previously built/appended with
|
curl_formget() is used to serialize data previously built/appended with
|
||||||
|
@@ -36,11 +36,13 @@ This function works exactly as \fIcurl_global_init(3)\fP with one addition: it
|
|||||||
allows the application to set callbacks to replace the otherwise used internal
|
allows the application to set callbacks to replace the otherwise used internal
|
||||||
memory functions.
|
memory functions.
|
||||||
|
|
||||||
This man page only adds documentation for the callbacks, see the
|
If you are using libcurl from multiple threads or libcurl was built with the
|
||||||
\fIcurl_global_init(3)\fP man page for all the rest. When you use this
|
threaded resolver option then the callback functions must be thread safe. The
|
||||||
function, all callback arguments must be set to valid function pointers.
|
threaded resolver is a common build option to enable (and in some cases the
|
||||||
|
default) so we strongly urge you to make your callback functions thread safe.
|
||||||
|
|
||||||
The prototypes for the given callbacks should match these:
|
All callback arguments must be set to valid function pointers. The
|
||||||
|
prototypes for the given callbacks must match these:
|
||||||
.IP "void *malloc_callback(size_t size);"
|
.IP "void *malloc_callback(size_t size);"
|
||||||
To replace malloc()
|
To replace malloc()
|
||||||
.IP "void free_callback(void *ptr);"
|
.IP "void free_callback(void *ptr);"
|
||||||
@@ -51,6 +53,9 @@ To replace realloc()
|
|||||||
To replace strdup()
|
To replace strdup()
|
||||||
.IP "void *calloc_callback(size_t nmemb, size_t size);"
|
.IP "void *calloc_callback(size_t nmemb, size_t size);"
|
||||||
To replace calloc()
|
To replace calloc()
|
||||||
|
.RE
|
||||||
|
This function is otherwise the same as \fIcurl_global_init(3)\fP, please refer
|
||||||
|
to that man page for documentation.
|
||||||
.SH "CAUTION"
|
.SH "CAUTION"
|
||||||
Manipulating these gives considerable powers to the application to severely
|
Manipulating these gives considerable powers to the application to severely
|
||||||
screw things up for libcurl. Take care!
|
screw things up for libcurl. Take care!
|
||||||
|
@@ -31,7 +31,7 @@ CURLMcode curl_multi_add_handle(CURLM *multi_handle, CURL *easy_handle);
|
|||||||
Adds a standard easy handle to the multi stack. This function call will make
|
Adds a standard easy handle to the multi stack. This function call will make
|
||||||
this \fImulti_handle\fP control the specified \fIeasy_handle\fP.
|
this \fImulti_handle\fP control the specified \fIeasy_handle\fP.
|
||||||
|
|
||||||
While an easy handle is added to a multi stack, you can not and you must not
|
While an easy handle is added to a multi stack, you cannot and you must not
|
||||||
use \fIcurl_easy_perform(3)\fP on that handle. After having removed the easy
|
use \fIcurl_easy_perform(3)\fP on that handle. After having removed the easy
|
||||||
handle from the multi stack again, it is perfectly fine to use it with the
|
handle from the multi stack again, it is perfectly fine to use it with the
|
||||||
easy interface again.
|
easy interface again.
|
||||||
|
@@ -28,7 +28,7 @@ curl_multi_remove_handle - remove an easy handle from a multi session
|
|||||||
CURLMcode curl_multi_remove_handle(CURLM *multi_handle, CURL *easy_handle);
|
CURLMcode curl_multi_remove_handle(CURLM *multi_handle, CURL *easy_handle);
|
||||||
.ad
|
.ad
|
||||||
.SH DESCRIPTION
|
.SH DESCRIPTION
|
||||||
Removes a given \fIeasy_handle\fI from the \fImulti_handle\fI. This will make
|
Removes a given \fIeasy_handle\fP from the \fImulti_handle\fP. This will make
|
||||||
the specified easy handle be removed from this multi handle's control.
|
the specified easy handle be removed from this multi handle's control.
|
||||||
|
|
||||||
When the easy handle has been removed from a multi stack, it is again
|
When the easy handle has been removed from a multi stack, it is again
|
||||||
|
@@ -5,7 +5,7 @@
|
|||||||
.\" * | (__| |_| | _ <| |___
|
.\" * | (__| |_| | _ <| |___
|
||||||
.\" * \___|\___/|_| \_\_____|
|
.\" * \___|\___/|_| \_\_____|
|
||||||
.\" *
|
.\" *
|
||||||
.\" * Copyright (C) 1998 - 2014, Daniel Stenberg, <daniel@haxx.se>, et al.
|
.\" * Copyright (C) 1998 - 2015, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
.\" *
|
.\" *
|
||||||
.\" * This software is licensed as described in the file COPYING, which
|
.\" * This software is licensed as described in the file COPYING, which
|
||||||
.\" * you should have received as part of this distribution. The terms
|
.\" * you should have received as part of this distribution. The terms
|
||||||
@@ -37,32 +37,36 @@ expects. Read this manual carefully as bad input values may cause libcurl to
|
|||||||
behave badly! You can only set one option in each function call.
|
behave badly! You can only set one option in each function call.
|
||||||
|
|
||||||
.SH OPTIONS
|
.SH OPTIONS
|
||||||
.IP CURLMOPT_SOCKETFUNCTION
|
.IP CURLMOPT_CHUNK_LENGTH_PENALTY_SIZE
|
||||||
See \fICURLMOPT_SOCKETFUNCTION(3)\fP
|
See \fICURLMOPT_CHUNK_LENGTH_PENALTY_SIZE(3)\fP
|
||||||
.IP CURLMOPT_SOCKETDATA
|
.IP CURLMOPT_CONTENT_LENGTH_PENALTY_SIZE
|
||||||
See \fICURLMOPT_SOCKETDATA(3)\fP
|
See \fICURLMOPT_CONTENT_LENGTH_PENALTY_SIZE(3)\fP
|
||||||
.IP CURLMOPT_PIPELINING
|
|
||||||
See \fICURLMOPT_PIPELINING(3)\fP
|
|
||||||
.IP CURLMOPT_TIMERFUNCTION
|
|
||||||
See \fICURLMOPT_TIMERFUNCTION(3)\fP
|
|
||||||
.IP CURLMOPT_TIMERDATA
|
|
||||||
See \fICURLMOPT_TIMERDATA(3)\fP
|
|
||||||
.IP CURLMOPT_MAXCONNECTS
|
|
||||||
See \fICURLMOPT_MAXCONNECTS(3)\fP
|
|
||||||
.IP CURLMOPT_MAX_HOST_CONNECTIONS
|
.IP CURLMOPT_MAX_HOST_CONNECTIONS
|
||||||
See \fICURLMOPT_MAX_HOST_CONNECTIONS(3)\fP
|
See \fICURLMOPT_MAX_HOST_CONNECTIONS(3)\fP
|
||||||
.IP CURLMOPT_MAX_PIPELINE_LENGTH
|
.IP CURLMOPT_MAX_PIPELINE_LENGTH
|
||||||
See \fICURLMOPT_MAX_PIPELINE_LENGTH(3)\fP
|
See \fICURLMOPT_MAX_PIPELINE_LENGTH(3)\fP
|
||||||
.IP CURLMOPT_CONTENT_LENGTH_PENALTY_SIZE
|
.IP CURLMOPT_MAX_TOTAL_CONNECTIONS
|
||||||
See \fICURLMOPT_CONTENT_LENGTH_PENALTY_SIZE(3)\fP
|
See \fICURLMOPT_MAX_TOTAL_CONNECTIONS(3)\fP
|
||||||
.IP CURLMOPT_CHUNK_LENGTH_PENALTY_SIZE
|
.IP CURLMOPT_MAXCONNECTS
|
||||||
See \fICURLMOPT_CHUNK_LENGTH_PENALTY_SIZE(3)\fP
|
See \fICURLMOPT_MAXCONNECTS(3)\fP
|
||||||
|
.IP CURLMOPT_PIPELINING
|
||||||
|
See \fICURLMOPT_PIPELINING(3)\fP
|
||||||
.IP CURLMOPT_PIPELINING_SITE_BL
|
.IP CURLMOPT_PIPELINING_SITE_BL
|
||||||
See \fICURLMOPT_PIPELINING_SITE_BL(3)\fP
|
See \fICURLMOPT_PIPELINING_SITE_BL(3)\fP
|
||||||
.IP CURLMOPT_PIPELINING_SERVER_BL
|
.IP CURLMOPT_PIPELINING_SERVER_BL
|
||||||
See \fICURLMOPT_PIPELINING_SERVER_BL(3)\fP
|
See \fICURLMOPT_PIPELINING_SERVER_BL(3)\fP
|
||||||
.IP CURLMOPT_MAX_TOTAL_CONNECTIONS
|
.IP CURLMOPT_PUSHFUNCTION
|
||||||
See \fICURLMOPT_MAX_TOTAL_CONNECTIONS(3)\fP
|
See \fICURLMOPT_PUSHFUNCTION(3)\fP
|
||||||
|
.IP CURLMOPT_PUSHDATA
|
||||||
|
See \fICURLMOPT_PUSHDATA(3)\fP
|
||||||
|
.IP CURLMOPT_SOCKETFUNCTION
|
||||||
|
See \fICURLMOPT_SOCKETFUNCTION(3)\fP
|
||||||
|
.IP CURLMOPT_SOCKETDATA
|
||||||
|
See \fICURLMOPT_SOCKETDATA(3)\fP
|
||||||
|
.IP CURLMOPT_TIMERFUNCTION
|
||||||
|
See \fICURLMOPT_TIMERFUNCTION(3)\fP
|
||||||
|
.IP CURLMOPT_TIMERDATA
|
||||||
|
See \fICURLMOPT_TIMERDATA(3)\fP
|
||||||
.SH RETURNS
|
.SH RETURNS
|
||||||
The standard CURLMcode for multi interface error codes. Note that it returns a
|
The standard CURLMcode for multi interface error codes. Note that it returns a
|
||||||
CURLM_UNKNOWN_OPTION if you try setting an option that this version of libcurl
|
CURLM_UNKNOWN_OPTION if you try setting an option that this version of libcurl
|
||||||
|
@@ -5,7 +5,7 @@
|
|||||||
.\" * | (__| |_| | _ <| |___
|
.\" * | (__| |_| | _ <| |___
|
||||||
.\" * \___|\___/|_| \_\_____|
|
.\" * \___|\___/|_| \_\_____|
|
||||||
.\" *
|
.\" *
|
||||||
.\" * Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al.
|
.\" * Copyright (C) 1998 - 2015, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
.\" *
|
.\" *
|
||||||
.\" * This software is licensed as described in the file COPYING, which
|
.\" * This software is licensed as described in the file COPYING, which
|
||||||
.\" * you should have received as part of this distribution. The terms
|
.\" * you should have received as part of this distribution. The terms
|
||||||
@@ -46,6 +46,10 @@ pointer is returned.
|
|||||||
struct curl_slist *slist=NULL;
|
struct curl_slist *slist=NULL;
|
||||||
|
|
||||||
slist = curl_slist_append(slist, "pragma:");
|
slist = curl_slist_append(slist, "pragma:");
|
||||||
|
|
||||||
|
if (slist == NULL)
|
||||||
|
return -1;
|
||||||
|
|
||||||
curl_easy_setopt(handle, CURLOPT_HTTPHEADER, slist);
|
curl_easy_setopt(handle, CURLOPT_HTTPHEADER, slist);
|
||||||
|
|
||||||
curl_easy_perform(handle);
|
curl_easy_perform(handle);
|
||||||
|
@@ -25,7 +25,7 @@ curl_unescape - URL decodes the given string
|
|||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
.B #include <curl/curl.h>
|
.B #include <curl/curl.h>
|
||||||
.sp
|
.sp
|
||||||
.BI "char *curl_unescape( char *" url ", int "length " );"
|
.BI "char *curl_unescape( const char *" url ", int "length " );"
|
||||||
.ad
|
.ad
|
||||||
.SH DESCRIPTION
|
.SH DESCRIPTION
|
||||||
Obsolete function. Use \fIcurl_easy_unescape(3)\fP instead!
|
Obsolete function. Use \fIcurl_easy_unescape(3)\fP instead!
|
||||||
|
@@ -17,6 +17,7 @@
|
|||||||
<br><a href="libcurl-share.html">libcurl-share</a>
|
<br><a href="libcurl-share.html">libcurl-share</a>
|
||||||
<br><a href="libcurl-errors.html">libcurl-errors</a>
|
<br><a href="libcurl-errors.html">libcurl-errors</a>
|
||||||
<br><a href="libcurl-tutorial.html">libcurl-tutorial</a>
|
<br><a href="libcurl-tutorial.html">libcurl-tutorial</a>
|
||||||
|
<br><a href="libcurl-thread.html">libcurl-thread</a>
|
||||||
|
|
||||||
<H2>Library Functions (A-Z)</H2>
|
<H2>Library Functions (A-Z)</H2>
|
||||||
<a href="curl_easy_cleanup.html">curl_easy_cleanup</A>
|
<a href="curl_easy_cleanup.html">curl_easy_cleanup</A>
|
||||||
|
@@ -247,6 +247,10 @@ Chunk callback reported error.
|
|||||||
.IP "CURLE_NO_CONNECTION_AVAILABLE (89)"
|
.IP "CURLE_NO_CONNECTION_AVAILABLE (89)"
|
||||||
(For internal use only, will never be returned by libcurl) No connection
|
(For internal use only, will never be returned by libcurl) No connection
|
||||||
available, the session will be queued. (added in 7.30.0)
|
available, the session will be queued. (added in 7.30.0)
|
||||||
|
.IP "CURLE_SSL_PINNEDPUBKEYNOTMATCH (90)"
|
||||||
|
Failed to match the pinned key specified with \fICURLOPT_PINNEDPUBLICKEY(3)\fP.
|
||||||
|
.IP "CURLE_SSL_INVALIDCERTSTATUS (91)"
|
||||||
|
Status returned failure when asked with \fICURLOPT_SSL_VERIFYSTATUS(3)\fP.
|
||||||
.IP "CURLE_OBSOLETE*"
|
.IP "CURLE_OBSOLETE*"
|
||||||
These error codes will never be returned. They were used in an old libcurl
|
These error codes will never be returned. They were used in an old libcurl
|
||||||
version and are currently unused.
|
version and are currently unused.
|
||||||
|
@@ -5,7 +5,7 @@
|
|||||||
.\" * | (__| |_| | _ <| |___
|
.\" * | (__| |_| | _ <| |___
|
||||||
.\" * \___|\___/|_| \_\_____|
|
.\" * \___|\___/|_| \_\_____|
|
||||||
.\" *
|
.\" *
|
||||||
.\" * Copyright (C) 1998 - 2014, Daniel Stenberg, <daniel@haxx.se>, et al.
|
.\" * Copyright (C) 1998 - 2015, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
.\" *
|
.\" *
|
||||||
.\" * This software is licensed as described in the file COPYING, which
|
.\" * This software is licensed as described in the file COPYING, which
|
||||||
.\" * you should have received as part of this distribution. The terms
|
.\" * you should have received as part of this distribution. The terms
|
||||||
@@ -51,28 +51,27 @@ To use the multi interface, you must first create a 'multi handle' with
|
|||||||
\fIcurl_multi_init(3)\fP. This handle is then used as input to all further
|
\fIcurl_multi_init(3)\fP. This handle is then used as input to all further
|
||||||
curl_multi_* functions.
|
curl_multi_* functions.
|
||||||
|
|
||||||
With a multi handle and the multi interface you can do any amount of
|
With a multi handle and the multi interface you can do several simultaneous
|
||||||
simultaneous transfers in parallel. Each single transfer is built up around an
|
transfers in parallel. Each single transfer is built up around an easy
|
||||||
easy handle. You must create the easy handles you need, and setup the
|
handle. You create all the easy handles you need, and setup the appropriate
|
||||||
appropriate options for each easy handle, as outlined in the \fIlibcurl(3)\fP
|
options for each easy handle using \fIcurl_easy_setopt(3)\fP.
|
||||||
man page, using \fIcurl_easy_setopt(3)\fP.
|
|
||||||
|
|
||||||
There are two flavours of the multi interface, the select() oriented one and
|
There are two flavours of the multi interface, the select() oriented one and
|
||||||
the event based one we called multi_socket. You will benefit from reading
|
the event based one we call multi_socket. You will benefit from reading
|
||||||
through the description of both versions to full understand how they work and
|
through the description of both versions to fully understand how they work and
|
||||||
differentiate. We start out with the select() oriented version.
|
differentiate. We start out with the select() oriented version.
|
||||||
|
|
||||||
When an easy handle is setup for a transfer, then instead of using
|
When an easy handle is setup and ready for transfer, then instead of using
|
||||||
\fIcurl_easy_perform(3)\fP like when using the easy interface for transfers,
|
\fIcurl_easy_perform(3)\fP like when using the easy interface for transfers,
|
||||||
you should add the easy handle to the multi handle with
|
you should add the easy handle to the multi handle with
|
||||||
\fIcurl_multi_add_handle(3)\fP. The multi handle is sometimes referred to as a
|
\fIcurl_multi_add_handle(3)\fP. You can add more easy handles to a multi
|
||||||
\'multi stack\' because of the fact that it may hold a large amount of easy
|
handle at any point, even if other transfers are already running.
|
||||||
handles.
|
|
||||||
|
|
||||||
Should you change your mind, the easy handle is again removed from the multi
|
Should you change your mind, the easy handle is again removed from the multi
|
||||||
stack using \fIcurl_multi_remove_handle(3)\fP. Once removed from the multi
|
stack using \fIcurl_multi_remove_handle(3)\fP. Once removed from the multi
|
||||||
handle, you can again use other easy interface functions like
|
handle, you can again use other easy interface functions like
|
||||||
\fIcurl_easy_perform(3)\fP on the handle or whatever you think is necessary.
|
\fIcurl_easy_perform(3)\fP on the handle or whatever you think is
|
||||||
|
necessary. You can remove handles at any point in time during transfers.
|
||||||
|
|
||||||
Adding the easy handle to the multi handle does not start the transfer.
|
Adding the easy handle to the multi handle does not start the transfer.
|
||||||
Remember that one of the main ideas with this interface is to let your
|
Remember that one of the main ideas with this interface is to let your
|
||||||
@@ -84,16 +83,16 @@ current transfers in the multi stack that are ready to transfer anything. It
|
|||||||
may be all, it may be none. When there's nothing more to do for now, it
|
may be all, it may be none. When there's nothing more to do for now, it
|
||||||
returns back to the calling application.
|
returns back to the calling application.
|
||||||
|
|
||||||
Your application can acquire knowledge from libcurl when it would like to get
|
Your application extracts info from libcurl about when it would like to get
|
||||||
invoked to transfer data, so that you don't have to busy-loop and call that
|
invoked to transfer data or do other work. The most convenient way is to use
|
||||||
\fIcurl_multi_perform(3)\fP like crazy. \fIcurl_multi_fdset(3)\fP offers an
|
\fIcurl_multi_wait(3)\fP that will help you wait until the application should
|
||||||
interface using which you can extract fd_sets from libcurl to use in select()
|
call libcurl again. The older API to accomplish the same thing is
|
||||||
or poll() calls in order to get to know when the transfers in the multi stack
|
\fIcurl_multi_fdset(3)\fP that extracts fd_sets from libcurl to use in
|
||||||
might need attention. This also makes it very easy for your program to wait
|
select() or poll() calls in order to get to know when the transfers in the
|
||||||
for input on your own private file descriptors at the same time or perhaps
|
multi stack might need attention. Both these APIs allow for your program to
|
||||||
timeout every now and then, should you want that. \fIcurl_multi_timeout(3)\fP
|
wait for input on your own private file descriptors at the same time
|
||||||
also helps you with providing a suitable timeout period for your select()
|
\fIcurl_multi_timeout(3)\fP also helps you with providing a suitable timeout
|
||||||
call.
|
period for your select() calls.
|
||||||
|
|
||||||
\fIcurl_multi_perform(3)\fP stores the number of still running transfers in
|
\fIcurl_multi_perform(3)\fP stores the number of still running transfers in
|
||||||
one of its input arguments, and by reading that you can figure out when all
|
one of its input arguments, and by reading that you can figure out when all
|
||||||
@@ -114,9 +113,9 @@ the multi stack. You need to first remove the easy handle with
|
|||||||
\fIcurl_easy_cleanup(3)\fP, or possibly set new options to it and add it again
|
\fIcurl_easy_cleanup(3)\fP, or possibly set new options to it and add it again
|
||||||
with \fIcurl_multi_add_handle(3)\fP to start another transfer.
|
with \fIcurl_multi_add_handle(3)\fP to start another transfer.
|
||||||
|
|
||||||
When all transfers in the multi stack are done, cleanup the multi handle with
|
When all transfers in the multi stack are done, close the multi handle with
|
||||||
\fIcurl_multi_cleanup(3)\fP. Be careful and please note that you \fBMUST\fP
|
\fIcurl_multi_cleanup(3)\fP. Be careful and please note that you \fBMUST\fP
|
||||||
invoke separate \fIcurl_easy_cleanup(3)\fP calls on every single easy handle
|
invoke separate \fIcurl_easy_cleanup(3)\fP calls for every single easy handle
|
||||||
to clean them up properly.
|
to clean them up properly.
|
||||||
|
|
||||||
If you want to re-use an easy handle that was added to the multi handle for
|
If you want to re-use an easy handle that was added to the multi handle for
|
||||||
|
95
docs/libcurl/libcurl-thread.3
Normal file
95
docs/libcurl/libcurl-thread.3
Normal file
@@ -0,0 +1,95 @@
|
|||||||
|
.\" **************************************************************************
|
||||||
|
.\" * _ _ ____ _
|
||||||
|
.\" * Project ___| | | | _ \| |
|
||||||
|
.\" * / __| | | | |_) | |
|
||||||
|
.\" * | (__| |_| | _ <| |___
|
||||||
|
.\" * \___|\___/|_| \_\_____|
|
||||||
|
.\" *
|
||||||
|
.\" * Copyright (C) 2015, 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 libcurl-thread 3 "13 Jul 2015" "libcurl" "libcurl thread safety"
|
||||||
|
.SH NAME
|
||||||
|
libcurl-thread \- libcurl thread safety
|
||||||
|
.SH "Multi-threading with libcurl"
|
||||||
|
libcurl is thread safe but has no internal thread synchronization. You may have
|
||||||
|
to provide your own locking should you meet any of the thread safety exceptions
|
||||||
|
below.
|
||||||
|
|
||||||
|
\fBHandles.\fP You must \fBnever\fP share the same handle in multiple threads.
|
||||||
|
You can pass the handles around among threads, but you must never use a single
|
||||||
|
handle from more than one thread at any given time.
|
||||||
|
|
||||||
|
\fBShared objects.\fP You can share certain data between multiple handles by
|
||||||
|
using the share interface but you must provide your own locking and set
|
||||||
|
\fIcurl_share_setopt(3)\fP CURLSHOPT_LOCKFUNC and CURLSHOPT_UNLOCKFUNC.
|
||||||
|
.SH TLS
|
||||||
|
If you are accessing HTTPS or FTPS URLs in a multi-threaded manner, you are
|
||||||
|
then of course using the underlying SSL library multi-threaded and those libs
|
||||||
|
might have their own requirements on this issue. You may need to provide one
|
||||||
|
or two functions to allow it to function properly:
|
||||||
|
.IP OpenSSL
|
||||||
|
http://www.openssl.org/docs/crypto/threads.html#DESCRIPTION
|
||||||
|
|
||||||
|
http://curl.haxx.se/libcurl/c/opensslthreadlock.html
|
||||||
|
.IP GnuTLS
|
||||||
|
http://gnutls.org/manual/html_node/Thread-safety.html
|
||||||
|
.IP NSS
|
||||||
|
thread-safe already without anything required.
|
||||||
|
.IP PolarSSL
|
||||||
|
Required actions unknown.
|
||||||
|
.IP yassl
|
||||||
|
Required actions unknown.
|
||||||
|
.IP axTLS
|
||||||
|
Required actions unknown.
|
||||||
|
.IP Secure-Transport
|
||||||
|
The engine is used by libcurl in a way that is fully thread-safe.
|
||||||
|
.IP WinSSL
|
||||||
|
The engine is used by libcurl in a way that is fully thread-safe.
|
||||||
|
.IP wolfSSL
|
||||||
|
The engine is used by libcurl in a way that is fully thread-safe.
|
||||||
|
.SH "Other areas of caution"
|
||||||
|
.IP Signals
|
||||||
|
Signals are used for timing out name resolves (during DNS lookup) - when built
|
||||||
|
without using either the c-ares or threaded resolver backends. When using
|
||||||
|
multiple threads you should set the \fICURLOPT_NOSIGNAL(3)\fP option to 1L for
|
||||||
|
all handles. Everything will or might work fine except that timeouts are not
|
||||||
|
honored during the DNS lookup - which you can work around by building libcurl
|
||||||
|
with c-ares support. c-ares is a library that provides asynchronous name
|
||||||
|
resolves. On some platforms, libcurl simply will not function properly
|
||||||
|
multi-threaded unless this option is set.
|
||||||
|
.IP "Name resolving"
|
||||||
|
\fBgethostby* functions and other system calls.\fP These functions, provided
|
||||||
|
by your operating system, must be thread safe. It is very important that
|
||||||
|
libcurl can find and use thread safe versions of these and other system calls,
|
||||||
|
as otherwise it can't function fully thread safe. Some operating systems are
|
||||||
|
known to have faulty thread implementations. We have previously received
|
||||||
|
problem reports on *BSD (at least in the past, they may be working fine these
|
||||||
|
days). Some operating systems that are known to have solid and working thread
|
||||||
|
support are Linux, Solaris and Windows.
|
||||||
|
.IP "curl_global_* functions"
|
||||||
|
These functions are not thread safe. If you are using libcurl with multiple
|
||||||
|
threads it is especially important that before use you call
|
||||||
|
\fIcurl_global_init(3)\fP or \fIcurl_global_init_mem(3)\fP to explicitly
|
||||||
|
initialize the library and its dependents, rather than rely on the "lazy"
|
||||||
|
fail-safe initialization that takes place the first time
|
||||||
|
\fIcurl_easy_init(3)\fP is called. For an in-depth explanation refer to
|
||||||
|
\fIlibcurl(3)\fP section \fBGLOBAL CONSTANTS\fP.
|
||||||
|
.IP "Memory functions"
|
||||||
|
These functions, provided either by your operating system or your own
|
||||||
|
replacements, must be thread safe. You can use \fIcurl_global_init_mem(3)\fP
|
||||||
|
to set your own replacement memory functions.
|
||||||
|
.IP Non-safe functions
|
||||||
|
\fICURLOPT_DNS_USE_GLOBAL_CACHE(3)\fP is not thread-safe.
|
@@ -256,58 +256,8 @@ complication for you. Given simply the URL to a file, libcurl will take care
|
|||||||
of all the details needed to get the file moved from one machine to another.
|
of all the details needed to get the file moved from one machine to another.
|
||||||
|
|
||||||
.SH "Multi-threading Issues"
|
.SH "Multi-threading Issues"
|
||||||
The first basic rule is that you must \fBnever\fP simultaneously share a
|
libcurl is thread safe but there are a few exceptions. Refer to
|
||||||
libcurl handle (be it easy or multi or whatever) between multiple
|
\fIlibcurl-thread(3)\fP for more information.
|
||||||
threads. Only use one handle in one thread at any time. You can pass the
|
|
||||||
handles around among threads, but you must never use a single handle from more
|
|
||||||
than one thread at any given time.
|
|
||||||
|
|
||||||
libcurl is completely thread safe, except for two issues: signals and SSL/TLS
|
|
||||||
handlers. Signals are used for timing out name resolves (during DNS lookup) -
|
|
||||||
when built without using either the c-ares or threaded resolver backends.
|
|
||||||
|
|
||||||
If you are accessing HTTPS or FTPS URLs in a multi-threaded manner, you are
|
|
||||||
then of course using the underlying SSL library multi-threaded and those libs
|
|
||||||
might have their own requirements on this issue. Basically, you need to
|
|
||||||
provide one or two functions to allow it to function properly. For all
|
|
||||||
details, see this:
|
|
||||||
|
|
||||||
OpenSSL
|
|
||||||
|
|
||||||
http://www.openssl.org/docs/crypto/threads.html#DESCRIPTION
|
|
||||||
|
|
||||||
GnuTLS
|
|
||||||
|
|
||||||
http://gnutls.org/manual/html_node/Thread-safety.html
|
|
||||||
|
|
||||||
NSS
|
|
||||||
|
|
||||||
is claimed to be thread-safe already without anything required.
|
|
||||||
|
|
||||||
PolarSSL
|
|
||||||
|
|
||||||
Required actions unknown.
|
|
||||||
|
|
||||||
yassl
|
|
||||||
|
|
||||||
Required actions unknown.
|
|
||||||
|
|
||||||
axTLS
|
|
||||||
|
|
||||||
Required actions unknown.
|
|
||||||
|
|
||||||
Secure Transport
|
|
||||||
|
|
||||||
The engine is fully thread-safe, and no additional steps are required.
|
|
||||||
|
|
||||||
When using multiple threads you should set the \fICURLOPT_NOSIGNAL(3)\fP
|
|
||||||
option to 1 for all handles. Everything will or might work fine except that
|
|
||||||
timeouts are not honored during the DNS lookup - which you can work around by
|
|
||||||
building libcurl with c-ares support. c-ares is a library that provides
|
|
||||||
asynchronous name resolves. On some platforms, libcurl simply will not
|
|
||||||
function properly multi-threaded unless this option is set.
|
|
||||||
|
|
||||||
Also, note that \fICURLOPT_DNS_USE_GLOBAL_CACHE(3)\fP is not thread-safe.
|
|
||||||
|
|
||||||
.SH "When It Doesn't Work"
|
.SH "When It Doesn't Work"
|
||||||
There will always be times when the transfer fails for some reason. You might
|
There will always be times when the transfer fails for some reason. You might
|
||||||
@@ -1005,7 +955,7 @@ or understand incoming cookies and they will just be ignored. However, when
|
|||||||
the parser is enabled the cookies will be understood and the cookies will be
|
the parser is enabled the cookies will be understood and the cookies will be
|
||||||
kept in memory and used properly in subsequent requests when the same handle
|
kept in memory and used properly in subsequent requests when the same handle
|
||||||
is used. Many times this is enough, and you may not have to save the cookies
|
is used. Many times this is enough, and you may not have to save the cookies
|
||||||
to disk at all. Note that the file you specify to \ICURLOPT_COOKIEFILE(3)\fP
|
to disk at all. Note that the file you specify to \fICURLOPT_COOKIEFILE(3)\fP
|
||||||
doesn't have to exist to enable the parser, so a common way to just enable the
|
doesn't have to exist to enable the parser, so a common way to just enable the
|
||||||
parser and not read any cookies is to use the name of a file you know doesn't
|
parser and not read any cookies is to use the name of a file you know doesn't
|
||||||
exist.
|
exist.
|
||||||
@@ -1136,11 +1086,15 @@ NTLM authentication, HTTPS, FTPS, SCP and SFTP are a few examples.
|
|||||||
.IP "Redirects"
|
.IP "Redirects"
|
||||||
The \fICURLOPT_FOLLOWLOCATION(3)\fP option automatically follows HTTP
|
The \fICURLOPT_FOLLOWLOCATION(3)\fP option automatically follows HTTP
|
||||||
redirects sent by a remote server. These redirects can refer to any kind of
|
redirects sent by a remote server. These redirects can refer to any kind of
|
||||||
URL, not just HTTP. A redirect to a file: URL would cause the libcurl to read
|
URL, not just HTTP. By default libcurl will allow all protocols on redirect
|
||||||
(or write) arbitrary files from the local filesystem. If the application
|
except several disabled for security reasons: Since 7.19.4 FILE and SCP are
|
||||||
returns the data back to the user (as would happen in some kinds of CGI
|
disabled, and since 7.40.0 SMB and SMBS are also disabled.
|
||||||
scripts), an attacker could leverage this to read otherwise forbidden data
|
|
||||||
(e.g. file://localhost/etc/passwd).
|
A redirect to a file: URL would cause the libcurl to read (or write) arbitrary
|
||||||
|
files from the local filesystem. If the application returns the data back to
|
||||||
|
the user (as would happen in some kinds of CGI scripts), an attacker could
|
||||||
|
leverage this to read otherwise forbidden data (e.g.
|
||||||
|
file://localhost/etc/passwd).
|
||||||
|
|
||||||
If authentication credentials are stored in the ~/.netrc file, or Kerberos
|
If authentication credentials are stored in the ~/.netrc file, or Kerberos
|
||||||
is in use, any other URL type (not just file:) that requires
|
is in use, any other URL type (not just file:) that requires
|
||||||
|
@@ -5,7 +5,7 @@
|
|||||||
.\" * | (__| |_| | _ <| |___
|
.\" * | (__| |_| | _ <| |___
|
||||||
.\" * \___|\___/|_| \_\_____|
|
.\" * \___|\___/|_| \_\_____|
|
||||||
.\" *
|
.\" *
|
||||||
.\" * Copyright (C) 1998 - 2014, Daniel Stenberg, <daniel@haxx.se>, et al.
|
.\" * Copyright (C) 1998 - 2015, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
.\" *
|
.\" *
|
||||||
.\" * This software is licensed as described in the file COPYING, which
|
.\" * This software is licensed as described in the file COPYING, which
|
||||||
.\" * you should have received as part of this distribution. The terms
|
.\" * you should have received as part of this distribution. The terms
|
||||||
@@ -97,8 +97,8 @@ Unix-like operating system that ship libcurl as part of their distributions
|
|||||||
often don't provide the curl-config tool, but simply install the library and
|
often don't provide the curl-config tool, but simply install the library and
|
||||||
headers in the common path for this purpose.
|
headers in the common path for this purpose.
|
||||||
|
|
||||||
Many Linux and similar sytems use pkg-config to provide build and link options
|
Many Linux and similar systems use pkg-config to provide build and link
|
||||||
about libraries and libcurl supports that as well.
|
options about libraries and libcurl supports that as well.
|
||||||
.SH "LIBCURL SYMBOL NAMES"
|
.SH "LIBCURL SYMBOL NAMES"
|
||||||
All public functions in the libcurl interface are prefixed with 'curl_' (with
|
All public functions in the libcurl interface are prefixed with 'curl_' (with
|
||||||
a lowercase c). You can find other functions in the library source code, but
|
a lowercase c). You can find other functions in the library source code, but
|
||||||
@@ -111,13 +111,8 @@ libcurl works
|
|||||||
.B exactly
|
.B exactly
|
||||||
the same, on any of the platforms it compiles and builds on.
|
the same, on any of the platforms it compiles and builds on.
|
||||||
.SH "THREADS"
|
.SH "THREADS"
|
||||||
Never ever call curl-functions simultaneously using the same handle from
|
libcurl is thread safe but there are a few exceptions. Refer to
|
||||||
several threads. libcurl is thread-safe and can be used in any number of
|
\fIlibcurl-thread(3)\fP for more information.
|
||||||
threads, but you must use separate curl handles if you want to use libcurl in
|
|
||||||
more than one thread simultaneously.
|
|
||||||
|
|
||||||
The global environment functions are not thread-safe. See \fBGLOBAL
|
|
||||||
CONSTANTS\fP below for details.
|
|
||||||
|
|
||||||
.SH "PERSISTENT CONNECTIONS"
|
.SH "PERSISTENT CONNECTIONS"
|
||||||
Persistent connections means that libcurl can re-use the same connection for
|
Persistent connections means that libcurl can re-use the same connection for
|
||||||
|
@@ -178,7 +178,7 @@ x=CURLOPT_WRITEDATA;
|
|||||||
x=CURLOPT_ERRORBUFFER;
|
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
|
||||||
|
51
docs/libcurl/opts/CURLINFO_ACTIVESOCKET.3
Normal file
51
docs/libcurl/opts/CURLINFO_ACTIVESOCKET.3
Normal file
@@ -0,0 +1,51 @@
|
|||||||
|
.\" **************************************************************************
|
||||||
|
.\" * _ _ ____ _
|
||||||
|
.\" * Project ___| | | | _ \| |
|
||||||
|
.\" * / __| | | | |_) | |
|
||||||
|
.\" * | (__| |_| | _ <| |___
|
||||||
|
.\" * \___|\___/|_| \_\_____|
|
||||||
|
.\" *
|
||||||
|
.\" * Copyright (C) 1998 - 2015, 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 CURLINFO_ACTIVESOCKET 3 "12 Sep 2015" "libcurl 7.44.0" "curl_easy_getinfo options"
|
||||||
|
.SH NAME
|
||||||
|
CURLINFO_ACTIVESOCKET \- get the active socket
|
||||||
|
.SH SYNOPSIS
|
||||||
|
#include <curl/curl.h>
|
||||||
|
|
||||||
|
CURLcode curl_easy_getinfo(CURL *handle, CURLINFO_ACTIVESOCKET,
|
||||||
|
curl_socket_t *socket);
|
||||||
|
.SH DESCRIPTION
|
||||||
|
Pass a pointer to a curl_socket_t to receive the active socket used by this
|
||||||
|
curl session. If the socket is no longer valid, \fICURL_SOCKET_BAD\fP is
|
||||||
|
returned. When you finish working with the socket, you must call
|
||||||
|
\fIcurl_easy_cleanup(3)\fP as usual on the easy handle and let libcurl close
|
||||||
|
the socket and cleanup other resources associated with the handle. This is
|
||||||
|
typically used in combination with \fICURLOPT_CONNECT_ONLY(3)\fP.
|
||||||
|
|
||||||
|
This option was added as a replacement for \fICURLINFO_LASTSOCKET(3)\fP since
|
||||||
|
that one isn't working on all platforms.
|
||||||
|
.SH PROTOCOLS
|
||||||
|
All
|
||||||
|
.SH EXAMPLE
|
||||||
|
TODO
|
||||||
|
.SH AVAILABILITY
|
||||||
|
Added in 7.45.0
|
||||||
|
.SH RETURN VALUE
|
||||||
|
Returns CURLE_OK if the option is supported, and CURLE_UNKNOWN_OPTION if not.
|
||||||
|
.SH "SEE ALSO"
|
||||||
|
.BR curl_easy_getinfo "(3), " curl_easy_setopt "(3), "
|
||||||
|
.BR CURLINFO_LASTSOCKET "(3), "
|
47
docs/libcurl/opts/CURLINFO_APPCONNECT_TIME.3
Normal file
47
docs/libcurl/opts/CURLINFO_APPCONNECT_TIME.3
Normal file
@@ -0,0 +1,47 @@
|
|||||||
|
.\" **************************************************************************
|
||||||
|
.\" * _ _ ____ _
|
||||||
|
.\" * Project ___| | | | _ \| |
|
||||||
|
.\" * / __| | | | |_) | |
|
||||||
|
.\" * | (__| |_| | _ <| |___
|
||||||
|
.\" * \___|\___/|_| \_\_____|
|
||||||
|
.\" *
|
||||||
|
.\" * Copyright (C) 1998 - 2015, 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 CURLINFO_APPCONNECT_TIME 3 "28 Aug 2015" "libcurl 7.44.0" "curl_easy_getinfo options"
|
||||||
|
.SH NAME
|
||||||
|
CURLINFO_APPCONNECT_TIME \- get the time until the SSL/SSH handshake is completed
|
||||||
|
.SH SYNOPSIS
|
||||||
|
#include <curl/curl.h>
|
||||||
|
|
||||||
|
CURLcode curl_easy_getinfo(CURL *handle, CURLINFO_APPCONNECT_TIME, double *timep);
|
||||||
|
.SH DESCRIPTION
|
||||||
|
Pass a pointer to a double to receive the time, in seconds, it took from the
|
||||||
|
start until the SSL/SSH connect/handshake to the remote host was completed.
|
||||||
|
This time is most often very near to the \fICURLINFO_PRETRANSFER_TIME(3)\fP
|
||||||
|
time, except for cases such as HTTP pipelining where the pretransfer time can
|
||||||
|
be delayed due to waits in line for the pipeline and more.
|
||||||
|
|
||||||
|
See also the TIMES overview in the \fIcurl_easy_getinfo(3)\fP man page.
|
||||||
|
.SH PROTOCOLS
|
||||||
|
All
|
||||||
|
.SH EXAMPLE
|
||||||
|
TODO
|
||||||
|
.SH AVAILABILITY
|
||||||
|
Added in 7.19.0
|
||||||
|
.SH RETURN VALUE
|
||||||
|
Returns CURLE_OK if the option is supported, and CURLE_UNKNOWN_OPTION if not.
|
||||||
|
.SH "SEE ALSO"
|
||||||
|
.BR curl_easy_getinfo "(3), " curl_easy_setopt "(3), "
|
51
docs/libcurl/opts/CURLINFO_CERTINFO.3
Normal file
51
docs/libcurl/opts/CURLINFO_CERTINFO.3
Normal file
@@ -0,0 +1,51 @@
|
|||||||
|
.\" **************************************************************************
|
||||||
|
.\" * _ _ ____ _
|
||||||
|
.\" * Project ___| | | | _ \| |
|
||||||
|
.\" * / __| | | | |_) | |
|
||||||
|
.\" * | (__| |_| | _ <| |___
|
||||||
|
.\" * \___|\___/|_| \_\_____|
|
||||||
|
.\" *
|
||||||
|
.\" * Copyright (C) 1998 - 2015, 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 CURLINFO_CERTINFO 3 "12 Sep 2015" "libcurl 7.44.0" "curl_easy_getinfo options"
|
||||||
|
.SH NAME
|
||||||
|
CURLINFO_CERTINFO \- get the TLS certificate chain
|
||||||
|
.SH SYNOPSIS
|
||||||
|
#include <curl/curl.h>
|
||||||
|
|
||||||
|
CURLcode curl_easy_getinfo(CURL *handle, CURLINFO_CERTINFO,
|
||||||
|
struct curl_certinfo *chainp);
|
||||||
|
.SH DESCRIPTION
|
||||||
|
Pass a pointer to a 'struct curl_certinfo *' and you'll get it set to point to
|
||||||
|
struct that holds a number of linked lists with info about the certificate
|
||||||
|
chain, assuming you had \fICURLOPT_CERTINFO(3)\fP enabled when the request was
|
||||||
|
made. The struct reports how many certs it found and then you can extract info
|
||||||
|
for each of those certs by following the linked lists. The info chain is
|
||||||
|
provided in a series of data in the format "name:content" where the content is
|
||||||
|
for the specific named data. See also the certinfo.c example.
|
||||||
|
.SH PROTOCOLS
|
||||||
|
All TLS-based
|
||||||
|
.SH EXAMPLE
|
||||||
|
TODO
|
||||||
|
.SH AVAILABILITY
|
||||||
|
This option is only working in libcurl built with OpenSSL, NSS or GSKit
|
||||||
|
support.
|
||||||
|
|
||||||
|
Added in 7.19.1
|
||||||
|
.SH RETURN VALUE
|
||||||
|
Returns CURLE_OK if the option is supported, and CURLE_UNKNOWN_OPTION if not.
|
||||||
|
.SH "SEE ALSO"
|
||||||
|
.BR curl_easy_getinfo "(3), " curl_easy_setopt "(3), "
|
45
docs/libcurl/opts/CURLINFO_CONDITION_UNMET.3
Normal file
45
docs/libcurl/opts/CURLINFO_CONDITION_UNMET.3
Normal file
@@ -0,0 +1,45 @@
|
|||||||
|
.\" **************************************************************************
|
||||||
|
.\" * _ _ ____ _
|
||||||
|
.\" * Project ___| | | | _ \| |
|
||||||
|
.\" * / __| | | | |_) | |
|
||||||
|
.\" * | (__| |_| | _ <| |___
|
||||||
|
.\" * \___|\___/|_| \_\_____|
|
||||||
|
.\" *
|
||||||
|
.\" * Copyright (C) 1998 - 2015, 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 CURLINFO_CONDITION_UNMET 3 "1 Sep 2015" "libcurl 7.44.0" "curl_easy_getinfo options"
|
||||||
|
.SH NAME
|
||||||
|
CURLINFO_CONDITION_UNMET \- get info on unmet time conditional
|
||||||
|
.SH SYNOPSIS
|
||||||
|
#include <curl/curl.h>
|
||||||
|
|
||||||
|
CURLcode curl_easy_getinfo(CURL *handle, CURLINFO_CONDITION_UNMET, long *unmet);
|
||||||
|
.SH DESCRIPTION
|
||||||
|
Pass a pointer to a long to receive the number 1 if the condition provided in
|
||||||
|
the previous request didn't match (see \fICURLOPT_TIMECONDITION(3)\fP). Alas,
|
||||||
|
if this returns a 1 you know that the reason you didn't get data in return is
|
||||||
|
because it didn't fulfill the condition. The long ths argument points to will
|
||||||
|
get a zero stored if the condition instead was met.
|
||||||
|
.SH PROTOCOLS
|
||||||
|
HTTP and some
|
||||||
|
.SH EXAMPLE
|
||||||
|
TODO
|
||||||
|
.SH AVAILABILITY
|
||||||
|
Added in 7.19.4
|
||||||
|
.SH RETURN VALUE
|
||||||
|
Returns CURLE_OK if the option is supported, and CURLE_UNKNOWN_OPTION if not.
|
||||||
|
.SH "SEE ALSO"
|
||||||
|
.BR curl_easy_getinfo "(3), " curl_easy_setopt "(3), "
|
44
docs/libcurl/opts/CURLINFO_CONNECT_TIME.3
Normal file
44
docs/libcurl/opts/CURLINFO_CONNECT_TIME.3
Normal file
@@ -0,0 +1,44 @@
|
|||||||
|
.\" **************************************************************************
|
||||||
|
.\" * _ _ ____ _
|
||||||
|
.\" * Project ___| | | | _ \| |
|
||||||
|
.\" * / __| | | | |_) | |
|
||||||
|
.\" * | (__| |_| | _ <| |___
|
||||||
|
.\" * \___|\___/|_| \_\_____|
|
||||||
|
.\" *
|
||||||
|
.\" * Copyright (C) 1998 - 2015, 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 CURLINFO_CONNECT_TIME 3 "28 Aug 2015" "libcurl 7.44.0" "curl_easy_getinfo options"
|
||||||
|
.SH NAME
|
||||||
|
CURLINFO_CONNECT_TIME \- get the time until connect
|
||||||
|
.SH SYNOPSIS
|
||||||
|
#include <curl/curl.h>
|
||||||
|
|
||||||
|
CURLcode curl_easy_getinfo(CURL *handle, CURLINFO_CONNECT_TIME, double *timep);
|
||||||
|
.SH DESCRIPTION
|
||||||
|
Pass a pointer to a double to receive the total time in seconds from the start
|
||||||
|
until the connection to the remote host (or proxy) was completed.
|
||||||
|
|
||||||
|
See also the TIMES overview in the \fIcurl_easy_getinfo(3)\fP man page.
|
||||||
|
.SH PROTOCOLS
|
||||||
|
All
|
||||||
|
.SH EXAMPLE
|
||||||
|
TODO
|
||||||
|
.SH AVAILABILITY
|
||||||
|
Added in 7.4.1
|
||||||
|
.SH RETURN VALUE
|
||||||
|
Returns CURLE_OK if the option is supported, and CURLE_UNKNOWN_OPTION if not.
|
||||||
|
.SH "SEE ALSO"
|
||||||
|
.BR curl_easy_getinfo "(3), " curl_easy_setopt "(3), "
|
45
docs/libcurl/opts/CURLINFO_CONTENT_LENGTH_DOWNLOAD.3
Normal file
45
docs/libcurl/opts/CURLINFO_CONTENT_LENGTH_DOWNLOAD.3
Normal file
@@ -0,0 +1,45 @@
|
|||||||
|
.\" **************************************************************************
|
||||||
|
.\" * _ _ ____ _
|
||||||
|
.\" * Project ___| | | | _ \| |
|
||||||
|
.\" * / __| | | | |_) | |
|
||||||
|
.\" * | (__| |_| | _ <| |___
|
||||||
|
.\" * \___|\___/|_| \_\_____|
|
||||||
|
.\" *
|
||||||
|
.\" * Copyright (C) 1998 - 2015, 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 CURLINFO_CONTENT_LENGTH_DOWNLOAD 3 "1 Sep 2015" "libcurl 7.44.0" "curl_easy_getinfo options"
|
||||||
|
.SH NAME
|
||||||
|
CURLINFO_CONTENT_LENGTH_DOWNLOAD \- get content-length of download
|
||||||
|
.SH SYNOPSIS
|
||||||
|
#include <curl/curl.h>
|
||||||
|
|
||||||
|
CURLcode curl_easy_getinfo(CURL *handle, CURLINFO_CONTENT_LENGTH_DOWNLOAD,
|
||||||
|
double *content_length);
|
||||||
|
.SH DESCRIPTION
|
||||||
|
Pass a pointer to a double to receive the content-length of the download. This
|
||||||
|
is the value read from the Content-Length: field. Since 7.19.4, this returns
|
||||||
|
-1 if the size isn't known.
|
||||||
|
.SH PROTOCOLS
|
||||||
|
HTTP(S)
|
||||||
|
.SH EXAMPLE
|
||||||
|
TODO
|
||||||
|
.SH AVAILABILITY
|
||||||
|
Added in 7.6.1
|
||||||
|
.SH RETURN VALUE
|
||||||
|
Returns CURLE_OK if the option is supported, and CURLE_UNKNOWN_OPTION if not.
|
||||||
|
.SH "SEE ALSO"
|
||||||
|
.BR curl_easy_getinfo "(3), " curl_easy_setopt "(3), "
|
||||||
|
.BR CURLINFO_CONTENT_LENGTH_UPLOAD "(3), "
|
43
docs/libcurl/opts/CURLINFO_CONTENT_LENGTH_UPLOAD.3
Normal file
43
docs/libcurl/opts/CURLINFO_CONTENT_LENGTH_UPLOAD.3
Normal file
@@ -0,0 +1,43 @@
|
|||||||
|
.\" **************************************************************************
|
||||||
|
.\" * _ _ ____ _
|
||||||
|
.\" * Project ___| | | | _ \| |
|
||||||
|
.\" * / __| | | | |_) | |
|
||||||
|
.\" * | (__| |_| | _ <| |___
|
||||||
|
.\" * \___|\___/|_| \_\_____|
|
||||||
|
.\" *
|
||||||
|
.\" * Copyright (C) 1998 - 2015, 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 CURLINFO_CONTENT_LENGTH_UPLOAD 3 "1 Sep 2015" "libcurl 7.44.0" "curl_easy_getinfo options"
|
||||||
|
.SH NAME
|
||||||
|
CURLINFO_CONTENT_LENGTH_UPLOAD \- get the specified size of the upload
|
||||||
|
.SH SYNOPSIS
|
||||||
|
#include <curl/curl.h>
|
||||||
|
|
||||||
|
CURLcode curl_easy_getinfo(CURL *handle, CURLINFO_CONTENT_LENGTH_UPLOAD,
|
||||||
|
double *content_length);
|
||||||
|
.SH DESCRIPTION
|
||||||
|
Pass a pointer to a double to receive the specified size of the upload. Since
|
||||||
|
7.19.4, this returns -1 if the size isn't known.
|
||||||
|
.SH PROTOCOLS
|
||||||
|
All
|
||||||
|
.SH EXAMPLE
|
||||||
|
TODO
|
||||||
|
.SH AVAILABILITY
|
||||||
|
Added in 7.6.1
|
||||||
|
.SH RETURN VALUE
|
||||||
|
Returns CURLE_OK if the option is supported, and CURLE_UNKNOWN_OPTION if not.
|
||||||
|
.SH "SEE ALSO"
|
||||||
|
.BR curl_easy_getinfo "(3), " curl_easy_setopt "(3), "
|
48
docs/libcurl/opts/CURLINFO_CONTENT_TYPE.3
Normal file
48
docs/libcurl/opts/CURLINFO_CONTENT_TYPE.3
Normal file
@@ -0,0 +1,48 @@
|
|||||||
|
.\" **************************************************************************
|
||||||
|
.\" * _ _ ____ _
|
||||||
|
.\" * Project ___| | | | _ \| |
|
||||||
|
.\" * / __| | | | |_) | |
|
||||||
|
.\" * | (__| |_| | _ <| |___
|
||||||
|
.\" * \___|\___/|_| \_\_____|
|
||||||
|
.\" *
|
||||||
|
.\" * Copyright (C) 1998 - 2015, 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 CURLINFO_CONTENT_TYPE 3 "1 Sep 2015" "libcurl 7.44.0" "curl_easy_getinfo options"
|
||||||
|
.SH NAME
|
||||||
|
CURLINFO_CONTENT_TYPE \- get Content-Type
|
||||||
|
.SH SYNOPSIS
|
||||||
|
#include <curl/curl.h>
|
||||||
|
|
||||||
|
CURLcode curl_easy_getinfo(CURL *handle, CURLINFO_CONTENT_TYPE, char **ct);
|
||||||
|
.SH DESCRIPTION
|
||||||
|
Pass a pointer to a char pointer to receive the content-type of the downloaded
|
||||||
|
object. This is the value read from the Content-Type: field. If you get NULL,
|
||||||
|
it means that the server didn't send a valid Content-Type header or that the
|
||||||
|
protocol used doesn't support this.
|
||||||
|
|
||||||
|
The \fBct\fP pointer will be NULL or pointing to private memory you MUST NOT
|
||||||
|
free it - it gets freed when you call \fIcurl_easy_cleanup(3)\fP on the
|
||||||
|
corresponding CURL handle.
|
||||||
|
.SH PROTOCOLS
|
||||||
|
HTTP(S)
|
||||||
|
.SH EXAMPLE
|
||||||
|
TODO
|
||||||
|
.SH AVAILABILITY
|
||||||
|
Added in 7.9.4
|
||||||
|
.SH RETURN VALUE
|
||||||
|
Returns CURLE_OK if the option is supported, and CURLE_UNKNOWN_OPTION if not.
|
||||||
|
.SH "SEE ALSO"
|
||||||
|
.BR curl_easy_getinfo "(3), " curl_easy_setopt "(3), "
|
49
docs/libcurl/opts/CURLINFO_COOKIELIST.3
Normal file
49
docs/libcurl/opts/CURLINFO_COOKIELIST.3
Normal file
@@ -0,0 +1,49 @@
|
|||||||
|
.\" **************************************************************************
|
||||||
|
.\" * _ _ ____ _
|
||||||
|
.\" * Project ___| | | | _ \| |
|
||||||
|
.\" * / __| | | | |_) | |
|
||||||
|
.\" * | (__| |_| | _ <| |___
|
||||||
|
.\" * \___|\___/|_| \_\_____|
|
||||||
|
.\" *
|
||||||
|
.\" * Copyright (C) 1998 - 2015, 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 CURLINFO_COOKIELIST 3 "1 Sep 2015" "libcurl 7.44.0" "curl_easy_getinfo options"
|
||||||
|
.SH NAME
|
||||||
|
CURLINFO_COOKIELIST \- get all known cookies
|
||||||
|
.SH SYNOPSIS
|
||||||
|
#include <curl/curl.h>
|
||||||
|
|
||||||
|
CURLcode curl_easy_getinfo(CURL *handle, CURLINFO_COOKIELIST,
|
||||||
|
struct curl_slist **cookies);
|
||||||
|
.SH DESCRIPTION
|
||||||
|
Pass a pointer to a 'struct curl_slist *' to receive a linked-list of all
|
||||||
|
cookies cURL knows (expired ones, too). Don't forget to call
|
||||||
|
\fIcurl_slist_free_all(3)\fP on the list after it has been used. If there are
|
||||||
|
no cookies (cookies for the handle have not been enabled or simply none have
|
||||||
|
been received) 'struct curl_slist *' will be set to point to NULL.
|
||||||
|
|
||||||
|
Since 7.43.0 cookies that were imported in the Set-Cookie format without a
|
||||||
|
domain name are not exported by this option.
|
||||||
|
.SH PROTOCOLS
|
||||||
|
HTTP(S)
|
||||||
|
.SH EXAMPLE
|
||||||
|
TODO
|
||||||
|
.SH AVAILABILITY
|
||||||
|
Added in 7.14.1
|
||||||
|
.SH RETURN VALUE
|
||||||
|
Returns CURLE_OK if the option is supported, and CURLE_UNKNOWN_OPTION if not.
|
||||||
|
.SH "SEE ALSO"
|
||||||
|
.BR curl_easy_getinfo "(3), " curl_easy_setopt "(3), "
|
48
docs/libcurl/opts/CURLINFO_EFFECTIVE_URL.3
Normal file
48
docs/libcurl/opts/CURLINFO_EFFECTIVE_URL.3
Normal file
@@ -0,0 +1,48 @@
|
|||||||
|
.\" **************************************************************************
|
||||||
|
.\" * _ _ ____ _
|
||||||
|
.\" * Project ___| | | | _ \| |
|
||||||
|
.\" * / __| | | | |_) | |
|
||||||
|
.\" * | (__| |_| | _ <| |___
|
||||||
|
.\" * \___|\___/|_| \_\_____|
|
||||||
|
.\" *
|
||||||
|
.\" * Copyright (C) 1998 - 2015, 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 CURLINFO_EFFECTIVE_URL 3 "28 Aug 2015" "libcurl 7.44.0" "curl_easy_getinfo options"
|
||||||
|
.SH NAME
|
||||||
|
CURLINFO_EFFECTIVE_URL \- get the last used URL
|
||||||
|
.SH SYNOPSIS
|
||||||
|
#include <curl/curl.h>
|
||||||
|
|
||||||
|
CURLcode curl_easy_getinfo(CURL *handle, CURLINFO_EFFECTIVE_URL, char **urlp);
|
||||||
|
.SH DESCRIPTION
|
||||||
|
Pass in a pointer to a char pointer and get the last used effective URL.
|
||||||
|
|
||||||
|
In cases when you've asked libcurl to follow redirects, it may very well not
|
||||||
|
be the same value you set with \fICURLOPT_URL(3)\fP.
|
||||||
|
|
||||||
|
The \fBurlp\fP pointer will be NULL or pointing to private memory you MUST NOT
|
||||||
|
free - it gets freed when you call \fIcurl_easy_cleanup(3)\fP on the
|
||||||
|
corresponding CURL handle.
|
||||||
|
.SH PROTOCOLS
|
||||||
|
HTTP(S)
|
||||||
|
.SH EXAMPLE
|
||||||
|
TODO
|
||||||
|
.SH AVAILABILITY
|
||||||
|
Added in 7.4
|
||||||
|
.SH RETURN VALUE
|
||||||
|
Returns CURLE_OK if the option is supported, and CURLE_UNKNOWN_OPTION if not.
|
||||||
|
.SH "SEE ALSO"
|
||||||
|
.BR curl_easy_getinfo "(3), " curl_easy_setopt "(3), "
|
49
docs/libcurl/opts/CURLINFO_FILETIME.3
Normal file
49
docs/libcurl/opts/CURLINFO_FILETIME.3
Normal file
@@ -0,0 +1,49 @@
|
|||||||
|
.\" **************************************************************************
|
||||||
|
.\" * _ _ ____ _
|
||||||
|
.\" * Project ___| | | | _ \| |
|
||||||
|
.\" * / __| | | | |_) | |
|
||||||
|
.\" * | (__| |_| | _ <| |___
|
||||||
|
.\" * \___|\___/|_| \_\_____|
|
||||||
|
.\" *
|
||||||
|
.\" * Copyright (C) 1998 - 2015, 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 CURLINFO_FILETIME 3 "28 Aug 2015" "libcurl 7.44.0" "curl_easy_getinfo options"
|
||||||
|
.SH NAME
|
||||||
|
CURLINFO_FILETIME \- get the remote time of the retrieved document
|
||||||
|
.SH SYNOPSIS
|
||||||
|
#include <curl/curl.h>
|
||||||
|
|
||||||
|
CURLcode curl_easy_getinfo(CURL *handle, CURLINFO_FILETIME, long *timep);
|
||||||
|
.SH DESCRIPTION
|
||||||
|
Pass a pointer to a long to receive the remote time of the retrieved document
|
||||||
|
(in number of seconds since 1 jan 1970 in the GMT/UTC time zone). If you get
|
||||||
|
-1, it can be because of many reasons (it might be unknown, the server might
|
||||||
|
hide it or the server doesn't support the command that tells document time
|
||||||
|
etc) and the time of the document is unknown.
|
||||||
|
|
||||||
|
Note that you must tell the server to collect this information before the
|
||||||
|
transfer is made, by using the \fICURLOPT_FILETIME(3)\fP option to
|
||||||
|
\fIcurl_easy_setopt(3)\fP or you will unconditionally get a -1 back.
|
||||||
|
.SH PROTOCOLS
|
||||||
|
HTTP(S), FTP(S)
|
||||||
|
.SH EXAMPLE
|
||||||
|
TODO
|
||||||
|
.SH AVAILABILITY
|
||||||
|
Added in 7.5
|
||||||
|
.SH RETURN VALUE
|
||||||
|
Returns CURLE_OK if the option is supported, and CURLE_UNKNOWN_OPTION if not.
|
||||||
|
.SH "SEE ALSO"
|
||||||
|
.BR curl_easy_getinfo "(3), " curl_easy_setopt "(3), "
|
48
docs/libcurl/opts/CURLINFO_FTP_ENTRY_PATH.3
Normal file
48
docs/libcurl/opts/CURLINFO_FTP_ENTRY_PATH.3
Normal file
@@ -0,0 +1,48 @@
|
|||||||
|
.\" **************************************************************************
|
||||||
|
.\" * _ _ ____ _
|
||||||
|
.\" * Project ___| | | | _ \| |
|
||||||
|
.\" * / __| | | | |_) | |
|
||||||
|
.\" * | (__| |_| | _ <| |___
|
||||||
|
.\" * \___|\___/|_| \_\_____|
|
||||||
|
.\" *
|
||||||
|
.\" * Copyright (C) 1998 - 2015, 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 CURLINFO_FTP_ENTRY_PATH 3 "12 Sep 2015" "libcurl 7.44.0" "curl_easy_getinfo options"
|
||||||
|
.SH NAME
|
||||||
|
CURLINFO_FTP_ENTRY_PATH \- get entry path in FTP server
|
||||||
|
.SH SYNOPSIS
|
||||||
|
#include <curl/curl.h>
|
||||||
|
|
||||||
|
CURLcode curl_easy_getinfo(CURL *handle, CURLINFO_FTP_ENTRY_PATH, char **path);
|
||||||
|
.SH DESCRIPTION
|
||||||
|
Pass a pointer to a char pointer to receive a pointer to a string holding the
|
||||||
|
path of the entry path. That is the initial path libcurl ended up in when
|
||||||
|
logging on to the remote FTP server. This stores a NULL as pointer if
|
||||||
|
something is wrong.
|
||||||
|
|
||||||
|
The \fBpath\fP pointer will be NULL or pointing to private memory you MUST NOT
|
||||||
|
free - it gets freed when you call \fIcurl_easy_cleanup(3)\fP on the
|
||||||
|
corresponding CURL handle.
|
||||||
|
.SH PROTOCOLS
|
||||||
|
FTP(S) and SFTP
|
||||||
|
.SH EXAMPLE
|
||||||
|
TODO
|
||||||
|
.SH AVAILABILITY
|
||||||
|
Added in 7.15.4. Works for SFTP since 7.21.4
|
||||||
|
.SH RETURN VALUE
|
||||||
|
Returns CURLE_OK if the option is supported, and CURLE_UNKNOWN_OPTION if not.
|
||||||
|
.SH "SEE ALSO"
|
||||||
|
.BR curl_easy_getinfo "(3), " curl_easy_setopt "(3), "
|
44
docs/libcurl/opts/CURLINFO_HEADER_SIZE.3
Normal file
44
docs/libcurl/opts/CURLINFO_HEADER_SIZE.3
Normal file
@@ -0,0 +1,44 @@
|
|||||||
|
.\" **************************************************************************
|
||||||
|
.\" * _ _ ____ _
|
||||||
|
.\" * Project ___| | | | _ \| |
|
||||||
|
.\" * / __| | | | |_) | |
|
||||||
|
.\" * | (__| |_| | _ <| |___
|
||||||
|
.\" * \___|\___/|_| \_\_____|
|
||||||
|
.\" *
|
||||||
|
.\" * Copyright (C) 1998 - 2015, 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 CURLINFO_HEADER_SIZE 3 "1 Sep 2015" "libcurl 7.44.0" "curl_easy_getinfo options"
|
||||||
|
.SH NAME
|
||||||
|
CURLINFO_HEADER_SIZE \- get size of retrieved headers
|
||||||
|
.SH SYNOPSIS
|
||||||
|
#include <curl/curl.h>
|
||||||
|
|
||||||
|
CURLcode curl_easy_getinfo(CURL *handle, CURLINFO_HEADER_SIZE, long *sizep);
|
||||||
|
.SH DESCRIPTION
|
||||||
|
Pass a pointer to a long to receive the total size of all the headers
|
||||||
|
received. Measured in number of bytes.
|
||||||
|
.SH PROTOCOLS
|
||||||
|
All
|
||||||
|
.SH EXAMPLE
|
||||||
|
TODO
|
||||||
|
.SH AVAILABILITY
|
||||||
|
Added in 7.4.1
|
||||||
|
.SH RETURN VALUE
|
||||||
|
Returns CURLE_OK if the option is supported, and CURLE_UNKNOWN_OPTION if not.
|
||||||
|
.SH "SEE ALSO"
|
||||||
|
.BR curl_easy_getinfo "(3), " curl_easy_setopt "(3), "
|
||||||
|
.BR CURLINFO_REQUEST_SIZE "(3), "
|
||||||
|
.BR CURLINFO_SIZE_DOWNLOAD "(3), "
|
44
docs/libcurl/opts/CURLINFO_HTTPAUTH_AVAIL.3
Normal file
44
docs/libcurl/opts/CURLINFO_HTTPAUTH_AVAIL.3
Normal file
@@ -0,0 +1,44 @@
|
|||||||
|
.\" **************************************************************************
|
||||||
|
.\" * _ _ ____ _
|
||||||
|
.\" * Project ___| | | | _ \| |
|
||||||
|
.\" * / __| | | | |_) | |
|
||||||
|
.\" * | (__| |_| | _ <| |___
|
||||||
|
.\" * \___|\___/|_| \_\_____|
|
||||||
|
.\" *
|
||||||
|
.\" * Copyright (C) 1998 - 2015, 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 CURLINFO_HTTPAUTH_AVAIL 3 "12 Sep 2015" "libcurl 7.44.0" "curl_easy_getinfo options"
|
||||||
|
.SH NAME
|
||||||
|
CURLINFO_HTTPAUTH_AVAIL \- get available HTTP authentication methods
|
||||||
|
.SH SYNOPSIS
|
||||||
|
#include <curl/curl.h>
|
||||||
|
|
||||||
|
CURLcode curl_easy_getinfo(CURL *handle, CURLINFO_HTTPAUTH_AVAIL, long *authp);
|
||||||
|
.SH DESCRIPTION
|
||||||
|
Pass a pointer to a long to receive a bitmask indicating the authentication
|
||||||
|
method(s) available according to the previous response. The meaning of the
|
||||||
|
bits is explained in the \fICURLOPT_HTTPAUTH(3)\fP option for
|
||||||
|
\fIcurl_easy_setopt(3)\fP.
|
||||||
|
.SH PROTOCOLS
|
||||||
|
HTTP(S)
|
||||||
|
.SH EXAMPLE
|
||||||
|
TODO
|
||||||
|
.SH AVAILABILITY
|
||||||
|
Added in 7.10.8
|
||||||
|
.SH RETURN VALUE
|
||||||
|
Returns CURLE_OK if the option is supported, and CURLE_UNKNOWN_OPTION if not.
|
||||||
|
.SH "SEE ALSO"
|
||||||
|
.BR curl_easy_getinfo "(3), " curl_easy_setopt "(3), "
|
44
docs/libcurl/opts/CURLINFO_HTTP_CONNECTCODE.3
Normal file
44
docs/libcurl/opts/CURLINFO_HTTP_CONNECTCODE.3
Normal file
@@ -0,0 +1,44 @@
|
|||||||
|
.\" **************************************************************************
|
||||||
|
.\" * _ _ ____ _
|
||||||
|
.\" * Project ___| | | | _ \| |
|
||||||
|
.\" * / __| | | | |_) | |
|
||||||
|
.\" * | (__| |_| | _ <| |___
|
||||||
|
.\" * \___|\___/|_| \_\_____|
|
||||||
|
.\" *
|
||||||
|
.\" * Copyright (C) 1998 - 2015, 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 CURLINFO_HTTP_CONNECTCODE 3 "28 Aug 2015" "libcurl 7.44.0" "curl_easy_getinfo options"
|
||||||
|
.SH NAME
|
||||||
|
CURLINFO_HTTP_CONNECTCODE \- get the CONNECT response code
|
||||||
|
.SH SYNOPSIS
|
||||||
|
#include <curl/curl.h>
|
||||||
|
|
||||||
|
CURLcode curl_easy_getinfo(CURL *handle, CURLINFO_HTTP_CONNECTCODE, long *p);
|
||||||
|
.SH DESCRIPTION
|
||||||
|
Pass a pointer to a long to receive the last received HTTP proxy response code
|
||||||
|
to a CONNECT request. The returned value will be zero if no such response code
|
||||||
|
was available.
|
||||||
|
.SH PROTOCOLS
|
||||||
|
HTTP
|
||||||
|
.SH EXAMPLE
|
||||||
|
TODO
|
||||||
|
.SH AVAILABILITY
|
||||||
|
Added in 7.10.7
|
||||||
|
.SH RETURN VALUE
|
||||||
|
Returns CURLE_OK if the option is supported, and CURLE_UNKNOWN_OPTION if not.
|
||||||
|
.SH "SEE ALSO"
|
||||||
|
.BR CURLINFO_RESPONSE_CODE "(3), "
|
||||||
|
.BR curl_easy_getinfo "(3), " curl_easy_setopt "(3), "
|
53
docs/libcurl/opts/CURLINFO_LASTSOCKET.3
Normal file
53
docs/libcurl/opts/CURLINFO_LASTSOCKET.3
Normal file
@@ -0,0 +1,53 @@
|
|||||||
|
.\" **************************************************************************
|
||||||
|
.\" * _ _ ____ _
|
||||||
|
.\" * Project ___| | | | _ \| |
|
||||||
|
.\" * / __| | | | |_) | |
|
||||||
|
.\" * | (__| |_| | _ <| |___
|
||||||
|
.\" * \___|\___/|_| \_\_____|
|
||||||
|
.\" *
|
||||||
|
.\" * Copyright (C) 1998 - 2015, 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 CURLINFO_LASTSOCKET 3 "12 Sep 2015" "libcurl 7.44.0" "curl_easy_getinfo options"
|
||||||
|
.SH NAME
|
||||||
|
CURLINFO_LASTSOCKET \- get the last socket used
|
||||||
|
.SH SYNOPSIS
|
||||||
|
#include <curl/curl.h>
|
||||||
|
|
||||||
|
CURLcode curl_easy_getinfo(CURL *handle, CURLINFO_LASTSOCKET, long *socket);
|
||||||
|
.SH DESCRIPTION
|
||||||
|
Deprecated since 7.45.0. Use \fICURLINFO_ACTIVESOCKET(3)\fP instead.
|
||||||
|
|
||||||
|
Pass a pointer to a long to receive the last socket used by this curl
|
||||||
|
session. If the socket is no longer valid, -1 is returned. When you finish
|
||||||
|
working with the socket, you must call curl_easy_cleanup() as usual and let
|
||||||
|
libcurl close the socket and cleanup other resources associated with the
|
||||||
|
handle. This is typically used in combination with
|
||||||
|
\fICURLOPT_CONNECT_ONLY(3)\fP.
|
||||||
|
|
||||||
|
NOTE: this API is deprecated since it is not working on win64 where the SOCKET
|
||||||
|
type is 64 bits large while its 'long' is 32 bits. Use the
|
||||||
|
\fICURLINFO_ACTIVESOCKET(3)\fP instead, if possible.
|
||||||
|
.SH PROTOCOLS
|
||||||
|
All
|
||||||
|
.SH EXAMPLE
|
||||||
|
TODO
|
||||||
|
.SH AVAILABILITY
|
||||||
|
Added in 7.15.2
|
||||||
|
.SH RETURN VALUE
|
||||||
|
Returns CURLE_OK if the option is supported, and CURLE_UNKNOWN_OPTION if not.
|
||||||
|
.SH "SEE ALSO"
|
||||||
|
.BR curl_easy_getinfo "(3), " curl_easy_setopt "(3), "
|
||||||
|
.BR CURLINFO_ACTIVESOCKET "(3), "
|
51
docs/libcurl/opts/CURLINFO_LOCAL_IP.3
Normal file
51
docs/libcurl/opts/CURLINFO_LOCAL_IP.3
Normal file
@@ -0,0 +1,51 @@
|
|||||||
|
.\" **************************************************************************
|
||||||
|
.\" * _ _ ____ _
|
||||||
|
.\" * Project ___| | | | _ \| |
|
||||||
|
.\" * / __| | | | |_) | |
|
||||||
|
.\" * | (__| |_| | _ <| |___
|
||||||
|
.\" * \___|\___/|_| \_\_____|
|
||||||
|
.\" *
|
||||||
|
.\" * Copyright (C) 1998 - 2015, 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 CURLINFO_LOCAL_IP 3 "12 Sep 2015" "libcurl 7.44.0" "curl_easy_getinfo options"
|
||||||
|
.SH NAME
|
||||||
|
CURLINFO_LOCAL_IP \- get local IP address of last connection
|
||||||
|
.SH SYNOPSIS
|
||||||
|
#include <curl/curl.h>
|
||||||
|
|
||||||
|
CURLcode curl_easy_getinfo(CURL *handle, CURLINFO_LOCAL_IP, char **ip);
|
||||||
|
.SH DESCRIPTION
|
||||||
|
Pass a pointer to a char pointer to receive the pointer to a zero-terminated
|
||||||
|
string holding the IP address of the local end of most recent connection done
|
||||||
|
with this \fBcurl\fP handle. This string may be IPv6 when that is
|
||||||
|
enabled. Note that you get a pointer to a memory area that will be re-used at
|
||||||
|
next request so you need to copy the string if you want to keep the
|
||||||
|
information.
|
||||||
|
|
||||||
|
The \fBip\fP pointer will be NULL or pointing to private memory you MUST NOT
|
||||||
|
free - it gets freed when you call \fIcurl_easy_cleanup(3)\fP on the
|
||||||
|
corresponding CURL handle.
|
||||||
|
.SH PROTOCOLS
|
||||||
|
All
|
||||||
|
.SH EXAMPLE
|
||||||
|
TODO
|
||||||
|
.SH AVAILABILITY
|
||||||
|
Added in 7.21.0
|
||||||
|
.SH RETURN VALUE
|
||||||
|
Returns CURLE_OK if the option is supported, and CURLE_UNKNOWN_OPTION if not.
|
||||||
|
.SH "SEE ALSO"
|
||||||
|
.BR curl_easy_getinfo "(3), " curl_easy_setopt "(3), "
|
||||||
|
.BR CURLINFO_PRIMARY_IP "(3), "
|
43
docs/libcurl/opts/CURLINFO_LOCAL_PORT.3
Normal file
43
docs/libcurl/opts/CURLINFO_LOCAL_PORT.3
Normal file
@@ -0,0 +1,43 @@
|
|||||||
|
.\" **************************************************************************
|
||||||
|
.\" * _ _ ____ _
|
||||||
|
.\" * Project ___| | | | _ \| |
|
||||||
|
.\" * / __| | | | |_) | |
|
||||||
|
.\" * | (__| |_| | _ <| |___
|
||||||
|
.\" * \___|\___/|_| \_\_____|
|
||||||
|
.\" *
|
||||||
|
.\" * Copyright (C) 1998 - 2015, 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 CURLINFO_LOCAL_PORT 3 "12 Sep 2015" "libcurl 7.44.0" "curl_easy_getinfo options"
|
||||||
|
.SH NAME
|
||||||
|
CURLINFO_LOCAL_PORT \- get the latest local port number
|
||||||
|
.SH SYNOPSIS
|
||||||
|
#include <curl/curl.h>
|
||||||
|
|
||||||
|
CURLcode curl_easy_getinfo(CURL *handle, CURLINFO_LOCAL_PORT, long *portp);
|
||||||
|
.SH DESCRIPTION
|
||||||
|
Pass a pointer to a long to receive the local port number of the most recent
|
||||||
|
connection done with this \fBcurl\fP handle.
|
||||||
|
.SH PROTOCOLS
|
||||||
|
All
|
||||||
|
.SH EXAMPLE
|
||||||
|
TODO
|
||||||
|
.SH AVAILABILITY
|
||||||
|
Added in 7.21.0
|
||||||
|
.SH RETURN VALUE
|
||||||
|
Returns CURLE_OK if the option is supported, and CURLE_UNKNOWN_OPTION if not.
|
||||||
|
.SH "SEE ALSO"
|
||||||
|
.BR curl_easy_getinfo "(3), " curl_easy_setopt "(3), "
|
||||||
|
.BR CURLINFO_PRIMARY_PORT "(3), " CURLINFO_LOCAL_IP "(3), "
|
44
docs/libcurl/opts/CURLINFO_NAMELOOKUP_TIME.3
Normal file
44
docs/libcurl/opts/CURLINFO_NAMELOOKUP_TIME.3
Normal file
@@ -0,0 +1,44 @@
|
|||||||
|
.\" **************************************************************************
|
||||||
|
.\" * _ _ ____ _
|
||||||
|
.\" * Project ___| | | | _ \| |
|
||||||
|
.\" * / __| | | | |_) | |
|
||||||
|
.\" * | (__| |_| | _ <| |___
|
||||||
|
.\" * \___|\___/|_| \_\_____|
|
||||||
|
.\" *
|
||||||
|
.\" * Copyright (C) 1998 - 2015, 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 CURLINFO_NAMELOOKUP_TIME 3 "28 Aug 2015" "libcurl 7.44.0" "curl_easy_getinfo options"
|
||||||
|
.SH NAME
|
||||||
|
CURLINFO_NAMELOOKUP_TIME \- get the name lookup time
|
||||||
|
.SH SYNOPSIS
|
||||||
|
#include <curl/curl.h>
|
||||||
|
|
||||||
|
CURLcode curl_easy_getinfo(CURL *handle, CURLINFO_NAMELOOKUP_TIME, double *timep);
|
||||||
|
.SH DESCRIPTION
|
||||||
|
Pass a pointer to a double to receive the total time in seconds from the start
|
||||||
|
until the name resolving was completed.
|
||||||
|
|
||||||
|
See also the TIMES overview in the \fIcurl_easy_getinfo(3)\fP man page.
|
||||||
|
.SH PROTOCOLS
|
||||||
|
All
|
||||||
|
.SH EXAMPLE
|
||||||
|
TODO
|
||||||
|
.SH AVAILABILITY
|
||||||
|
Added in 7.4.1
|
||||||
|
.SH RETURN VALUE
|
||||||
|
Returns CURLE_OK if the option is supported, and CURLE_UNKNOWN_OPTION if not.
|
||||||
|
.SH "SEE ALSO"
|
||||||
|
.BR curl_easy_getinfo "(3), " curl_easy_setopt "(3), "
|
46
docs/libcurl/opts/CURLINFO_NUM_CONNECTS.3
Normal file
46
docs/libcurl/opts/CURLINFO_NUM_CONNECTS.3
Normal file
@@ -0,0 +1,46 @@
|
|||||||
|
.\" **************************************************************************
|
||||||
|
.\" * _ _ ____ _
|
||||||
|
.\" * Project ___| | | | _ \| |
|
||||||
|
.\" * / __| | | | |_) | |
|
||||||
|
.\" * | (__| |_| | _ <| |___
|
||||||
|
.\" * \___|\___/|_| \_\_____|
|
||||||
|
.\" *
|
||||||
|
.\" * Copyright (C) 1998 - 2015, 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 CURLINFO_NUM_CONNECTS 3 "12 Sep 2015" "libcurl 7.44.0" "curl_easy_getinfo options"
|
||||||
|
.SH NAME
|
||||||
|
CURLINFO_NUM_CONNECTS \- get number of created connections
|
||||||
|
.SH SYNOPSIS
|
||||||
|
#include <curl/curl.h>
|
||||||
|
|
||||||
|
CURLcode curl_easy_getinfo(CURL *handle, CURLINFO_NUM_CONNECTS, long *nump);
|
||||||
|
.SH DESCRIPTION
|
||||||
|
Pass a pointer to a long to receive how many new connections libcurl had to
|
||||||
|
create to achieve the previous transfer (only the successful connects are
|
||||||
|
counted). Combined with \fICURLINFO_REDIRECT_COUNT(3)\fP you are able to know
|
||||||
|
how many times libcurl successfully reused existing connection(s) or not. See
|
||||||
|
the connection options of \fIcurl_easy_setopt(3)\fP to see how libcurl tries
|
||||||
|
to make persistent connections to save time.
|
||||||
|
.SH PROTOCOLS
|
||||||
|
All
|
||||||
|
.SH EXAMPLE
|
||||||
|
TODO
|
||||||
|
.SH AVAILABILITY
|
||||||
|
Added in 7.12.3
|
||||||
|
.SH RETURN VALUE
|
||||||
|
Returns CURLE_OK if the option is supported, and CURLE_UNKNOWN_OPTION if not.
|
||||||
|
.SH "SEE ALSO"
|
||||||
|
.BR curl_easy_getinfo "(3), " curl_easy_setopt "(3), "
|
43
docs/libcurl/opts/CURLINFO_OS_ERRNO.3
Normal file
43
docs/libcurl/opts/CURLINFO_OS_ERRNO.3
Normal file
@@ -0,0 +1,43 @@
|
|||||||
|
.\" **************************************************************************
|
||||||
|
.\" * _ _ ____ _
|
||||||
|
.\" * Project ___| | | | _ \| |
|
||||||
|
.\" * / __| | | | |_) | |
|
||||||
|
.\" * | (__| |_| | _ <| |___
|
||||||
|
.\" * \___|\___/|_| \_\_____|
|
||||||
|
.\" *
|
||||||
|
.\" * Copyright (C) 1998 - 2015, 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 CURLINFO_OS_ERRNO 3 "1 Sep 2015" "libcurl 7.44.0" "curl_easy_getinfo options"
|
||||||
|
.SH NAME
|
||||||
|
CURLINFO_OS_ERRNO \- get errno number from last connect failure
|
||||||
|
.SH SYNOPSIS
|
||||||
|
#include <curl/curl.h>
|
||||||
|
|
||||||
|
CURLcode curl_easy_getinfo(CURL *handle, CURLINFO_OS_ERRNO, long *errnop);
|
||||||
|
.SH DESCRIPTION
|
||||||
|
Pass a pointer to a long to receive the errno variable from a connect failure.
|
||||||
|
Note that the value is only set on failure, it is not reset upon a successful
|
||||||
|
operation. The number is OS and system specific.
|
||||||
|
.SH PROTOCOLS
|
||||||
|
All
|
||||||
|
.SH EXAMPLE
|
||||||
|
TODO
|
||||||
|
.SH AVAILABILITY
|
||||||
|
Added in 7.12.2
|
||||||
|
.SH RETURN VALUE
|
||||||
|
Returns CURLE_OK if the option is supported, and CURLE_UNKNOWN_OPTION if not.
|
||||||
|
.SH "SEE ALSO"
|
||||||
|
.BR curl_easy_getinfo "(3), " curl_easy_setopt "(3), "
|
47
docs/libcurl/opts/CURLINFO_PRETRANSFER_TIME.3
Normal file
47
docs/libcurl/opts/CURLINFO_PRETRANSFER_TIME.3
Normal file
@@ -0,0 +1,47 @@
|
|||||||
|
.\" **************************************************************************
|
||||||
|
.\" * _ _ ____ _
|
||||||
|
.\" * Project ___| | | | _ \| |
|
||||||
|
.\" * / __| | | | |_) | |
|
||||||
|
.\" * | (__| |_| | _ <| |___
|
||||||
|
.\" * \___|\___/|_| \_\_____|
|
||||||
|
.\" *
|
||||||
|
.\" * Copyright (C) 1998 - 2015, 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 CURLINFO_PRETRANSFER_TIME 3 "28 Aug 2015" "libcurl 7.44.0" "curl_easy_getinfo options"
|
||||||
|
.SH NAME
|
||||||
|
CURLINFO_PRETRANSFER_TIME \- get the time until the file transfer start
|
||||||
|
.SH SYNOPSIS
|
||||||
|
#include <curl/curl.h>
|
||||||
|
|
||||||
|
CURLcode curl_easy_getinfo(CURL *handle, CURLINFO_PRETRANSFER_TIME, double *timep);
|
||||||
|
.SH DESCRIPTION
|
||||||
|
Pass a pointer to a double to receive the time, in seconds, it took from the
|
||||||
|
start until the file transfer is just about to begin. This includes all
|
||||||
|
pre-transfer commands and negotiations that are specific to the particular
|
||||||
|
protocol(s) involved. It does \fInot\fP involve the sending of the protocol-
|
||||||
|
specific request that triggers a transfer.
|
||||||
|
|
||||||
|
See also the TIMES overview in the \fIcurl_easy_getinfo(3)\fP man page.
|
||||||
|
.SH PROTOCOLS
|
||||||
|
All
|
||||||
|
.SH EXAMPLE
|
||||||
|
TODO
|
||||||
|
.SH AVAILABILITY
|
||||||
|
Added in 7.4.1
|
||||||
|
.SH RETURN VALUE
|
||||||
|
Returns CURLE_OK if the option is supported, and CURLE_UNKNOWN_OPTION if not.
|
||||||
|
.SH "SEE ALSO"
|
||||||
|
.BR curl_easy_getinfo "(3), " curl_easy_setopt "(3), "
|
49
docs/libcurl/opts/CURLINFO_PRIMARY_IP.3
Normal file
49
docs/libcurl/opts/CURLINFO_PRIMARY_IP.3
Normal file
@@ -0,0 +1,49 @@
|
|||||||
|
.\" **************************************************************************
|
||||||
|
.\" * _ _ ____ _
|
||||||
|
.\" * Project ___| | | | _ \| |
|
||||||
|
.\" * / __| | | | |_) | |
|
||||||
|
.\" * | (__| |_| | _ <| |___
|
||||||
|
.\" * \___|\___/|_| \_\_____|
|
||||||
|
.\" *
|
||||||
|
.\" * Copyright (C) 1998 - 2015, 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 CURLINFO_PRIMARY_IP 3 "12 Sep 2015" "libcurl 7.44.0" "curl_easy_getinfo options"
|
||||||
|
.SH NAME
|
||||||
|
CURLINFO_PRIMARY_IP \- get IP address of last connection
|
||||||
|
.SH SYNOPSIS
|
||||||
|
#include <curl/curl.h>
|
||||||
|
|
||||||
|
CURLcode curl_easy_getinfo(CURL *handle, CURLINFO_PRIMARY_IP, char **ip);
|
||||||
|
.SH DESCRIPTION
|
||||||
|
Pass a pointer to a char pointer to receive the pointer to a zero-terminated
|
||||||
|
string holding the IP address of the most recent connection done with this
|
||||||
|
\fBcurl\fP handle. This string may be IPv6 when that is enabled. Note that you
|
||||||
|
get a pointer to a memory area that will be re-used at next request so you
|
||||||
|
need to copy the string if you want to keep the information.
|
||||||
|
|
||||||
|
The \fBip\fP pointer will be NULL or pointing to private memory you MUST NOT
|
||||||
|
free - it gets freed when you call \fIcurl_easy_cleanup(3)\fP on the
|
||||||
|
corresponding CURL handle.
|
||||||
|
.SH PROTOCOLS
|
||||||
|
.SH EXAMPLE
|
||||||
|
TODO
|
||||||
|
.SH AVAILABILITY
|
||||||
|
Added in 7.19.0
|
||||||
|
.SH RETURN VALUE
|
||||||
|
Returns CURLE_OK if the option is supported, and CURLE_UNKNOWN_OPTION if not.
|
||||||
|
.SH "SEE ALSO"
|
||||||
|
.BR curl_easy_getinfo "(3), " curl_easy_setopt "(3), "
|
||||||
|
.BR CURLINFO_PRIMARY_PORT "(3), " CURLINFO_LOCAL_IP "(3), "
|
42
docs/libcurl/opts/CURLINFO_PRIMARY_PORT.3
Normal file
42
docs/libcurl/opts/CURLINFO_PRIMARY_PORT.3
Normal file
@@ -0,0 +1,42 @@
|
|||||||
|
.\" **************************************************************************
|
||||||
|
.\" * _ _ ____ _
|
||||||
|
.\" * Project ___| | | | _ \| |
|
||||||
|
.\" * / __| | | | |_) | |
|
||||||
|
.\" * | (__| |_| | _ <| |___
|
||||||
|
.\" * \___|\___/|_| \_\_____|
|
||||||
|
.\" *
|
||||||
|
.\" * Copyright (C) 1998 - 2015, 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 CURLINFO_PRIMARY_PORT 3 "12 Sep 2015" "libcurl 7.44.0" "curl_easy_getinfo options"
|
||||||
|
.SH NAME
|
||||||
|
CURLINFO_PRIMARY_PORT \- get the latest destination port number
|
||||||
|
.SH SYNOPSIS
|
||||||
|
#include <curl/curl.h>
|
||||||
|
|
||||||
|
CURLcode curl_easy_getinfo(CURL *handle, CURLINFO_PRIMARY_PORT, long *portp);
|
||||||
|
.SH DESCRIPTION
|
||||||
|
Pass a pointer to a long to receive the destination port of the most recent
|
||||||
|
connection done with this \fBcurl\fP handle.
|
||||||
|
.SH PROTOCOLS
|
||||||
|
All
|
||||||
|
.SH EXAMPLE
|
||||||
|
TODO
|
||||||
|
.SH AVAILABILITY
|
||||||
|
Added in 7.21.0
|
||||||
|
.SH RETURN VALUE
|
||||||
|
Returns CURLE_OK if the option is supported, and CURLE_UNKNOWN_OPTION if not.
|
||||||
|
.SH "SEE ALSO"
|
||||||
|
.BR curl_easy_getinfo "(3), " curl_easy_setopt "(3), "
|
45
docs/libcurl/opts/CURLINFO_PRIVATE.3
Normal file
45
docs/libcurl/opts/CURLINFO_PRIVATE.3
Normal file
@@ -0,0 +1,45 @@
|
|||||||
|
.\" **************************************************************************
|
||||||
|
.\" * _ _ ____ _
|
||||||
|
.\" * Project ___| | | | _ \| |
|
||||||
|
.\" * / __| | | | |_) | |
|
||||||
|
.\" * | (__| |_| | _ <| |___
|
||||||
|
.\" * \___|\___/|_| \_\_____|
|
||||||
|
.\" *
|
||||||
|
.\" * Copyright (C) 1998 - 2015, 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 CURLINFO_PRIVATE 3 "1 Sep 2015" "libcurl 7.44.0" "curl_easy_getinfo options"
|
||||||
|
.SH NAME
|
||||||
|
CURLINFO_PRIVATE \- get the private pointer
|
||||||
|
.SH SYNOPSIS
|
||||||
|
#include <curl/curl.h>
|
||||||
|
|
||||||
|
CURLcode curl_easy_getinfo(CURL *handle, CURLINFO_PRIVATE, char **private);
|
||||||
|
.SH DESCRIPTION
|
||||||
|
Pass a pointer to a char pointer to receive the pointer to the private data
|
||||||
|
associated with the curl handle (set with the \fICURLOPT_PRIVATE(3)\fP).
|
||||||
|
Please note that for internal reasons, the value is returned as a char
|
||||||
|
pointer, although effectively being a 'void *'.
|
||||||
|
.SH PROTOCOLS
|
||||||
|
All
|
||||||
|
.SH EXAMPLE
|
||||||
|
TODO
|
||||||
|
.SH AVAILABILITY
|
||||||
|
Added in 7.10.3
|
||||||
|
.SH RETURN VALUE
|
||||||
|
Returns CURLE_OK if the option is supported, and CURLE_UNKNOWN_OPTION if not.
|
||||||
|
.SH "SEE ALSO"
|
||||||
|
.BR curl_easy_getinfo "(3), " curl_easy_setopt "(3), "
|
||||||
|
.BR CURLOPT_PRIVATE "(3), "
|
44
docs/libcurl/opts/CURLINFO_PROXYAUTH_AVAIL.3
Normal file
44
docs/libcurl/opts/CURLINFO_PROXYAUTH_AVAIL.3
Normal file
@@ -0,0 +1,44 @@
|
|||||||
|
.\" **************************************************************************
|
||||||
|
.\" * _ _ ____ _
|
||||||
|
.\" * Project ___| | | | _ \| |
|
||||||
|
.\" * / __| | | | |_) | |
|
||||||
|
.\" * | (__| |_| | _ <| |___
|
||||||
|
.\" * \___|\___/|_| \_\_____|
|
||||||
|
.\" *
|
||||||
|
.\" * Copyright (C) 1998 - 2015, 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 CURLINFO_PROXYAUTH_AVAIL 3 "12 Sep 2015" "libcurl 7.44.0" "curl_easy_getinfo options"
|
||||||
|
.SH NAME
|
||||||
|
CURLINFO_PROXYAUTH_AVAIL \- get available HTTP proxy authentication methods
|
||||||
|
.SH SYNOPSIS
|
||||||
|
#include <curl/curl.h>
|
||||||
|
|
||||||
|
CURLcode curl_easy_getinfo(CURL *handle, CURLINFO_PROXYAUTH_AVAIL, long *authp);
|
||||||
|
.SH DESCRIPTION
|
||||||
|
Pass a pointer to a long to receive a bitmask indicating the authentication
|
||||||
|
method(s) available according to the previous response. The meaning of the
|
||||||
|
bits is explained in the \fICURLOPT_PROXYAUTH(3)\fP option for
|
||||||
|
\fIcurl_easy_setopt(3)\fP.
|
||||||
|
.SH PROTOCOLS
|
||||||
|
HTTP(S)
|
||||||
|
.SH EXAMPLE
|
||||||
|
TODO
|
||||||
|
.SH AVAILABILITY
|
||||||
|
Added in 7.10.8
|
||||||
|
.SH RETURN VALUE
|
||||||
|
Returns CURLE_OK if the option is supported, and CURLE_UNKNOWN_OPTION if not.
|
||||||
|
.SH "SEE ALSO"
|
||||||
|
.BR curl_easy_getinfo "(3), " curl_easy_setopt "(3), "
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user