Compare commits
	
		
			661 Commits
		
	
	
		
			curl-7_40_
			...
			http2-push
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
|   | f87a3d736f | ||
|   | f44b803f16 | ||
|   | 6842afbf44 | ||
|   | ea1eec8ea8 | ||
|   | 570076e82c | ||
|   | ef0fdb83b8 | ||
|   | 1c3811f4fd | ||
|   | afbee791d5 | ||
|   | 2546134b97 | ||
|   | 93aacc3050 | ||
|   | 307f212379 | ||
|   | 26ddc536b0 | ||
|   | 0e7d76d6a8 | ||
|   | 26583a62ab | ||
|   | cf6ef2dc92 | ||
|   | 3b93f1a3ec | ||
|   | 46d0eba2e9 | ||
|   | 4a2398627c | ||
|   | b88f980a74 | ||
|   | 85739723ba | ||
|   | f72b30e6fb | ||
|   | 52d83cb0c6 | ||
|   | 38e07886ed | ||
|   | bdf89d80ca | ||
|   | 24a8359b25 | ||
|   | 24f0b6ebf7 | ||
|   | 50c7f17e50 | ||
|   | 3e7ec1e849 | ||
|   | 28f4fc5272 | ||
|   | 45f21e0f37 | ||
|   | f93da27756 | ||
|   | f29f2cbd00 | ||
|   | 4fd187c677 | ||
|   | 496e96c242 | ||
|   | bb5b29ec14 | ||
|   | 75ba107767 | ||
|   | b430cb2a58 | ||
|   | 99eafc49bb | ||
|   | 45bad4ac97 | ||
|   | f3288196ff | ||
|   | ff7097f72c | ||
|   | 55fc47a401 | ||
|   | d186be9510 | ||
|   | 878c5757c0 | ||
|   | dd39a67101 | ||
|   | da08a204c2 | ||
|   | a9ed0fd6cb | ||
|   | a3e5a4371b | ||
|   | 4a7feea31a | ||
|   | 8d0d688296 | ||
|   | a5fb9151ee | ||
|   | f348b2d3bc | ||
|   | 1514f3506b | ||
|   | 55f3eb588d | ||
|   | bf5218c85e | ||
|   | cbf2920d02 | ||
|   | 0fcfe4d7ac | ||
|   | 20ac345806 | ||
|   | eaeeed2e8f | ||
|   | 56b7663f73 | ||
|   | 025dbe46df | ||
|   | 1a8926d12f | ||
|   | b8673bb9f0 | ||
|   | c2cc3a5e97 | ||
|   | aa4e3c6438 | ||
|   | d712e22b56 | ||
|   | f649411a1c | ||
|   | 8f4791440a | ||
|   | 6befade68f | ||
|   | 3587da9e7c | ||
|   | 1ce14037c0 | ||
|   | 30bd59ba6e | ||
|   | ccfdd5986c | ||
|   | fc16d9cec8 | ||
|   | 7c17b58eec | ||
|   | 3013bb6b1c | ||
|   | 001ab7d860 | ||
|   | 59432503c0 | ||
|   | cb5d4b1389 | ||
|   | 3174c940b5 | ||
|   | 2b3860d1d6 | ||
|   | 0a9f285140 | ||
|   | af3d76ccf9 | ||
|   | 952b745c98 | ||
|   | 21784936e1 | ||
|   | 352fbceef3 | ||
|   | 19d5bcd66a | ||
|   | f6af9aef7e | ||
|   | 46a050e9f5 | ||
|   | 3cac8c9049 | ||
|   | 33ee411848 | ||
|   | 3bbcb4b036 | ||
|   | e8423f9ce1 | ||
|   | 9f5dcab83d | ||
|   | 41db5aed7a | ||
|   | 4bb815a32e | ||
|   | 4e7c3c12d3 | ||
|   | 9a0a16a61c | ||
|   | 2f1eae0f27 | ||
|   | 3628a90852 | ||
|   | a8904b39f3 | ||
|   | 8a7c1c76b3 | ||
|   | f348a6b4ab | ||
|   | d1b1d782f5 | ||
|   | e57f08863a | ||
|   | 44fe4b9029 | ||
|   | 9972666b47 | ||
|   | c005790ff1 | ||
|   | 49a6642f01 | ||
|   | f81d356c21 | ||
|   | b18a1654c1 | ||
|   | 02dfc930b5 | ||
|   | 96c0164b88 | ||
|   | 4bef1c7bf4 | ||
|   | 4a79475b13 | ||
|   | b6e3da5f08 | ||
|   | 28cdc0d82c | ||
|   | 3a973517a9 | ||
|   | f9f22b0d63 | ||
|   | ef02da3156 | ||
|   | e582cd16ff | ||
|   | 1514977bcd | ||
|   | fda0e74c22 | ||
|   | 03e2a9b023 | ||
|   | 817323ed82 | ||
|   | 42ed88e70a | ||
|   | 84d811f6af | ||
|   | d04bab8873 | ||
|   | 640f283bbb | ||
|   | 995c6006fe | ||
|   | 78ac944dc2 | ||
|   | ee04c20b74 | ||
|   | 126e7f7253 | ||
|   | b0143a2a33 | ||
|   | 6a688976f0 | ||
|   | c175d184a2 | ||
|   | d5aab55b33 | ||
|   | 0f6f7c100a | ||
|   | db979fea73 | ||
|   | a393d64456 | ||
|   | 265f83a9f0 | ||
|   | 301ba7772c | ||
|   | 00a770b3f5 | ||
|   | dd23c49546 | ||
|   | 3d38a38012 | ||
|   | d4313b1f01 | ||
|   | 7da064fdd2 | ||
|   | 897a7b3a13 | ||
|   | 155b1f5df9 | ||
|   | 979670988a | ||
|   | 0b26b94bdc | ||
|   | 4883f7019d | ||
|   | 39b9bf60d1 | ||
|   | d69eee0964 | ||
|   | 7ff7e45405 | ||
|   | 4ac6cc3ebd | ||
|   | 077f12b0ae | ||
|   | d6f1c74330 | ||
|   | 7d0df07e48 | ||
|   | 811443754a | ||
|   | df3a970cb4 | ||
|   | 193251794a | ||
|   | 8b38fcf2f6 | ||
|   | 5871affc7a | ||
|   | 3e8a5d88a5 | ||
|   | 522ca8c035 | ||
|   | a66ed407d2 | ||
|   | 61a94d6f77 | ||
|   | 56c362b1a7 | ||
|   | 72105ebf05 | ||
|   | 38bd6bf0bb | ||
|   | be4c8fd1ef | ||
|   | 783b3c7b42 | ||
|   | 02ec1ced9b | ||
|   | 2ce2f03007 | ||
|   | d722138f29 | ||
|   | 0dc0de0351 | ||
|   | d261652d42 | ||
|   | 74a4bd5ecd | ||
|   | 591a6933da | ||
|   | e91aedd840 | ||
|   | ee3ad233a2 | ||
|   | 70b5b698b0 | ||
|   | a28734be09 | ||
|   | 5252f13dfa | ||
|   | 153f940198 | ||
|   | f4b8b39881 | ||
|   | 01e1bdb10c | ||
|   | 7bbac214f5 | ||
|   | 84c6b6561f | ||
|   | 2c238ea1fc | ||
|   | 5fe71975e4 | ||
|   | 77f1029ecd | ||
|   | 7957d2eb92 | ||
|   | 47caff7bdf | ||
|   | d6440d7366 | ||
|   | f858624052 | ||
|   | 6e6b02f398 | ||
|   | 5fa82ca56f | ||
|   | 1c01cee601 | ||
|   | 750d678c0e | ||
|   | a6af3df660 | ||
|   | 2a746f6c28 | ||
|   | fd137786e5 | ||
|   | b419e7ae0c | ||
|   | d37e0160c2 | ||
|   | 640296c95d | ||
|   | c4d6f9163a | ||
|   | c720cd6356 | ||
|   | 3377e692ee | ||
|   | 5bf472fd39 | ||
|   | 8936a23f51 | ||
|   | f010f3e3ca | ||
|   | 33058a1dc3 | ||
|   | 9fcc297ff3 | ||
|   | 8a35211f3e | ||
|   | fa08362a5f | ||
|   | a5e09e9eea | ||
|   | 86bc654532 | ||
|   | 690317aae2 | ||
|   | 3c104448d6 | ||
|   | ae8387b91c | ||
|   | d93619ca5d | ||
|   | aa99a63f03 | ||
|   | 4bb8bad964 | ||
|   | b6c9f5b7ae | ||
|   | 4335b86a10 | ||
|   | 3f88d92e92 | ||
|   | 32606e4f0b | ||
|   | 693422b79b | ||
|   | 6a61285909 | ||
|   | 4271695122 | ||
|   | b23fda76c1 | ||
|   | 926cb9ff65 | ||
|   | 55db5bdff7 | ||
|   | 790d1a4816 | ||
|   | 1c0f70f534 | ||
|   | cd39b944af | ||
|   | 6ba2e88a64 | ||
|   | 1f8a337e41 | ||
|   | b2ea1bfcd6 | ||
|   | 0741271198 | ||
|   | 97c272e5d1 | ||
|   | 54c394699d | ||
|   | 09a31fabe4 | ||
|   | d4f62f6c5d | ||
|   | 1945f99d59 | ||
|   | b55cb2eef2 | ||
|   | c0700e3c7f | ||
|   | 92e754de78 | ||
|   | 9a91e8059b | ||
|   | 3447c973d0 | ||
|   | cae43a10cb | ||
|   | aa8f613e98 | ||
|   | aff153f83a | ||
|   | 59f3f92ba6 | ||
|   | 6a7261359b | ||
|   | f1e0a0aae7 | ||
|   | 047e6aa05c | ||
|   | 48be87e5f0 | ||
|   | 49726926c6 | ||
|   | 710a2e99b5 | ||
|   | 79478fdb68 | ||
|   | 81e25b0e25 | ||
|   | 0675abbc75 | ||
|   | 26cbd7a1d9 | ||
|   | ba4741842e | ||
|   | 27ace9893c | ||
|   | 85c45d153b | ||
|   | fd9d3a1ef1 | ||
|   | d409f094a5 | ||
|   | b47c17d67c | ||
|   | 1fd33e3ec8 | ||
|   | 22691f849a | ||
|   | 00e01fc0a7 | ||
|   | aadda65f5e | ||
|   | 7166fd8a60 | ||
|   | 79b9d5f1a4 | ||
|   | 0583e87ada | ||
|   | b5f947b8ac | ||
|   | 31be461c6b | ||
|   | 6088fbce06 | ||
|   | cf2d21d86f | ||
|   | 875a6d9324 | ||
|   | 1b8f9c95b6 | ||
|   | 9d704b3df9 | ||
|   | cc0e7ebc3b | ||
|   | 3a87bdebd1 | ||
|   | 63c64e05a4 | ||
|   | 1e6d0e06f7 | ||
|   | b6e477890f | ||
|   | 2eb02480ef | ||
|   | f70112522f | ||
|   | 8dc3bbf0f8 | ||
|   | 67a8bbb51a | ||
|   | 691a07dac6 | ||
|   | 05e4137d31 | ||
|   | 82805b56b9 | ||
|   | 1ba6e4c88e | ||
|   | 8f78794fd5 | ||
|   | 0cbbbbdc31 | ||
|   | 78843afb9f | ||
|   | ad48b177c3 | ||
|   | 9430dd583e | ||
|   | 8df4b5af3f | ||
|   | a471a9f3b6 | ||
|   | 27ac643455 | ||
|   | b3175a767d | ||
|   | 58b0a8b059 | ||
|   | 9e7125a1db | ||
|   | 7fe172d3b2 | ||
|   | 72bea7cc65 | ||
|   | 139141f8d7 | ||
|   | e44155156a | ||
|   | 992a731116 | ||
|   | 261a0fedcf | ||
|   | f251417d85 | ||
|   | a9e46749b2 | ||
|   | c3101ae287 | ||
|   | d363c07912 | ||
|   | a30be951d6 | ||
|   | f2a0b2164a | ||
|   | 81ee1e69fe | ||
|   | 846f492053 | ||
|   | b4be97fb67 | ||
|   | 0db831976e | ||
|   | 369430cd17 | ||
|   | abf6bddc14 | ||
|   | f203edc544 | ||
|   | e2a9ebb321 | ||
|   | 0b5efa57ad | ||
|   | 21e82bd635 | ||
|   | 2685041a5c | ||
|   | b121633402 | ||
|   | c84f0250e3 | ||
|   | 049fe7fb53 | ||
|   | 6419aee248 | ||
|   | 5b66860652 | ||
|   | 787c2ae91b | ||
|   | 31987c340e | ||
|   | fcdc597b1a | ||
|   | 623d24f3ee | ||
|   | ae3c985060 | ||
|   | 9a743bc5fc | ||
|   | d2feb71752 | ||
|   | 211f1e3c6b | ||
|   | dab4ff179f | ||
|   | e7a289ebb9 | ||
|   | 488102fc17 | ||
|   | 559e2cc921 | ||
|   | 318ad8d767 | ||
|   | 83835f7185 | ||
|   | eb2a6180fb | ||
|   | 7b223a3a21 | ||
|   | 5b58bface3 | ||
|   | 83b29e43cd | ||
|   | 24908c12d7 | ||
|   | 4e299192ed | ||
|   | e35f2e61ec | ||
|   | d29f8b460c | ||
|   | ec31962640 | ||
|   | aa5808b504 | ||
|   | a45146868b | ||
|   | 35648f2e79 | ||
|   | ac2827ac09 | ||
|   | bd9ac3cff2 | ||
|   | 7e6ca87a72 | ||
|   | 9edf28e12d | ||
|   | bbd0dd3fe2 | ||
|   | e438a9e2f0 | ||
|   | 56ae66d518 | ||
|   | ff4a4dd92e | ||
|   | ab6e6edb9e | ||
|   | f687860936 | ||
|   | 5d23279299 | ||
|   | ecc4940df2 | ||
|   | 4b02b84897 | ||
|   | 145c4692ff | ||
|   | 430006c5e2 | ||
|   | 148207e2d7 | ||
|   | 7f5a170442 | ||
|   | ed429b72d7 | ||
|   | fea13a17d8 | ||
|   | 5f6f9e8b59 | ||
|   | f9251a5c86 | ||
|   | 38c304a58f | ||
|   | 9cd4d6518f | ||
|   | e6917d3b77 | ||
|   | 57dc2f7e40 | ||
|   | b734518371 | ||
|   | 61ff197a27 | ||
|   | 6779c50e26 | ||
|   | 1f651d1d4d | ||
|   | 185914fd31 | ||
|   | 4dcd25e138 | ||
|   | a332922a52 | ||
|   | 8854f8d45a | ||
|   | 9e8f9dbdd3 | ||
|   | 620e0b23c8 | ||
|   | 2b7ac4e710 | ||
|   | 7868dc7103 | ||
|   | abfab1786e | ||
|   | 9e66d3f4d3 | ||
|   | 1977ff811d | ||
|   | 8ecfaad2cc | ||
|   | 431c5261d2 | ||
|   | d260a0aeeb | ||
|   | e3fbdc7c8a | ||
|   | 28de58504e | ||
|   | 7e16aa936f | ||
|   | e539f01567 | ||
|   | 252e9acd50 | ||
|   | 4d6e079dd2 | ||
|   | ef1c3b4648 | ||
|   | 2dc1a5ce93 | ||
|   | 0037eb5805 | ||
|   | 9395999543 | ||
|   | a6b8fe2a5f | ||
|   | 3dbe12a1e9 | ||
|   | 40914fd544 | ||
|   | 8c41f368f5 | ||
|   | 6105029b23 | ||
|   | 9c518a7d95 | ||
|   | 8644a88202 | ||
|   | 76afe14584 | ||
|   | fe02d132e2 | ||
|   | 0f4a03cbb6 | ||
|   | 9e661601fe | ||
|   | 29c655c0a6 | ||
|   | 059b3a5770 | ||
|   | 918e040953 | ||
|   | 9063a7f853 | ||
|   | 851c29269b | ||
|   | 0cf649d9cc | ||
|   | 0911b96399 | ||
|   | 983ccdcead | ||
|   | 186e46d88d | ||
|   | 0d1060f21e | ||
|   | 6d3260af64 | ||
|   | 1d3f1a80d0 | ||
|   | a5d994941c | ||
|   | 143acd6222 | ||
|   | 852d35b6ea | ||
|   | f39b1c0801 | ||
|   | e424a1b3e7 | ||
|   | fa895f2aa2 | ||
|   | a6a264ef2c | ||
|   | 3a757fddbb | ||
|   | d9973eaeb8 | ||
|   | 5a1614cecd | ||
|   | 0f24df6e54 | ||
|   | e662ddff49 | ||
|   | c19349951d | ||
|   | 9da14a96ab | ||
|   | 00ea0e7db0 | ||
|   | df28af8f39 | ||
|   | 44ffe27056 | ||
|   | adb4e41a1a | ||
|   | 42bc45be8e | ||
|   | 870a67e01f | ||
|   | 2e9494b15d | ||
|   | 3ac3331e14 | ||
|   | 163d29826d | ||
|   | 042526c19f | ||
|   | 9fa1abe9fe | ||
|   | 492dfca65d | ||
|   | 64736dd1be | ||
|   | 709cf76f6b | ||
|   | 1a62b6e68c | ||
|   | ae8235571f | ||
|   | ac4d08b5e2 | ||
|   | 6bba85d500 | ||
|   | 8aabbf5f8c | ||
|   | dcf23b0cfe | ||
|   | af838b7d7b | ||
|   | 43eb8b2874 | ||
|   | df5578a7a3 | ||
|   | f2108ec34c | ||
|   | a318e04419 | ||
|   | 1cb227c1f1 | ||
|   | f3f7d37c1d | ||
|   | ca04681c3b | ||
|   | e349a1bf74 | ||
|   | 70523c690b | ||
|   | 17abfd5a4b | ||
|   | f6864697c3 | ||
|   | 921d195187 | ||
|   | 48b5374e65 | ||
|   | c715fa0b60 | ||
|   | adf27bf60f | ||
|   | e71bcb659c | ||
|   | 0d04e859e1 | ||
|   | bc3a44aebc | ||
|   | 1514b718e3 | ||
|   | b9c190ba77 | ||
|   | e47b8306db | ||
|   | 4909f7c795 | ||
|   | 7a1538d9cc | ||
|   | 0409a7d969 | ||
|   | becff7da56 | ||
|   | 4aa9bb6b13 | ||
|   | ff837422ee | ||
|   | 2e880e29bf | ||
|   | ffc2aeec6e | ||
|   | b3bcdaf01a | ||
|   | 03fa576833 | ||
|   | 0c050662b7 | ||
|   | da39f380a4 | ||
|   | e08a12dab1 | ||
|   | 92835ca5d8 | ||
|   | 5d87b1f22c | ||
|   | 5e4395eab8 | ||
|   | 689061e3f2 | ||
|   | 90314100e0 | ||
|   | 20112ed846 | ||
|   | 63b4b8c7bd | ||
|   | 633b3895d7 | ||
|   | b723ec9905 | ||
|   | ec80b1f414 | ||
|   | 676ac46ff5 | ||
|   | 31c8f8ac11 | ||
|   | b1c7fc050b | ||
|   | fce3f8f487 | ||
|   | 6f89f86c3d | ||
|   | 49655a6822 | ||
|   | 1385199e80 | ||
|   | aba2c4dca2 | ||
|   | c1878e8f52 | ||
|   | ab85ac5eda | ||
|   | d771b44e53 | ||
|   | 7eebf9a3fb | ||
|   | 20c727ec4c | ||
|   | 9956ef2d33 | ||
|   | 0daf1ef729 | ||
|   | 499024d208 | ||
|   | 761d5166af | ||
|   | 05792d6936 | ||
|   | 2a15e594ef | ||
|   | d557da5d79 | ||
|   | 600ccb2237 | ||
|   | 45b9b62de4 | ||
|   | d37b58274d | ||
|   | 0d41c3e46b | ||
|   | 57d6d253a1 | ||
|   | 7f1d76f7ee | ||
|   | 211d5329f4 | ||
|   | cfc6d460cb | ||
|   | 0ebe2c15d1 | ||
|   | 28c9e1edf4 | ||
|   | b3cbf4500d | ||
|   | 83bb07027d | ||
|   | 6b68aa989c | ||
|   | 8f027aa0bf | ||
|   | ac100f1624 | ||
|   | f91a7bc992 | ||
|   | 859a82a85c | ||
|   | 8f369c53cf | ||
|   | 6f494c5e34 | ||
|   | 0a7182f6ad | ||
|   | ae9963776a | ||
|   | 7b5348415f | ||
|   | c49e228916 | ||
|   | 957fcd9049 | ||
|   | f826bf37ea | ||
|   | 564b7b6dd0 | ||
|   | ca51ac4017 | ||
|   | 4161624e94 | ||
|   | 04f246f8c7 | ||
|   | 8ca3b05624 | ||
|   | 6fdc8651bd | ||
|   | 8cc70db2db | ||
|   | c469369b86 | ||
|   | 58e39b4da5 | ||
|   | 300876a7a6 | ||
|   | ef782d726e | ||
|   | 26d4e0ad4e | ||
|   | e3558a551b | ||
|   | 595a66ce0f | ||
|   | 3cc9e9383b | ||
|   | 9d964e5477 | ||
|   | 153e9c0278 | ||
|   | 980ba2202c | ||
|   | 7b2012f262 | ||
|   | ed9a4b9fc4 | ||
|   | fe79f20957 | ||
|   | 0d24f64473 | ||
|   | e1bb13c09f | ||
|   | a268a804b7 | ||
|   | 5691325440 | ||
|   | db6bcbd83f | ||
|   | 37824498a3 | ||
|   | 23c6f0a344 | ||
|   | d1cf5d5706 | ||
|   | e888e30476 | ||
|   | 3d5648f9ee | ||
|   | 12e45b8462 | ||
|   | c260c9fad3 | ||
|   | 731e6a6662 | ||
|   | eb748f159a | ||
|   | d6c4695dcd | ||
|   | 261208d432 | ||
|   | 795f013006 | ||
|   | 71f8fdee81 | ||
|   | 6005b0d99c | ||
|   | 7a8b2885e2 | ||
|   | 79543caf90 | ||
|   | e1ea18f90e | ||
|   | 5f09cbcdbd | ||
|   | 960b04e137 | ||
|   | 089783c838 | ||
|   | be57f689b0 | ||
|   | fca58f6212 | ||
|   | 2cc571f9e3 | ||
|   | 1cbc8fd3d1 | ||
|   | 9c4fa400cf | ||
|   | b9fd757d03 | ||
|   | 3a9419f65a | ||
|   | 1d25acb038 | ||
|   | 5d5c78b47f | ||
|   | 8bb3443a21 | ||
|   | 30ef1a0779 | ||
|   | 81b98dafa1 | ||
|   | 47438daa60 | ||
|   | 36e6404228 | ||
|   | 930be07067 | ||
|   | 30eb6bbdc9 | ||
|   | a2f8887b79 | ||
|   | b2c01f02d5 | ||
|   | c807ce73ed | ||
|   | af8928a23b | ||
|   | 14a6cfaddb | ||
|   | 0b1f37e77c | ||
|   | a4065ebf1c | ||
|   | bd0c3b3c66 | ||
|   | f46c6fbee0 | ||
|   | f13669a375 | ||
|   | 3af90a6e19 | ||
|   | 5e113a18c5 | ||
|   | 5940e06f01 | ||
|   | 5c73cdef62 | ||
|   | 251a349055 | ||
|   | 5f09947d28 | ||
|   | 224cf1c274 | ||
|   | bb12d44471 | ||
|   | bcf07f8a4b | ||
|   | cc28bc472e | ||
|   | e9834808e9 | ||
|   | 710c38d7a4 | ||
|   | d21b66835f | ||
|   | 4e58589b0e | ||
|   | e6b4b4b66d | ||
|   | 355bf01c82 | ||
|   | b4f13a4952 | ||
|   | 99e71e6a84 | ||
|   | 9a452ba3a1 | ||
|   | 659d252b6f | ||
|   | c712fe01a9 | ||
|   | 5c0e66d632 | ||
|   | acc8089bc2 | ||
|   | 34636fa47e | ||
|   | 003076e17c | 
							
								
								
									
										3
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										3
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							| @@ -46,3 +46,6 @@ CHANGES.dist | |||||||
| .cproject | .cproject | ||||||
| .settings | .settings | ||||||
| .dirstamp | .dirstamp | ||||||
|  | test-driver | ||||||
|  | /build/ | ||||||
|  | /builds/ | ||||||
|   | |||||||
| @@ -3,6 +3,8 @@ language: c | |||||||
| before_script: | before_script: | ||||||
|   - ./buildconf |   - ./buildconf | ||||||
|  |  | ||||||
|  | script: ./configure --enable-debug && make && make test-full | ||||||
|  |  | ||||||
| compiler: | compiler: | ||||||
|   - clang |   - clang | ||||||
|   - gcc |   - gcc | ||||||
|   | |||||||
| @@ -155,7 +155,7 @@ message(STATUS "LDFLAGS: ${_GSS_LIB_FLAGS}") | |||||||
|                 set(GSS_FLAVOUR "MIT") |                 set(GSS_FLAVOUR "MIT") | ||||||
|             else() |             else() | ||||||
|                 # prevent compiling the header - just check if we can include it |                 # prevent compiling the header - just check if we can include it | ||||||
|                 set(CMAKE_REQUIRED_DEFINITIONS "-D__ROKEN_H__") |                 set(CMAKE_REQUIRED_DEFINITIONS "${CMAKE_REQUIRED_DEFINITIONS} -D__ROKEN_H__") | ||||||
|                 check_include_file( "roken.h" _GSS_HAVE_ROKEN_H) |                 check_include_file( "roken.h" _GSS_HAVE_ROKEN_H) | ||||||
|  |  | ||||||
|                 check_include_file( "heimdal/roken.h" _GSS_HAVE_HEIMDAL_ROKEN_H) |                 check_include_file( "heimdal/roken.h" _GSS_HAVE_HEIMDAL_ROKEN_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 | ||||||
| @@ -76,6 +76,24 @@ option(BUILD_CURL_TESTS "Set to ON to build cURL tests." ON) | |||||||
| option(CURL_STATICLIB "Set to ON to build libcurl with static linking." OFF) | option(CURL_STATICLIB "Set to ON to build libcurl with static linking." OFF) | ||||||
| option(ENABLE_ARES "Set to ON to enable c-ares support" OFF) | option(ENABLE_ARES "Set to ON to enable c-ares support" OFF) | ||||||
| option(ENABLE_THREADED_RESOLVER "Set to ON to enable POSIX threaded DNS lookup" OFF) | option(ENABLE_THREADED_RESOLVER "Set to ON to enable POSIX threaded DNS lookup" OFF) | ||||||
|  |  | ||||||
|  | option(ENABLE_DEBUG "Set to ON to enable curl debug features" OFF) | ||||||
|  | option(ENABLE_CURLDEBUG "Set to ON to build with TrackMemory feature enabled" OFF) | ||||||
|  |  | ||||||
|  | if (ENABLE_DEBUG) | ||||||
|  |   # DEBUGBUILD will be defined only for Debug builds | ||||||
|  |   if(NOT CMAKE_VERSION VERSION_LESS 3.0) | ||||||
|  |     set_property(DIRECTORY APPEND PROPERTY COMPILE_DEFINITIONS $<$<CONFIG:Debug>:DEBUGBUILD>) | ||||||
|  |   else() | ||||||
|  |     set_property(DIRECTORY APPEND PROPERTY COMPILE_DEFINITIONS_DEBUG DEBUGBUILD) | ||||||
|  |   endif() | ||||||
|  |   set(ENABLE_CURLDEBUG ON) | ||||||
|  | endif() | ||||||
|  |  | ||||||
|  | if (ENABLE_CURLDEBUG) | ||||||
|  |   set_property(DIRECTORY APPEND PROPERTY COMPILE_DEFINITIONS CURLDEBUG) | ||||||
|  | endif() | ||||||
|  |  | ||||||
| # initialize CURL_LIBS | # initialize CURL_LIBS | ||||||
| set(CURL_LIBS "") | set(CURL_LIBS "") | ||||||
|  |  | ||||||
| @@ -238,6 +256,7 @@ include (CheckCSourceCompiles) | |||||||
|  |  | ||||||
| # On windows preload settings | # On windows preload settings | ||||||
| if(WIN32) | if(WIN32) | ||||||
|  |   set(CMAKE_REQUIRED_DEFINITIONS "${CMAKE_REQUIRED_DEFINITIONS} -D_WINSOCKAPI_") | ||||||
|   include(${CMAKE_CURRENT_SOURCE_DIR}/CMake/Platforms/WindowsCache.cmake) |   include(${CMAKE_CURRENT_SOURCE_DIR}/CMake/Platforms/WindowsCache.cmake) | ||||||
| endif(WIN32) | endif(WIN32) | ||||||
|  |  | ||||||
| @@ -279,7 +298,6 @@ endif() | |||||||
| option(CMAKE_USE_OPENSSL "Use OpenSSL code. Experimental" ON) | option(CMAKE_USE_OPENSSL "Use OpenSSL code. Experimental" ON) | ||||||
| mark_as_advanced(CMAKE_USE_OPENSSL) | mark_as_advanced(CMAKE_USE_OPENSSL) | ||||||
|  |  | ||||||
| set(USE_SSLEAY OFF) |  | ||||||
| set(USE_OPENSSL OFF) | set(USE_OPENSSL OFF) | ||||||
| set(HAVE_LIBCRYPTO OFF) | set(HAVE_LIBCRYPTO OFF) | ||||||
| set(HAVE_LIBSSL OFF) | set(HAVE_LIBSSL OFF) | ||||||
| @@ -288,32 +306,31 @@ if(CMAKE_USE_OPENSSL) | |||||||
|   find_package(OpenSSL) |   find_package(OpenSSL) | ||||||
|   if(OPENSSL_FOUND) |   if(OPENSSL_FOUND) | ||||||
|     list(APPEND CURL_LIBS ${OPENSSL_LIBRARIES}) |     list(APPEND CURL_LIBS ${OPENSSL_LIBRARIES}) | ||||||
|     set(USE_SSLEAY ON) |  | ||||||
|     set(USE_OPENSSL ON) |     set(USE_OPENSSL ON) | ||||||
|     set(HAVE_LIBCRYPTO ON) |     set(HAVE_LIBCRYPTO ON) | ||||||
|     set(HAVE_LIBSSL ON) |     set(HAVE_LIBSSL ON) | ||||||
|     include_directories(${OPENSSL_INCLUDE_DIR}) |     include_directories(${OPENSSL_INCLUDE_DIR}) | ||||||
|     set(CMAKE_REQUIRED_INCLUDES ${OPENSSL_INCLUDE_DIR}) |     set(CMAKE_REQUIRED_INCLUDES ${OPENSSL_INCLUDE_DIR}) | ||||||
|     check_include_file_concat("openssl/crypto.h" HAVE_OPENSSL_CRYPTO_H) |     check_include_file("openssl/crypto.h" HAVE_OPENSSL_CRYPTO_H) | ||||||
|     check_include_file_concat("openssl/engine.h" HAVE_OPENSSL_ENGINE_H) |     check_include_file("openssl/engine.h" HAVE_OPENSSL_ENGINE_H) | ||||||
|     check_include_file_concat("openssl/err.h"    HAVE_OPENSSL_ERR_H) |     check_include_file("openssl/err.h"    HAVE_OPENSSL_ERR_H) | ||||||
|     check_include_file_concat("openssl/pem.h"    HAVE_OPENSSL_PEM_H) |     check_include_file("openssl/pem.h"    HAVE_OPENSSL_PEM_H) | ||||||
|     check_include_file_concat("openssl/pkcs12.h" HAVE_OPENSSL_PKCS12_H) |     check_include_file("openssl/pkcs12.h" HAVE_OPENSSL_PKCS12_H) | ||||||
|     check_include_file_concat("openssl/rsa.h"    HAVE_OPENSSL_RSA_H) |     check_include_file("openssl/rsa.h"    HAVE_OPENSSL_RSA_H) | ||||||
|     check_include_file_concat("openssl/ssl.h"    HAVE_OPENSSL_SSL_H) |     check_include_file("openssl/ssl.h"    HAVE_OPENSSL_SSL_H) | ||||||
|     check_include_file_concat("openssl/x509.h"   HAVE_OPENSSL_X509_H) |     check_include_file("openssl/x509.h"   HAVE_OPENSSL_X509_H) | ||||||
|     check_include_file_concat("openssl/rand.h"   HAVE_OPENSSL_RAND_H) |     check_include_file("openssl/rand.h"   HAVE_OPENSSL_RAND_H) | ||||||
|   endif() |   endif() | ||||||
| endif() | endif() | ||||||
|  |  | ||||||
| if(NOT CURL_DISABLE_LDAP) | if(NOT CURL_DISABLE_LDAP) | ||||||
|  |  | ||||||
|   if(WIN32) |   if(WIN32) | ||||||
|     option(CURL_LDAP_WIN "Use Windows LDAP implementation" ON) |     option(USE_WIN32_LDAP "Use Windows LDAP implementation" ON) | ||||||
|     if(CURL_LDAP_WIN) |     if(USE_WIN32_LDAP) | ||||||
|       check_library_exists("wldap32" cldap_open "" HAVE_WLDAP32) |       check_library_exists("wldap32" cldap_open "" HAVE_WLDAP32) | ||||||
|       if(NOT HAVE_WLDAP32) |       if(NOT HAVE_WLDAP32) | ||||||
|         set(CURL_LDAP_WIN OFF) |         set(USE_WIN32_LDAP OFF) | ||||||
|       endif() |       endif() | ||||||
|     endif() |     endif() | ||||||
|   endif() |   endif() | ||||||
| @@ -323,12 +340,12 @@ if(NOT CURL_DISABLE_LDAP) | |||||||
|   set(CMAKE_LDAP_LIB "ldap" CACHE STRING "Name or full path to ldap library") |   set(CMAKE_LDAP_LIB "ldap" CACHE STRING "Name or full path to ldap library") | ||||||
|   set(CMAKE_LBER_LIB "lber" CACHE STRING "Name or full path to lber library") |   set(CMAKE_LBER_LIB "lber" CACHE STRING "Name or full path to lber library") | ||||||
|  |  | ||||||
|   if(CMAKE_USE_OPENLDAP AND CURL_LDAP_WIN) |   if(CMAKE_USE_OPENLDAP AND USE_WIN32_LDAP) | ||||||
|     message(FATAL_ERROR "Cannot use CURL_LDAP_WIN and CMAKE_USE_OPENLDAP at the same time") |     message(FATAL_ERROR "Cannot use USE_WIN32_LDAP and CMAKE_USE_OPENLDAP at the same time") | ||||||
|   endif() |   endif() | ||||||
|    |    | ||||||
|   # Now that we know, we're not using windows LDAP... |   # Now that we know, we're not using windows LDAP... | ||||||
|   if(NOT CURL_LDAP_WIN) |   if(NOT USE_WIN32_LDAP) | ||||||
|     # Check for LDAP |     # Check for LDAP | ||||||
|     set(CMAKE_REQUIRED_LIBRARIES ${OPENSSL_LIBRARIES}) |     set(CMAKE_REQUIRED_LIBRARIES ${OPENSSL_LIBRARIES}) | ||||||
|     check_library_exists_concat(${CMAKE_LDAP_LIB} ldap_init HAVE_LIBLDAP) |     check_library_exists_concat(${CMAKE_LDAP_LIB} ldap_init HAVE_LIBLDAP) | ||||||
| @@ -384,7 +401,7 @@ if(NOT CURL_DISABLE_LDAP) | |||||||
|         return 0; |         return 0; | ||||||
|       }" |       }" | ||||||
|     ) |     ) | ||||||
|     set(CMAKE_REQUIRED_DEFINITIONS "-DLDAP_DEPRECATED=1" "-DWIN32_LEAN_AND_MEAN") |     set(CMAKE_REQUIRED_DEFINITIONS "${CMAKE_REQUIRED_DEFINITIONS} -DLDAP_DEPRECATED=1") | ||||||
|     list(APPEND CMAKE_REQUIRED_LIBRARIES ${CMAKE_LDAP_LIB}) |     list(APPEND CMAKE_REQUIRED_LIBRARIES ${CMAKE_LDAP_LIB}) | ||||||
|     if(HAVE_LIBLBER) |     if(HAVE_LIBLBER) | ||||||
|       list(APPEND CMAKE_REQUIRED_LIBRARIES ${CMAKE_LBER_LIB}) |       list(APPEND CMAKE_REQUIRED_LIBRARIES ${CMAKE_LBER_LIB}) | ||||||
| @@ -537,15 +554,13 @@ 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("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) | ||||||
| endif(NOT UNIX) | endif(NOT UNIX) | ||||||
| check_include_file_concat("stdio.h"          HAVE_STDIO_H) |  | ||||||
| if(NOT UNIX) |  | ||||||
|   check_include_file_concat("windows.h"      HAVE_WINDOWS_H) |  | ||||||
|   check_include_file_concat("winsock.h"      HAVE_WINSOCK_H) |  | ||||||
| endif(NOT UNIX) |  | ||||||
|  |  | ||||||
|  | check_include_file_concat("stdio.h"          HAVE_STDIO_H) | ||||||
| check_include_file_concat("inttypes.h"       HAVE_INTTYPES_H) | check_include_file_concat("inttypes.h"       HAVE_INTTYPES_H) | ||||||
| check_include_file_concat("sys/filio.h"      HAVE_SYS_FILIO_H) | check_include_file_concat("sys/filio.h"      HAVE_SYS_FILIO_H) | ||||||
| check_include_file_concat("sys/ioctl.h"      HAVE_SYS_IOCTL_H) | check_include_file_concat("sys/ioctl.h"      HAVE_SYS_IOCTL_H) | ||||||
| @@ -737,7 +752,6 @@ if(CMAKE_USE_OPENSSL) | |||||||
|     HAVE_CRYPTO_CLEANUP_ALL_EX_DATA) |     HAVE_CRYPTO_CLEANUP_ALL_EX_DATA) | ||||||
|   if(HAVE_LIBCRYPTO AND HAVE_LIBSSL) |   if(HAVE_LIBCRYPTO AND HAVE_LIBSSL) | ||||||
|     set(USE_OPENSSL 1) |     set(USE_OPENSSL 1) | ||||||
|     set(USE_SSLEAY 1) |  | ||||||
|   endif(HAVE_LIBCRYPTO AND HAVE_LIBSSL) |   endif(HAVE_LIBCRYPTO AND HAVE_LIBSSL) | ||||||
| endif(CMAKE_USE_OPENSSL) | endif(CMAKE_USE_OPENSSL) | ||||||
| check_symbol_exists(gmtime_r      "${CURL_INCLUDES}" HAVE_GMTIME_R) | check_symbol_exists(gmtime_r      "${CURL_INCLUDES}" HAVE_GMTIME_R) | ||||||
|   | |||||||
							
								
								
									
										25
									
								
								CONTRIBUTING.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										25
									
								
								CONTRIBUTING.md
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,25 @@ | |||||||
|  | How to contribute to curl | ||||||
|  | ========================= | ||||||
|  |  | ||||||
|  | Join the community | ||||||
|  | ------------------ | ||||||
|  |  | ||||||
|  |  1. Click 'watch' on the github repo | ||||||
|  |  | ||||||
|  |  2. Subscribe to the suitable [mailing lists](http://curl.haxx.se/mail/) | ||||||
|  |  | ||||||
|  | Read [docs/CONTRIBUTE](docs/CONTRIBUTE) | ||||||
|  | --------------------------------------- | ||||||
|  |  | ||||||
|  | Send your suggestions using one of these methods: | ||||||
|  | ------------------------------------------------- | ||||||
|  |  | ||||||
|  |  1. in a mail to the mailing list | ||||||
|  |  | ||||||
|  |  2. as a pull request on github | ||||||
|  |  | ||||||
|  |  3. as an issue on github | ||||||
|  |     | ||||||
|  |  | ||||||
|  | / The cURL team! | ||||||
|  |  | ||||||
| @@ -94,7 +94,7 @@ if test ! -z $SDK32; then | |||||||
|   rm -r libcurl.framework |   rm -r libcurl.framework | ||||||
|   mkdir -p libcurl.framework/${FRAMEWORK_VERSION}/Resources |   mkdir -p libcurl.framework/${FRAMEWORK_VERSION}/Resources | ||||||
|   cp lib/.libs/libcurl.dylib libcurl.framework/${FRAMEWORK_VERSION}/libcurl |   cp lib/.libs/libcurl.dylib libcurl.framework/${FRAMEWORK_VERSION}/libcurl | ||||||
|   install_name_tool -id @executable_path/../Frameworks/libcurl.framework/${FRAMEWORK_VERSION}/libcurl libcurl.framework/${FRAMEWORK_VERSION}/libcurl |   install_name_tool -id @rpath/libcurl.framework/${FRAMEWORK_VERSION}/libcurl libcurl.framework/${FRAMEWORK_VERSION}/libcurl | ||||||
|   /usr/bin/sed -e "s/7\.12\.3/$VERSION/" lib/libcurl.plist >libcurl.framework/${FRAMEWORK_VERSION}/Resources/Info.plist |   /usr/bin/sed -e "s/7\.12\.3/$VERSION/" lib/libcurl.plist >libcurl.framework/${FRAMEWORK_VERSION}/Resources/Info.plist | ||||||
|   mkdir -p libcurl.framework/${FRAMEWORK_VERSION}/Headers/curl |   mkdir -p libcurl.framework/${FRAMEWORK_VERSION}/Headers/curl | ||||||
|   cp include/curl/*.h libcurl.framework/${FRAMEWORK_VERSION}/Headers/curl |   cp include/curl/*.h libcurl.framework/${FRAMEWORK_VERSION}/Headers/curl | ||||||
| @@ -121,7 +121,7 @@ if test ! -z $SDK32; then | |||||||
|  |  | ||||||
|     echo "----Appending 64 bit framework to 32 bit framework..." |     echo "----Appending 64 bit framework to 32 bit framework..." | ||||||
|     cp lib/.libs/libcurl.dylib libcurl.framework/${FRAMEWORK_VERSION}/libcurl64 |     cp lib/.libs/libcurl.dylib libcurl.framework/${FRAMEWORK_VERSION}/libcurl64 | ||||||
|     install_name_tool -id @executable_path/../Frameworks/libcurl.framework/${FRAMEWORK_VERSION}/libcurl libcurl.framework/${FRAMEWORK_VERSION}/libcurl64 |     install_name_tool -id @rpath/libcurl.framework/${FRAMEWORK_VERSION}/libcurl libcurl.framework/${FRAMEWORK_VERSION}/libcurl64 | ||||||
|     cp libcurl.framework/${FRAMEWORK_VERSION}/libcurl libcurl.framework/${FRAMEWORK_VERSION}/libcurl32 |     cp libcurl.framework/${FRAMEWORK_VERSION}/libcurl libcurl.framework/${FRAMEWORK_VERSION}/libcurl32 | ||||||
|     pwd |     pwd | ||||||
|     lipo libcurl.framework/${FRAMEWORK_VERSION}/libcurl32 libcurl.framework/${FRAMEWORK_VERSION}/libcurl64 -create -output libcurl.framework/${FRAMEWORK_VERSION}/libcurl |     lipo libcurl.framework/${FRAMEWORK_VERSION}/libcurl32 libcurl.framework/${FRAMEWORK_VERSION}/libcurl64 -create -output libcurl.framework/${FRAMEWORK_VERSION}/libcurl | ||||||
|   | |||||||
							
								
								
									
										89
									
								
								Makefile.am
									
									
									
									
									
								
							
							
						
						
									
										89
									
								
								Makefile.am
									
									
									
									
									
								
							| @@ -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 | ||||||
| @@ -30,95 +30,95 @@ CMAKE_DIST = CMakeLists.txt CMake/CMakeConfigurableFile.in	\ | |||||||
|  include/curl/curlbuild.h.cmake CMake/Macros.cmake |  include/curl/curlbuild.h.cmake CMake/Macros.cmake | ||||||
|  |  | ||||||
| VC6_LIBTMPL = projects/Windows/VC6/lib/libcurl.tmpl | VC6_LIBTMPL = projects/Windows/VC6/lib/libcurl.tmpl | ||||||
| VC6_LIBDSP = projects/Windows/VC6/lib/libcurl.dsp | VC6_LIBDSP = projects/Windows/VC6/lib/libcurl.dsp.dist | ||||||
| VC6_LIBDSP_DEPS = $(VC6_LIBTMPL) Makefile.am lib/Makefile.inc | VC6_LIBDSP_DEPS = $(VC6_LIBTMPL) Makefile.am lib/Makefile.inc | ||||||
| VC6_SRCTMPL = projects/Windows/VC6/src/curlsrc.tmpl | VC6_SRCTMPL = projects/Windows/VC6/src/curlsrc.tmpl | ||||||
| VC6_SRCDSP = projects/Windows/VC6/src/curlsrc.dsp | VC6_SRCDSP = projects/Windows/VC6/src/curlsrc.dsp.dist | ||||||
| VC6_SRCDSP_DEPS = $(VC6_SRCTMPL) Makefile.am src/Makefile.inc | VC6_SRCDSP_DEPS = $(VC6_SRCTMPL) Makefile.am src/Makefile.inc | ||||||
|  |  | ||||||
| VC7_LIBTMPL = projects/Windows/VC7/lib/libcurl.tmpl | VC7_LIBTMPL = projects/Windows/VC7/lib/libcurl.tmpl | ||||||
| VC7_LIBVCPROJ = projects/Windows/VC7/lib/libcurl.vcproj | VC7_LIBVCPROJ = projects/Windows/VC7/lib/libcurl.vcproj.dist | ||||||
| VC7_LIBVCPROJ_DEPS = $(VC7_LIBTMPL) Makefile.am lib/Makefile.inc | VC7_LIBVCPROJ_DEPS = $(VC7_LIBTMPL) Makefile.am lib/Makefile.inc | ||||||
| VC7_SRCTMPL = projects/Windows/VC7/src/curlsrc.tmpl | VC7_SRCTMPL = projects/Windows/VC7/src/curlsrc.tmpl | ||||||
| VC7_SRCVCPROJ = projects/Windows/VC7/src/curlsrc.vcproj | VC7_SRCVCPROJ = projects/Windows/VC7/src/curlsrc.vcproj.dist | ||||||
| VC7_SRCVCPROJ_DEPS = $(VC7_SRCTMPL) Makefile.am src/Makefile.inc | VC7_SRCVCPROJ_DEPS = $(VC7_SRCTMPL) Makefile.am src/Makefile.inc | ||||||
|  |  | ||||||
| VC71_LIBTMPL = projects/Windows/VC7.1/lib/libcurl.tmpl | VC71_LIBTMPL = projects/Windows/VC7.1/lib/libcurl.tmpl | ||||||
| VC71_LIBVCPROJ = projects/Windows/VC7.1/lib/libcurl.vcproj | VC71_LIBVCPROJ = projects/Windows/VC7.1/lib/libcurl.vcproj.dist | ||||||
| VC71_LIBVCPROJ_DEPS = $(VC71_LIBTMPL) Makefile.am lib/Makefile.inc | VC71_LIBVCPROJ_DEPS = $(VC71_LIBTMPL) Makefile.am lib/Makefile.inc | ||||||
| VC71_SRCTMPL = projects/Windows/VC7.1/src/curlsrc.tmpl | VC71_SRCTMPL = projects/Windows/VC7.1/src/curlsrc.tmpl | ||||||
| VC71_SRCVCPROJ = projects/Windows/VC7.1/src/curlsrc.vcproj | VC71_SRCVCPROJ = projects/Windows/VC7.1/src/curlsrc.vcproj.dist | ||||||
| VC71_SRCVCPROJ_DEPS = $(VC71_SRCTMPL) Makefile.am src/Makefile.inc | VC71_SRCVCPROJ_DEPS = $(VC71_SRCTMPL) Makefile.am src/Makefile.inc | ||||||
|  |  | ||||||
| VC8_LIBTMPL = projects/Windows/VC8/lib/libcurl.tmpl | VC8_LIBTMPL = projects/Windows/VC8/lib/libcurl.tmpl | ||||||
| VC8_LIBVCPROJ = projects/Windows/VC8/lib/libcurl.vcproj | VC8_LIBVCPROJ = projects/Windows/VC8/lib/libcurl.vcproj.dist | ||||||
| VC8_LIBVCPROJ_DEPS = $(VC8_LIBTMPL) Makefile.am lib/Makefile.inc | VC8_LIBVCPROJ_DEPS = $(VC8_LIBTMPL) Makefile.am lib/Makefile.inc | ||||||
| VC8_SRCTMPL = projects/Windows/VC8/src/curlsrc.tmpl | VC8_SRCTMPL = projects/Windows/VC8/src/curlsrc.tmpl | ||||||
| VC8_SRCVCPROJ = projects/Windows/VC8/src/curlsrc.vcproj | VC8_SRCVCPROJ = projects/Windows/VC8/src/curlsrc.vcproj.dist | ||||||
| VC8_SRCVCPROJ_DEPS = $(VC8_SRCTMPL) Makefile.am src/Makefile.inc | VC8_SRCVCPROJ_DEPS = $(VC8_SRCTMPL) Makefile.am src/Makefile.inc | ||||||
|  |  | ||||||
| VC9_LIBTMPL = projects/Windows/VC9/lib/libcurl.tmpl | VC9_LIBTMPL = projects/Windows/VC9/lib/libcurl.tmpl | ||||||
| VC9_LIBVCPROJ = projects/Windows/VC9/lib/libcurl.vcproj | VC9_LIBVCPROJ = projects/Windows/VC9/lib/libcurl.vcproj.dist | ||||||
| VC9_LIBVCPROJ_DEPS = $(VC9_LIBTMPL) Makefile.am lib/Makefile.inc | VC9_LIBVCPROJ_DEPS = $(VC9_LIBTMPL) Makefile.am lib/Makefile.inc | ||||||
| VC9_SRCTMPL = projects/Windows/VC9/src/curlsrc.tmpl | VC9_SRCTMPL = projects/Windows/VC9/src/curlsrc.tmpl | ||||||
| VC9_SRCVCPROJ = projects/Windows/VC9/src/curlsrc.vcproj | VC9_SRCVCPROJ = projects/Windows/VC9/src/curlsrc.vcproj.dist | ||||||
| VC9_SRCVCPROJ_DEPS = $(VC9_SRCTMPL) Makefile.am src/Makefile.inc | VC9_SRCVCPROJ_DEPS = $(VC9_SRCTMPL) Makefile.am src/Makefile.inc | ||||||
|  |  | ||||||
| VC10_LIBTMPL = projects/Windows/VC10/lib/libcurl.tmpl | VC10_LIBTMPL = projects/Windows/VC10/lib/libcurl.tmpl | ||||||
| VC10_LIBVCXPROJ = projects/Windows/VC10/lib/libcurl.vcxproj | VC10_LIBVCXPROJ = projects/Windows/VC10/lib/libcurl.vcxproj.dist | ||||||
| VC10_LIBVCXPROJ_DEPS = $(VC10_LIBTMPL) Makefile.am lib/Makefile.inc | VC10_LIBVCXPROJ_DEPS = $(VC10_LIBTMPL) Makefile.am lib/Makefile.inc | ||||||
| VC10_SRCTMPL = projects/Windows/VC10/src/curlsrc.tmpl | VC10_SRCTMPL = projects/Windows/VC10/src/curlsrc.tmpl | ||||||
| VC10_SRCVCXPROJ = projects/Windows/VC10/src/curlsrc.vcxproj | VC10_SRCVCXPROJ = projects/Windows/VC10/src/curlsrc.vcxproj.dist | ||||||
| VC10_SRCVCXPROJ_DEPS = $(VC10_SRCTMPL) Makefile.am src/Makefile.inc | VC10_SRCVCXPROJ_DEPS = $(VC10_SRCTMPL) Makefile.am src/Makefile.inc | ||||||
|  |  | ||||||
| VC11_LIBTMPL = projects/Windows/VC11/lib/libcurl.tmpl | VC11_LIBTMPL = projects/Windows/VC11/lib/libcurl.tmpl | ||||||
| VC11_LIBVCXPROJ = projects/Windows/VC11/lib/libcurl.vcxproj | VC11_LIBVCXPROJ = projects/Windows/VC11/lib/libcurl.vcxproj.dist | ||||||
| VC11_LIBVCXPROJ_DEPS = $(VC11_LIBTMPL) Makefile.am lib/Makefile.inc | VC11_LIBVCXPROJ_DEPS = $(VC11_LIBTMPL) Makefile.am lib/Makefile.inc | ||||||
| VC11_SRCTMPL = projects/Windows/VC11/src/curlsrc.tmpl | VC11_SRCTMPL = projects/Windows/VC11/src/curlsrc.tmpl | ||||||
| VC11_SRCVCXPROJ = projects/Windows/VC11/src/curlsrc.vcxproj | VC11_SRCVCXPROJ = projects/Windows/VC11/src/curlsrc.vcxproj.dist | ||||||
| VC11_SRCVCXPROJ_DEPS = $(VC11_SRCTMPL) Makefile.am src/Makefile.inc | VC11_SRCVCXPROJ_DEPS = $(VC11_SRCTMPL) Makefile.am src/Makefile.inc | ||||||
|  |  | ||||||
| VC12_LIBTMPL = projects/Windows/VC12/lib/libcurl.tmpl | VC12_LIBTMPL = projects/Windows/VC12/lib/libcurl.tmpl | ||||||
| VC12_LIBVCXPROJ = projects/Windows/VC12/lib/libcurl.vcxproj | VC12_LIBVCXPROJ = projects/Windows/VC12/lib/libcurl.vcxproj.dist | ||||||
| VC12_LIBVCXPROJ_DEPS = $(VC12_LIBTMPL) Makefile.am lib/Makefile.inc | VC12_LIBVCXPROJ_DEPS = $(VC12_LIBTMPL) Makefile.am lib/Makefile.inc | ||||||
| VC12_SRCTMPL = projects/Windows/VC12/src/curlsrc.tmpl | VC12_SRCTMPL = projects/Windows/VC12/src/curlsrc.tmpl | ||||||
| VC12_SRCVCXPROJ = projects/Windows/VC12/src/curlsrc.vcxproj | VC12_SRCVCXPROJ = projects/Windows/VC12/src/curlsrc.vcxproj.dist | ||||||
| VC12_SRCVCXPROJ_DEPS = $(VC12_SRCTMPL) Makefile.am src/Makefile.inc | VC12_SRCVCXPROJ_DEPS = $(VC12_SRCTMPL) Makefile.am src/Makefile.inc | ||||||
|  |  | ||||||
| VC_DIST = projects/README	\ | VC_DIST = projects/README	\ | ||||||
|  projects/build-openssl.bat	\ |  projects/build-openssl.bat	\ | ||||||
|  projects/checksrc.bat	\ |  projects/checksrc.bat	\ | ||||||
|  projects/Windows/VC6/curl.dsw	\ |  projects/Windows/VC6/curl-all.dsw	\ | ||||||
|  projects/Windows/VC6/lib/libcurl.dsw $(VC6_LIBDSP)	\ |  projects/Windows/VC6/lib/libcurl.dsw \ | ||||||
|  projects/Windows/VC6/src/curlsrc.dsw $(VC6_SRCDSP)	\ |  projects/Windows/VC6/src/curlsrc.dsw \ | ||||||
|  projects/Windows/VC7/curl.sln	\ |  projects/Windows/VC7/curl-all.sln	\ | ||||||
|  projects/Windows/VC7/lib/libcurl.sln $(VC7_LIBVCPROJ)	\ |  projects/Windows/VC7/lib/libcurl.sln 	\ | ||||||
|  projects/Windows/VC7/src/curlsrc.sln $(VC7_SRCVCPROJ)	\ |  projects/Windows/VC7/src/curlsrc.sln 	\ | ||||||
|  projects/Windows/VC7.1/curl.sln	\ |  projects/Windows/VC7.1/curl-all.sln	\ | ||||||
|  projects/Windows/VC7.1/lib/libcurl.sln $(VC71_LIBVCPROJ)	\ |  projects/Windows/VC7.1/lib/libcurl.sln \ | ||||||
|  projects/Windows/VC7.1/src/curlsrc.sln $(VC71_SRCVCPROJ)	\ |  projects/Windows/VC7.1/src/curlsrc.sln \ | ||||||
|  projects/Windows/VC8/curl.sln	\ |  projects/Windows/VC8/curl-all.sln	\ | ||||||
|  projects/Windows/VC8/lib/libcurl.sln $(VC8_LIBVCPROJ)	\ |  projects/Windows/VC8/lib/libcurl.sln 	\ | ||||||
|  projects/Windows/VC8/src/curlsrc.sln $(VC8_SRCVCPROJ)	\ |  projects/Windows/VC8/src/curlsrc.sln 	\ | ||||||
|  projects/Windows/VC9/curl.sln	\ |  projects/Windows/VC9/curl-all.sln	\ | ||||||
|  projects/Windows/VC9/lib/libcurl.sln $(VC9_LIBVCPROJ)	\ |  projects/Windows/VC9/lib/libcurl.sln 	\ | ||||||
|  projects/Windows/VC9/src/curlsrc.sln $(VC9_SRCVCPROJ)	\ |  projects/Windows/VC9/src/curlsrc.sln 	\ | ||||||
|  projects/Windows/VC10/curl.sln	\ |  projects/Windows/VC10/curl-all.sln	\ | ||||||
|  projects/Windows/VC10/lib/libcurl.sln $(VC10_LIBVCXPROJ)	\ |  projects/Windows/VC10/lib/libcurl.sln 	\ | ||||||
|  projects/Windows/VC10/src/curlsrc.sln $(VC10_SRCVCXPROJ)	\ |  projects/Windows/VC10/src/curlsrc.sln  \ | ||||||
|  projects/Windows/VC11/curl.sln	\ |  projects/Windows/VC11/curl-all.sln	\ | ||||||
|  projects/Windows/VC11/lib/libcurl.sln $(VC11_LIBVCXPROJ)	\ |  projects/Windows/VC11/lib/libcurl.sln 	\ | ||||||
|  projects/Windows/VC11/src/curlsrc.sln $(VC11_SRCVCXPROJ)	\ |  projects/Windows/VC11/src/curlsrc.sln 	\ | ||||||
|  projects/Windows/VC12/curl.sln	\ |  projects/Windows/VC12/curl-all.sln	\ | ||||||
|  projects/Windows/VC12/lib/libcurl.sln $(VC12_LIBVCXPROJ)	\ |  projects/Windows/VC12/lib/libcurl.sln 	\ | ||||||
|  projects/Windows/VC12/src/curlsrc.sln $(VC12_SRCVCXPROJ) |  projects/Windows/VC12/src/curlsrc.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				\ | ||||||
|  winbuild/Makefile.msvc.names |  winbuild/Makefile.msvc.names | ||||||
|  |  | ||||||
| EXTRA_DIST = CHANGES COPYING maketgz Makefile.dist curl-config.in	\ | EXTRA_DIST = CHANGES COPYING maketgz Makefile.dist curl-config.in	\ | ||||||
|  RELEASE-NOTES buildconf libcurl.pc.in MacOSX-Framework	\ |  RELEASE-NOTES buildconf libcurl.pc.in MacOSX-Framework scripts/zsh.pl	\ | ||||||
|  $(CMAKE_DIST) $(VC_DIST) $(WINBUILD_DIST) lib/libcurl.vers.in |  $(CMAKE_DIST) $(VC_DIST) $(WINBUILD_DIST) lib/libcurl.vers.in | ||||||
|  |  | ||||||
| CLEANFILES = $(VC6_LIBDSP) $(VC6_SRCDSP) $(VC7_LIBVCPROJ) $(VC7_SRCVCPROJ)	\ | CLEANFILES = $(VC6_LIBDSP) $(VC6_SRCDSP) $(VC7_LIBVCPROJ) $(VC7_SRCVCPROJ)	\ | ||||||
| @@ -153,7 +153,7 @@ html: | |||||||
| pdf: | pdf: | ||||||
| 	cd docs; make pdf | 	cd docs; make pdf | ||||||
|  |  | ||||||
| check: test examples | check: test examples check-docs | ||||||
|  |  | ||||||
| if CROSSCOMPILING | if CROSSCOMPILING | ||||||
| test-full: test | test-full: test | ||||||
| @@ -181,6 +181,9 @@ endif | |||||||
| examples: | examples: | ||||||
| 	@(cd docs/examples; $(MAKE) check) | 	@(cd docs/examples; $(MAKE) check) | ||||||
|  |  | ||||||
|  | check-docs: | ||||||
|  | 	@(cd docs/libcurl; $(MAKE) check) | ||||||
|  |  | ||||||
| # This is a hook to have 'make clean' also clean up the docs and the tests | # This is a hook to have 'make clean' also clean up the docs and the tests | ||||||
| # dir. The extra check for the Makefiles being present is necessary because | # dir. The extra check for the Makefiles being present is necessary because | ||||||
| # 'make distcheck' will make clean first in these directories _before_ it runs | # 'make distcheck' will make clean first in these directories _before_ it runs | ||||||
|   | |||||||
							
								
								
									
										4
									
								
								README
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								README
									
									
									
									
									
								
							| @@ -38,12 +38,12 @@ GIT | |||||||
|  |  | ||||||
|   To download the very latest source off the GIT server do this: |   To download the very latest source off the GIT server do this: | ||||||
|  |  | ||||||
|     git clone git://github.com/bagder/curl.git |     git clone https://github.com/bagder/curl.git | ||||||
|  |  | ||||||
|   (you'll get a directory named curl created, filled with the source code) |   (you'll get a directory named curl created, filled with the source code) | ||||||
|  |  | ||||||
| NOTICE | NOTICE | ||||||
|  |  | ||||||
|   Curl contains pieces of source code that is Copyright (c) 1998, 1999 |   Curl contains pieces of source code that is Copyright (c) 1998, 1999 | ||||||
|   Kungliga Tekniska H<EFBFBD>gskolan. This notice is included here to comply with the |   Kungliga Tekniska Högskolan. This notice is included here to comply with the | ||||||
|   distribution terms. |   distribution terms. | ||||||
|   | |||||||
							
								
								
									
										172
									
								
								RELEASE-NOTES
									
									
									
									
									
								
							
							
						
						
									
										172
									
								
								RELEASE-NOTES
									
									
									
									
									
								
							| @@ -1,146 +1,19 @@ | |||||||
| Curl and libcurl 7.40.0 | Curl and libcurl 7.44.0 | ||||||
|  |  | ||||||
|  Public curl releases:         143 |  Public curl releases:         148 | ||||||
|  Command line options:         162 |  Command line options:         176 | ||||||
|  curl_easy_setopt() options:   208 |  curl_easy_setopt() options:   219 | ||||||
|  Public functions in libcurl:  58 |  Public functions in libcurl:  58 | ||||||
|  Contributors:                 1219 |  Contributors:                 1291 | ||||||
|  |  | ||||||
| This release includes the following changes: | This release includes the following changes: | ||||||
|  |  | ||||||
|  o http_digest: Added support for Windows SSPI based authentication |  o | ||||||
|  o version info: Added Kerberos V5 to the supported features |  | ||||||
|  o Makefile: Added VC targets for WinIDN |  | ||||||
|  o config-win32: Introduce build targets for VS2012+ |  | ||||||
|  o SSL: Add PEM format support for public key pinning |  | ||||||
|  o smtp: Added support for the conversion of Unix newlines during mail send [8] |  | ||||||
|  o smb: Added initial support for the SMB/CIFS protocol |  | ||||||
|  o Added support for HTTP over unix domain sockets, via |  | ||||||
|    CURLOPT_UNIX_SOCKET_PATH and --unix-socket |  | ||||||
|  o sasl: Added support for GSS-API based Kerberos V5 authentication |  | ||||||
|  |  | ||||||
| This release includes the following bugfixes: | This release includes the following bugfixes: | ||||||
|  |  | ||||||
|  o darwinssl: fix session ID keys to only reuse identical sessions [18] |  o | ||||||
|  o url-parsing: reject CRLFs within URLs [19] |  | ||||||
|  o OS400: Adjust specific support to last release |  | ||||||
|  o THANKS: Remove duplicate names |  | ||||||
|  o url.c: Fixed compilation warning |  | ||||||
|  o ssh: Fixed build on platforms where R_OK is not defined [1] |  | ||||||
|  o tool_strdup.c: include the tool strdup.h |  | ||||||
|  o build: Fixed Visual Studio project file generation of strdup.[c|h] |  | ||||||
|  o curl_easy_setopt.3: add CURLOPT_PINNEDPUBLICKEY [2] |  | ||||||
|  o curl.1: show zone index use in a URL |  | ||||||
|  o mk-ca-bundle.vbs: switch to new certdata.txt url |  | ||||||
|  o Makefile.dist: Added some missing SSPI configurations |  | ||||||
|  o build: Fixed no NTLM support for email when CURL_DISABLE_HTTP is defined |  | ||||||
|  o SSH: use the port number as well for known_known checks [3] |  | ||||||
|  o libssh2: detect features based on version, not configure checks |  | ||||||
|  o http2: Deal with HTTP/2 data inside Upgrade response header buffer [4] |  | ||||||
|  o multi: removed Curl_multi_set_easy_connection |  | ||||||
|  o symbol-scan.pl: do not require autotools |  | ||||||
|  o cmake: add ENABLE_THREADED_RESOLVER, rename ARES |  | ||||||
|  o cmake: build libhostname for test suite |  | ||||||
|  o cmake: fix HAVE_GETHOSTNAME definition |  | ||||||
|  o tests: fix libhostname visibility |  | ||||||
|  o tests: fix memleak in server/resolve.c |  | ||||||
|  o vtls.h: Fixed compiler warning when compiled without SSL |  | ||||||
|  o CMake: Restore order-dependent header checks |  | ||||||
|  o CMake: Restore order-dependent library checks |  | ||||||
|  o tool: Removed krb4 from the supported features |  | ||||||
|  o http2: Don't send Upgrade headers when we already do HTTP/2 |  | ||||||
|  o examples: Don't call select() to sleep on windows [6] |  | ||||||
|  o win32: Updated some legacy APIs to use the newer extended versions [5] |  | ||||||
|  o easy.c: Fixed compilation warning when no verbose string support |  | ||||||
|  o connect.c: Fixed compilation warning when no verbose string support |  | ||||||
|  o build: in Makefile.m32 pass -F flag to windres |  | ||||||
|  o build: in Makefile.m32 add -m32 flag for 32bit |  | ||||||
|  o multi: when leaving for timeout, close accordingly |  | ||||||
|  o CMake: Simplify if() conditions on check result variables |  | ||||||
|  o build: in Makefile.m32 try to detect 64bit target |  | ||||||
|  o multi: inform about closed sockets before they are closed |  | ||||||
|  o multi-uv.c: close the file handle after download |  | ||||||
|  o examples: Wait recommended 100ms when no file descriptors are ready |  | ||||||
|  o ntlm: Split the SSPI based messaging code from the native messaging code |  | ||||||
|  o cmake: fix NTLM detection when CURL_DISABLE_HTTP defined |  | ||||||
|  o cmake: add Kerberos to the supported feature |  | ||||||
|  o CURLOPT_POSTFIELDS.3: mention the COPYPOSTFIELDS option |  | ||||||
|  o http: Disable pipelining for HTTP/2 and upgraded connections |  | ||||||
|  o ntlm: Fixed static'ness of local decode function |  | ||||||
|  o sasl: Reduced the need for two sets of NTLM messaging functions |  | ||||||
|  o multi.c: Fixed compilation warnings when no verbose string support |  | ||||||
|  o select.c: fix compilation for VxWorks [7] |  | ||||||
|  o multi-single.c: switch to use curl_multi_wait |  | ||||||
|  o curl_multi_wait.3: clarify numfds being used if not NULL |  | ||||||
|  o http.c: Fixed compilation warnings from features being disabled |  | ||||||
|  o NSS: enable the CAPATH option [9] |  | ||||||
|  o docs: Fix FAILONERROR typos |  | ||||||
|  o HTTP: don't abort connections with pending Negotiate authentication |  | ||||||
|  o HTTP: Free (proxy)userpwd for NTLM/Negotiate after sending a request |  | ||||||
|  o http_perhapsrewind: don't abort CONNECT requests |  | ||||||
|  o build: updated dependencies in makefiles |  | ||||||
|  o multi.c: Fixed compilation warning |  | ||||||
|  o ftp.c: Fixed compilation warnings when proxy support disabled |  | ||||||
|  o get_url_file_name: Fixed crash on OOM on debug build |  | ||||||
|  o cookie.c: Refactored cleanup code to simplify |  | ||||||
|  o OS400: enable NTLM authentication |  | ||||||
|  o ntlm: Use Windows Crypt API |  | ||||||
|  o http2: avoid logging neg "failure" if h2 was not requested |  | ||||||
|  o schannel_recv: return the correct code [10] |  | ||||||
|  o VC build: added sspi define for winssl-zlib builds |  | ||||||
|  o Curl_client_write(): chop long data, convert data only once |  | ||||||
|  o openldap: do not ignore Curl_client_write() return code |  | ||||||
|  o ldap: check Curl_client_write() return codes |  | ||||||
|  o parsedate.c: Fixed compilation warning |  | ||||||
|  o url.c: Fixed compilation warning when USE_NTLM is not defined |  | ||||||
|  o ntlm_wb_response: fix "statement not reached" [11] |  | ||||||
|  o telnet: fix "cast increases required alignment of target type" |  | ||||||
|  o smtp: Fixed dot stuffing when EOL characters at end of input buffers [12] |  | ||||||
|  o ntlm: Allow NTLM2Session messages when USE_NTRESPONSES manually defined |  | ||||||
|  o ntlm: Disable NTLM v2 when 64-bit integers are not supported |  | ||||||
|  o ntlm: Use short integer when decoding 16-bit values |  | ||||||
|  o ftp.c: Fixed compilation warning when no verbose string support |  | ||||||
|  o synctime.c: fixed timeserver URLs |  | ||||||
|  o mk-ca-bundle.pl: restored forced run again |  | ||||||
|  o ntlm: Fixed return code for bad type-2 Target Info |  | ||||||
|  o curl_schannel.c: Data may be available before connection shutdown |  | ||||||
|  o curl_schannel: Improvements to memory re-allocation strategy [13] |  | ||||||
|  o darwinssl: aprintf() to allocate the session key |  | ||||||
|  o tool_util.c: Use GetTickCount64 if it is available |  | ||||||
|  o lib: Fixed multiple code analysis warnings if SAL are available |  | ||||||
|  o tool_binmode.c: Explicitly ignore the return code of setmode |  | ||||||
|  o tool_urlglob.c: Silence warning C6293: Ill-defined for-loop |  | ||||||
|  o opts: Warn CURLOPT_TIMEOUT overrides when set after CURLOPT_TIMEOUT_MS |  | ||||||
|  o SFTP: work-around servers that return zero size on STAT [14] |  | ||||||
|  o connect: singleipconnect(): properly try other address families after failure |  | ||||||
|  o IPV6: address scope != scope id [15] |  | ||||||
|  o parseurlandfillconn(): fix improper non-numeric scope_id stripping [16] |  | ||||||
|  o secureserver.pl: make OpenSSL CApath and cert absolute path values |  | ||||||
|  o secureserver.pl: update Windows detection and fix path conversion |  | ||||||
|  o secureserver.pl: clean up formatting of config and fix verbose output |  | ||||||
|  o tests: Added Windows support using Cygwin-based OpenSSH |  | ||||||
|  o sockfilt.c: use non-Ex functions that are available before WinXP |  | ||||||
|  o VMS: Updates for 0740-0D1220 |  | ||||||
|  o openssl: warn for SRP set if SSLv3 is used, not for TLS version |  | ||||||
|  o openssl: make it compile against openssl 1.1.0-DEV master branch |  | ||||||
|  o openssl: fix SSL/TLS versions in verbose output |  | ||||||
|  o curl: show size of inhibited data when using -v |  | ||||||
|  o build: Removed WIN32 definition from the Visual Studio projects |  | ||||||
|  o build: Removed WIN64 definition from the libcurl Visual Studio projects |  | ||||||
|  o vtls: Use bool for Curl_ssl_getsessionid() return type |  | ||||||
|  o sockfilt.c: Replace 100ms sleep with thread throttle |  | ||||||
|  o sockfilt.c: Reduce the number of individual memory allocations |  | ||||||
|  o vtls: Don't set cert info count until memory allocation is successful |  | ||||||
|  o nss: Don't ignore Curl_ssl_init_certinfo() OOM failure |  | ||||||
|  o nss: Don't ignore Curl_extract_certinfo() OOM failure |  | ||||||
|  o vtls: Fixed compilation warning and an ignored return code |  | ||||||
|  o sockfilt.c: Fixed compilation warnings |  | ||||||
|  o darwinssl: Fixed compilation warning |  | ||||||
|  o vtls: Use '(void) arg' for unused parameters |  | ||||||
|  o sepheaders.c: Fixed resource leak on failure |  | ||||||
|  o lib1900.c: Fixed cppcheck error [17] |  | ||||||
|  o ldap: Fixed Unicode connection details in Win32 initialsation / bind calls |  | ||||||
|  o ldap: Fixed Unicode DN, attributes and filter in Win32 search calls |  | ||||||
|  |  | ||||||
| This release includes the following known bugs: | This release includes the following known bugs: | ||||||
|  |  | ||||||
| @@ -149,35 +22,10 @@ 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: | ||||||
|  |  | ||||||
|   Andrey Labunets, Anthon Pang, Bill Nagel, Brad Harder, Brad King, Carlo Wood, |  | ||||||
|   Christian Hägele, Dan Fandrich, Daniel Stenberg, Dave Reisner, Frank Gevaerts, |  | ||||||
|   Gisle Vanem, Guenter Knauf, Jan Ehrhardt, Johan Lantz, John E. Malmberg, |  | ||||||
|   Jon Spencer, Julien Nabet, Kamil Dudka, Kyle J. McKay, Lucas Pardue, |  | ||||||
|   Marc Hesse, Marc Hoersken, Marc Renault, Michael Osipov, Nick Zitzmann, |  | ||||||
|   Nobuhiro Ban, Patrick Monnerat, Peter Wu, Ray Satiro, Sam Hurst, |  | ||||||
|   Stefan Bühler, Stefan Neis, Steve Holme, Tae Hyoung Ahn, Tatsuhiro Tsujikawa, |  | ||||||
|   Tomasz Kojm, Tor Arntsen, Waldek Kozba, Warren Menzer |  | ||||||
|  |  | ||||||
|         Thanks! (and sorry if I forgot to mention someone) |         Thanks! (and sorry if I forgot to mention someone) | ||||||
|  |  | ||||||
| References to bug reports and discussions on issues: | References to bug reports and discussions on issues: | ||||||
|  |  | ||||||
|  [1] = http://curl.haxx.se/mail/lib-2014-11/0035.html |  [1] = | ||||||
|  [2] = http://curl.haxx.se/mail/lib-2014-11/0078.html |  | ||||||
|  [3] = http://curl.haxx.se/bug/view.cgi?id=1448 |  | ||||||
|  [4] = https://github.com/tatsuhiro-t/nghttp2/issues/103 |  | ||||||
|  [5] = http://sourceforge.net/p/curl/feature-requests/82/ |  | ||||||
|  [6] = http://curl.haxx.se/mail/lib-2014-11/0221.html |  | ||||||
|  [7] = http://curl.haxx.se/bug/view.cgi?id=1455 |  | ||||||
|  [8] = http://curl.haxx.se/bug/view.cgi?id=1456 |  | ||||||
|  [9] = http://curl.haxx.se/bug/view.cgi?id=1457 |  | ||||||
|  [10] = http://curl.haxx.se/bug/view.cgi?id=1462 |  | ||||||
|  [11] = http://curl.haxx.se/mail/lib-2014-12/0089.html |  | ||||||
|  [12] = http://curl.haxx.se/bug/view.cgi?id=1456 |  | ||||||
|  [13] = http://curl.haxx.se/bug/view.cgi?id=1450 |  | ||||||
|  [14] = http://curl.haxx.se/mail/lib-2014-12/0103.html |  | ||||||
|  [15] = http://curl.haxx.se/bug/view.cgi?id=1451 |  | ||||||
|  [16] = http://curl.haxx.se/bug/view.cgi?id=1449 |  | ||||||
|  [17] = https://github.com/bagder/curl/pull/133 |  | ||||||
|  [18] = http://curl.haxx.se/docs/adv_20150108A.html |  | ||||||
|  [19] = http://curl.haxx.se/docs/adv_20150108B.html |  | ||||||
|   | |||||||
							
								
								
									
										30
									
								
								acinclude.m4
									
									
									
									
									
								
							
							
						
						
									
										30
									
								
								acinclude.m4
									
									
									
									
									
								
							| @@ -2452,23 +2452,6 @@ AC_DEFUN([CURL_CHECK_FUNC_SELECT], [ | |||||||
| ]) | ]) | ||||||
|  |  | ||||||
|  |  | ||||||
| # This is only a temporary fix. This macro is here to replace the broken one |  | ||||||
| # delivered by the automake project (including the 1.9.6 release). As soon as |  | ||||||
| # they ship a working version we SHOULD remove this work-around. |  | ||||||
|  |  | ||||||
| AC_DEFUN([AM_MISSING_HAS_RUN], |  | ||||||
| [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl |  | ||||||
| test x"${MISSING+set}" = xset || MISSING="\${SHELL} \"$am_aux_dir/missing\"" |  | ||||||
| # Use eval to expand $SHELL |  | ||||||
| if eval "$MISSING --run true"; then |  | ||||||
|   am_missing_run="$MISSING --run " |  | ||||||
| else |  | ||||||
|   am_missing_run= |  | ||||||
|   AC_MSG_WARN([`missing' script is too old or missing]) |  | ||||||
| fi |  | ||||||
| ]) |  | ||||||
|  |  | ||||||
|  |  | ||||||
| dnl CURL_VERIFY_RUNTIMELIBS | dnl CURL_VERIFY_RUNTIMELIBS | ||||||
| dnl ------------------------------------------------- | dnl ------------------------------------------------- | ||||||
| dnl Verify that the shared libs found so far can be used when running | dnl Verify that the shared libs found so far can be used when running | ||||||
| @@ -2607,15 +2590,16 @@ AC_HELP_STRING([--without-ca-path], [Don't use a default CA path]), | |||||||
|   if test "x$want_ca" != "xno" -a "x$want_ca" != "xunset" -a \ |   if test "x$want_ca" != "xno" -a "x$want_ca" != "xunset" -a \ | ||||||
|           "x$want_capath" != "xno" -a "x$want_capath" != "xunset"; then |           "x$want_capath" != "xno" -a "x$want_capath" != "xunset"; then | ||||||
|     dnl both given |     dnl both given | ||||||
|     AC_MSG_ERROR([Can't specify both --with-ca-bundle and --with-ca-path.]) |     ca="$want_ca" | ||||||
|  |     capath="$want_capath" | ||||||
|   elif test "x$want_ca" != "xno" -a "x$want_ca" != "xunset"; then |   elif test "x$want_ca" != "xno" -a "x$want_ca" != "xunset"; then | ||||||
|     dnl --with-ca-bundle given |     dnl --with-ca-bundle given | ||||||
|     ca="$want_ca" |     ca="$want_ca" | ||||||
|     capath="no" |     capath="no" | ||||||
|   elif test "x$want_capath" != "xno" -a "x$want_capath" != "xunset"; then |   elif test "x$want_capath" != "xno" -a "x$want_capath" != "xunset"; then | ||||||
|     dnl --with-ca-path given |     dnl --with-ca-path given | ||||||
|     if test "x$OPENSSL_ENABLED" != "x1" -a "x$POLARSSL_ENABLED" != "x1"; then |     if test "x$OPENSSL_ENABLED" != "x1" -a "x$GNUTLS_ENABLED" != "x1" -a "x$POLARSSL_ENABLED" != "x1"; then | ||||||
|       AC_MSG_ERROR([--with-ca-path only works with openSSL or PolarSSL]) |       AC_MSG_ERROR([--with-ca-path only works with OpenSSL, GnuTLS or PolarSSL]) | ||||||
|     fi |     fi | ||||||
|     capath="$want_capath" |     capath="$want_capath" | ||||||
|     ca="no" |     ca="no" | ||||||
| @@ -2669,11 +2653,13 @@ AC_HELP_STRING([--without-ca-path], [Don't use a default CA path]), | |||||||
|     AC_DEFINE_UNQUOTED(CURL_CA_BUNDLE, "$ca", [Location of default ca bundle]) |     AC_DEFINE_UNQUOTED(CURL_CA_BUNDLE, "$ca", [Location of default ca bundle]) | ||||||
|     AC_SUBST(CURL_CA_BUNDLE) |     AC_SUBST(CURL_CA_BUNDLE) | ||||||
|     AC_MSG_RESULT([$ca]) |     AC_MSG_RESULT([$ca]) | ||||||
|   elif test "x$capath" != "xno"; then |   fi | ||||||
|  |   if test "x$capath" != "xno"; then | ||||||
|     CURL_CA_PATH="\"$capath\"" |     CURL_CA_PATH="\"$capath\"" | ||||||
|     AC_DEFINE_UNQUOTED(CURL_CA_PATH, "$capath", [Location of default ca path]) |     AC_DEFINE_UNQUOTED(CURL_CA_PATH, "$capath", [Location of default ca path]) | ||||||
|     AC_MSG_RESULT([$capath (capath)]) |     AC_MSG_RESULT([$capath (capath)]) | ||||||
|   else |   fi | ||||||
|  |   if test "x$ca" = "xno" && test "x$capath" = "xno"; then | ||||||
|     AC_MSG_RESULT([no]) |     AC_MSG_RESULT([no]) | ||||||
|   fi |   fi | ||||||
| ]) | ]) | ||||||
|   | |||||||
| @@ -318,6 +318,8 @@ for fname in .deps \ | |||||||
|     ltsugar.m4 \ |     ltsugar.m4 \ | ||||||
|     ltversion.m4 \ |     ltversion.m4 \ | ||||||
|     lt~obsolete.m4 \ |     lt~obsolete.m4 \ | ||||||
|  |     missing \ | ||||||
|  |     install-sh \ | ||||||
|     stamp-h1 \ |     stamp-h1 \ | ||||||
|     stamp-h2 \ |     stamp-h2 \ | ||||||
|     stamp-h3 ; do |     stamp-h3 ; do | ||||||
| @@ -329,7 +331,7 @@ done | |||||||
| # | # | ||||||
|  |  | ||||||
| echo "buildconf: running libtoolize" | echo "buildconf: running libtoolize" | ||||||
| ${libtoolize} --copy --automake --force || die "libtoolize command failed" | ${libtoolize} --copy --force || die "libtoolize command failed" | ||||||
|  |  | ||||||
| # When using libtool 1.5.X (X < 26) we copy libtool.m4 to our local m4 | # When using libtool 1.5.X (X < 26) we copy libtool.m4 to our local m4 | ||||||
| # subdirectory and this local copy is patched to fix some warnings that | # subdirectory and this local copy is patched to fix some warnings that | ||||||
|   | |||||||
							
								
								
									
										161
									
								
								configure.ac
									
									
									
									
									
								
							
							
						
						
									
										161
									
								
								configure.ac
									
									
									
									
									
								
							| @@ -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 | ||||||
| @@ -1046,7 +1046,7 @@ if test x$CURL_DISABLE_LDAP != x1 ; then | |||||||
|  |  | ||||||
|   if test "$LDAPLIBNAME" = "wldap32"; then |   if test "$LDAPLIBNAME" = "wldap32"; then | ||||||
|     curl_ldap_msg="enabled (winldap)" |     curl_ldap_msg="enabled (winldap)" | ||||||
|     AC_DEFINE(CURL_LDAP_WIN, 1, [Use Windows LDAP implementation]) |     AC_DEFINE(USE_WIN32_LDAP, 1, [Use Windows LDAP implementation]) | ||||||
|   else |   else | ||||||
|     curl_ldap_msg="enabled (OpenLDAP)" |     curl_ldap_msg="enabled (OpenLDAP)" | ||||||
|     if test "x$ac_cv_func_ldap_init_fd" = "xyes"; then |     if test "x$ac_cv_func_ldap_init_fd" = "xyes"; then | ||||||
| @@ -1184,6 +1184,8 @@ AC_ARG_WITH(gssapi, | |||||||
|   fi |   fi | ||||||
| ]) | ]) | ||||||
|  |  | ||||||
|  | : ${KRB5CONFIG:="$GSSAPI_ROOT/bin/krb5-config"} | ||||||
|  |  | ||||||
| save_CPPFLAGS="$CPPFLAGS" | save_CPPFLAGS="$CPPFLAGS" | ||||||
| AC_MSG_CHECKING([if GSS-API support is requested]) | AC_MSG_CHECKING([if GSS-API support is requested]) | ||||||
| if test x"$want_gss" = xyes; then | if test x"$want_gss" = xyes; then | ||||||
| @@ -1192,8 +1194,8 @@ if test x"$want_gss" = xyes; then | |||||||
|   if test -z "$GSSAPI_INCS"; then |   if test -z "$GSSAPI_INCS"; then | ||||||
|      if test -n "$host_alias" -a -f "$GSSAPI_ROOT/bin/$host_alias-krb5-config"; then |      if test -n "$host_alias" -a -f "$GSSAPI_ROOT/bin/$host_alias-krb5-config"; then | ||||||
|         GSSAPI_INCS=`$GSSAPI_ROOT/bin/$host_alias-krb5-config --cflags gssapi` |         GSSAPI_INCS=`$GSSAPI_ROOT/bin/$host_alias-krb5-config --cflags gssapi` | ||||||
|      elif test -f "$GSSAPI_ROOT/bin/krb5-config"; then |      elif test -f "$KRB5CONFIG"; then | ||||||
|         GSSAPI_INCS=`$GSSAPI_ROOT/bin/krb5-config --cflags gssapi` |         GSSAPI_INCS=`$KRB5CONFIG --cflags gssapi` | ||||||
|      elif test "$GSSAPI_ROOT" != "yes"; then |      elif test "$GSSAPI_ROOT" != "yes"; then | ||||||
|         GSSAPI_INCS="-I$GSSAPI_ROOT/include" |         GSSAPI_INCS="-I$GSSAPI_ROOT/include" | ||||||
|      fi |      fi | ||||||
| @@ -1283,10 +1285,10 @@ if test x"$want_gss" = xyes; then | |||||||
|            dnl into LIBS |            dnl into LIBS | ||||||
|            gss_libs=`$GSSAPI_ROOT/bin/$host_alias-krb5-config --libs gssapi` |            gss_libs=`$GSSAPI_ROOT/bin/$host_alias-krb5-config --libs gssapi` | ||||||
|            LIBS="$gss_libs $LIBS" |            LIBS="$gss_libs $LIBS" | ||||||
|         elif test -f "$GSSAPI_ROOT/bin/krb5-config"; then |         elif test -f "$KRB5CONFIG"; then | ||||||
|            dnl krb5-config doesn't have --libs-only-L or similar, put everything |            dnl krb5-config doesn't have --libs-only-L or similar, put everything | ||||||
|            dnl into LIBS |            dnl into LIBS | ||||||
|            gss_libs=`$GSSAPI_ROOT/bin/krb5-config --libs gssapi` |            gss_libs=`$KRB5CONFIG --libs gssapi` | ||||||
|            LIBS="$gss_libs $LIBS" |            LIBS="$gss_libs $LIBS" | ||||||
|         else |         else | ||||||
|            case $host in |            case $host in | ||||||
| @@ -1451,6 +1453,7 @@ if test "$curl_ssl_msg" = "$init_ssl_msg" && test X"$OPT_SSL" != Xno; then | |||||||
|       SSL_CPPFLAGS=`CURL_EXPORT_PCDIR([$OPENSSL_PCDIR]) dnl |       SSL_CPPFLAGS=`CURL_EXPORT_PCDIR([$OPENSSL_PCDIR]) dnl | ||||||
|         $PKGCONFIG --cflags-only-I openssl 2>/dev/null` |         $PKGCONFIG --cflags-only-I openssl 2>/dev/null` | ||||||
|  |  | ||||||
|  |       AC_SUBST(SSL_LIBS) | ||||||
|       AC_MSG_NOTICE([pkg-config: SSL_LIBS: "$SSL_LIBS"]) |       AC_MSG_NOTICE([pkg-config: SSL_LIBS: "$SSL_LIBS"]) | ||||||
|       AC_MSG_NOTICE([pkg-config: SSL_LDFLAGS: "$SSL_LDFLAGS"]) |       AC_MSG_NOTICE([pkg-config: SSL_LDFLAGS: "$SSL_LDFLAGS"]) | ||||||
|       AC_MSG_NOTICE([pkg-config: SSL_CPPFLAGS: "$SSL_CPPFLAGS"]) |       AC_MSG_NOTICE([pkg-config: SSL_CPPFLAGS: "$SSL_CPPFLAGS"]) | ||||||
| @@ -1527,7 +1530,7 @@ if test "$curl_ssl_msg" = "$init_ssl_msg" && test X"$OPT_SSL" != Xno; then | |||||||
|  |  | ||||||
|     else |     else | ||||||
|  |  | ||||||
|       dnl Have the libraries--check for SSLeay/OpenSSL headers |       dnl Have the libraries--check for OpenSSL headers | ||||||
|       AC_CHECK_HEADERS(openssl/x509.h openssl/rsa.h openssl/crypto.h \ |       AC_CHECK_HEADERS(openssl/x509.h openssl/rsa.h openssl/crypto.h \ | ||||||
|                        openssl/pem.h openssl/ssl.h openssl/err.h, |                        openssl/pem.h openssl/ssl.h openssl/err.h, | ||||||
|         curl_ssl_msg="enabled (OpenSSL)" |         curl_ssl_msg="enabled (OpenSSL)" | ||||||
| @@ -1551,17 +1554,11 @@ if test "$curl_ssl_msg" = "$init_ssl_msg" && test X"$OPT_SSL" != Xno; then | |||||||
|     fi |     fi | ||||||
|  |  | ||||||
|     if test X"$OPENSSL_ENABLED" = X"1"; then |     if test X"$OPENSSL_ENABLED" = X"1"; then | ||||||
|        AC_DEFINE(USE_SSLEAY, 1, [if SSL is enabled]) |  | ||||||
|  |  | ||||||
|        dnl is there a pkcs12.h header present? |        dnl is there a pkcs12.h header present? | ||||||
|        AC_CHECK_HEADERS(openssl/pkcs12.h) |        AC_CHECK_HEADERS(openssl/pkcs12.h) | ||||||
|     else |     else | ||||||
|        LIBS="$CLEANLIBS" |        LIBS="$CLEANLIBS" | ||||||
|     fi |     fi | ||||||
|     dnl USE_SSLEAY is the historical name for what configure calls |  | ||||||
|     dnl OPENSSL_ENABLED; the names should really be unified |  | ||||||
|     USE_SSLEAY="$OPENSSL_ENABLED" |  | ||||||
|     AC_SUBST(USE_SSLEAY) |  | ||||||
|  |  | ||||||
|     if test X"$OPT_SSL" != Xoff && |     if test X"$OPT_SSL" != Xoff && | ||||||
|        test "$OPENSSL_ENABLED" != "1"; then |        test "$OPENSSL_ENABLED" != "1"; then | ||||||
| @@ -1578,8 +1575,11 @@ if test "$curl_ssl_msg" = "$init_ssl_msg" && test X"$OPT_SSL" != Xno; then | |||||||
|                 AC_CHECK_FUNCS( ENGINE_load_builtin_engines ) |                 AC_CHECK_FUNCS( ENGINE_load_builtin_engines ) | ||||||
|               ]) |               ]) | ||||||
|  |  | ||||||
|     dnl these can only exist if openssl exists |     dnl These can only exist if OpenSSL exists | ||||||
|     dnl yassl doesn't have SSL_get_shutdown |     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 as it's a macro that needs the header files be included) | ||||||
|  |     dnl BoringSSL doesn't have DES_set_odd_parity | ||||||
|  |  | ||||||
|     AC_CHECK_FUNCS( RAND_status \ |     AC_CHECK_FUNCS( RAND_status \ | ||||||
|                     RAND_screen \ |                     RAND_screen \ | ||||||
| @@ -1587,28 +1587,30 @@ if test "$curl_ssl_msg" = "$init_ssl_msg" && test X"$OPT_SSL" != Xno; then | |||||||
|                     ENGINE_cleanup \ |                     ENGINE_cleanup \ | ||||||
|                     CRYPTO_cleanup_all_ex_data \ |                     CRYPTO_cleanup_all_ex_data \ | ||||||
|                     SSL_get_shutdown \ |                     SSL_get_shutdown \ | ||||||
|                     SSLv2_client_method ) |                     SSLv2_client_method \ | ||||||
|  |                     DES_set_odd_parity ) | ||||||
|  |  | ||||||
|     dnl Make an attempt to detect if this is actually yassl's headers and |     AC_MSG_CHECKING([for BoringSSL]) | ||||||
|     dnl OpenSSL emulation layer. We still leave everything else believing |     if test "x$ac_cv_func_DES_set_odd_parity" != "xyes"; then | ||||||
|     dnl and acting like OpenSSL. |       curl_ssl_msg="enabled (BoringSSL)" | ||||||
|  |       AC_DEFINE_UNQUOTED(HAVE_BORINGSSL, 1, | ||||||
|     AC_MSG_CHECKING([for yaSSL using OpenSSL compatibility mode]) |         [Define to 1 if using BoringSSL.]) | ||||||
|  |       AC_MSG_RESULT([yes]) | ||||||
|  |     else | ||||||
|  |       AC_MSG_RESULT([no]) | ||||||
|  |     fi | ||||||
|  |     AC_MSG_CHECKING([for libressl]) | ||||||
|     AC_COMPILE_IFELSE([ |     AC_COMPILE_IFELSE([ | ||||||
|       AC_LANG_PROGRAM([[ |       AC_LANG_PROGRAM([[ | ||||||
| #include <openssl/ssl.h> | #include <openssl/opensslv.h> | ||||||
|       ]],[[ |       ]],[[ | ||||||
| #if defined(YASSL_VERSION) && defined(OPENSSL_VERSION_NUMBER) |         int dummy = LIBRESSL_VERSION_NUMBER; | ||||||
|         int dummy = SSL_ERROR_NONE; |  | ||||||
| #else |  | ||||||
|         Not the yaSSL OpenSSL compatibility header. |  | ||||||
| #endif |  | ||||||
|       ]]) |       ]]) | ||||||
|     ],[ |     ],[ | ||||||
|       AC_MSG_RESULT([yes]) |       AC_MSG_RESULT([yes]) | ||||||
|       AC_DEFINE_UNQUOTED(USE_YASSLEMUL, 1, |       AC_DEFINE_UNQUOTED(HAVE_LIBRESSL, 1, | ||||||
|         [Define to 1 if using yaSSL in OpenSSL compatibility mode.]) |         [Define to 1 if using libressl.]) | ||||||
|       curl_ssl_msg="enabled (OpenSSL emulation by yaSSL)" |       curl_ssl_msg="enabled (libressl)" | ||||||
|     ],[ |     ],[ | ||||||
|       AC_MSG_RESULT([no]) |       AC_MSG_RESULT([no]) | ||||||
|     ]) |     ]) | ||||||
| @@ -1672,8 +1674,8 @@ dnl --- | |||||||
| if test "$OPENSSL_ENABLED" = "1"; then | if test "$OPENSSL_ENABLED" = "1"; then | ||||||
|   AC_CHECK_LIB(crypto, SRP_Calc_client_key, |   AC_CHECK_LIB(crypto, SRP_Calc_client_key, | ||||||
|    [ |    [ | ||||||
|      AC_DEFINE(HAVE_SSLEAY_SRP, 1, [if you have the function SRP_Calc_client_key]) |      AC_DEFINE(HAVE_OPENSSL_SRP, 1, [if you have the function SRP_Calc_client_key]) | ||||||
|      AC_SUBST(HAVE_SSLEAY_SRP, [1]) |      AC_SUBST(HAVE_OPENSSL_SRP, [1]) | ||||||
|    ]) |    ]) | ||||||
| fi | fi | ||||||
|  |  | ||||||
| @@ -1943,6 +1945,10 @@ if test "$curl_ssl_msg" = "$init_ssl_msg"; then | |||||||
|       OPT_CYASSL="" |       OPT_CYASSL="" | ||||||
|     fi |     fi | ||||||
|  |  | ||||||
|  |     dnl This should be reworked to use pkg-config instead | ||||||
|  |  | ||||||
|  |     cyassllibname=cyassl | ||||||
|  |  | ||||||
|     if test -z "$OPT_CYASSL" ; then |     if test -z "$OPT_CYASSL" ; then | ||||||
|       dnl check for lib in system default first |       dnl check for lib in system default first | ||||||
|  |  | ||||||
| @@ -1984,19 +1990,70 @@ if test "$curl_ssl_msg" = "$init_ssl_msg"; then | |||||||
|        [ |        [ | ||||||
|          CPPFLAGS=$_cppflags |          CPPFLAGS=$_cppflags | ||||||
|          LDFLAGS=$_ldflags |          LDFLAGS=$_ldflags | ||||||
|  |          cyassllib="" | ||||||
|        ]) |        ]) | ||||||
|     fi |     fi | ||||||
|  |  | ||||||
|  |     addld="" | ||||||
|  |     addlib="" | ||||||
|  |     addcflags="" | ||||||
|  |  | ||||||
|  |     if test "x$USE_CYASSL" != "xyes"; then | ||||||
|  |       dnl libcyassl renamed to libwolfssl as of 3.4.0 | ||||||
|  |       addld=-L$OPT_CYASSL/lib$libsuff | ||||||
|  |       addcflags=-I$OPT_CYASSL/include | ||||||
|  |       cyassllib=$OPT_CYASSL/lib$libsuff | ||||||
|  |  | ||||||
|  |       LDFLAGS="$LDFLAGS $addld" | ||||||
|  |       if test "$addcflags" != "-I/usr/include"; then | ||||||
|  |          CPPFLAGS="$CPPFLAGS $addcflags" | ||||||
|  |       fi | ||||||
|  |  | ||||||
|  |       cyassllibname=wolfssl | ||||||
|  |       my_ac_save_LIBS="$LIBS" | ||||||
|  |       LIBS="-l$cyassllibname -lm $LIBS" | ||||||
|  |  | ||||||
|  |       AC_MSG_CHECKING([for CyaSSL_Init in -lwolfssl]) | ||||||
|  |       AC_LINK_IFELSE([ | ||||||
|  | 	AC_LANG_PROGRAM([[ | ||||||
|  | /* These aren't needed for detection and confuse WolfSSL. | ||||||
|  |    They are set up properly later if it is detected.  */ | ||||||
|  | #undef SIZEOF_LONG | ||||||
|  | #undef SIZEOF_LONG_LONG | ||||||
|  | #include <cyassl/ssl.h> | ||||||
|  | 	]],[[ | ||||||
|  | 	  return CyaSSL_Init(); | ||||||
|  | 	]]) | ||||||
|  |       ],[ | ||||||
|  |          AC_MSG_RESULT(yes) | ||||||
|  |          AC_DEFINE(USE_CYASSL, 1, [if CyaSSL is enabled]) | ||||||
|  |          AC_SUBST(USE_CYASSL, [1]) | ||||||
|  |          CYASSL_ENABLED=1 | ||||||
|  |          USE_CYASSL="yes" | ||||||
|  |          curl_ssl_msg="enabled (CyaSSL)" | ||||||
|  |        ], | ||||||
|  |        [ | ||||||
|  |          AC_MSG_RESULT(no) | ||||||
|  |          CPPFLAGS=$_cppflags | ||||||
|  |          LDFLAGS=$_ldflags | ||||||
|  |          cyassllib="" | ||||||
|  |        ]) | ||||||
|  |       LIBS="$my_ac_save_LIBS" | ||||||
|  |     fi | ||||||
|  |  | ||||||
|     if test "x$USE_CYASSL" = "xyes"; then |     if test "x$USE_CYASSL" = "xyes"; then | ||||||
|       AC_MSG_NOTICE([detected CyaSSL]) |       AC_MSG_NOTICE([detected CyaSSL]) | ||||||
|  |  | ||||||
|       dnl cyassl/ctaocrypt/types.h needs SIZEOF_LONG_LONG defined! |       dnl cyassl/ctaocrypt/types.h needs SIZEOF_LONG_LONG defined! | ||||||
|       AC_CHECK_SIZEOF(long long) |       AC_CHECK_SIZEOF(long long) | ||||||
|  |  | ||||||
|  |       dnl Versions since at least 2.6.0 may have options.h | ||||||
|  |       AC_CHECK_HEADERS(cyassl/options.h) | ||||||
|  |  | ||||||
|       dnl Versions since at least 2.9.4 renamed error.h to error-ssl.h |       dnl Versions since at least 2.9.4 renamed error.h to error-ssl.h | ||||||
|       AC_CHECK_HEADERS(cyassl/error-ssl.h) |       AC_CHECK_HEADERS(cyassl/error-ssl.h) | ||||||
|  |  | ||||||
|       LIBS="-lcyassl -lm $LIBS" |       LIBS="-l$cyassllibname -lm $LIBS" | ||||||
|  |  | ||||||
|       if test -n "$cyassllib"; then |       if test -n "$cyassllib"; then | ||||||
|         dnl when shared libs were found in a path that the run-time |         dnl when shared libs were found in a path that the run-time | ||||||
| @@ -2063,18 +2120,34 @@ if test "$curl_ssl_msg" = "$init_ssl_msg"; then | |||||||
|         fi |         fi | ||||||
|       fi |       fi | ||||||
|     else |     else | ||||||
|  |       NSS_PCDIR="$OPT_NSS/lib/pkgconfig" | ||||||
|  |       if test -f "$NSS_PCDIR/nss.pc"; then | ||||||
|  |         CURL_CHECK_PKGCONFIG(nss, [$NSS_PCDIR]) | ||||||
|  |         if test "$PKGCONFIG" != "no" ; then | ||||||
|  |           addld=`CURL_EXPORT_PCDIR([$NSS_PCDIR]) $PKGCONFIG --libs-only-L nss` | ||||||
|  |           addlib=`CURL_EXPORT_PCDIR([$NSS_PCDIR]) $PKGCONFIG --libs-only-l nss` | ||||||
|  |           addcflags=`CURL_EXPORT_PCDIR([$NSS_PCDIR]) $PKGCONFIG --cflags nss` | ||||||
|  |           version=`CURL_EXPORT_PCDIR([$NSS_PCDIR]) $PKGCONFIG --modversion nss` | ||||||
|  |           nssprefix=`CURL_EXPORT_PCDIR([$NSS_PCDIR]) $PKGCONFIG --variable=prefix nss` | ||||||
|  |         fi | ||||||
|  |       fi | ||||||
|  |     fi | ||||||
|  |  | ||||||
|  |     if test -z "$addlib"; then | ||||||
|       # Without pkg-config, we'll kludge in some defaults |       # Without pkg-config, we'll kludge in some defaults | ||||||
|         addlib="-L$OPT_NSS/lib -lssl3 -lsmime3 -lnss3 -lplds4 -lplc4 -lnspr4 -lpthread -ldl" |       AC_MSG_WARN([Using hard-wired libraries and compilation flags for NSS.]) | ||||||
|  |       addld="-L$OPT_NSS/lib" | ||||||
|  |       addlib="-lssl3 -lsmime3 -lnss3 -lplds4 -lplc4 -lnspr4" | ||||||
|       addcflags="-I$OPT_NSS/include" |       addcflags="-I$OPT_NSS/include" | ||||||
|       version="unknown" |       version="unknown" | ||||||
|       nssprefix=$OPT_NSS |       nssprefix=$OPT_NSS | ||||||
|     fi |     fi | ||||||
|  |  | ||||||
|     if test -n "$addlib"; then |     CLEANLDFLAGS="$LDFLAGS" | ||||||
|  |  | ||||||
|     CLEANLIBS="$LIBS" |     CLEANLIBS="$LIBS" | ||||||
|     CLEANCPPFLAGS="$CPPFLAGS" |     CLEANCPPFLAGS="$CPPFLAGS" | ||||||
|  |  | ||||||
|  |     LDFLAGS="$addld $LDFLAGS" | ||||||
|     LIBS="$addlib $LIBS" |     LIBS="$addlib $LIBS" | ||||||
|     if test "$addcflags" != "-I/usr/include"; then |     if test "$addcflags" != "-I/usr/include"; then | ||||||
|        CPPFLAGS="$CPPFLAGS $addcflags" |        CPPFLAGS="$CPPFLAGS $addcflags" | ||||||
| @@ -2090,6 +2163,7 @@ if test "$curl_ssl_msg" = "$init_ssl_msg"; then | |||||||
|      curl_ssl_msg="enabled (NSS)" |      curl_ssl_msg="enabled (NSS)" | ||||||
|      ], |      ], | ||||||
|      [ |      [ | ||||||
|  |        LDFLAGS="$CLEANLDFLAGS" | ||||||
|        LIBS="$CLEANLIBS" |        LIBS="$CLEANLIBS" | ||||||
|        CPPFLAGS="$CLEANCPPFLAGS" |        CPPFLAGS="$CLEANCPPFLAGS" | ||||||
|      ]) |      ]) | ||||||
| @@ -2110,9 +2184,8 @@ if test "$curl_ssl_msg" = "$init_ssl_msg"; then | |||||||
|         export LD_LIBRARY_PATH |         export LD_LIBRARY_PATH | ||||||
|         AC_MSG_NOTICE([Added $nssprefix/lib$libsuff to LD_LIBRARY_PATH]) |         AC_MSG_NOTICE([Added $nssprefix/lib$libsuff to LD_LIBRARY_PATH]) | ||||||
|       fi |       fi | ||||||
|       fi |  | ||||||
|  |  | ||||||
|     fi |     fi dnl NSS found | ||||||
|  |  | ||||||
|   fi dnl NSS not disabled |   fi dnl NSS not disabled | ||||||
|  |  | ||||||
| @@ -2768,7 +2841,9 @@ if test X"$want_h2" != Xno; then | |||||||
|     CPPFLAGS="$CPPFLAGS $CPP_H2" |     CPPFLAGS="$CPPFLAGS $CPP_H2" | ||||||
|     LIBS="$LIB_H2 $LIBS" |     LIBS="$LIB_H2 $LIBS" | ||||||
|  |  | ||||||
|     AC_CHECK_LIB(nghttp2, nghttp2_session_callbacks_set_send_callback, |     # use nghttp2_option_set_no_recv_client_magic to require nghttp2 | ||||||
|  |     # >= 1.0.0 | ||||||
|  |     AC_CHECK_LIB(nghttp2, nghttp2_option_set_no_recv_client_magic, | ||||||
|       [ |       [ | ||||||
|        AC_CHECK_HEADERS(nghttp2/nghttp2.h, |        AC_CHECK_HEADERS(nghttp2/nghttp2.h, | ||||||
|           curl_h2_msg="enabled (nghttp2)" |           curl_h2_msg="enabled (nghttp2)" | ||||||
| @@ -3268,7 +3343,7 @@ AC_HELP_STRING([--disable-tls-srp],[Disable TLS-SRP authentication]), | |||||||
|        want_tls_srp=yes |        want_tls_srp=yes | ||||||
| ) | ) | ||||||
|  |  | ||||||
| if test "$want_tls_srp" = "yes" && ( test "x$HAVE_GNUTLS_SRP" = "x1" || test "x$HAVE_SSLEAY_SRP" = "x1") ; then | if test "$want_tls_srp" = "yes" && ( test "x$HAVE_GNUTLS_SRP" = "x1" || test "x$HAVE_OPENSSL_SRP" = "x1") ; then | ||||||
|    AC_DEFINE(USE_TLS_SRP, 1, [Use TLS-SRP authentication]) |    AC_DEFINE(USE_TLS_SRP, 1, [Use TLS-SRP authentication]) | ||||||
|    USE_TLS_SRP=1 |    USE_TLS_SRP=1 | ||||||
|    curl_tls_srp_msg="enabled" |    curl_tls_srp_msg="enabled" | ||||||
| @@ -3382,7 +3457,7 @@ dnl For keeping supported features and protocols also in pkg-config file | |||||||
| dnl since it is more cross-compile friendly than curl-config | dnl since it is more cross-compile friendly than curl-config | ||||||
| dnl | dnl | ||||||
|  |  | ||||||
| if test "x$USE_SSLEAY" = "x1"; then | if test "x$OPENSSL_ENABLED" = "x1"; then | ||||||
|   SUPPORT_FEATURES="$SUPPORT_FEATURES SSL" |   SUPPORT_FEATURES="$SUPPORT_FEATURES SSL" | ||||||
| elif test -n "$SSL_ENABLED"; then | elif test -n "$SSL_ENABLED"; then | ||||||
|   SUPPORT_FEATURES="$SUPPORT_FEATURES SSL" |   SUPPORT_FEATURES="$SUPPORT_FEATURES SSL" | ||||||
| @@ -3421,7 +3496,7 @@ if test "x$CURL_DISABLE_CRYPTO_AUTH" != "x1" -a \ | |||||||
| fi | fi | ||||||
|  |  | ||||||
| if test "x$CURL_DISABLE_CRYPTO_AUTH" != "x1"; then | if test "x$CURL_DISABLE_CRYPTO_AUTH" != "x1"; then | ||||||
|   if test "x$USE_SSLEAY" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \ |   if test "x$OPENSSL_ENABLED" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \ | ||||||
|       -o "x$GNUTLS_ENABLED" = "x1" -o "x$NSS_ENABLED" = "x1" \ |       -o "x$GNUTLS_ENABLED" = "x1" -o "x$NSS_ENABLED" = "x1" \ | ||||||
|       -o "x$DARWINSSL_ENABLED" = "x1"; then |       -o "x$DARWINSSL_ENABLED" = "x1"; then | ||||||
|     SUPPORT_FEATURES="$SUPPORT_FEATURES NTLM" |     SUPPORT_FEATURES="$SUPPORT_FEATURES NTLM" | ||||||
| @@ -3494,7 +3569,7 @@ if test "x$CURL_DISABLE_IMAP" != "x1"; then | |||||||
| fi | fi | ||||||
| if test "x$CURL_DISABLE_SMB" != "x1" \ | if test "x$CURL_DISABLE_SMB" != "x1" \ | ||||||
|     -a "x$CURL_DISABLE_CRYPTO_AUTH" != "x1" \ |     -a "x$CURL_DISABLE_CRYPTO_AUTH" != "x1" \ | ||||||
|     -a \( "x$USE_SSLEAY" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \ |     -a \( "x$OPENSSL_ENABLED" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \ | ||||||
|       -o "x$GNUTLS_ENABLED" = "x1" -o "x$NSS_ENABLED" = "x1" \ |       -o "x$GNUTLS_ENABLED" = "x1" -o "x$NSS_ENABLED" = "x1" \ | ||||||
|       -o "x$DARWINSSL_ENABLED" = "x1" \); then |       -o "x$DARWINSSL_ENABLED" = "x1" \); then | ||||||
|   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMB" |   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMB" | ||||||
|   | |||||||
| @@ -71,7 +71,7 @@ while test $# -gt 0; do | |||||||
|         ;; |         ;; | ||||||
|  |  | ||||||
|     --ca) |     --ca) | ||||||
|         echo "@CURL_CA_BUNDLE@" |         echo @CURL_CA_BUNDLE@ | ||||||
|         ;; |         ;; | ||||||
|  |  | ||||||
|     --cc) |     --cc) | ||||||
|   | |||||||
| @@ -50,7 +50,7 @@ Cocoa | |||||||
| D | D | ||||||
|  |  | ||||||
|   Written by Kenneth Bogert |   Written by Kenneth Bogert | ||||||
|   http://curl.haxx.se/libcurl/d/ |   http://dlang.org/library/std/net/curl.html | ||||||
|  |  | ||||||
| Dylan | Dylan | ||||||
|  |  | ||||||
| @@ -60,7 +60,7 @@ Dylan | |||||||
| Eiffel | Eiffel | ||||||
|  |  | ||||||
|   Written by Eiffel Software |   Written by Eiffel Software | ||||||
|   http://curl.haxx.se/libcurl/eiffel/ |   https://room.eiffel.com/library/curl | ||||||
|  |  | ||||||
| Euphoria | Euphoria | ||||||
|  |  | ||||||
| @@ -78,7 +78,7 @@ Ferite | |||||||
|  |  | ||||||
| Gambas | Gambas | ||||||
|  |  | ||||||
|   http://gambas.sourceforge.net |   http://gambas.sourceforge.net/ | ||||||
|  |  | ||||||
| glib/GTK+ | glib/GTK+ | ||||||
|  |  | ||||||
| @@ -90,6 +90,11 @@ Guile: | |||||||
|   Written by Michael L. Gran |   Written by Michael L. Gran | ||||||
|   http://www.lonelycactus.com/guile-curl.html |   http://www.lonelycactus.com/guile-curl.html | ||||||
|  |  | ||||||
|  | Harbour | ||||||
|  |  | ||||||
|  |   Written by Viktor Szakáts | ||||||
|  |   https://github.com/vszakats/harbour-core/tree/master/contrib/hbcurl | ||||||
|  |  | ||||||
| Haskell | Haskell | ||||||
|  |  | ||||||
|   Written by Galois, Inc |   Written by Galois, Inc | ||||||
| @@ -97,8 +102,7 @@ Haskell | |||||||
|  |  | ||||||
| Java | Java | ||||||
|  |  | ||||||
|   Maintained by [blank] |   https://github.com/pjlegato/curl-java | ||||||
|   http://curl.haxx.se/libcurl/java/ |  | ||||||
|  |  | ||||||
| Julia | Julia | ||||||
|  |  | ||||||
| @@ -115,7 +119,7 @@ Lua | |||||||
|   luacurl by Alexander Marinov |   luacurl by Alexander Marinov | ||||||
|   http://luacurl.luaforge.net/ |   http://luacurl.luaforge.net/ | ||||||
|  |  | ||||||
|   Lua-cURL by J<EFBFBD>rgen H<EFBFBD>tzel |   Lua-cURL by Jürgen Hötzel | ||||||
|   http://luaforge.net/projects/lua-curl/ |   http://luaforge.net/projects/lua-curl/ | ||||||
|  |  | ||||||
| Mono | Mono | ||||||
| @@ -126,7 +130,7 @@ Mono | |||||||
| .NET | .NET | ||||||
|  |  | ||||||
|   libcurl-net by Jeffrey Phillips |   libcurl-net by Jeffrey Phillips | ||||||
|   http://sourceforge.net/projects/libcurl-net/ |   https://sourceforge.net/projects/libcurl-net/ | ||||||
|  |  | ||||||
| node.js | node.js | ||||||
|  |  | ||||||
| @@ -141,7 +145,7 @@ Object-Pascal | |||||||
| O'Caml | O'Caml | ||||||
|  |  | ||||||
|   Written by Lars Nilsson |   Written by Lars Nilsson | ||||||
|   http://sourceforge.net/projects/ocurl/ |   https://sourceforge.net/projects/ocurl/ | ||||||
|  |  | ||||||
| Pascal | Pascal | ||||||
|  |  | ||||||
| @@ -150,13 +154,13 @@ Pascal | |||||||
|  |  | ||||||
| Perl | Perl | ||||||
|  |  | ||||||
|   Maintained by Cris Bailiff |   Maintained by Cris Bailiff and Bálint Szilakszi | ||||||
|   http://curl.haxx.se/libcurl/perl/ |   https://github.com/szbalint/WWW--Curl | ||||||
|  |  | ||||||
| PHP | PHP | ||||||
|  |  | ||||||
|   Written by Sterling Hughes |   Written by Sterling Hughes | ||||||
|   http://curl.haxx.se/libcurl/php/ |   https://php.net/curl | ||||||
|  |  | ||||||
| PostgreSQL | PostgreSQL | ||||||
|  |  | ||||||
| @@ -170,8 +174,7 @@ Python | |||||||
|  |  | ||||||
| R | R | ||||||
|  |  | ||||||
|   RCurl by Duncan Temple Lang |   http://cran.r-project.org/package=curl | ||||||
|   http://www.omegahat.org/RCurl/ |  | ||||||
|  |  | ||||||
| Rexx | Rexx | ||||||
|  |  | ||||||
| @@ -192,10 +195,15 @@ Ruby | |||||||
|   ruby-curl-multi - written by Kristjan Petursson and Keith Rarick |   ruby-curl-multi - written by Kristjan Petursson and Keith Rarick | ||||||
|   http://curl-multi.rubyforge.org/ |   http://curl-multi.rubyforge.org/ | ||||||
|  |  | ||||||
|  | Rust | ||||||
|  |  | ||||||
|  |   curl-rust - by Carl Lerche | ||||||
|  |   https://github.com/carllerche/curl-rust | ||||||
|  |  | ||||||
| Scheme | Scheme | ||||||
|  |  | ||||||
|   Bigloo binding by Kirill Lisovsky |   Bigloo binding by Kirill Lisovsky | ||||||
|   http://curl.haxx.se/libcurl/scheme/ |   http://www.metapaper.net/lisovsky/web/curl/ | ||||||
|  |  | ||||||
| S-Lang | S-Lang | ||||||
|  |  | ||||||
| @@ -219,13 +227,13 @@ SPL | |||||||
|  |  | ||||||
| Tcl | Tcl | ||||||
|  |  | ||||||
|   Tclcurl by Andr<EFBFBD>s Garc<EFBFBD>a |   Tclcurl by Andrés García | ||||||
|   http://personal1.iddeo.es/andresgarci/tclcurl/english/docs.html |   http://mirror.yellow5.com/tclcurl/ | ||||||
|  |  | ||||||
| Visual Basic | Visual Basic | ||||||
|  |  | ||||||
|   libcurl-vb by Jeffrey Phillips |   libcurl-vb by Jeffrey Phillips | ||||||
|   http://sourceforge.net/projects/libcurl-vb/ |   https://sourceforge.net/projects/libcurl-vb/ | ||||||
|  |  | ||||||
| Visual Foxpro | Visual Foxpro | ||||||
|  |  | ||||||
| @@ -245,3 +253,8 @@ XBLite | |||||||
|  |  | ||||||
|   Written by David Szafranski |   Written by David Szafranski | ||||||
|   http://perso.wanadoo.fr/xblite/libraries.html |   http://perso.wanadoo.fr/xblite/libraries.html | ||||||
|  |  | ||||||
|  | Xojo | ||||||
|  |  | ||||||
|  |   Written by Andrew Lambert | ||||||
|  |   https://github.com/charonn0/RB-libcURL | ||||||
|   | |||||||
| @@ -35,11 +35,9 @@ BUGS | |||||||
|   have a go at a solution. You can optionally also post your bug/problem at |   have a go at a solution. You can optionally also post your bug/problem at | ||||||
|   curl's bug tracking system over at |   curl's bug tracking system over at | ||||||
|  |  | ||||||
|         https://sourceforge.net/p/curl/bugs/ |         https://github.com/bagder/curl/issues | ||||||
|  |  | ||||||
|   Please read the rest of this document below first before doing that! Also, |   Please read the rest of this document below first before doing that! | ||||||
|   you need to login to your sourceforge account before being able to submit a |  | ||||||
|   bug report (necessary evil done to avoid spam). |  | ||||||
|  |  | ||||||
|   If you feel you need to ask around first, find a suitable mailing list and |   If you feel you need to ask around first, find a suitable mailing list and | ||||||
|   post there. The lists are available on http://curl.haxx.se/mail/ |   post there. The lists are available on http://curl.haxx.se/mail/ | ||||||
|   | |||||||
| @@ -34,7 +34,7 @@ | |||||||
|  3.3 How To Make a Patch without git |  3.3 How To Make a Patch without git | ||||||
|  3.4 How to get your changes into the main sources |  3.4 How to get your changes into the main sources | ||||||
|  3.5 Write good commit messages |  3.5 Write good commit messages | ||||||
|  3.6 Please don't send pull requests |  3.6 About pull requests | ||||||
|  |  | ||||||
| ============================================================================== | ============================================================================== | ||||||
|  |  | ||||||
| @@ -52,6 +52,10 @@ | |||||||
|  |  | ||||||
|  We also hang out on IRC in #curl on irc.freenode.net |  We also hang out on IRC in #curl on irc.freenode.net | ||||||
|  |  | ||||||
|  |  If you're at all interested in the code side of things, consider clicking | ||||||
|  |  'watch' on the curl repo at github to get notified on pull requests and new | ||||||
|  |  issues posted there. | ||||||
|  |  | ||||||
| 1.2. License | 1.2. License | ||||||
|  |  | ||||||
|  When contributing with code, you agree to put your changes and new code under |  When contributing with code, you agree to put your changes and new code under | ||||||
| @@ -78,10 +82,10 @@ | |||||||
|  |  | ||||||
| 1.3 What To Read | 1.3 What To Read | ||||||
|  |  | ||||||
|  Source code, the man pages, the INTERNALS document, TODO, KNOWN_BUGS, the |  Source code, the man pages, the INTERNALS document, TODO, KNOWN_BUGS and the | ||||||
|  most recent CHANGES. Just lurking on the curl-library mailing list is gonna |  most recent changes in the git log. Just lurking on the curl-library mailing | ||||||
|  give you a lot of insights on what's going on right now. Asking there is a |  list is gonna give you a lot of insights on what's going on right now. Asking | ||||||
|  good idea too. |  there is a good idea too. | ||||||
|  |  | ||||||
| 2. cURL Coding Standards | 2. cURL Coding Standards | ||||||
|  |  | ||||||
| @@ -199,7 +203,7 @@ | |||||||
|  |  | ||||||
|  You need to first checkout the repository: |  You need to first checkout the repository: | ||||||
|  |  | ||||||
|      git clone git://github.com/bagder/curl.git |      git clone https://github.com/bagder/curl.git | ||||||
|  |  | ||||||
|  You then proceed and edit all the files you like and you commit them to your |  You then proceed and edit all the files you like and you commit them to your | ||||||
|  local repository: |  local repository: | ||||||
| @@ -241,8 +245,8 @@ | |||||||
|  |  | ||||||
|  For unix-like operating systems: |  For unix-like operating systems: | ||||||
|  |  | ||||||
|      http://www.gnu.org/software/patch/patch.html |      https://savannah.gnu.org/projects/patch/ | ||||||
|      http://www.gnu.org/directory/diffutils.html |      https://www.gnu.org/software/diffutils/ | ||||||
|  |  | ||||||
|  For Windows: |  For Windows: | ||||||
|  |  | ||||||
| @@ -288,27 +292,15 @@ | |||||||
|  and make sure that you have your own user and email setup correctly in git |  and make sure that you have your own user and email setup correctly in git | ||||||
|  before you commit |  before you commit | ||||||
|  |  | ||||||
| 3.6 Please don't send pull requests | 3.6 About pull requests | ||||||
|  |  | ||||||
|  With git (and especially github) it is easy and tempting to send a pull |  With git (and especially github) it is easy and tempting to send a pull | ||||||
|  request to one or more people in the curl project to have changes merged this |  request to the curl project to have changes merged this way instead of | ||||||
|  way instead of mailing patches to the curl-library mailing list. |  mailing patches to the curl-library mailing list. | ||||||
|  |  | ||||||
|  We don't like that. We want them mailed for these reasons: |  We used to dislike this but we're trying to change that and accept that this | ||||||
|  |  is a frictionless way for people to contribute to the project. We now welcome | ||||||
|  |  pull requests! | ||||||
|  |  | ||||||
|  - Peer review. Anyone and everyone on the list can review, comment and |  We will continue to avoid using github's merge tools to make the history | ||||||
|    improve on the patch. Pull requests limit this ability. |  linear and to make sure commits follow our style guidelines. | ||||||
|  |  | ||||||
|  - Anyone can merge the patch into their own trees for testing and those who |  | ||||||
|    have push rights can push it to the main repo. It doesn't have to be anyone |  | ||||||
|    the patch author knows beforehand. |  | ||||||
|  |  | ||||||
|  - Commit messages can be tweaked and changed if merged locally instead of |  | ||||||
|    using github. Merges directly on github requires the changes to be perfect |  | ||||||
|    already, which they seldom are. |  | ||||||
|  |  | ||||||
|  - Merges on github prevents rebases and even enforces --no-ff which is a git |  | ||||||
|    style we don't otherwise use in the project |  | ||||||
|  |  | ||||||
|  However: once patches have been reviewed and deemed fine on list they are |  | ||||||
|  perfectly OK to be pulled from a published git tree. |  | ||||||
|   | |||||||
| @@ -112,7 +112,7 @@ The Better License, Original BSD, GPL or LGPL? | |||||||
|  In Debian land, there seems to be a common opinion that LGPL is "maximally |  In Debian land, there seems to be a common opinion that LGPL is "maximally | ||||||
|  compatible" with apps while Original BSD is not. Like this: |  compatible" with apps while Original BSD is not. Like this: | ||||||
|  |  | ||||||
|         http://lists.debian.org/debian-devel/2005/09/msg01417.html |         https://lists.debian.org/debian-devel/2005/09/msg01417.html | ||||||
|  |  | ||||||
| More SSL Libraries | More SSL Libraries | ||||||
|  |  | ||||||
| @@ -163,13 +163,13 @@ Distro Angle of this Problem | |||||||
| Footnotes | Footnotes | ||||||
|  |  | ||||||
|  [1] = http://www.xfree86.org/3.3.6/COPYRIGHT2.html#6 |  [1] = http://www.xfree86.org/3.3.6/COPYRIGHT2.html#6 | ||||||
|  [2] = http://www.fsf.org/licensing/essays/bsd.html |  [2] = https://www.gnu.org/philosophy/bsd.html | ||||||
|  [3] = http://www.fsf.org/licensing/licenses/gpl.html |  [3] = https://www.gnu.org/licenses/gpl.html | ||||||
|  [4] = http://curl.haxx.se/docs/copyright.html |  [4] = http://curl.haxx.se/docs/copyright.html | ||||||
|  [5] = http://www.openssl.org/source/license.html |  [5] = https://www.openssl.org/source/license.html | ||||||
|  [6] = http://www.fsf.org/licensing/licenses/gpl.html end of section 3 |  [6] = https://www.gnu.org/licenses/gpl.html end of section 3 | ||||||
|  [7] = http://www.fsf.org/licensing/licenses/lgpl.html |  [7] = https://www.gnu.org/licenses/lgpl.html | ||||||
|  [8] = http://en.wikipedia.org/wiki/OpenSSL_exception |  [8] = https://en.wikipedia.org/wiki/OpenSSL_exception | ||||||
|  |  | ||||||
| Feedback/Updates provided by | Feedback/Updates provided by | ||||||
|  |  | ||||||
|   | |||||||
							
								
								
									
										42
									
								
								docs/FAQ
									
									
									
									
									
								
							
							
						
						
									
										42
									
								
								docs/FAQ
									
									
									
									
									
								
							| @@ -21,6 +21,7 @@ FAQ | |||||||
|   1.12 I have a problem who can I chat with? |   1.12 I have a problem who can I chat with? | ||||||
|   1.13 curl's ECCN number? |   1.13 curl's ECCN number? | ||||||
|   1.14 How do I submit my patch? |   1.14 How do I submit my patch? | ||||||
|  |   1.15 How do I port libcurl to my OS? | ||||||
|  |  | ||||||
|  2. Install Related Problems |  2. Install Related Problems | ||||||
|   2.1 configure doesn't find OpenSSL even when it is installed |   2.1 configure doesn't find OpenSSL even when it is installed | ||||||
| @@ -81,6 +82,7 @@ FAQ | |||||||
|   4.18 file:// URLs containing drive letters (Windows, NetWare) |   4.18 file:// URLs containing drive letters (Windows, NetWare) | ||||||
|   4.19 Why doesn't cURL return an error when the network cable is unplugged? |   4.19 Why doesn't cURL return an error when the network cable is unplugged? | ||||||
|   4.20 curl doesn't return error for HTTP non-200 responses! |   4.20 curl doesn't return error for HTTP non-200 responses! | ||||||
|  |   4.21 Why is there a HTTP/1.1 in my HTTP/2 request? | ||||||
|  |  | ||||||
|  5. libcurl Issues |  5. libcurl Issues | ||||||
|   5.1 Is libcurl thread-safe? |   5.1 Is libcurl thread-safe? | ||||||
| @@ -350,7 +352,7 @@ FAQ | |||||||
|   cryptography. When doing so, the Export Control Classification Number (ECCN) |   cryptography. When doing so, the Export Control Classification Number (ECCN) | ||||||
|   is used to identify the level of export control etc. |   is used to identify the level of export control etc. | ||||||
|  |  | ||||||
|   ASF gives a good explanation at http://www.apache.org/dev/crypto.html |   ASF gives a good explanation at https://www.apache.org/dev/crypto.html | ||||||
|  |  | ||||||
|   We believe curl's number might be ECCN 5D002, another possibility is |   We believe curl's number might be ECCN 5D002, another possibility is | ||||||
|   5D992. It seems necessary to write them, asking to confirm. |   5D992. It seems necessary to write them, asking to confirm. | ||||||
| @@ -379,6 +381,19 @@ FAQ | |||||||
|  |  | ||||||
|   Lots of more details are found in the CONTRIBUTE and INTERNALS docs. |   Lots of more details are found in the CONTRIBUTE and INTERNALS docs. | ||||||
|  |  | ||||||
|  |   1.15 How do I port libcurl to my OS? | ||||||
|  |  | ||||||
|  |   Here's a rough step-by-step: | ||||||
|  |  | ||||||
|  |   1. copy a suitable lib/config-*.h file as a start to lib/config-[youros].h | ||||||
|  |  | ||||||
|  |   2. edit lib/config-[youros].h to match your OS and setup | ||||||
|  |  | ||||||
|  |   3. edit lib/curl_setup.h to include config-[youros].h when your OS is | ||||||
|  |      detected by the preprocessor, in the style others already exist | ||||||
|  |  | ||||||
|  |   4. compile lib/*.c and make them into a library | ||||||
|  |  | ||||||
|  |  | ||||||
| 2. Install Related Problems | 2. Install Related Problems | ||||||
|  |  | ||||||
| @@ -764,8 +779,9 @@ FAQ | |||||||
|   request-body in a GET request with something like "curl -X GET -d data |   request-body in a GET request with something like "curl -X GET -d data | ||||||
|   [URL]" |   [URL]" | ||||||
|  |  | ||||||
|   Note that -X doesn't change curl's behavior. It only modifies the actual |   Note that -X doesn't actually change curl's behavior as it only modifies the | ||||||
|   string sent in the request. |   actual string sent in the request, but that may of course trigger a | ||||||
|  |   different set of events. | ||||||
|  |  | ||||||
|   Accordingly, by using -XPOST on a command line that for example would follow |   Accordingly, by using -XPOST on a command line that for example would follow | ||||||
|   a 303 redirect, you will effectively prevent curl from behaving |   a 303 redirect, you will effectively prevent curl from behaving | ||||||
| @@ -1026,7 +1042,7 @@ FAQ | |||||||
|   timeout is set. |   timeout is set. | ||||||
|  |  | ||||||
|   See option TcpMaxConnectRetransmissions on this page: |   See option TcpMaxConnectRetransmissions on this page: | ||||||
|   http://support.microsoft.com/?scid=kb%3Ben-us%3B175523&x=6&y=7 |   https://support.microsoft.com/en-us/kb/175523/en-us | ||||||
|  |  | ||||||
|   Also, even on non-Windows systems there may run a firewall or anti-virus |   Also, even on non-Windows systems there may run a firewall or anti-virus | ||||||
|   software or similar that accepts the connection but does not actually do |   software or similar that accepts the connection but does not actually do | ||||||
| @@ -1043,7 +1059,7 @@ FAQ | |||||||
|   You'll find that even if D:\blah.txt does exist, cURL returns a 'file |   You'll find that even if D:\blah.txt does exist, cURL returns a 'file | ||||||
|   not found' error. |   not found' error. | ||||||
|  |  | ||||||
|   According to RFC 1738 (http://www.faqs.org/rfcs/rfc1738.html), |   According to RFC 1738 (https://www.ietf.org/rfc/rfc1738.txt), | ||||||
|   file:// URLs must contain a host component, but it is ignored by |   file:// URLs must contain a host component, but it is ignored by | ||||||
|   most implementations. In the above example, 'D:' is treated as the |   most implementations. In the above example, 'D:' is treated as the | ||||||
|   host component, and is taken away. Thus, cURL tries to open '/blah.txt'. |   host component, and is taken away. Thus, cURL tries to open '/blah.txt'. | ||||||
| @@ -1115,6 +1131,16 @@ FAQ | |||||||
|   You can also use the -w option and the variable %{response_code} to extract |   You can also use the -w option and the variable %{response_code} to extract | ||||||
|   the exact response code that was return in the response. |   the exact response code that was return in the response. | ||||||
|  |  | ||||||
|  |   4.21 Why is there a HTTP/1.1 in my HTTP/2 request? | ||||||
|  |  | ||||||
|  |   If you use verbose to see the HTTP request when you send off a HTTP/2 | ||||||
|  |   request, it will still say 1.1. | ||||||
|  |  | ||||||
|  |   The reason for this is that we first generate the request to send using the | ||||||
|  |   old 1.1 style and show that request in the verbose output, and then we | ||||||
|  |   convert it over to the binary header-compressed HTTP/2 style. The actual | ||||||
|  |   "1.1" part from that request is then not actually used in the transfer. The | ||||||
|  |   binary HTTP/2 headers are not human readable. | ||||||
|  |  | ||||||
| 5. libcurl Issues | 5. libcurl Issues | ||||||
|  |  | ||||||
| @@ -1137,13 +1163,13 @@ FAQ | |||||||
|   If you use a OpenSSL-powered libcurl in a multi-threaded environment, you |   If you use a OpenSSL-powered libcurl in a multi-threaded environment, you | ||||||
|   need to provide one or two locking functions: |   need to provide one or two locking functions: | ||||||
|  |  | ||||||
|     http://www.openssl.org/docs/crypto/threads.html |     https://www.openssl.org/docs/crypto/threads.html | ||||||
|  |  | ||||||
|   If you use a GnuTLS-powered libcurl in a multi-threaded environment, you |   If you use a GnuTLS-powered libcurl in a multi-threaded environment, you | ||||||
|   need to provide locking function(s) for libgcrypt (which is used by GnuTLS |   need to provide locking function(s) for libgcrypt (which is used by GnuTLS | ||||||
|   for the crypto functions). |   for the crypto functions). | ||||||
|  |  | ||||||
|     http://www.gnu.org/software/gnutls/manual/html_node/Multi_002dthreaded-applications.html |     https://web.archive.org/web/20111103083330/http://www.gnu.org/software/gnutls/manual/html_node/Multi_002dthreaded-applications.html | ||||||
|  |  | ||||||
|   No special locking is needed with a NSS-powered libcurl. NSS is thread-safe. |   No special locking is needed with a NSS-powered libcurl. NSS is thread-safe. | ||||||
|  |  | ||||||
| @@ -1319,7 +1345,7 @@ FAQ | |||||||
|   Also note that on many networks NATs or other IP-munging techniques are used |   Also note that on many networks NATs or other IP-munging techniques are used | ||||||
|   that makes you see and use a different IP address locally than what the |   that makes you see and use a different IP address locally than what the | ||||||
|   remote server will see you coming from. You may also consider using |   remote server will see you coming from. You may also consider using | ||||||
|   http://www.torproject.org . |   https://www.torproject.org/ . | ||||||
|  |  | ||||||
|   5.13 How do I stop an ongoing transfer? |   5.13 How do I stop an ongoing transfer? | ||||||
|  |  | ||||||
|   | |||||||
| @@ -134,8 +134,8 @@ SMB | |||||||
|  - authentication with NTLMv1 |  - authentication with NTLMv1 | ||||||
|  |  | ||||||
| SMTP | SMTP | ||||||
|  - authentication: Plain, Login, CRAM-MD5, Digest-MD5, NTLM (*9) and Kerberos 5 |  - authentication: Plain, Login, CRAM-MD5, Digest-MD5, NTLM (*9), Kerberos 5 | ||||||
|    (*4) |    (*4) and External. | ||||||
|  - send e-mails |  - send e-mails | ||||||
|  - mail from support |  - mail from support | ||||||
|  - mail size support |  - mail size support | ||||||
| @@ -150,8 +150,8 @@ SMTPS (*1) | |||||||
|  |  | ||||||
| POP3 | POP3 | ||||||
|  - authentication: Clear Text, APOP and SASL |  - authentication: Clear Text, APOP and SASL | ||||||
|  - SASL based authentication: Plain, Login, CRAM-MD5, Digest-MD5, NTLM (*9) and |  - SASL based authentication: Plain, Login, CRAM-MD5, Digest-MD5, NTLM (*9), | ||||||
|    Kerberos 5 (*4) |    Kerberos 5 (*4) and External. | ||||||
|  - list e-mails |  - list e-mails | ||||||
|  - retrieve e-mails |  - retrieve e-mails | ||||||
|  - enhanced command support for: CAPA, DELE, TOP, STAT, UIDL and NOOP via |  - enhanced command support for: CAPA, DELE, TOP, STAT, UIDL and NOOP via | ||||||
| @@ -165,8 +165,8 @@ POP3S (*1) | |||||||
|  |  | ||||||
| IMAP | IMAP | ||||||
|  - authentication: Clear Text and SASL |  - authentication: Clear Text and SASL | ||||||
|  - SASL based authentication: Plain, Login, CRAM-MD5, Digest-MD5, NTLM (*9) and |  - SASL based authentication: Plain, Login, CRAM-MD5, Digest-MD5, NTLM (*9), | ||||||
|    Kerberos 5 (*4) |    Kerberos 5 (*4) and External. | ||||||
|  - list the folders of a mailbox |  - list the folders of a mailbox | ||||||
|  - select a mailbox with support for verifying the UIDVALIDITY |  - select a mailbox with support for verifying the UIDVALIDITY | ||||||
|  - fetch e-mails with support for specifying the UID and SECTION |  - fetch e-mails with support for specifying the UID and SECTION | ||||||
|   | |||||||
| @@ -36,7 +36,7 @@ HTTP Cookies | |||||||
|   For a very long time, the only spec explaining how to use cookies was the |   For a very long time, the only spec explaining how to use cookies was the | ||||||
|   original Netscape spec from 1994: http://curl.haxx.se/rfc/cookie_spec.html |   original Netscape spec from 1994: http://curl.haxx.se/rfc/cookie_spec.html | ||||||
|  |  | ||||||
|   In 2011, RFC6265 (http://www.ietf.org/rfc/rfc6265.txt) was finally published |   In 2011, RFC6265 (https://www.ietf.org/rfc/rfc6265.txt) was finally published | ||||||
|   and details how cookies work within HTTP. |   and details how cookies work within HTTP. | ||||||
|  |  | ||||||
|   1.2 Cookies saved to disk |   1.2 Cookies saved to disk | ||||||
|   | |||||||
							
								
								
									
										107
									
								
								docs/HTTP2.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										107
									
								
								docs/HTTP2.md
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,107 @@ | |||||||
|  | HTTP/2 with curl | ||||||
|  | ================ | ||||||
|  |  | ||||||
|  | [HTTP/2 Spec](https://www.rfc-editor.org/rfc/rfc7540.txt) | ||||||
|  | [http2 explained](http://daniel.haxx.se/http2/) | ||||||
|  |  | ||||||
|  | Build prerequisites | ||||||
|  | ------------------- | ||||||
|  |   - nghttp2 | ||||||
|  |   - OpenSSL, NSS, GnutTLS or PolarSSL with a new enough version | ||||||
|  |  | ||||||
|  | [nghttp2](https://nghttp2.org/) | ||||||
|  | ------------------------------- | ||||||
|  |  | ||||||
|  | libcurl uses this 3rd party library for the low level protocol handling | ||||||
|  | parts. The reason for this is that HTTP/2 is much more complex at that layer | ||||||
|  | than HTTP/1.1 (which we implement on our own) and that nghttp2 is an already | ||||||
|  | existing and well functional library. | ||||||
|  |  | ||||||
|  | We require at least version 1.0.0. | ||||||
|  |  | ||||||
|  | Over an http:// URL | ||||||
|  | ------------------- | ||||||
|  |  | ||||||
|  | If `CURLOPT_HTTP_VERSION` is set to `CURL_HTTP_VERSION_2_0`, libcurl will | ||||||
|  | include an upgrade header in the initial request to the host to allow | ||||||
|  | upgrading to HTTP/2. | ||||||
|  |  | ||||||
|  | Possibly we can later introduce an option that will cause libcurl to fail if | ||||||
|  | not possible to upgrade. Possibly we introduce an option that makes libcurl | ||||||
|  | use HTTP/2 at once over http:// | ||||||
|  |  | ||||||
|  | Over an https:// URL | ||||||
|  | -------------------- | ||||||
|  |  | ||||||
|  | If `CURLOPT_HTTP_VERSION` is set to `CURL_HTTP_VERSION_2_0`, libcurl will use | ||||||
|  | ALPN (or NPN) to negotiate which protocol to continue with. Possibly introduce | ||||||
|  | an option that will cause libcurl to fail if not possible to use HTTP/2. | ||||||
|  | Consider options to explicitly disable ALPN and/or NPN. | ||||||
|  |  | ||||||
|  | ALPN is the TLS extension that HTTP/2 is expected to use. The NPN extension is | ||||||
|  | for a similar purpose, was made prior to ALPN and is used for SPDY so early | ||||||
|  | HTTP/2 servers are implemented using NPN before ALPN support is widespread. | ||||||
|  |  | ||||||
|  | SSL libs | ||||||
|  | -------- | ||||||
|  |  | ||||||
|  | The challenge is the ALPN and NPN support and all our different SSL | ||||||
|  | backends. You may need a fairly updated SSL library version for it to | ||||||
|  | provide the necessary TLS features. Right now we support: | ||||||
|  |  | ||||||
|  |   - OpenSSL:  ALPN and NPN | ||||||
|  |   - NSS:      ALPN and NPN | ||||||
|  |   - GnuTLS:   ALPN | ||||||
|  |   - PolarSSL: ALPN | ||||||
|  |  | ||||||
|  | Multiplexing | ||||||
|  | ------------ | ||||||
|  |  | ||||||
|  | Starting in 7.43.0, libcurl fully supports HTTP/2 multiplexing, which is the | ||||||
|  | term for doing multiple independent transfers over the same physical TCP | ||||||
|  | connection. | ||||||
|  |  | ||||||
|  | To take advantage of multiplexing, you need to use the multi interface and set | ||||||
|  | `CURLMOPT_PIPELINING` to `CURLPIPE_MULTIPLEX`. With that bit set, libcurl will | ||||||
|  | attempt to re-use existing HTTP/2 connections and just add a new stream over | ||||||
|  | that when doing subsequent parallel requests. | ||||||
|  |  | ||||||
|  | While libcurl sets up a connection to a HTTP server there is a period during | ||||||
|  | which it doesn't know if it can pipeline or do multiplexing and if you add new | ||||||
|  | transfers in that period, libcurl will default to start new connections for | ||||||
|  | those transfers. With the new option `CURLOPT_PIPEWAIT` (added in 7.43.0), you | ||||||
|  | can ask that a transfer should rather wait and see in case there's a | ||||||
|  | connection for the same host in progress that might end up being possible to | ||||||
|  | multiplex on. It favours keeping the number of connections low to the cost of | ||||||
|  | slightly longer time to first byte transferred. | ||||||
|  |  | ||||||
|  | Applications | ||||||
|  | ------------ | ||||||
|  |  | ||||||
|  | We hide HTTP/2's binary nature and convert received HTTP/2 traffic to headers | ||||||
|  | in HTTP 1.1 style. This allows applications to work unmodified. | ||||||
|  |  | ||||||
|  | curl tool | ||||||
|  | --------- | ||||||
|  |  | ||||||
|  | curl offers the `--http2` command line option to enable use of HTTP/2 | ||||||
|  |  | ||||||
|  | HTTP Alternative Services | ||||||
|  | ------------------------- | ||||||
|  |  | ||||||
|  | Alt-Svc is a suggested extension with a corresponding frame (ALTSVC) in HTTP/2 | ||||||
|  | that tells the client about an alternative "route" to the same content for the | ||||||
|  | same origin server that you get the response from. A browser or long-living | ||||||
|  | client can use that hint to create a new connection asynchronously.  For | ||||||
|  | libcurl, we may introduce a way to bring such clues to the applicaton and/or | ||||||
|  | let a subsequent request use the alternate route | ||||||
|  | automatically. [Spec](https://tools.ietf.org/html/draft-ietf-httpbis-alt-svc-05) | ||||||
|  |  | ||||||
|  | TODO | ||||||
|  | ---- | ||||||
|  |  | ||||||
|  |   - Provide API to set priorities / dependencies of individual streams | ||||||
|  |  | ||||||
|  |   - Implement "prior-knowledge" HTTP/2 connecitons over clear text so that | ||||||
|  |     curl can connect with HTTP/2 at once without 1.1+Upgrade. | ||||||
|  |  | ||||||
							
								
								
									
										53
									
								
								docs/INSTALL
									
									
									
									
									
								
							
							
						
						
									
										53
									
								
								docs/INSTALL
									
									
									
									
									
								
							| @@ -173,13 +173,13 @@ Win32 | |||||||
|    advice given above. |    advice given above. | ||||||
|  |  | ||||||
|    KB94248  - How To Use the C Run-Time |    KB94248  - How To Use the C Run-Time | ||||||
|               http://support.microsoft.com/kb/94248/en-us |               https://support.microsoft.com/kb/94248/en-us | ||||||
|  |  | ||||||
|    KB140584 - How to link with the correct C Run-Time (CRT) library |    KB140584 - How to link with the correct C Run-Time (CRT) library | ||||||
|               http://support.microsoft.com/kb/140584/en-us |               https://support.microsoft.com/kb/140584/en-us | ||||||
|  |  | ||||||
|    KB190799 - Potential Errors Passing CRT Objects Across DLL Boundaries |    KB190799 - Potential Errors Passing CRT Objects Across DLL Boundaries | ||||||
|               http://msdn.microsoft.com/en-us/library/ms235460 |               https://msdn.microsoft.com/en-us/library/ms235460 | ||||||
|  |  | ||||||
|    If your app is misbehaving in some strange way, or it is suffering |    If your app is misbehaving in some strange way, or it is suffering | ||||||
|    from memory corruption, before asking for further help, please try |    from memory corruption, before asking for further help, please try | ||||||
| @@ -209,8 +209,8 @@ Win32 | |||||||
|    environment variables, for example: |    environment variables, for example: | ||||||
|  |  | ||||||
|      set ZLIB_PATH=c:\zlib-1.2.8 |      set ZLIB_PATH=c:\zlib-1.2.8 | ||||||
|      set OPENSSL_PATH=c:\openssl-0.9.8zc |      set OPENSSL_PATH=c:\openssl-1.0.2c | ||||||
|      set LIBSSH2_PATH=c:\libssh2-1.4.3 |      set LIBSSH2_PATH=c:\libssh2-1.6.0 | ||||||
|  |  | ||||||
|    ATTENTION: if you want to build with libssh2 support you have to use latest |    ATTENTION: if you want to build with libssh2 support you have to use latest | ||||||
|    version 0.17 - previous versions will NOT work with 7.17.0 and later! |    version 0.17 - previous versions will NOT work with 7.17.0 and later! | ||||||
| @@ -232,7 +232,7 @@ Win32 | |||||||
|    - optional MingW32-built OpenLDAP SDK available from: |    - optional MingW32-built OpenLDAP SDK available from: | ||||||
|      http://www.gknw.net/mirror/openldap/ |      http://www.gknw.net/mirror/openldap/ | ||||||
|    - optional recent Novell CLDAP SDK available from: |    - optional recent Novell CLDAP SDK available from: | ||||||
|      http://developer.novell.com/ndk/cldap.htm |      https://www.novell.com/developer/ndk/ldap_libraries_for_c.html | ||||||
|  |  | ||||||
|    Cygwin |    Cygwin | ||||||
|    ------ |    ------ | ||||||
| @@ -254,7 +254,7 @@ Win32 | |||||||
|    If you use MSVC 6 it is required that you use the February 2003 edition of |    If you use MSVC 6 it is required that you use the February 2003 edition of | ||||||
|    the 'Platform SDK' which can be downloaded from: |    the 'Platform SDK' which can be downloaded from: | ||||||
|  |  | ||||||
|    http://www.microsoft.com/en-us/download/details.aspx?id=12261 |    https://www.microsoft.com/en-us/download/details.aspx?id=12261 | ||||||
|  |  | ||||||
|    Building any software with MSVC 6 without having PSDK installed is just |    Building any software with MSVC 6 without having PSDK installed is just | ||||||
|    asking for trouble down the road once you have released it, you might notice |    asking for trouble down the road once you have released it, you might notice | ||||||
| @@ -263,7 +263,7 @@ Win32 | |||||||
|    software built in such way will at some point regret having done so. |    software built in such way will at some point regret having done so. | ||||||
|  |  | ||||||
|    If the compiler has been updated with the installation of a service pack as |    If the compiler has been updated with the installation of a service pack as | ||||||
|    those mentioned in http://support.microsoft.com/kb/194022 the compiler can be |    those mentioned in https://support.microsoft.com/kb/194022 the compiler can be | ||||||
|    safely used to read source code, translate and make it object code. |    safely used to read source code, translate and make it object code. | ||||||
|  |  | ||||||
|    But, even with the service packs mentioned above installed, the resulting |    But, even with the service packs mentioned above installed, the resulting | ||||||
| @@ -299,7 +299,7 @@ Win32 | |||||||
|    Then run 'nmake vc' in curl's root directory. |    Then run 'nmake vc' in curl's root directory. | ||||||
|  |  | ||||||
|    If you want to compile with zlib support, you will need to build |    If you want to compile with zlib support, you will need to build | ||||||
|    zlib (http://www.gzip.org/zlib/) as well. Please read the zlib |    zlib (http://www.zlib.net/) as well. Please read the zlib | ||||||
|    documentation on how to compile zlib. Define the ZLIB_PATH environment |    documentation on how to compile zlib. Define the ZLIB_PATH environment | ||||||
|    variable to the location of zlib.h and zlib.lib, for example: |    variable to the location of zlib.h and zlib.lib, for example: | ||||||
|  |  | ||||||
| @@ -471,6 +471,15 @@ Win32 | |||||||
|    add '-DCURL_STATICLIB' to your CFLAGS.  Otherwise the linker will look for |    add '-DCURL_STATICLIB' to your CFLAGS.  Otherwise the linker will look for | ||||||
|    dynamic import symbols. |    dynamic import symbols. | ||||||
|  |  | ||||||
|  |    Legacy Windows and SSL | ||||||
|  |    ---------------------- | ||||||
|  |    WinSSL (Windows SSPI, more specifically Schannel), is the native SSL library | ||||||
|  |    that comes with the Windows OS. WinSSL in Windows <= XP is not able to | ||||||
|  |    connect to servers that no longer support the legacy handshakes and | ||||||
|  |    algorithms used by those versions. If you will be using curl in one of those | ||||||
|  |    earlier versions of Windows you should choose another SSL backend like | ||||||
|  |    OpenSSL. | ||||||
|  |  | ||||||
| Apple iOS and Mac OS X | Apple iOS and Mac OS X | ||||||
| ====================== | ====================== | ||||||
|  |  | ||||||
| @@ -665,12 +674,10 @@ NetWare | |||||||
|    - gnu make and awk running on the platform you compile on; |    - gnu make and awk running on the platform you compile on; | ||||||
|      native Win32 versions can be downloaded from: |      native Win32 versions can be downloaded from: | ||||||
|      http://www.gknw.net/development/prgtools/ |      http://www.gknw.net/development/prgtools/ | ||||||
|    - recent Novell LibC SDK available from: |    - recent Novell LibC or Novell CLib SDK available from: | ||||||
|      http://developer.novell.com/ndk/libc.htm |      https://www.novell.com/developer/ndk/ | ||||||
|    - or recent Novell CLib SDK available from: |  | ||||||
|      http://developer.novell.com/ndk/clib.htm |  | ||||||
|    - optional recent Novell CLDAP SDK available from: |    - optional recent Novell CLDAP SDK available from: | ||||||
|      http://developer.novell.com/ndk/cldap.htm |      https://www.novell.com/developer/ndk/ldap_libraries_for_c.html | ||||||
|    - optional zlib sources (static or dynamic linking with zlib.imp); |    - optional zlib sources (static or dynamic linking with zlib.imp); | ||||||
|      sources with NetWare Makefile can be obtained from: |      sources with NetWare Makefile can be obtained from: | ||||||
|      http://www.gknw.net/mirror/zlib/ |      http://www.gknw.net/mirror/zlib/ | ||||||
| @@ -825,7 +832,7 @@ VxWorks | |||||||
|  |  | ||||||
|    To build libcurl for VxWorks you need: |    To build libcurl for VxWorks you need: | ||||||
|  |  | ||||||
|       - CYGWIN (free, http://cygwin.com/) |       - CYGWIN (free, https://cygwin.com/) | ||||||
|       - Wind River Workbench (commercial) |       - Wind River Workbench (commercial) | ||||||
|  |  | ||||||
|    If you have CYGWIN and Workbench installed on you machine |    If you have CYGWIN and Workbench installed on you machine | ||||||
| @@ -1086,18 +1093,18 @@ Useful URLs | |||||||
|  |  | ||||||
| axTLS        http://axtls.sourceforge.net/ | axTLS        http://axtls.sourceforge.net/ | ||||||
| c-ares       http://c-ares.haxx.se/ | c-ares       http://c-ares.haxx.se/ | ||||||
| GNU GSS      http://www.gnu.org/software/gss/ | GNU GSS      https://www.gnu.org/software/gss/ | ||||||
| GnuTLS       http://www.gnu.org/software/gnutls/ | GnuTLS       https://www.gnu.org/software/gnutls/ | ||||||
| Heimdal      http://www.pdc.kth.se/heimdal/ | Heimdal      http://www.h5l.org/ | ||||||
| libidn       http://www.gnu.org/software/libidn/ | libidn       https://www.gnu.org/software/libidn/ | ||||||
| libmetalink  https://launchpad.net/libmetalink/ | libmetalink  https://launchpad.net/libmetalink/ | ||||||
| libssh2      http://www.libssh2.org/ | libssh2      http://www.libssh2.org/ | ||||||
| MIT Kerberos http://web.mit.edu/kerberos/www/dist/ | MIT Kerberos http://web.mit.edu/kerberos/www/dist/ | ||||||
| NSS          http://www.mozilla.org/projects/security/pki/nss/ | NSS          https://developer.mozilla.org/en-US/docs/Mozilla/Projects/NSS | ||||||
| OpenLDAP     http://www.openldap.org/ | OpenLDAP     http://www.openldap.org/ | ||||||
| OpenSSL      http://www.openssl.org/ | OpenSSL      https://www.openssl.org/ | ||||||
| PolarSSL     http://polarssl.org/ | PolarSSL     https://tls.mbed.org/ | ||||||
| yassl        http://www.yassl.com/ | wolfSSL      https://www.wolfssl.com/wolfSSL/ | ||||||
| Zlib         http://www.zlib.net/ | Zlib         http://www.zlib.net/ | ||||||
|  |  | ||||||
| MingW        http://www.mingw.org/ | MingW        http://www.mingw.org/ | ||||||
|   | |||||||
| @@ -95,7 +95,7 @@ install instructions may produce erratic behaviour in DevCpp. For further info | |||||||
| check the following sites | check the following sites | ||||||
|  |  | ||||||
| http://aditsu.freeunixhost.com/dev-cpp-faq.html | http://aditsu.freeunixhost.com/dev-cpp-faq.html | ||||||
| http://sourceforge.net/forum/message.php?msg_id=3252213 | https://sourceforge.net/p/dev-cpp/discussion/48211/thread/2a85ea46 | ||||||
|  |  | ||||||
| As I have mentioned before I will confine this to the SSL Library compilations | As I have mentioned before I will confine this to the SSL Library compilations | ||||||
| but the process is very similar for compilation of the executable - curl.exe; | but the process is very similar for compilation of the executable - curl.exe; | ||||||
|   | |||||||
							
								
								
									
										907
									
								
								docs/INTERNALS
									
									
									
									
									
								
							
							
						
						
									
										907
									
								
								docs/INTERNALS
									
									
									
									
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							| @@ -3,6 +3,15 @@ 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! | ||||||
|  |  | ||||||
|  | 90. IMAP "SEARCH ALL" truncates output on large boxes. "A quick search of the | ||||||
|  |   code reveals that pingpong.c contains some truncation code, at line 408, | ||||||
|  |   when it deems the server response to be too large truncating it to 40 | ||||||
|  |   characters" | ||||||
|  |   http://curl.haxx.se/bug/view.cgi?id=1366 | ||||||
|  |  | ||||||
|  | 89. Disabling HTTP Pipelining when there are ongoing transfers can lead to | ||||||
|  |   heap corruption and crash. http://curl.haxx.se/bug/view.cgi?id=1411 | ||||||
|  |  | ||||||
| 88. libcurl doesn't support CURLINFO_FILETIME for SFTP transfers and thus | 88. libcurl doesn't support CURLINFO_FILETIME for SFTP transfers and thus | ||||||
|   curl's -R option also doesn't work then. |   curl's -R option also doesn't work then. | ||||||
|  |  | ||||||
| @@ -88,7 +97,7 @@ may have been fixed since this was written! | |||||||
|   something beyond ascii but currently libcurl will only pass in the verbatim |   something beyond ascii but currently libcurl will only pass in the verbatim | ||||||
|   string the app provides. There are several browsers that already do this |   string the app provides. There are several browsers that already do this | ||||||
|   encoding. The key seems to be the updated draft to RFC2231: |   encoding. The key seems to be the updated draft to RFC2231: | ||||||
|   http://tools.ietf.org/html/draft-reschke-rfc2231-in-http-02 |   https://tools.ietf.org/html/draft-reschke-rfc2231-in-http-02 | ||||||
|  |  | ||||||
| 66. When using telnet, the time limitation options don't work. | 66. When using telnet, the time limitation options don't work. | ||||||
|   http://curl.haxx.se/bug/view.cgi?id=846 |   http://curl.haxx.se/bug/view.cgi?id=846 | ||||||
|   | |||||||
| @@ -1,245 +0,0 @@ | |||||||
|                                   _   _ ____  _ |  | ||||||
|                               ___| | | |  _ \| | |  | ||||||
|                              / __| | | | |_) | | |  | ||||||
|                             | (__| |_| |  _ <| |___ |  | ||||||
|                              \___|\___/|_| \_\_____| |  | ||||||
|  |  | ||||||
| Structs in libcurl |  | ||||||
|  |  | ||||||
| This document should cover 7.32.0 pretty accurately, but will make sense even |  | ||||||
| for older and later versions as things don't change drastically that often. |  | ||||||
|  |  | ||||||
|  1. The main structs in libcurl |  | ||||||
|   1.1 SessionHandle |  | ||||||
|   1.2 connectdata |  | ||||||
|   1.3 Curl_multi |  | ||||||
|   1.4 Curl_handler |  | ||||||
|   1.5 conncache |  | ||||||
|   1.6 Curl_share |  | ||||||
|   1.7 CookieInfo |  | ||||||
|  |  | ||||||
| ============================================================================== |  | ||||||
|  |  | ||||||
| 1. The main structs in libcurl |  | ||||||
|  |  | ||||||
|   1.1 SessionHandle |  | ||||||
|  |  | ||||||
|   The SessionHandle handle struct is the one returned to the outside in the |  | ||||||
|   external API as a "CURL *". This is usually known as an easy handle in API |  | ||||||
|   documentations and examples. |  | ||||||
|  |  | ||||||
|   Information and state that is related to the actual connection is in the |  | ||||||
|   'connectdata' struct. When a transfer is about to be made, libcurl will |  | ||||||
|   either create a new connection or re-use an existing one. The particular |  | ||||||
|   connectdata that is used by this handle is pointed out by |  | ||||||
|   SessionHandle->easy_conn. |  | ||||||
|  |  | ||||||
|   Data and information that regard this particular single transfer is put in |  | ||||||
|   the SingleRequest sub-struct. |  | ||||||
|  |  | ||||||
|   When the SessionHandle struct is added to a multi handle, as it must be in |  | ||||||
|   order to do any transfer, the ->multi member will point to the Curl_multi |  | ||||||
|   struct it belongs to. The ->prev and ->next members will then be used by the |  | ||||||
|   multi code to keep a linked list of SessionHandle structs that are added to |  | ||||||
|   that same multi handle. libcurl always uses multi so ->multi *will* point to |  | ||||||
|   a Curl_multi when a transfer is in progress. |  | ||||||
|  |  | ||||||
|   ->mstate is the multi state of this particular SessionHandle. When |  | ||||||
|   multi_runsingle() is called, it will act on this handle according to which |  | ||||||
|   state it is in. The mstate is also what tells which sockets to return for a |  | ||||||
|   specific SessionHandle when curl_multi_fdset() is called etc. |  | ||||||
|  |  | ||||||
|   The libcurl source code generally use the name 'data' for the variable that |  | ||||||
|   points to the SessionHandle. |  | ||||||
|  |  | ||||||
|  |  | ||||||
|   1.2 connectdata |  | ||||||
|  |  | ||||||
|   A general idea in libcurl is to keep connections around in a connection |  | ||||||
|   "cache" after they have been used in case they will be used again and then |  | ||||||
|   re-use an existing one instead of creating a new as it creates a significant |  | ||||||
|   performance boost. |  | ||||||
|  |  | ||||||
|   Each 'connectdata' identifies a single physical connection to a server. If |  | ||||||
|   the connection can't be kept alive, the connection will be closed after use |  | ||||||
|   and then this struct can be removed from the cache and freed. |  | ||||||
|  |  | ||||||
|   Thus, the same SessionHandle can be used multiple times and each time select |  | ||||||
|   another connectdata struct to use for the connection. Keep this in mind, as |  | ||||||
|   it is then important to consider if options or choices are based on the |  | ||||||
|   connection or the SessionHandle. |  | ||||||
|  |  | ||||||
|   Functions in libcurl will assume that connectdata->data points to the |  | ||||||
|   SessionHandle that uses this connection. |  | ||||||
|  |  | ||||||
|   As a special complexity, some protocols supported by libcurl require a |  | ||||||
|   special disconnect procedure that is more than just shutting down the |  | ||||||
|   socket. It can involve sending one or more commands to the server before |  | ||||||
|   doing so. Since connections are kept in the connection cache after use, the |  | ||||||
|   original SessionHandle may no longer be around when the time comes to shut |  | ||||||
|   down a particular connection. For this purpose, libcurl holds a special |  | ||||||
|   dummy 'closure_handle' SessionHandle in the Curl_multi struct to  |  | ||||||
|  |  | ||||||
|   FTP uses two TCP connections for a typical transfer but it keeps both in |  | ||||||
|   this single struct and thus can be considered a single connection for most |  | ||||||
|   internal concerns. |  | ||||||
|  |  | ||||||
|   The libcurl source code generally use the name 'conn' for the variable that |  | ||||||
|   points to the connectdata. |  | ||||||
|  |  | ||||||
|  |  | ||||||
|   1.3 Curl_multi |  | ||||||
|  |  | ||||||
|   Internally, the easy interface is implemented as a wrapper around multi |  | ||||||
|   interface functions. This makes everything multi interface. |  | ||||||
|  |  | ||||||
|   Curl_multi is the multi handle struct exposed as "CURLM *" in external APIs. |  | ||||||
|  |  | ||||||
|   This struct holds a list of SessionHandle structs that have been added to |  | ||||||
|   this handle with curl_multi_add_handle(). The start of the list is ->easyp |  | ||||||
|   and ->num_easy is a counter of added SessionHandles. |  | ||||||
|  |  | ||||||
|   ->msglist is a linked list of messages to send back when |  | ||||||
|   curl_multi_info_read() is called. Basically a node is added to that list |  | ||||||
|   when an individual SessionHandle's transfer has completed. |  | ||||||
|  |  | ||||||
|   ->hostcache points to the name cache. It is a hash table for looking up name |  | ||||||
|   to IP. The nodes have a limited life time in there and this cache is meant |  | ||||||
|   to reduce the time for when the same name is wanted within a short period of |  | ||||||
|   time. |  | ||||||
|  |  | ||||||
|   ->timetree points to a tree of SessionHandles, sorted by the remaining time |  | ||||||
|   until it should be checked - normally some sort of timeout. Each |  | ||||||
|   SessionHandle has one node in the tree. |  | ||||||
|  |  | ||||||
|   ->sockhash is a hash table to allow fast lookups of socket descriptor to |  | ||||||
|   which SessionHandle that uses that descriptor. This is necessary for the |  | ||||||
|   multi_socket API. |  | ||||||
|  |  | ||||||
|   ->conn_cache points to the connection cache. It keeps track of all |  | ||||||
|   connections that are kept after use. The cache has a maximum size. |  | ||||||
|  |  | ||||||
|   ->closure_handle is described in the 'connectdata' section. |  | ||||||
|  |  | ||||||
|   The libcurl source code generally use the name 'multi' for the variable that |  | ||||||
|   points to the Curl_multi struct. |  | ||||||
|  |  | ||||||
|  |  | ||||||
|   1.4 Curl_handler |  | ||||||
|  |  | ||||||
|   Each unique protocol that is supported by libcurl needs to provide at least |  | ||||||
|   one Curl_handler struct. It defines what the protocol is called and what |  | ||||||
|   functions the main code should call to deal with protocol specific issues. |  | ||||||
|   In general, there's a source file named [protocol].c in which there's a |  | ||||||
|   "struct Curl_handler Curl_handler_[protocol]" declared. In url.c there's |  | ||||||
|   then the main array with all individual Curl_handler structs pointed to from |  | ||||||
|   a single array which is scanned through when a URL is given to libcurl to |  | ||||||
|   work with. |  | ||||||
|  |  | ||||||
|   ->scheme is the URL scheme name, usually spelled out in uppercase. That's |  | ||||||
|   "HTTP" or "FTP" etc. SSL versions of the protcol need its own Curl_handler |  | ||||||
|   setup so HTTPS separate from HTTP. |  | ||||||
|  |  | ||||||
|   ->setup_connection is called to allow the protocol code to allocate protocol |  | ||||||
|   specific data that then gets associated with that SessionHandle for the rest |  | ||||||
|   of this transfer. It gets freed again at the end of the transfer. It will be |  | ||||||
|   called before the 'connectdata' for the transfer has been selected/created. |  | ||||||
|   Most protocols will allocate its private 'struct [PROTOCOL]' here and assign |  | ||||||
|   SessionHandle->req.protop to point to it. |  | ||||||
|  |  | ||||||
|   ->connect_it allows a protocol to do some specific actions after the TCP |  | ||||||
|   connect is done, that can still be considered part of the connection phase. |  | ||||||
|  |  | ||||||
|   Some protocols will alter the connectdata->recv[] and connectdata->send[] |  | ||||||
|   function pointers in this function. |  | ||||||
|  |  | ||||||
|   ->connecting is similarly a function that keeps getting called as long as the |  | ||||||
|   protocol considers itself still in the connecting phase. |  | ||||||
|  |  | ||||||
|   ->do_it is the function called to issue the transfer request. What we call |  | ||||||
|   the DO action internally. If the DO is not enough and things need to be kept |  | ||||||
|   getting done for the entire DO sequence to complete, ->doing is then usually |  | ||||||
|   also provided. Each protocol that needs to do multiple commands or similar |  | ||||||
|   for do/doing need to implement their own state machines (see SCP, SFTP, |  | ||||||
|   FTP). Some protocols (only FTP and only due to historical reasons) has a |  | ||||||
|   separate piece of the DO state called DO_MORE. |  | ||||||
|  |  | ||||||
|   ->doing keeps getting called while issuing the transfer request command(s) |  | ||||||
|  |  | ||||||
|   ->done gets called when the transfer is complete and DONE. That's after the |  | ||||||
|   main data has been transferred. |  | ||||||
|  |  | ||||||
|   ->do_more gets called during the DO_MORE state. The FTP protocol uses this |  | ||||||
|   state when setting up the second connection. |  | ||||||
|  |  | ||||||
|   ->proto_getsock |  | ||||||
|   ->doing_getsock |  | ||||||
|   ->domore_getsock |  | ||||||
|   ->perform_getsock |  | ||||||
|   Functions that return socket information. Which socket(s) to wait for which |  | ||||||
|   action(s) during the particular multi state. |  | ||||||
|  |  | ||||||
|   ->disconnect is called immediately before the TCP connection is shutdown. |  | ||||||
|  |  | ||||||
|   ->readwrite gets called during transfer to allow the protocol to do extra |  | ||||||
|   reads/writes |  | ||||||
|  |  | ||||||
|   ->defport is the default report TCP or UDP port this protocol uses |  | ||||||
|  |  | ||||||
|   ->protocol is one or more bits in the CURLPROTO_* set. The SSL versions have |  | ||||||
|   their "base" protocol set and then the SSL variation. Like "HTTP|HTTPS". |  | ||||||
|  |  | ||||||
|   ->flags is a bitmask with additional information about the protocol that will |  | ||||||
|   make it get treated differently by the generic engine: |  | ||||||
|  |  | ||||||
|     PROTOPT_SSL - will make it connect and negotiate SSL |  | ||||||
|  |  | ||||||
|     PROTOPT_DUAL - this protocol uses two connections |  | ||||||
|  |  | ||||||
|     PROTOPT_CLOSEACTION - this protocol has actions to do before closing the |  | ||||||
|     connection. This flag is no longer used by code, yet still set for a bunch |  | ||||||
|     protocol handlers. |  | ||||||
|    |  | ||||||
|     PROTOPT_DIRLOCK - "direction lock". The SSH protocols set this bit to |  | ||||||
|     limit which "direction" of socket actions that the main engine will |  | ||||||
|     concern itself about. |  | ||||||
|  |  | ||||||
|     PROTOPT_NONETWORK - a protocol that doesn't use network (read file:) |  | ||||||
|  |  | ||||||
|     PROTOPT_NEEDSPWD - this protocol needs a password and will use a default |  | ||||||
|     one unless one is provided |  | ||||||
|  |  | ||||||
|     PROTOPT_NOURLQUERY - this protocol can't handle a query part on the URL |  | ||||||
|     (?foo=bar) |  | ||||||
|  |  | ||||||
|  |  | ||||||
|   1.5 conncache |  | ||||||
|  |  | ||||||
|   Is a hash table with connections for later re-use. Each SessionHandle has |  | ||||||
|   a pointer to its connection cache. Each multi handle sets up a connection |  | ||||||
|   cache that all added SessionHandles share by default. |  | ||||||
|  |  | ||||||
|  |  | ||||||
|   1.6 Curl_share |  | ||||||
|    |  | ||||||
|   The libcurl share API allocates a Curl_share struct, exposed to the external |  | ||||||
|   API as "CURLSH *". |  | ||||||
|  |  | ||||||
|   The idea is that the struct can have a set of own versions of caches and |  | ||||||
|   pools and then by providing this struct in the CURLOPT_SHARE option, those |  | ||||||
|   specific SessionHandles will use the caches/pools that this share handle |  | ||||||
|   holds. |  | ||||||
|  |  | ||||||
|   Then individual SessionHandle structs can be made to share specific things |  | ||||||
|   that they otherwise wouldn't, such as cookies. |  | ||||||
|  |  | ||||||
|   The Curl_share struct can currently hold cookies, DNS cache and the SSL |  | ||||||
|   session cache. |  | ||||||
|  |  | ||||||
|    |  | ||||||
|   1.7 CookieInfo |  | ||||||
|  |  | ||||||
|   This is the main cookie struct. It holds all known cookies and related |  | ||||||
|   information. Each SessionHandle has its own private CookieInfo even when |  | ||||||
|   they are added to a multi handle. They can be made to share cookies by using |  | ||||||
|   the share API. |  | ||||||
| @@ -23,29 +23,29 @@ libcurl http://curl.haxx.se/docs/copyright.html | |||||||
|         Uses an MIT (or Modified BSD)-style license that is as liberal as |         Uses an MIT (or Modified BSD)-style license that is as liberal as | ||||||
|         possible. |         possible. | ||||||
|  |  | ||||||
| OpenSSL http://www.openssl.org/source/license.html | OpenSSL https://www.openssl.org/source/license.html | ||||||
|  |  | ||||||
|         (May be used for SSL/TLS support) Uses an Original BSD-style license |         (May be used for SSL/TLS support) Uses an Original BSD-style license | ||||||
|         with an announcement clause that makes it "incompatible" with GPL. You |         with an announcement clause that makes it "incompatible" with GPL. You | ||||||
|         are not allowed to ship binaries that link with OpenSSL that includes |         are not allowed to ship binaries that link with OpenSSL that includes | ||||||
|         GPL code (unless that specific GPL code includes an exception for |         GPL code (unless that specific GPL code includes an exception for | ||||||
|         OpenSSL - a habit that is growing more and more common). If OpenSSL's |         OpenSSL - a habit that is growing more and more common). If OpenSSL's | ||||||
|         licensing is a problem for you, consider using GnuTLS or yassl |         licensing is a problem for you, consider using another TLS library. | ||||||
|         instead. |  | ||||||
|  |  | ||||||
| GnuTLS  http://www.gnutls.org/ | GnuTLS  http://www.gnutls.org/ | ||||||
|  |  | ||||||
|         (May be used for SSL/TLS support) Uses the LGPL[3] license. If this is |         (May be used for SSL/TLS support) Uses the LGPL[3] license. If this is | ||||||
|         a problem for you, consider using OpenSSL instead. Also note that |         a problem for you, consider using another TLS library. Also note that | ||||||
|         GnuTLS itself depends on and uses other libs (libgcrypt and |         GnuTLS itself depends on and uses other libs (libgcrypt and | ||||||
|         libgpg-error) and they too are LGPL- or GPL-licensed. |         libgpg-error) and they too are LGPL- or GPL-licensed. | ||||||
|  |  | ||||||
| yassl   http://www.yassl.com/ | WolfSSL   https://www.wolfssl.com/ | ||||||
|  |  | ||||||
|         (May be used for SSL/TLS support) Uses the GPL[1] license. If this is |         (May be used for SSL/TLS support) Uses the GPL[1] license or a | ||||||
|         a problem for you, consider using OpenSSL or GnuTLS instead. |         propietary license. If this is a problem for you, consider using | ||||||
|  |         another TLS library. | ||||||
|  |  | ||||||
| NSS     http://www.mozilla.org/projects/security/pki/nss/ | NSS     https://developer.mozilla.org/en-US/docs/Mozilla/Projects/NSS | ||||||
|  |  | ||||||
|         (May be used for SSL/TLS support) Is covered by the MPL[4] license, |         (May be used for SSL/TLS support) Is covered by the MPL[4] license, | ||||||
|         the GPL[1] license and the LGPL[3] license. You may choose to license |         the GPL[1] license and the LGPL[3] license. You may choose to license | ||||||
| @@ -57,13 +57,29 @@ axTLS   http://axtls.sourceforge.net/ | |||||||
|  |  | ||||||
|         (May be used for SSL/TLS support) Uses a Modified BSD-style license. |         (May be used for SSL/TLS support) Uses a Modified BSD-style license. | ||||||
|  |  | ||||||
|  | mbedTLS https://tls.mbed.org/ | ||||||
|  |  | ||||||
|  |         (May be used for SSL/TLS support) Uses the GPL[1] license or a | ||||||
|  |         propietary license. If this is a problem for you, consider using | ||||||
|  |         another TLS library. | ||||||
|  |  | ||||||
|  | BoringSSL https://boringssl.googlesource.com/ | ||||||
|  |  | ||||||
|  |         (May be used for SSL/TLS support) As an OpenSSL fork, it has the same | ||||||
|  |         license as that. | ||||||
|  |  | ||||||
|  | libressl http://www.libressl.org/ | ||||||
|  |  | ||||||
|  |         (May be used for SSL/TLS support) As an OpenSSL fork, it has the same | ||||||
|  |         license as that. | ||||||
|  |  | ||||||
| c-ares  http://daniel.haxx.se/projects/c-ares/license.html | c-ares  http://daniel.haxx.se/projects/c-ares/license.html | ||||||
|  |  | ||||||
|         (Used for asynchronous name resolves) Uses an MIT license that is very |         (Used for asynchronous name resolves) Uses an MIT license that is very | ||||||
|         liberal and imposes no restrictions on any other library or part you |         liberal and imposes no restrictions on any other library or part you | ||||||
|         may link with. |         may link with. | ||||||
|  |  | ||||||
| zlib    http://www.gzip.org/zlib/zlib_license.html | zlib    http://www.zlib.net/zlib_license.html | ||||||
|  |  | ||||||
|         (Used for compressed Transfer-Encoding support) Uses an MIT-style |         (Used for compressed Transfer-Encoding support) Uses an MIT-style | ||||||
|         license that shouldn't collide with any other library. |         license that shouldn't collide with any other library. | ||||||
| @@ -73,12 +89,12 @@ MIT Kerberos http://web.mit.edu/kerberos/www/dist/ | |||||||
|         (May be used for GSS support) MIT licensed, that shouldn't collide |         (May be used for GSS support) MIT licensed, that shouldn't collide | ||||||
|         with any other parts. |         with any other parts. | ||||||
|  |  | ||||||
| Heimdal http://www.pdc.kth.se/heimdal/ | Heimdal http://www.h5l.org | ||||||
|  |  | ||||||
|         (May be used for GSS support) Heimdal is Original BSD licensed with |         (May be used for GSS support) Heimdal is Original BSD licensed with | ||||||
|         the announcement clause. |         the announcement clause. | ||||||
|  |  | ||||||
| GNU GSS http://www.gnu.org/software/gss/ | GNU GSS https://www.gnu.org/software/gss/ | ||||||
|  |  | ||||||
|         (May be used for GSS support) GNU GSS is GPL licensed. Note that you |         (May be used for GSS support) GNU GSS is GPL licensed. Note that you | ||||||
|         may not distribute binary curl packages that uses this if you build |         may not distribute binary curl packages that uses this if you build | ||||||
| @@ -105,10 +121,10 @@ libssh2 http://www.libssh2.org/ | |||||||
|         (Used for scp and sftp support) libssh2 uses a Modified BSD-style |         (Used for scp and sftp support) libssh2 uses a Modified BSD-style | ||||||
|         license. |         license. | ||||||
|  |  | ||||||
| [1] = GPL - GNU General Public License: http://www.gnu.org/licenses/gpl.html | [1] = GPL - GNU General Public License: https://www.gnu.org/licenses/gpl.html | ||||||
| [2] = http://www.fsf.org/licenses/gpl-faq.html#GPLIncompatibleLibs details on | [2] = https://www.gnu.org/licenses/gpl-faq.html#GPLIncompatibleLibs details on | ||||||
|       how to write such an exception to the GPL |       how to write such an exception to the GPL | ||||||
| [3] = LGPL - GNU Lesser General Public License: | [3] = LGPL - GNU Lesser General Public License: | ||||||
|       http://www.gnu.org/licenses/lgpl.html |       https://www.gnu.org/licenses/lgpl.html | ||||||
| [4] = MPL - Mozilla Public License: | [4] = MPL - Mozilla Public License: | ||||||
|       http://www.mozilla.org/MPL/ |       https://www.mozilla.org/MPL/ | ||||||
|   | |||||||
| @@ -230,7 +230,7 @@ MAIL ETIQUETTE | |||||||
|   Quote as little as possible. Just enough to provide the context you cannot |   Quote as little as possible. Just enough to provide the context you cannot | ||||||
|   leave out. A lengthy description can be found here: |   leave out. A lengthy description can be found here: | ||||||
|  |  | ||||||
|       http://www.netmeister.org/news/learn2quote.html |       https://www.netmeister.org/news/learn2quote.html | ||||||
|  |  | ||||||
|   2.7 Digest |   2.7 Digest | ||||||
|  |  | ||||||
|   | |||||||
| @@ -470,8 +470,8 @@ COOKIES | |||||||
|   stored cookies which match the request as it follows the location.  The |   stored cookies which match the request as it follows the location.  The | ||||||
|   file "empty.txt" may be a nonexistent file. |   file "empty.txt" may be a nonexistent file. | ||||||
|  |  | ||||||
|   Alas, to both read and write cookies from a netscape cookie file, you can |   To read and write cookies from a netscape cookie file, you can set both -b | ||||||
|   set both -b and -c to use the same file: |   and -c to use the same file: | ||||||
|  |  | ||||||
|         curl -b cookies.txt -c cookies.txt www.example.com |         curl -b cookies.txt -c cookies.txt www.example.com | ||||||
|  |  | ||||||
|   | |||||||
| @@ -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,8 +37,8 @@ EXTRA_DIST = MANUAL BUGS CONTRIBUTE FAQ FEATURES INTERNALS SSLCERTS	 \ | |||||||
|  README.win32 RESOURCES TODO TheArtOfHttpScripting THANKS VERSIONS	 \ |  README.win32 RESOURCES TODO TheArtOfHttpScripting THANKS VERSIONS	 \ | ||||||
|  KNOWN_BUGS BINDINGS $(man_MANS) $(HTMLPAGES) HISTORY INSTALL		 \ |  KNOWN_BUGS BINDINGS $(man_MANS) $(HTMLPAGES) HISTORY INSTALL		 \ | ||||||
|  $(PDFPAGES) LICENSE-MIXING README.netware DISTRO-DILEMMA INSTALL.devcpp \ |  $(PDFPAGES) LICENSE-MIXING README.netware DISTRO-DILEMMA INSTALL.devcpp \ | ||||||
|  MAIL-ETIQUETTE HTTP-COOKIES LIBCURL-STRUCTS SECURITY RELEASE-PROCEDURE  \ |  MAIL-ETIQUETTE HTTP-COOKIES SECURITY RELEASE-PROCEDURE  \ | ||||||
|  SSL-PROBLEMS |  SSL-PROBLEMS HTTP2.md ROADMAP.md | ||||||
|  |  | ||||||
| MAN2HTML= roffit < $< >$@ | MAN2HTML= roffit < $< >$@ | ||||||
|  |  | ||||||
|   | |||||||
| @@ -1,9 +1,3 @@ | |||||||
|                                   _   _ ____  _ |  | ||||||
|                               ___| | | |  _ \| | |  | ||||||
|                              / __| | | | |_) | | |  | ||||||
|                             | (__| |_| |  _ <| |___ |  | ||||||
|                              \___|\___/|_| \_\_____| |  | ||||||
|  |  | ||||||
| curl release procedure - how to do a release | curl release procedure - how to do a release | ||||||
| ============================================ | ============================================ | ||||||
|  |  | ||||||
| @@ -84,11 +78,12 @@ 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): | ||||||
|  |  | ||||||
| - November 5, 2014 (version 7.39.0) | - June 17, 2015 (version 7.43.0) | ||||||
| - December 31, 2014 |  | ||||||
| - February 25, 2015 |  | ||||||
| - April 22, 2015 |  | ||||||
| - June 17, 2015 |  | ||||||
| - August 12, 2015 | - August 12, 2015 | ||||||
| - October 7, 2015 | - October 7, 2015 | ||||||
| - December 2, 2015 | - December 2, 2015 | ||||||
|  | - January 27, 2016 | ||||||
|  | - March 23, 2016 | ||||||
|  | - May 18, 2016 | ||||||
|  | - July 13, 2016 | ||||||
|  | - September 7, 2016 | ||||||
|   | |||||||
							
								
								
									
										132
									
								
								docs/ROADMAP.md
									
									
									
									
									
								
							
							
						
						
									
										132
									
								
								docs/ROADMAP.md
									
									
									
									
									
								
							| @@ -5,43 +5,100 @@ Roadmap of things Daniel Stenberg and Steve Holme want to work on next. It is | |||||||
| intended to serve as a guideline for others for information, feedback and | intended to serve as a guideline for others for information, feedback and | ||||||
| possible participation. | possible participation. | ||||||
|  |  | ||||||
| New stuff - libcurl | HTTP/2 | ||||||
|  | ------ | ||||||
|  |  | ||||||
|  | - test suite | ||||||
|  |  | ||||||
|  |    Base this on existing nghttp2 server to start with to make functional | ||||||
|  |    tests. Later on we can adopt that code or work with nghttp2 to provide ways | ||||||
|  |    to have the http2 server respond with broken responses to make sure we deal | ||||||
|  |    with that nicely as well. | ||||||
|  |  | ||||||
|  |    To decide: if we need to bundle parts of the nghttp2 stuff that probably | ||||||
|  |    won't be shipped by many distros. | ||||||
|  |  | ||||||
|  | - 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 | ||||||
|  |  | ||||||
|  |    As it would avoid the roundtrip-heavy Upgrade: procedures when you _know_ | ||||||
|  |    it speaks HTTP/2. | ||||||
|  |  | ||||||
|  | - provide option to allow curl to default to HTTP/2 only when using HTTPS | ||||||
|  |  | ||||||
|  |    We could switch on HTTP/2 by-default for HTTPS quite easily and it | ||||||
|  |    shouldn't hurt anyone, while HTTP/2 for HTTP by default could introduce | ||||||
|  |    lots of Upgrade: roundtrips that users won't like. So a separated option | ||||||
|  |    alternative makes sense. | ||||||
|  |  | ||||||
|  | SRV records | ||||||
|  | ----------- | ||||||
|  |  | ||||||
|  | How to find services for specific domains/hosts. | ||||||
|  |  | ||||||
|  | HTTPS to proxy | ||||||
|  | -------------- | ||||||
|  |  | ||||||
|  | To avoid network traffic to/from the proxy getting snooped on. | ||||||
|  |  | ||||||
|  | curl_formadd() | ||||||
|  | -------------- | ||||||
|  |  | ||||||
|  | make sure there's an easy handle passed in to `curl_formadd()`, | ||||||
|  | `curl_formget()` and `curl_formfree()` by adding replacement functions and | ||||||
|  | deprecating the old ones to allow custom mallocs and more | ||||||
|  |  | ||||||
|  | third-party SASL | ||||||
|  | ---------------- | ||||||
|  |  | ||||||
|  | add support for third-party SASL libraries such as Cyrus SASL - may need to | ||||||
|  | move existing native and SSPI based authentication into vsasl folder after | ||||||
|  | reworking HTTP and SASL code | ||||||
|  |  | ||||||
|  | SASL authentication in LDAP | ||||||
|  | --------------------------- | ||||||
|  |  | ||||||
|  | ... | ||||||
|  |  | ||||||
|  | Simplify the SMTP email | ||||||
|  | ----------------------- | ||||||
|  |  | ||||||
|  | Simplify the SMTP email interface so that programmers don't have to | ||||||
|  | construct the body of an email that contains all the headers, alternative | ||||||
|  | content, images and attachments - maintain raw interface so that | ||||||
|  | programmers that want to do this can | ||||||
|  |  | ||||||
|  | email capabilities | ||||||
|  | ------------------ | ||||||
|  |  | ||||||
|  | Allow the email protocols to return the capabilities before | ||||||
|  | authenticating. This will allow an application to decide on the best | ||||||
|  | authentication mechanism | ||||||
|  |  | ||||||
|  | Win32 pthreads | ||||||
|  | -------------- | ||||||
|  |  | ||||||
|  | Allow Windows threading model to be replaced by Win32 pthreads port | ||||||
|  |  | ||||||
|  | dynamic buffer size | ||||||
| ------------------- | ------------------- | ||||||
|  |  | ||||||
| 1. http2 test suite | Implement a dynamic buffer size to allow SFTP to use much larger buffers and | ||||||
|  | possibly allow the size to be customizable by applications. Use less memory | ||||||
| 2. http2 multiplexing/pipelining | when handles are not in use? | ||||||
|  |  | ||||||
| 3. SPDY |  | ||||||
|  |  | ||||||
| 4. SRV records |  | ||||||
|  |  | ||||||
| 5. HTTPS to proxy |  | ||||||
|  |  | ||||||
| 6. make sure there's an easy handle passed in to `curl_formadd()`, |  | ||||||
|    `curl_formget()` and `curl_formfree()` by adding replacement functions and |  | ||||||
|    deprecating the old ones to allow custom mallocs and more |  | ||||||
|  |  | ||||||
| 7. add support for third-party SASL libraries such as Cyrus SASL - may need to |  | ||||||
|    move existing native and SSPI based authentication into vsasl folder after |  | ||||||
|    reworking HTTP and SASL code |  | ||||||
|  |  | ||||||
| 8. SASL authentication in LDAP |  | ||||||
|  |  | ||||||
| 9. Simplify the SMTP email interface so that programmers don't have to |  | ||||||
|    construct the body of an email that contains all the headers, alternative |  | ||||||
|    content, images and attachments - maintain raw interface so that |  | ||||||
|    programmers that want to do this can |  | ||||||
|  |  | ||||||
| 10. Allow the email protocols to return the capabilities before |  | ||||||
|     authenticating. This will allow an application to decide on the best |  | ||||||
|     authentication mechanism |  | ||||||
|  |  | ||||||
| 11. Allow Windows threading model to be replaced by Win32 pthreads port |  | ||||||
|  |  | ||||||
| 12. Implement a dynamic buffer size to allow SFTP to use much larger buffers |  | ||||||
|     and possibly allow the size to be customizable by applications. Use less |  | ||||||
|     memory when handles are not in use? |  | ||||||
|  |  | ||||||
| New stuff - curl | New stuff - curl | ||||||
| ---------------- | ---------------- | ||||||
| @@ -66,7 +123,6 @@ Improve | |||||||
|  |  | ||||||
| 4. docs (considered "bad" by users but how do we make it better?) | 4. docs (considered "bad" by users but how do we make it better?) | ||||||
|  |  | ||||||
|   - split up `curl_easy_setopt.3` |  | ||||||
|   - split up curl.1 |   - split up curl.1 | ||||||
|  |  | ||||||
| 5. authentication framework (consider merging HTTP and SASL authentication to | 5. authentication framework (consider merging HTTP and SASL authentication to | ||||||
| @@ -79,7 +135,5 @@ Improve | |||||||
| Remove | Remove | ||||||
| ------ | ------ | ||||||
|  |  | ||||||
| 1. cmake support (nobody maintains it) | 1. makefile.vc files as there is no point in maintaining two sets of Windows | ||||||
|  |  | ||||||
| 2. makefile.vc files as there is no point in maintaining two sets of Windows |  | ||||||
|    makefiles. Note: These are currently being used by the Windows autobuilds |    makefiles. Note: These are currently being used by the Windows autobuilds | ||||||
|   | |||||||
| @@ -53,7 +53,7 @@ SSL ciphers | |||||||
|  |  | ||||||
|   References: |   References: | ||||||
|  |  | ||||||
|   http://tools.ietf.org/html/draft-popov-tls-prohibiting-rc4-01 |   https://tools.ietf.org/html/draft-popov-tls-prohibiting-rc4-01 | ||||||
|    |    | ||||||
| Allow BEAST | Allow BEAST | ||||||
|  |  | ||||||
|   | |||||||
							
								
								
									
										72
									
								
								docs/THANKS
									
									
									
									
									
								
							
							
						
						
									
										72
									
								
								docs/THANKS
									
									
									
									
									
								
							| @@ -36,10 +36,14 @@ Alex Suykov | |||||||
| Alex Vinnik | Alex Vinnik | ||||||
| Alex aka WindEagle | Alex aka WindEagle | ||||||
| Alexander Beedie | Alexander Beedie | ||||||
|  | Alexander Dyagilev | ||||||
|  | Alexander Elgert | ||||||
| Alexander Klauer | Alexander Klauer | ||||||
| Alexander Kourakos | Alexander Kourakos | ||||||
| Alexander Krasnostavsky | Alexander Krasnostavsky | ||||||
| Alexander Lazic | Alexander Lazic | ||||||
|  | Alexander Pepper | ||||||
|  | Alexander Peslyak | ||||||
| Alexander Zhuravlev | Alexander Zhuravlev | ||||||
| Alexey Borzov | Alexey Borzov | ||||||
| Alexey Pesternikov | Alexey Pesternikov | ||||||
| @@ -52,6 +56,7 @@ Alona Rossen | |||||||
| Amol Pattekar | Amol Pattekar | ||||||
| Amr Shahin | Amr Shahin | ||||||
| Anatoli Tubman | Anatoli Tubman | ||||||
|  | Anders Bakken | ||||||
| Anders Gustafsson | Anders Gustafsson | ||||||
| Anders Havn | Anders Havn | ||||||
| Andi Jahja | Andi Jahja | ||||||
| @@ -79,6 +84,7 @@ Andrew Kurushin | |||||||
| Andrew Moise | Andrew Moise | ||||||
| Andrew Wansink | Andrew Wansink | ||||||
| Andrew de los Reyes | Andrew de los Reyes | ||||||
|  | Andrey Labunets | ||||||
| Andrii Moiseiev | Andrii Moiseiev | ||||||
| Andrés García | Andrés García | ||||||
| Andy Cedilnik | Andy Cedilnik | ||||||
| @@ -86,6 +92,7 @@ Andy Serpa | |||||||
| Andy Tsouladze | Andy Tsouladze | ||||||
| Angus Mackay | Angus Mackay | ||||||
| Anthon Pang | Anthon Pang | ||||||
|  | Anthony Avina | ||||||
| Anthony Bryan | Anthony Bryan | ||||||
| Anthony G. Basile | Anthony G. Basile | ||||||
| Antoine Calando | Antoine Calando | ||||||
| @@ -100,6 +107,7 @@ Arnaud Ebalard | |||||||
| Arthur Murray | Arthur Murray | ||||||
| Arve Knudsen | Arve Knudsen | ||||||
| Arvid Norberg | Arvid Norberg | ||||||
|  | Ashish Shukla | ||||||
| Ask Bjørn Hansen | Ask Bjørn Hansen | ||||||
| Askar Safin | Askar Safin | ||||||
| Ates Goral | Ates Goral | ||||||
| @@ -112,6 +120,7 @@ Balint Szilakszi | |||||||
| Barry Abrahamson | Barry Abrahamson | ||||||
| Bart Whiteley | Bart Whiteley | ||||||
| Bas Mevissen | Bas Mevissen | ||||||
|  | Ben Boeckel | ||||||
| Ben Darnell | Ben Darnell | ||||||
| Ben Greear | Ben Greear | ||||||
| Ben Madsen | Ben Madsen | ||||||
| @@ -126,6 +135,7 @@ Benoit Neil | |||||||
| Benoit Sigoure | Benoit Sigoure | ||||||
| Bernard Leak | Bernard Leak | ||||||
| Bernhard Reutner-Fischer | Bernhard Reutner-Fischer | ||||||
|  | Bert Huijben | ||||||
| Bertrand Demiddelaer | Bertrand Demiddelaer | ||||||
| Bill Doyle | Bill Doyle | ||||||
| Bill Egert | Bill Egert | ||||||
| @@ -142,6 +152,7 @@ Bob Richmond | |||||||
| Bob Schader | Bob Schader | ||||||
| Bogdan Nicula | Bogdan Nicula | ||||||
| Brad Burdick | Brad Burdick | ||||||
|  | Brad Harder | ||||||
| Brad Hards | Brad Hards | ||||||
| Brad King | Brad King | ||||||
| Brad Spencer | Brad Spencer | ||||||
| @@ -151,8 +162,10 @@ Brandon Wang | |||||||
| Brendan Jurd | Brendan Jurd | ||||||
| Brent Beardsley | Brent Beardsley | ||||||
| Brian Akins | Brian Akins | ||||||
|  | Brian Chrisman | ||||||
| Brian Dessent | Brian Dessent | ||||||
| Brian J. Murrell | Brian J. Murrell | ||||||
|  | Brian Prodoehl | ||||||
| Brian R Duffy | Brian R Duffy | ||||||
| Brian Ulm | Brian Ulm | ||||||
| Brock Noland | Brock Noland | ||||||
| @@ -172,9 +185,11 @@ Catalin Patulea | |||||||
| Chad Monroe | Chad Monroe | ||||||
| Chandrakant Bagul | Chandrakant Bagul | ||||||
| Charles Kerr | Charles Kerr | ||||||
|  | Charles Romestant | ||||||
| Chen Prog | Chen Prog | ||||||
| Chih-Chung Chang | Chih-Chung Chang | ||||||
| Chris "Bob Bob" | Chris "Bob Bob" | ||||||
|  | Chris Araman | ||||||
| Chris Combes | Chris Combes | ||||||
| Chris Conlon | Chris Conlon | ||||||
| Chris Deidun | Chris Deidun | ||||||
| @@ -221,6 +236,7 @@ Curt Bogmine | |||||||
| Cyrill Osterwalder | Cyrill Osterwalder | ||||||
| Cédric Deltheil | Cédric Deltheil | ||||||
| D. Flinkmann | D. Flinkmann | ||||||
|  | Da-Yoon Chung | ||||||
| Dag Ekengren | Dag Ekengren | ||||||
| Dagobert Michelsen | Dagobert Michelsen | ||||||
| Damian Dixon | Damian Dixon | ||||||
| @@ -237,6 +253,7 @@ Daniel Black | |||||||
| Daniel Cater | Daniel Cater | ||||||
| Daniel Egger | Daniel Egger | ||||||
| Daniel Johnson | Daniel Johnson | ||||||
|  | Daniel Melani | ||||||
| Daniel Mentz | Daniel Mentz | ||||||
| Daniel Steinberg | Daniel Steinberg | ||||||
| Daniel Stenberg | Daniel Stenberg | ||||||
| @@ -298,6 +315,7 @@ Dirk Manske | |||||||
| Dmitri Shubin | Dmitri Shubin | ||||||
| Dmitriy Sergeyev | Dmitriy Sergeyev | ||||||
| Dmitry Bartsevich | Dmitry Bartsevich | ||||||
|  | Dmitry Eremin-Solenikov | ||||||
| Dmitry Falko | Dmitry Falko | ||||||
| Dmitry Kurochkin | Dmitry Kurochkin | ||||||
| Dmitry Popov | Dmitry Popov | ||||||
| @@ -313,6 +331,7 @@ Douglas Kilpatrick | |||||||
| Douglas R. Horner | Douglas R. Horner | ||||||
| Douglas Steinwand | Douglas Steinwand | ||||||
| Dov Murik | Dov Murik | ||||||
|  | Drake Arconis | ||||||
| Duane Cathey | Duane Cathey | ||||||
| Duncan Mac-Vicar Prett | Duncan Mac-Vicar Prett | ||||||
| Dustin Boswell | Dustin Boswell | ||||||
| @@ -327,10 +346,12 @@ Edward Rudd | |||||||
| Edward Sheldrake | Edward Sheldrake | ||||||
| Eelco Dolstra | Eelco Dolstra | ||||||
| Eetu Ojanen | Eetu Ojanen | ||||||
|  | Egon Eckert | ||||||
| Eldar Zaitov | Eldar Zaitov | ||||||
| Ellis Pritchard | Ellis Pritchard | ||||||
| Elmira A Semenova | Elmira A Semenova | ||||||
| Emanuele Bovisio | Emanuele Bovisio | ||||||
|  | Emil Lerner | ||||||
| Emil Romanus | Emil Romanus | ||||||
| Emiliano Ida | Emiliano Ida | ||||||
| Enrico Scholz | Enrico Scholz | ||||||
| @@ -381,6 +402,7 @@ François Charlier | |||||||
| Fred Machado | Fred Machado | ||||||
| Fred New | Fred New | ||||||
| Fred Noz | Fred Noz | ||||||
|  | Fred Stluka | ||||||
| Frederic Lepied | Frederic Lepied | ||||||
| Fredrik Thulin | Fredrik Thulin | ||||||
| Gabriel Kuri | Gabriel Kuri | ||||||
| @@ -418,6 +440,7 @@ Glenn Sheridan | |||||||
| Gordon Marler | Gordon Marler | ||||||
| Gorilla Maguila | Gorilla Maguila | ||||||
| Grant Erickson | Grant Erickson | ||||||
|  | Grant Pannell | ||||||
| Greg Hewgill | Greg Hewgill | ||||||
| Greg Morse | Greg Morse | ||||||
| Greg Onufer | Greg Onufer | ||||||
| @@ -436,6 +459,7 @@ Götz Babin-Ebell | |||||||
| Hamish Mackenzie | Hamish Mackenzie | ||||||
| Hang Kin Lau | Hang Kin Lau | ||||||
| Hang Su | Hang Su | ||||||
|  | Hanno Böck | ||||||
| Hanno Kranzhoff | Hanno Kranzhoff | ||||||
| Hans Steegers | Hans Steegers | ||||||
| Hans-Jurgen May | Hans-Jurgen May | ||||||
| @@ -476,6 +500,7 @@ Immanuel Gregoire | |||||||
| Ingmar Runge | Ingmar Runge | ||||||
| Ingo Ralf Blum | Ingo Ralf Blum | ||||||
| Ingo Wilken | Ingo Wilken | ||||||
|  | Isaac Boukris | ||||||
| Ishan SinghLevett | Ishan SinghLevett | ||||||
| Ivo Bellin Salarin | Ivo Bellin Salarin | ||||||
| Jack Zhang | Jack Zhang | ||||||
| @@ -516,6 +541,7 @@ Jaz Fresh | |||||||
| Jean Jacques Drouin | Jean Jacques Drouin | ||||||
| Jean-Claude Chauve | Jean-Claude Chauve | ||||||
| Jean-Francois Bertrand | Jean-Francois Bertrand | ||||||
|  | Jean-Francois Durand | ||||||
| Jean-Louis Lemaire | Jean-Louis Lemaire | ||||||
| Jean-Marc Ranger | Jean-Marc Ranger | ||||||
| Jean-Noël Rouvignac | Jean-Noël Rouvignac | ||||||
| @@ -528,10 +554,12 @@ Jeff Lawson | |||||||
| Jeff Phillips | Jeff Phillips | ||||||
| Jeff Pohlmeyer | Jeff Pohlmeyer | ||||||
| Jeff Weber | Jeff Weber | ||||||
|  | Jens Rantil | ||||||
| Jeremy Friesner | Jeremy Friesner | ||||||
| Jeremy Huddleston | Jeremy Huddleston | ||||||
| Jeremy Lin | Jeremy Lin | ||||||
| Jeroen Koekkoek | Jeroen Koekkoek | ||||||
|  | Jeroen Ooms | ||||||
| Jerome Muffat-Meridol | Jerome Muffat-Meridol | ||||||
| Jerome Robert | Jerome Robert | ||||||
| Jerome Vouillon | Jerome Vouillon | ||||||
| @@ -545,6 +573,7 @@ Jim Drash | |||||||
| Jim Freeman | Jim Freeman | ||||||
| Jim Hollinger | Jim Hollinger | ||||||
| Jim Meyering | Jim Meyering | ||||||
|  | Jiri Dvorak | ||||||
| Jiri Hruska | Jiri Hruska | ||||||
| Jiri Jaburek | Jiri Jaburek | ||||||
| Jiri Malak | Jiri Malak | ||||||
| @@ -553,8 +582,10 @@ Joe Halpin | |||||||
| Joe Malicki | Joe Malicki | ||||||
| Joe Mason | Joe Mason | ||||||
| Joel Chen | Joel Chen | ||||||
|  | Joel Depooter | ||||||
| Jofell Gallardo | Jofell Gallardo | ||||||
| Johan Anderson | Johan Anderson | ||||||
|  | Johan Lantz | ||||||
| Johan Nilsson | Johan Nilsson | ||||||
| Johan van Selst | Johan van Selst | ||||||
| Johannes Bauer | Johannes Bauer | ||||||
| @@ -572,6 +603,7 @@ John Kelly | |||||||
| John Lask | John Lask | ||||||
| John Lightsey | John Lightsey | ||||||
| John Marino | John Marino | ||||||
|  | John Marshall | ||||||
| John McGowan | John McGowan | ||||||
| John P. McCaskey | John P. McCaskey | ||||||
| John Suprock | John Suprock | ||||||
| @@ -581,6 +613,8 @@ Johnny Luong | |||||||
| Jon Grubbs | Jon Grubbs | ||||||
| Jon Nelson | Jon Nelson | ||||||
| Jon Sargeant | Jon Sargeant | ||||||
|  | Jon Seymour | ||||||
|  | Jon Spencer | ||||||
| Jon Torrey | Jon Torrey | ||||||
| Jon Travis | Jon Travis | ||||||
| Jon Turner | Jon Turner | ||||||
| @@ -589,6 +623,7 @@ Jonas Schnelli | |||||||
| Jonatan Lander | Jonatan Lander | ||||||
| Jonatan Vela | Jonatan Vela | ||||||
| Jonathan Cardoso Machado | Jonathan Cardoso Machado | ||||||
|  | Jonathan Cardoso Machado Machado | ||||||
| Jonathan Hseu | Jonathan Hseu | ||||||
| Jonathan Nieder | Jonathan Nieder | ||||||
| Jongki Suwandi | Jongki Suwandi | ||||||
| @@ -605,8 +640,10 @@ Judson Bishop | |||||||
| Juergen Wilke | Juergen Wilke | ||||||
| Jukka Pihl | Jukka Pihl | ||||||
| Julian Noble | Julian Noble | ||||||
|  | Julian Ospald | ||||||
| Julian Taylor | Julian Taylor | ||||||
| Julien Chaffraix | Julien Chaffraix | ||||||
|  | Julien Nabet | ||||||
| Julien Royer | Julien Royer | ||||||
| Jun-ichiro itojun Hagino | Jun-ichiro itojun Hagino | ||||||
| Jurij Smakov | Jurij Smakov | ||||||
| @@ -652,6 +689,7 @@ Krishnendu Majumdar | |||||||
| Krister Johansen | Krister Johansen | ||||||
| Kristian Gunstone | Kristian Gunstone | ||||||
| Kristian Köhntopp | Kristian Köhntopp | ||||||
|  | Kyle J. McKay | ||||||
| Kyle L. Huff | Kyle L. Huff | ||||||
| Kyle Sallee | Kyle Sallee | ||||||
| Lachlan O'Dea | Lachlan O'Dea | ||||||
| @@ -670,6 +708,7 @@ Laurent Rabret | |||||||
| Legoff Vincent | Legoff Vincent | ||||||
| Lehel Bernadt | Lehel Bernadt | ||||||
| Leif W | Leif W | ||||||
|  | Leith Bade | ||||||
| Len Krause | Len Krause | ||||||
| Lenaic Lefever | Lenaic Lefever | ||||||
| Lenny Rachitsky | Lenny Rachitsky | ||||||
| @@ -682,6 +721,7 @@ Lindley French | |||||||
| Ling Thio | Ling Thio | ||||||
| Linus Nielsen Feltzing | Linus Nielsen Feltzing | ||||||
| Lisa Xu | Lisa Xu | ||||||
|  | Liviu Chircu | ||||||
| Liza Alenchery | Liza Alenchery | ||||||
| Lluís Batlle i Rossell | Lluís Batlle i Rossell | ||||||
| Loic Dachary | Loic Dachary | ||||||
| @@ -709,8 +749,10 @@ Manuel Massing | |||||||
| Marc Boucher | Marc Boucher | ||||||
| Marc Deslauriers | Marc Deslauriers | ||||||
| Marc Doughty | Marc Doughty | ||||||
|  | Marc Hesse | ||||||
| Marc Hoersken | Marc Hoersken | ||||||
| Marc Kleine-Budde | Marc Kleine-Budde | ||||||
|  | Marc Renault | ||||||
| Marcel Raad | Marcel Raad | ||||||
| Marcel Roelofs | Marcel Roelofs | ||||||
| Marcelo Juchem | Marcelo Juchem | ||||||
| @@ -733,6 +775,7 @@ Mark Salisbury | |||||||
| Mark Snelling | Mark Snelling | ||||||
| Mark Tully | Mark Tully | ||||||
| Markus Duft | Markus Duft | ||||||
|  | Markus Elfring | ||||||
| Markus Koetter | Markus Koetter | ||||||
| Markus Moeller | Markus Moeller | ||||||
| Markus Oberhumer | Markus Oberhumer | ||||||
| @@ -761,6 +804,7 @@ Matt Wixson | |||||||
| Matteo Rocco | Matteo Rocco | ||||||
| Matthew Blain | Matthew Blain | ||||||
| Matthew Clarke | Matthew Clarke | ||||||
|  | Matthew Hall | ||||||
| Matthias Bolte | Matthias Bolte | ||||||
| Maurice Barnum | Maurice Barnum | ||||||
| Mauro Iorio | Mauro Iorio | ||||||
| @@ -781,16 +825,19 @@ Michael Day | |||||||
| Michael Goffioul | Michael Goffioul | ||||||
| Michael Jahn | Michael Jahn | ||||||
| Michael Jerris | Michael Jerris | ||||||
|  | Michael Kaufmann | ||||||
| Michael Mealling | Michael Mealling | ||||||
| Michael Mueller | Michael Mueller | ||||||
| Michael Osipov | Michael Osipov | ||||||
| Michael Smith | Michael Smith | ||||||
|  | Michael Stapelberg | ||||||
| Michael Stillwell | Michael Stillwell | ||||||
| Michael Wallner | Michael Wallner | ||||||
| Michal Bonino | Michal Bonino | ||||||
| Michal Marek | Michal Marek | ||||||
| Michał Górny | Michał Górny | ||||||
| Michał Kowalczyk | Michał Kowalczyk | ||||||
|  | Michel Promonet | ||||||
| Michele Bini | Michele Bini | ||||||
| Miguel Angel | Miguel Angel | ||||||
| Miguel Diaz | Miguel Diaz | ||||||
| @@ -814,6 +861,7 @@ Mitz Wark | |||||||
| Mohamed Lrhazi | Mohamed Lrhazi | ||||||
| Mohammad AlSaleh | Mohammad AlSaleh | ||||||
| Mohun Biswas | Mohun Biswas | ||||||
|  | Mostyn Bramley-Moore | ||||||
| Myk Taylor | Myk Taylor | ||||||
| Nach M. S. | Nach M. S. | ||||||
| Nagai H | Nagai H | ||||||
| @@ -843,6 +891,7 @@ Nikos Mavrogiannopoulos | |||||||
| Ning Dong | Ning Dong | ||||||
| Nir Soffer | Nir Soffer | ||||||
| Nis Jorgensen | Nis Jorgensen | ||||||
|  | Nobuhiro Ban | ||||||
| Nodak Sodak | Nodak Sodak | ||||||
| Norbert Frese | Norbert Frese | ||||||
| Norbert Novotny | Norbert Novotny | ||||||
| @@ -854,7 +903,9 @@ Oliver Gondža | |||||||
| Oliver Kuckertz | Oliver Kuckertz | ||||||
| Oliver Schindler | Oliver Schindler | ||||||
| Olivier Berger | Olivier Berger | ||||||
|  | Oren Souroujon | ||||||
| Oren Tirosh | Oren Tirosh | ||||||
|  | Orgad Shaneh | ||||||
| Ori Avtalion | Ori Avtalion | ||||||
| Oscar Koeroo | Oscar Koeroo | ||||||
| Oscar Norlander | Oscar Norlander | ||||||
| @@ -870,6 +921,7 @@ Patricia Muscalu | |||||||
| Patrick Bihan-Faou | Patrick Bihan-Faou | ||||||
| Patrick McManus | Patrick McManus | ||||||
| Patrick Monnerat | Patrick Monnerat | ||||||
|  | Patrick Rapin | ||||||
| Patrick Scott | Patrick Scott | ||||||
| Patrick Smith | Patrick Smith | ||||||
| Patrick Watson | Patrick Watson | ||||||
| @@ -882,6 +934,7 @@ Paul Marks | |||||||
| Paul Marquis | Paul Marquis | ||||||
| Paul Moore | Paul Moore | ||||||
| Paul Nolan | Paul Nolan | ||||||
|  | Paul Oliver | ||||||
| Paul Querna | Paul Querna | ||||||
| Paul Saab | Paul Saab | ||||||
| Pavel Cenek | Pavel Cenek | ||||||
| @@ -898,6 +951,7 @@ Peter Heuchert | |||||||
| Peter Hjalmarsson | Peter Hjalmarsson | ||||||
| Peter Korsgaard | Peter Korsgaard | ||||||
| Peter Lamberg | Peter Lamberg | ||||||
|  | Peter Laser | ||||||
| Peter O'Gorman | Peter O'Gorman | ||||||
| Peter Pentchev | Peter Pentchev | ||||||
| Peter Silva | Peter Silva | ||||||
| @@ -938,6 +992,7 @@ Quinn Slack | |||||||
| Radu Simionescu | Radu Simionescu | ||||||
| Rafa Muyo | Rafa Muyo | ||||||
| Rafael Sagula | Rafael Sagula | ||||||
|  | Rafayel Mkrtchyan | ||||||
| Rafaël Carré | Rafaël Carré | ||||||
| Rainer Canavan | Rainer Canavan | ||||||
| Rainer Jung | Rainer Jung | ||||||
| @@ -963,6 +1018,7 @@ Rene Rebe | |||||||
| Reuven Wachtfogel | Reuven Wachtfogel | ||||||
| Reza Arbab | Reza Arbab | ||||||
| Ricardo Cadime | Ricardo Cadime | ||||||
|  | Rich Burridge | ||||||
| Rich Gray | Rich Gray | ||||||
| Rich Rauenzahn | Rich Rauenzahn | ||||||
| Richard Archer | Richard Archer | ||||||
| @@ -1021,6 +1077,8 @@ S. Moonesamy | |||||||
| Salvador Dávila | Salvador Dávila | ||||||
| Salvatore Sorrentino | Salvatore Sorrentino | ||||||
| Sam Deane | Sam Deane | ||||||
|  | Sam Hurst | ||||||
|  | Sam Schanken | ||||||
| Sampo Kellomaki | Sampo Kellomaki | ||||||
| Samuel Díaz García | Samuel Díaz García | ||||||
| Samuel Listopad | Samuel Listopad | ||||||
| @@ -1038,6 +1096,7 @@ Scott Barrett | |||||||
| Scott Cantor | Scott Cantor | ||||||
| Scott Davis | Scott Davis | ||||||
| Scott McCreary | Scott McCreary | ||||||
|  | Sean Boudreau | ||||||
| Sebastian Rasmussen | Sebastian Rasmussen | ||||||
| Senthil Raja Velu | Senthil Raja Velu | ||||||
| Sergei Nikulov | Sergei Nikulov | ||||||
| @@ -1065,6 +1124,8 @@ Spork Schivago | |||||||
| Stadler Stephan | Stadler Stephan | ||||||
| Stan van de Burgt | Stan van de Burgt | ||||||
| Stanislav Ivochkin | Stanislav Ivochkin | ||||||
|  | Stefan Bühler | ||||||
|  | Stefan Eissing | ||||||
| Stefan Esser | Stefan Esser | ||||||
| Stefan Krause | Stefan Krause | ||||||
| Stefan Neis | Stefan Neis | ||||||
| @@ -1079,6 +1140,7 @@ Stephen More | |||||||
| Sterling Hughes | Sterling Hughes | ||||||
| Steve Green | Steve Green | ||||||
| Steve H Truong | Steve H Truong | ||||||
|  | Steve Havelka | ||||||
| Steve Holme | Steve Holme | ||||||
| Steve Lhomme | Steve Lhomme | ||||||
| Steve Little | Steve Little | ||||||
| @@ -1099,6 +1161,7 @@ Symeon Paraschoudis | |||||||
| Sébastien Willemijns | Sébastien Willemijns | ||||||
| T. Bharath | T. Bharath | ||||||
| T. Yamada | T. Yamada | ||||||
|  | Tae Hyoung Ahn | ||||||
| Taneli Vahakangas | Taneli Vahakangas | ||||||
| Tanguy Fautre | Tanguy Fautre | ||||||
| Tatsuhiro Tsujikawa | Tatsuhiro Tsujikawa | ||||||
| @@ -1108,6 +1171,7 @@ Thomas J. Moore | |||||||
| Thomas Klausner | Thomas Klausner | ||||||
| Thomas L. Shinnick | Thomas L. Shinnick | ||||||
| Thomas Lopatic | Thomas Lopatic | ||||||
|  | Thomas Ruecker | ||||||
| Thomas Schwinge | Thomas Schwinge | ||||||
| Thomas Tonino | Thomas Tonino | ||||||
| Tiit Pikma | Tiit Pikma | ||||||
| @@ -1127,6 +1191,7 @@ Timo Sirainen | |||||||
| Tinus van den Berg | Tinus van den Berg | ||||||
| Tobias Markus | Tobias Markus | ||||||
| Tobias Rundström | Tobias Rundström | ||||||
|  | Tobias Stoeckmann | ||||||
| Toby Peterson | Toby Peterson | ||||||
| Todd A Ouska | Todd A Ouska | ||||||
| Todd Kulesza | Todd Kulesza | ||||||
| @@ -1147,6 +1212,8 @@ Tomas Hoger | |||||||
| Tomas Mlcoch | Tomas Mlcoch | ||||||
| Tomas Pospisek | Tomas Pospisek | ||||||
| Tomas Szepe | Tomas Szepe | ||||||
|  | Tomas Tomecek | ||||||
|  | Tomasz Kojm | ||||||
| Tomasz Lacki | Tomasz Lacki | ||||||
| Tommie Gannert | Tommie Gannert | ||||||
| Tommy Tam | Tommy Tam | ||||||
| @@ -1173,6 +1240,7 @@ Victor Snezhko | |||||||
| Vijay Panghal | Vijay Panghal | ||||||
| Vikram Saxena | Vikram Saxena | ||||||
| Viktor Szakáts | Viktor Szakáts | ||||||
|  | Ville Skyttä | ||||||
| Vilmos Nebehaj | Vilmos Nebehaj | ||||||
| Vincent Bronner | Vincent Bronner | ||||||
| Vincent Le Normand | Vincent Le Normand | ||||||
| @@ -1185,10 +1253,12 @@ Vladimir Grishchenko | |||||||
| Vladimir Lazarenko | Vladimir Lazarenko | ||||||
| Vojtech Janota | Vojtech Janota | ||||||
| Vojtech Minarik | Vojtech Minarik | ||||||
|  | Vojtěch Král | ||||||
| Vsevolod Novikov | Vsevolod Novikov | ||||||
| Waldek Kozba | Waldek Kozba | ||||||
| Walter J. Mack | Walter J. Mack | ||||||
| Ward Willats | Ward Willats | ||||||
|  | Warren Menzer | ||||||
| Wayne Haigh | Wayne Haigh | ||||||
| Werner Koch | Werner Koch | ||||||
| Wesley Laxton | Wesley Laxton | ||||||
| @@ -1203,6 +1273,7 @@ Wouter Van Rooy | |||||||
| Wu Yongzheng | Wu Yongzheng | ||||||
| Xavier Bouchoux | Xavier Bouchoux | ||||||
| Yaakov Selkowitz | Yaakov Selkowitz | ||||||
|  | Yamada Yasuharu | ||||||
| Yang Tse | Yang Tse | ||||||
| Yarram Sunil | Yarram Sunil | ||||||
| Yasuharu Yamada | Yasuharu Yamada | ||||||
| @@ -1212,6 +1283,7 @@ Yi Huang | |||||||
| Yingwei Liu | Yingwei Liu | ||||||
| Yousuke Kimoto | Yousuke Kimoto | ||||||
| Yukihiro Kawada | Yukihiro Kawada | ||||||
|  | Yun SangHo | ||||||
| Yuriy Sosov | Yuriy Sosov | ||||||
| Yves Arrouye | Yves Arrouye | ||||||
| Yves Lejeune | Yves Lejeune | ||||||
|   | |||||||
| @@ -33,7 +33,8 @@ s/Nick Zitzmann (originally)/Nick Zitzmann/ | |||||||
| s/product-security at Apple// | s/product-security at Apple// | ||||||
| s/IT DOES NOT WORK// | s/IT DOES NOT WORK// | ||||||
| s/Albert Chin/Albert Chin-A-Young/ | s/Albert Chin/Albert Chin-A-Young/ | ||||||
| s/Paras S/Paras Sethia/ | s/Paras S\z/Paras Sethia/ | ||||||
|  | s/Paras Sethiaethia/Paras Sethia/ | ||||||
| s/Дмитрий Фалько/Dmitry Falko/ | s/Дмитрий Фалько/Dmitry Falko/ | ||||||
| s/byte_bucket in the #curl IRC channel// | s/byte_bucket in the #curl IRC channel// | ||||||
| s/Michal Górny and Anthony G. Basile// | s/Michal Górny and Anthony G. Basile// | ||||||
| @@ -46,3 +47,6 @@ s/Frank Van Uffelen and Fabian Hiernaux// | |||||||
| s/Rodrigo Silva (MestreLion)/Rodrigo Silva/ | s/Rodrigo Silva (MestreLion)/Rodrigo Silva/ | ||||||
| s/tetetest tetetest// | s/tetetest tetetest// | ||||||
| s/Jiří Hruška/Jiri Hruska/ | s/Jiří Hruška/Jiri Hruska/ | ||||||
|  | s/Viktor Szakats/Viktor Szakáts/ | ||||||
|  | s/Jonathan Cardoso/Jonathan Cardoso Machado/ | ||||||
|  | s/Linus Nielsen/Linus Nielsen Feltzing/ | ||||||
|   | |||||||
							
								
								
									
										304
									
								
								docs/TODO
									
									
									
									
									
								
							
							
						
						
									
										304
									
								
								docs/TODO
									
									
									
									
									
								
							| @@ -9,6 +9,11 @@ | |||||||
|  Things to do in project cURL. Please tell us what you think, contribute and |  Things to do in project cURL. Please tell us what you think, contribute and | ||||||
|  send us patches that improve things! |  send us patches that improve things! | ||||||
|  |  | ||||||
|  |  Be aware that these are things that we could do, or have once been considered | ||||||
|  |  things we could do. If you want to work on any of these areas, please | ||||||
|  |  consider bringing it up for discussions first on the mailing list so that we | ||||||
|  |  all agree it is still a good idea for the project! | ||||||
|  |  | ||||||
|  All bugs documented in the KNOWN_BUGS document are subject for fixing! |  All bugs documented in the KNOWN_BUGS document are subject for fixing! | ||||||
|  |  | ||||||
|  1. libcurl |  1. libcurl | ||||||
| @@ -20,6 +25,7 @@ | |||||||
|  1.7 Detect when called from within callbacks |  1.7 Detect when called from within callbacks | ||||||
|  1.8 Allow SSL (HTTPS) to proxy |  1.8 Allow SSL (HTTPS) to proxy | ||||||
|  1.9 Cache negative name resolves |  1.9 Cache negative name resolves | ||||||
|  |  1.10 Support IDNA2008 | ||||||
|  |  | ||||||
|  2. libcurl - multi interface |  2. libcurl - multi interface | ||||||
|  2.1 More non-blocking |  2.1 More non-blocking | ||||||
| @@ -44,6 +50,7 @@ | |||||||
|  5.3 Rearrange request header order |  5.3 Rearrange request header order | ||||||
|  5.4 SPDY |  5.4 SPDY | ||||||
|  5.5 auth= in URLs |  5.5 auth= in URLs | ||||||
|  |  5.6 Refuse "downgrade" redirects | ||||||
|  |  | ||||||
|  6. TELNET |  6. TELNET | ||||||
|  6.1 ditch stdin |  6.1 ditch stdin | ||||||
| @@ -65,61 +72,74 @@ | |||||||
|  10. LDAP |  10. LDAP | ||||||
|  10.1 SASL based authentication mechanisms |  10.1 SASL based authentication mechanisms | ||||||
|   |   | ||||||
|  11. New protocols |  11. SMB | ||||||
|  11.1 RSYNC |  11.1 File listing support | ||||||
|  |  11.2 Honor file timestamps | ||||||
|  |  11.3 Use NTLMv2 | ||||||
|   |   | ||||||
|  12. SSL |  12. New protocols | ||||||
|  12.1 Disable specific versions |  12.1 RSYNC | ||||||
|  12.2 Provide mutex locking API |  | ||||||
|  12.3 Evaluate SSL patches |  | ||||||
|  12.4 Cache OpenSSL contexts |  | ||||||
|  12.5 Export session ids |  | ||||||
|  12.6 Provide callback for cert verification |  | ||||||
|  12.7 improve configure --with-ssl |  | ||||||
|  12.8 Support DANE |  | ||||||
|  |  | ||||||
|  13. GnuTLS |  13. SSL | ||||||
|  13.1 SSL engine stuff |  13.1 Disable specific versions | ||||||
|  13.2 check connection |  13.2 Provide mutex locking API | ||||||
|  |  13.3 Evaluate SSL patches | ||||||
|  |  13.4 Cache OpenSSL contexts | ||||||
|  |  13.5 Export session ids | ||||||
|  |  13.6 Provide callback for cert verification | ||||||
|  |  13.7 improve configure --with-ssl | ||||||
|  |  13.8 Support DANE | ||||||
|  |  | ||||||
|  14. SASL |  14. GnuTLS | ||||||
|  14.1 Other authentication mechanisms |  14.1 SSL engine stuff | ||||||
|  14.2 Add QOP support to GSSAPI authentication |  14.2 check connection | ||||||
|  |  | ||||||
|  15. Client |  15. WinSSL/SChannel | ||||||
|  15.1 sync |  15.1 Add support for client certificate authentication | ||||||
|  15.2 glob posts |  15.2 Add support for custom server certificate validation | ||||||
|  15.3 prevent file overwriting |  15.3 Add support for the --ciphers option | ||||||
|  15.4 simultaneous parallel transfers |  | ||||||
|  15.5 provide formpost headers |  | ||||||
|  15.6 warning when setting an option |  | ||||||
|  |  | ||||||
|  16. Build |  16. SASL | ||||||
|  16.1 roffit |  16.1 Other authentication mechanisms | ||||||
|  |  16.2 Add QOP support to GSSAPI authentication | ||||||
|   |   | ||||||
|  17. Test suite |  17. Client | ||||||
|  17.1 SSL tunnel |  17.1 sync | ||||||
|  17.2 nicer lacking perl message |  17.2 glob posts | ||||||
|  17.3 more protocols supported |  17.3 prevent file overwriting | ||||||
|  17.4 more platforms supported |  17.4 simultaneous parallel transfers | ||||||
|  17.5 Add support for concurrent connections |  17.5 provide formpost headers | ||||||
|  |  17.6 warning when setting an option | ||||||
|  |  17.7 warning when sending binary output to terminal | ||||||
|  |  17.8 offer color-coded HTTP header output | ||||||
|  |  17.9 Choose the name of file in braces for complex URLs | ||||||
|  |  | ||||||
|  18. Next SONAME bump |  18. Build | ||||||
|  18.1 http-style HEAD output for FTP |  18.1 roffit | ||||||
|  18.2 combine error codes |  | ||||||
|  18.3 extend CURLOPT_SOCKOPTFUNCTION prototype |  | ||||||
|  |  | ||||||
|  19. Next major release |  19. Test suite | ||||||
|  19.1 cleanup return codes |  19.1 SSL tunnel | ||||||
|  19.2 remove obsolete defines |  19.2 nicer lacking perl message | ||||||
|  19.3 size_t |  19.3 more protocols supported | ||||||
|  19.4 remove several functions |  19.4 more platforms supported | ||||||
|  19.5 remove CURLOPT_FAILONERROR |  19.5 Add support for concurrent connections | ||||||
|  19.6 remove CURLOPT_DNS_USE_GLOBAL_CACHE |  | ||||||
|  19.7 remove progress meter from libcurl |  20. Next SONAME bump | ||||||
|  19.8 remove 'curl_httppost' from public |  20.1 http-style HEAD output for FTP | ||||||
|  19.9 have form functions use CURL handle argument |  20.2 combine error codes | ||||||
|  19.10 Add CURLOPT_MAIL_CLIENT option |  20.3 extend CURLOPT_SOCKOPTFUNCTION prototype | ||||||
|  |  | ||||||
|  |  21. Next major release | ||||||
|  |  21.1 cleanup return codes | ||||||
|  |  21.2 remove obsolete defines | ||||||
|  |  21.3 size_t | ||||||
|  |  21.4 remove several functions | ||||||
|  |  21.5 remove CURLOPT_FAILONERROR | ||||||
|  |  21.6 remove CURLOPT_DNS_USE_GLOBAL_CACHE | ||||||
|  |  21.7 remove progress meter from libcurl | ||||||
|  |  21.8 remove 'curl_httppost' from public | ||||||
|  |  21.9 have form functions use CURL handle argument | ||||||
|  |  21.10 Add CURLOPT_MAIL_CLIENT option | ||||||
|  |  | ||||||
| ============================================================================== | ============================================================================== | ||||||
|  |  | ||||||
| @@ -189,7 +209,7 @@ | |||||||
|  |  | ||||||
|  To prevent local users from snooping on your traffic to the proxy. Supported |  To prevent local users from snooping on your traffic to the proxy. Supported | ||||||
|  by Chrome already: |  by Chrome already: | ||||||
|  http://www.chromium.org/developers/design-documents/secure-web-proxy |  https://www.chromium.org/developers/design-documents/secure-web-proxy | ||||||
|  |  | ||||||
|  ...and by Firefox soon: |  ...and by Firefox soon: | ||||||
|  https://bugzilla.mozilla.org/show_bug.cgi?id=378637 |  https://bugzilla.mozilla.org/show_bug.cgi?id=378637 | ||||||
| @@ -199,6 +219,12 @@ | |||||||
|  A name resolve that has failed is likely to fail when made again within a |  A name resolve that has failed is likely to fail when made again within a | ||||||
|  short period of time. Currently we only cache positive responses. |  short period of time. Currently we only cache positive responses. | ||||||
|  |  | ||||||
|  | 1.10 Support IDNA2008 | ||||||
|  |  | ||||||
|  |  International Domain Names are supported in libcurl since years back, powered | ||||||
|  |  by libidn. libidn implements IDNA2003 which has been superseded by IDNA2008. | ||||||
|  |  libidn2 is an existing library offering support for IDNA2008. | ||||||
|  |  | ||||||
|  |  | ||||||
| 2. libcurl - multi interface | 2. libcurl - multi interface | ||||||
|  |  | ||||||
| @@ -246,7 +272,7 @@ | |||||||
|  HOST is a command for a client to tell which host name to use, to offer FTP |  HOST is a command for a client to tell which host name to use, to offer FTP | ||||||
|  servers named-based virtual hosting: |  servers named-based virtual hosting: | ||||||
|  |  | ||||||
|  http://tools.ietf.org/html/rfc7151 |  https://tools.ietf.org/html/rfc7151 | ||||||
|  |  | ||||||
| 4.2 Alter passive/active on failure and retry | 4.2 Alter passive/active on failure and retry | ||||||
|  |  | ||||||
| @@ -330,6 +356,14 @@ This is not detailed in any FTP specification. | |||||||
|  |  | ||||||
|  Additionally this should be implemented for proxy base URLs as well. |  Additionally this should be implemented for proxy base URLs as well. | ||||||
|  |  | ||||||
|  | 5.6 Refuse "downgrade" redirects | ||||||
|  |  | ||||||
|  |  See https://github.com/bagder/curl/issues/226 | ||||||
|  |  | ||||||
|  |  Consider a way to tell curl to refuse to "downgrade" protocol with a redirect | ||||||
|  |  and/or possibly a bit that refuses redirect to change protocol completely. | ||||||
|  |  | ||||||
|  |  | ||||||
| 6. TELNET | 6. TELNET | ||||||
|  |  | ||||||
| 6.1 ditch stdin | 6.1 ditch stdin | ||||||
| @@ -393,32 +427,47 @@ to provide the data to send. | |||||||
|  be possible to use ldap_bind_s() instead specifying the security context |  be possible to use ldap_bind_s() instead specifying the security context | ||||||
|  information ourselves. |  information ourselves. | ||||||
|  |  | ||||||
| 11. New protocols | 11. SMB | ||||||
|  |  | ||||||
| 11.1 RSYNC | 11.1 File listing support | ||||||
|  |  | ||||||
|  | Add support for listing the contents of a SMB share. The output should probably | ||||||
|  | be the same as/similar to FTP. | ||||||
|  |  | ||||||
|  | 11.2 Honor file timestamps | ||||||
|  |  | ||||||
|  | The timestamp of the transferred file should reflect that of the original file. | ||||||
|  |  | ||||||
|  | 11.3 Use NTLMv2 | ||||||
|  |  | ||||||
|  | Currently the SMB authentication uses NTLMv1. | ||||||
|  |  | ||||||
|  | 12. New protocols | ||||||
|  |  | ||||||
|  | 12.1 RSYNC | ||||||
|  |  | ||||||
|  There's no RFC for the protocol or an URI/URL format.  An implementation |  There's no RFC for the protocol or an URI/URL format.  An implementation | ||||||
|  should most probably use an existing rsync library, such as librsync. |  should most probably use an existing rsync library, such as librsync. | ||||||
|  |  | ||||||
| 12. SSL | 13. SSL | ||||||
|  |  | ||||||
| 12.1 Disable specific versions | 13.1 Disable specific versions | ||||||
|  |  | ||||||
|  Provide an option that allows for disabling specific SSL versions, such as |  Provide an option that allows for disabling specific SSL versions, such as | ||||||
|  SSLv2 http://curl.haxx.se/bug/feature.cgi?id=1767276 |  SSLv2 http://curl.haxx.se/bug/feature.cgi?id=1767276 | ||||||
|  |  | ||||||
| 12.2 Provide mutex locking API | 13.2 Provide mutex locking API | ||||||
|  |  | ||||||
|  Provide a libcurl API for setting mutex callbacks in the underlying SSL |  Provide a libcurl API for setting mutex callbacks in the underlying SSL | ||||||
|  library, so that the same application code can use mutex-locking |  library, so that the same application code can use mutex-locking | ||||||
|  independently of OpenSSL or GnutTLS being used. |  independently of OpenSSL or GnutTLS being used. | ||||||
|  |  | ||||||
| 12.3 Evaluate SSL patches | 13.3 Evaluate SSL patches | ||||||
|  |  | ||||||
|  Evaluate/apply Gertjan van Wingerde's SSL patches: |  Evaluate/apply Gertjan van Wingerde's SSL patches: | ||||||
|  http://curl.haxx.se/mail/lib-2004-03/0087.html |  http://curl.haxx.se/mail/lib-2004-03/0087.html | ||||||
|  |  | ||||||
| 12.4 Cache OpenSSL contexts | 13.4 Cache OpenSSL contexts | ||||||
|  |  | ||||||
|  "Look at SSL cafile - quick traces look to me like these are done on every |  "Look at SSL cafile - quick traces look to me like these are done on every | ||||||
|  request as well, when they should only be necessary once per SSL context (or |  request as well, when they should only be necessary once per SSL context (or | ||||||
| @@ -428,7 +477,7 @@ to provide the data to send. | |||||||
|  style connections are re-used. It will make us use slightly more memory but |  style connections are re-used. It will make us use slightly more memory but | ||||||
|  it will libcurl do less creations and deletions of SSL contexts. |  it will libcurl do less creations and deletions of SSL contexts. | ||||||
|  |  | ||||||
| 12.5 Export session ids | 13.5 Export session ids | ||||||
|  |  | ||||||
|  Add an interface to libcurl that enables "session IDs" to get |  Add an interface to libcurl that enables "session IDs" to get | ||||||
|  exported/imported. Cris Bailiff said: "OpenSSL has functions which can |  exported/imported. Cris Bailiff said: "OpenSSL has functions which can | ||||||
| @@ -436,22 +485,22 @@ to provide the data to send. | |||||||
|  the state from such a buffer at a later date - this is used by mod_ssl for |  the state from such a buffer at a later date - this is used by mod_ssl for | ||||||
|  apache to implement and SSL session ID cache". |  apache to implement and SSL session ID cache". | ||||||
|  |  | ||||||
| 12.6 Provide callback for cert verification | 13.6 Provide callback for cert verification | ||||||
|  |  | ||||||
|  OpenSSL supports a callback for customised verification of the peer |  OpenSSL supports a callback for customised verification of the peer | ||||||
|  certificate, but this doesn't seem to be exposed in the libcurl APIs. Could |  certificate, but this doesn't seem to be exposed in the libcurl APIs. Could | ||||||
|  it be? There's so much that could be done if it were! |  it be? There's so much that could be done if it were! | ||||||
|  |  | ||||||
| 12.7 improve configure --with-ssl | 13.7 improve configure --with-ssl | ||||||
|  |  | ||||||
|  make the configure --with-ssl option first check for OpenSSL, then GnuTLS, |  make the configure --with-ssl option first check for OpenSSL, then GnuTLS, | ||||||
|  then NSS... |  then NSS... | ||||||
|  |  | ||||||
| 12.8 Support DANE | 13.8 Support DANE | ||||||
|  |  | ||||||
|  DNS-Based Authentication of Named Entities (DANE) is a way to provide SSL |  DNS-Based Authentication of Named Entities (DANE) is a way to provide SSL | ||||||
|  keys and certs over DNS using DNSSEC as an alternative to the CA model. |  keys and certs over DNS using DNSSEC as an alternative to the CA model. | ||||||
|  http://www.rfc-editor.org/rfc/rfc6698.txt |  https://www.rfc-editor.org/rfc/rfc6698.txt | ||||||
|  |  | ||||||
|  An initial patch was posted by Suresh Krishnaswamy on March 7th 2013 |  An initial patch was posted by Suresh Krishnaswamy on March 7th 2013 | ||||||
|  (http://curl.haxx.se/mail/lib-2013-03/0075.html) but it was a too simple |  (http://curl.haxx.se/mail/lib-2013-03/0075.html) but it was a too simple | ||||||
| @@ -459,34 +508,69 @@ to provide the data to send. | |||||||
|  http://curl.haxx.se/mail/lib-2013-03/0103.html . libunbound may be the |  http://curl.haxx.se/mail/lib-2013-03/0103.html . libunbound may be the | ||||||
|  correct library to base this development on. |  correct library to base this development on. | ||||||
|  |  | ||||||
| 13. GnuTLS | 14. GnuTLS | ||||||
|  |  | ||||||
| 13.1 SSL engine stuff | 14.1 SSL engine stuff | ||||||
|  |  | ||||||
|  Is this even possible? |  Is this even possible? | ||||||
|  |  | ||||||
| 13.2 check connection | 14.2 check connection | ||||||
|  |  | ||||||
|  Add a way to check if the connection seems to be alive, to correspond to the |  Add a way to check if the connection seems to be alive, to correspond to the | ||||||
|  SSL_peak() way we use with OpenSSL. |  SSL_peak() way we use with OpenSSL. | ||||||
|  |  | ||||||
| 14. SASL | 15. WinSSL/SChannel | ||||||
|  |  | ||||||
| 14.1 Other authentication mechanisms | 15.1 Add support for client certificate authentication | ||||||
|  |  | ||||||
|  Add support for other authentication mechanisms such as EXTERNAL, OLP, |  WinSSL/SChannel currently makes use of the OS-level system and user | ||||||
|  |  certificate and private key stores. This does not allow the application | ||||||
|  |  or the user to supply a custom client certificate using curl or libcurl. | ||||||
|  |  | ||||||
|  |  Therefore support for the existing -E/--cert and --key options should be | ||||||
|  |  implemented by supplying a custom certificate to the SChannel APIs, see: | ||||||
|  |  - Getting a Certificate for Schannel | ||||||
|  |    https://msdn.microsoft.com/en-us/library/windows/desktop/aa375447.aspx | ||||||
|  |  | ||||||
|  | 15.2 Add support for custom server certificate validation | ||||||
|  |  | ||||||
|  |  WinSSL/SChannel currently makes use of the OS-level system and user | ||||||
|  |  certificate trust store. This does not allow the application or user to | ||||||
|  |  customize the server certificate validation process using curl or libcurl. | ||||||
|  |  | ||||||
|  |  Therefore support for the existing --cacert or --capath options should be | ||||||
|  |  implemented by supplying a custom certificate to the SChannel APIs, see: | ||||||
|  |  - Getting a Certificate for Schannel | ||||||
|  |    https://msdn.microsoft.com/en-us/library/windows/desktop/aa375447.aspx | ||||||
|  |  | ||||||
|  | 15.3 Add support for the --ciphers option | ||||||
|  |  | ||||||
|  |  The cipher suites used by WinSSL/SChannel are configured on an OS-level | ||||||
|  |  instead of an application-level. This does not allow the application or | ||||||
|  |  the user to customize the configured cipher suites using curl or libcurl. | ||||||
|  |  | ||||||
|  |  Therefore support for the existing --ciphers option should be implemented | ||||||
|  |  by mapping the OpenSSL/GnuTLS cipher suites to the SChannel APIs, see | ||||||
|  |  - Specifying Schannel Ciphers and Cipher Strengths | ||||||
|  |    https://msdn.microsoft.com/en-us/library/windows/desktop/aa380161.aspx | ||||||
|  |  | ||||||
|  | 16. SASL | ||||||
|  |  | ||||||
|  | 16.1 Other authentication mechanisms | ||||||
|  |  | ||||||
|  |  Add support for other authentication mechanisms such as OLP, | ||||||
|  GSS-SPNEGO and others. |  GSS-SPNEGO and others. | ||||||
|   |   | ||||||
| 14.2 Add QOP support to GSSAPI authentication | 16.2 Add QOP support to GSSAPI authentication | ||||||
|  |  | ||||||
|  Currently the GSSAPI authentication only supports the default QOP of auth |  Currently the GSSAPI authentication only supports the default QOP of auth | ||||||
|  (Authentication), whilst Kerberos V5 supports both auth-int (Authentication |  (Authentication), whilst Kerberos V5 supports both auth-int (Authentication | ||||||
|  with integrity protection) and auth-conf (Authentication with integrity and |  with integrity protection) and auth-conf (Authentication with integrity and | ||||||
|  privacy protection). |  privacy protection). | ||||||
|  |  | ||||||
| 15. Client | 17. Client | ||||||
|  |  | ||||||
| 15.1 sync | 17.1 sync | ||||||
|  |  | ||||||
|  "curl --sync http://example.com/feed[1-100].rss" or |  "curl --sync http://example.com/feed[1-100].rss" or | ||||||
|  "curl --sync http://example.net/{index,calendar,history}.html" |  "curl --sync http://example.net/{index,calendar,history}.html" | ||||||
| @@ -495,12 +579,12 @@ to provide the data to send. | |||||||
|  remote file is newer than the local file. A Last-Modified HTTP date header |  remote file is newer than the local file. A Last-Modified HTTP date header | ||||||
|  should also be used to set the mod date on the downloaded file. |  should also be used to set the mod date on the downloaded file. | ||||||
|  |  | ||||||
| 15.2 glob posts | 17.2 glob posts | ||||||
|  |  | ||||||
|  Globbing support for -d and -F, as in 'curl -d "name=foo[0-9]" URL'. |  Globbing support for -d and -F, as in 'curl -d "name=foo[0-9]" URL'. | ||||||
|  This is easily scripted though. |  This is easily scripted though. | ||||||
|  |  | ||||||
| 15.3 prevent file overwriting | 17.3 prevent file overwriting | ||||||
|  |  | ||||||
|  Add an option that prevents cURL from overwriting existing local files. When |  Add an option that prevents cURL from overwriting existing local files. When | ||||||
|  used, and there already is an existing file with the target file name |  used, and there already is an existing file with the target file name | ||||||
| @@ -508,14 +592,14 @@ to provide the data to send. | |||||||
|  existing). So that index.html becomes first index.html.1 and then |  existing). So that index.html becomes first index.html.1 and then | ||||||
|  index.html.2 etc. |  index.html.2 etc. | ||||||
|  |  | ||||||
| 15.4 simultaneous parallel transfers | 17.4 simultaneous parallel transfers | ||||||
|  |  | ||||||
|  The client could be told to use maximum N simultaneous parallel transfers and |  The client could be told to use maximum N simultaneous parallel transfers and | ||||||
|  then just make sure that happens. It should of course not make more than one |  then just make sure that happens. It should of course not make more than one | ||||||
|  connection to the same remote host. This would require the client to use the |  connection to the same remote host. This would require the client to use the | ||||||
|  multi interface. http://curl.haxx.se/bug/feature.cgi?id=1558595 |  multi interface. http://curl.haxx.se/bug/feature.cgi?id=1558595 | ||||||
|  |  | ||||||
| 15.5 provide formpost headers | 17.5 provide formpost headers | ||||||
|  |  | ||||||
|  Extending the capabilities of the multipart formposting. How about leaving |  Extending the capabilities of the multipart formposting. How about leaving | ||||||
|  the ';type=foo' syntax as it is and adding an extra tag (headers) which |  the ';type=foo' syntax as it is and adding an extra tag (headers) which | ||||||
| @@ -529,43 +613,67 @@ to provide the data to send. | |||||||
|  which should overwrite the program reasonable defaults (plain/text, |  which should overwrite the program reasonable defaults (plain/text, | ||||||
|  8bit...) |  8bit...) | ||||||
|  |  | ||||||
| 15.6 warning when setting an option | 17.6 warning when setting an option | ||||||
|  |  | ||||||
|   Display a warning when libcurl returns an error when setting an option. |   Display a warning when libcurl returns an error when setting an option. | ||||||
|   This can be useful to tell when support for a particular feature hasn't been |   This can be useful to tell when support for a particular feature hasn't been | ||||||
|   compiled into the library. |   compiled into the library. | ||||||
|  |  | ||||||
| 16. Build | 17.7 warning when sending binary output to terminal | ||||||
|  |  | ||||||
| 16.1 roffit |   Provide a way that prompts the user for confirmation before binary data is | ||||||
|  |   sent to the terminal, much in the style 'less' does it. | ||||||
|  |  | ||||||
|  | 17.8 offer color-coded HTTP header output | ||||||
|  |  | ||||||
|  |   By offering different color output on the header name and the header | ||||||
|  |   contents, they could be made more readable and thus help users working on | ||||||
|  |   HTTP services. | ||||||
|  |  | ||||||
|  | 17.9 Choose the name of file in braces for complex URLs | ||||||
|  |  | ||||||
|  |   When using braces to download a list of URLs and you use complicated names | ||||||
|  |   in the list of alternatives, it could be handy to allow curl to use other | ||||||
|  |   names when saving. | ||||||
|  |  | ||||||
|  |   Consider a way to offer that. Possibly like | ||||||
|  |   {partURL1:name1,partURL2:name2,partURL3:name3} where the name following the | ||||||
|  |   colon is the output name. | ||||||
|  |  | ||||||
|  |   See https://github.com/bagder/curl/issues/221 | ||||||
|  |  | ||||||
|  |  | ||||||
|  | 18. Build | ||||||
|  |  | ||||||
|  | 18.1 roffit | ||||||
|  |  | ||||||
|  Consider extending 'roffit' to produce decent ASCII output, and use that |  Consider extending 'roffit' to produce decent ASCII output, and use that | ||||||
|  instead of (g)nroff when building src/tool_hugehelp.c |  instead of (g)nroff when building src/tool_hugehelp.c | ||||||
|  |  | ||||||
| 17. Test suite | 19. Test suite | ||||||
|  |  | ||||||
| 17.1 SSL tunnel | 19.1 SSL tunnel | ||||||
|  |  | ||||||
|  Make our own version of stunnel for simple port forwarding to enable HTTPS |  Make our own version of stunnel for simple port forwarding to enable HTTPS | ||||||
|  and FTP-SSL tests without the stunnel dependency, and it could allow us to |  and FTP-SSL tests without the stunnel dependency, and it could allow us to | ||||||
|  provide test tools built with either OpenSSL or GnuTLS |  provide test tools built with either OpenSSL or GnuTLS | ||||||
|  |  | ||||||
| 17.2 nicer lacking perl message | 19.2 nicer lacking perl message | ||||||
|  |  | ||||||
|  If perl wasn't found by the configure script, don't attempt to run the tests |  If perl wasn't found by the configure script, don't attempt to run the tests | ||||||
|  but explain something nice why it doesn't. |  but explain something nice why it doesn't. | ||||||
|  |  | ||||||
| 17.3 more protocols supported | 19.3 more protocols supported | ||||||
|  |  | ||||||
|  Extend the test suite to include more protocols. The telnet could just do FTP |  Extend the test suite to include more protocols. The telnet could just do FTP | ||||||
|  or http operations (for which we have test servers). |  or http operations (for which we have test servers). | ||||||
|  |  | ||||||
| 17.4 more platforms supported | 19.4 more platforms supported | ||||||
|  |  | ||||||
|  Make the test suite work on more platforms. OpenBSD and Mac OS. Remove |  Make the test suite work on more platforms. OpenBSD and Mac OS. Remove | ||||||
|  fork()s and it should become even more portable. |  fork()s and it should become even more portable. | ||||||
|  |  | ||||||
| 17.5 Add support for concurrent connections | 19.5 Add support for concurrent connections | ||||||
|  |  | ||||||
|  Tests 836, 882 and 938 were designed to verify that separate connections aren't |  Tests 836, 882 and 938 were designed to verify that separate connections aren't | ||||||
|  used when using different login credentials in protocols that shouldn't re-use |  used when using different login credentials in protocols that shouldn't re-use | ||||||
| @@ -579,14 +687,14 @@ to provide the data to send. | |||||||
|  and thus the wait for connections loop is never entered to receive the second |  and thus the wait for connections loop is never entered to receive the second | ||||||
|  connection. |  connection. | ||||||
|  |  | ||||||
| 18. Next SONAME bump | 20. Next SONAME bump | ||||||
|  |  | ||||||
| 18.1 http-style HEAD output for FTP | 20.1 http-style HEAD output for FTP | ||||||
|  |  | ||||||
|  #undef CURL_FTP_HTTPSTYLE_HEAD in lib/ftp.c to remove the HTTP-style headers |  #undef CURL_FTP_HTTPSTYLE_HEAD in lib/ftp.c to remove the HTTP-style headers | ||||||
|  from being output in NOBODY requests over FTP |  from being output in NOBODY requests over FTP | ||||||
|  |  | ||||||
| 18.2 combine error codes | 20.2 combine error codes | ||||||
|  |  | ||||||
|  Combine some of the error codes to remove duplicates.  The original |  Combine some of the error codes to remove duplicates.  The original | ||||||
|  numbering should not be changed, and the old identifiers would be |  numbering should not be changed, and the old identifiers would be | ||||||
| @@ -611,29 +719,29 @@ to provide the data to send. | |||||||
|  |  | ||||||
|     CURLE_TFTP_PERM => CURLE_REMOTE_ACCESS_DENIED |     CURLE_TFTP_PERM => CURLE_REMOTE_ACCESS_DENIED | ||||||
|  |  | ||||||
| 18.3 extend CURLOPT_SOCKOPTFUNCTION prototype | 20.3 extend CURLOPT_SOCKOPTFUNCTION prototype | ||||||
|  |  | ||||||
|  The current prototype only provides 'purpose' that tells what the |  The current prototype only provides 'purpose' that tells what the | ||||||
|  connection/socket is for, but not any protocol or similar. It makes it hard |  connection/socket is for, but not any protocol or similar. It makes it hard | ||||||
|  for applications to differentiate on TCP vs UDP and even HTTP vs FTP and |  for applications to differentiate on TCP vs UDP and even HTTP vs FTP and | ||||||
|  similar. |  similar. | ||||||
|  |  | ||||||
| 19. Next major release | 21. Next major release | ||||||
|  |  | ||||||
| 19.1 cleanup return codes | 21.1 cleanup return codes | ||||||
|  |  | ||||||
|  curl_easy_cleanup() returns void, but curl_multi_cleanup() returns a |  curl_easy_cleanup() returns void, but curl_multi_cleanup() returns a | ||||||
|  CURLMcode. These should be changed to be the same. |  CURLMcode. These should be changed to be the same. | ||||||
|  |  | ||||||
| 19.2 remove obsolete defines | 21.2 remove obsolete defines | ||||||
|  |  | ||||||
|  remove obsolete defines from curl/curl.h |  remove obsolete defines from curl/curl.h | ||||||
|  |  | ||||||
| 19.3 size_t | 21.3 size_t | ||||||
|  |  | ||||||
|  make several functions use size_t instead of int in their APIs |  make several functions use size_t instead of int in their APIs | ||||||
|  |  | ||||||
| 19.4 remove several functions | 21.4 remove several functions | ||||||
|  |  | ||||||
|  remove the following functions from the public API: |  remove the following functions from the public API: | ||||||
|  |  | ||||||
| @@ -654,18 +762,18 @@ to provide the data to send. | |||||||
|  |  | ||||||
|  curl_multi_socket_all |  curl_multi_socket_all | ||||||
|  |  | ||||||
| 19.5 remove CURLOPT_FAILONERROR | 21.5 remove CURLOPT_FAILONERROR | ||||||
|  |  | ||||||
|  Remove support for CURLOPT_FAILONERROR, it has gotten too kludgy and weird |  Remove support for CURLOPT_FAILONERROR, it has gotten too kludgy and weird | ||||||
|  internally. Let the app judge success or not for itself. |  internally. Let the app judge success or not for itself. | ||||||
|  |  | ||||||
| 19.6 remove CURLOPT_DNS_USE_GLOBAL_CACHE | 21.6 remove CURLOPT_DNS_USE_GLOBAL_CACHE | ||||||
|  |  | ||||||
|  Remove support for a global DNS cache. Anything global is silly, and we |  Remove support for a global DNS cache. Anything global is silly, and we | ||||||
|  already offer the share interface for the same functionality but done |  already offer the share interface for the same functionality but done | ||||||
|  "right". |  "right". | ||||||
|  |  | ||||||
| 19.7 remove progress meter from libcurl | 21.7 remove progress meter from libcurl | ||||||
|  |  | ||||||
|  The internally provided progress meter output doesn't belong in the library. |  The internally provided progress meter output doesn't belong in the library. | ||||||
|  Basically no application wants it (apart from curl) but instead applications |  Basically no application wants it (apart from curl) but instead applications | ||||||
| @@ -675,7 +783,7 @@ to provide the data to send. | |||||||
|  variable types passed to it instead of doubles so that big files work |  variable types passed to it instead of doubles so that big files work | ||||||
|  correctly. |  correctly. | ||||||
|  |  | ||||||
| 19.8 remove 'curl_httppost' from public | 21.8 remove 'curl_httppost' from public | ||||||
|  |  | ||||||
|  curl_formadd() was made to fill in a public struct, but the fact that the |  curl_formadd() was made to fill in a public struct, but the fact that the | ||||||
|  struct is public is never really used by application for their own advantage |  struct is public is never really used by application for their own advantage | ||||||
| @@ -684,7 +792,7 @@ to provide the data to send. | |||||||
|  Changing them to return a private handle will benefit the implementation and |  Changing them to return a private handle will benefit the implementation and | ||||||
|  allow us much greater freedoms while still maintaining a solid API and ABI. |  allow us much greater freedoms while still maintaining a solid API and ABI. | ||||||
|  |  | ||||||
| 19.9 have form functions use CURL handle argument | 21.9 have form functions use CURL handle argument | ||||||
|  |  | ||||||
|  curl_formadd() and curl_formget() both currently have no CURL handle |  curl_formadd() and curl_formget() both currently have no CURL handle | ||||||
|  argument, but both can use a callback that is set in the easy handle, and |  argument, but both can use a callback that is set in the easy handle, and | ||||||
| @@ -692,7 +800,7 @@ to provide the data to send. | |||||||
|  curl_easy_perform() (or similar) called - which is hard to grasp and a design |  curl_easy_perform() (or similar) called - which is hard to grasp and a design | ||||||
|  mistake. |  mistake. | ||||||
|  |  | ||||||
| 19.10 Add CURLOPT_MAIL_CLIENT option | 21.10 Add CURLOPT_MAIL_CLIENT option | ||||||
|  |  | ||||||
|  Rather than use the URL to specify the mail client string to present in the |  Rather than use the URL to specify the mail client string to present in the | ||||||
|  HELO and EHLO commands, libcurl should support a new CURLOPT specifically for |  HELO and EHLO commands, libcurl should support a new CURLOPT specifically for | ||||||
|   | |||||||
| @@ -1,4 +1,3 @@ | |||||||
| Updated: Dec 24, 2013 (http://curl.haxx.se/docs/httpscripting.html) |  | ||||||
|                                   _   _ ____  _ |                                   _   _ ____  _ | ||||||
|                               ___| | | |  _ \| | |                               ___| | | |  _ \| | | ||||||
|                              / __| | | | |_) | | |                              / __| | | | |_) | | | ||||||
| @@ -23,6 +22,8 @@ The Art Of Scripting HTTP Requests Using Curl | |||||||
|  3. Fetch a page |  3. Fetch a page | ||||||
|  3.1 GET |  3.1 GET | ||||||
|  3.2 HEAD |  3.2 HEAD | ||||||
|  |  3.3 Multiple URLs in a single command line | ||||||
|  |  3.4 Multiple HTTP methods in a single command line | ||||||
|  4. HTML forms |  4. HTML forms | ||||||
|  4.1 Forms explained |  4.1 Forms explained | ||||||
|  4.2 GET |  4.2 GET | ||||||
| @@ -136,7 +137,7 @@ The Art Of Scripting HTTP Requests Using Curl | |||||||
|  The Uniform Resource Locator format is how you specify the address of a |  The Uniform Resource Locator format is how you specify the address of a | ||||||
|  particular resource on the Internet. You know these, you've seen URLs like |  particular resource on the Internet. You know these, you've seen URLs like | ||||||
|  http://curl.haxx.se or https://yourbank.com a million times. RFC 3986 is the |  http://curl.haxx.se or https://yourbank.com a million times. RFC 3986 is the | ||||||
|  canonical spec. |  canonical spec. And yeah, the formal name is not URL, it is URI. | ||||||
|  |  | ||||||
|  2.2 Host |  2.2 Host | ||||||
|  |  | ||||||
| @@ -193,7 +194,6 @@ The Art Of Scripting HTTP Requests Using Curl | |||||||
|  the associated response. The path is what is to the right side of the slash |  the associated response. The path is what is to the right side of the slash | ||||||
|  that follows the host name and possibly port number. |  that follows the host name and possibly port number. | ||||||
|  |  | ||||||
|  |  | ||||||
| 3. Fetch a page | 3. Fetch a page | ||||||
|  |  | ||||||
|  3.1 GET |  3.1 GET | ||||||
| @@ -224,6 +224,46 @@ The Art Of Scripting HTTP Requests Using Curl | |||||||
|  may see a Content-Length: in the response headers, but there must not be an |  may see a Content-Length: in the response headers, but there must not be an | ||||||
|  actual body in the HEAD response. |  actual body in the HEAD response. | ||||||
|  |  | ||||||
|  |  3.3 Multiple URLs in a single command line | ||||||
|  |  | ||||||
|  |  A single curl command line may involve one or many URLs. The most common case | ||||||
|  |  is probably to just use one, but you can specify any amount of URLs. Yes | ||||||
|  |  any. No limits. You'll then get requests repeated over and over for all the | ||||||
|  |  given URLs. | ||||||
|  |  | ||||||
|  |  Example, send two GETs: | ||||||
|  |  | ||||||
|  |     curl http://url1.example.com http://url2.example.com | ||||||
|  |  | ||||||
|  |  If you use --data to POST to the URL, using multiple URLs means that you send | ||||||
|  |  that same POST to all the given URLs. | ||||||
|  |  | ||||||
|  |  Example, send two POSTs: | ||||||
|  |  | ||||||
|  |     curl --data name=curl http://url1.example.com http://url2.example.com | ||||||
|  |  | ||||||
|  |  | ||||||
|  |  3.4 Multiple HTTP methods in a single command line | ||||||
|  |  | ||||||
|  |  Sometimes you need to operate on several URLs in a single command line and do | ||||||
|  |  different HTTP methods on each. For this, you'll enjoy the --next option. It | ||||||
|  |  is basically a separator that separates a bunch of options from the next. All | ||||||
|  |  the URLs before --next will get the same method and will get all the POST | ||||||
|  |  data merged into one. | ||||||
|  |  | ||||||
|  |  When curl reaches the --next on the command line, it'll sort of reset the | ||||||
|  |  method and the POST data and allow a new set. | ||||||
|  |  | ||||||
|  |  Perhaps this is best shown with a few examples. To send first a HEAD and then | ||||||
|  |  a GET: | ||||||
|  |  | ||||||
|  |    curl -I http://example.com --next http://example.com | ||||||
|  |  | ||||||
|  |  To first send a POST and then a GET: | ||||||
|  |  | ||||||
|  |    curl -d score=10 http://example.com/post.cgi --next http://example.com/results.html | ||||||
|  |  | ||||||
|  |  | ||||||
| 4. HTML forms | 4. HTML forms | ||||||
|  |  | ||||||
|  4.1 Forms explained |  4.1 Forms explained | ||||||
| @@ -302,6 +342,10 @@ The Art Of Scripting HTTP Requests Using Curl | |||||||
|  |  | ||||||
|         curl --data-urlencode "name=I am Daniel" http://www.example.com |         curl --data-urlencode "name=I am Daniel" http://www.example.com | ||||||
|  |  | ||||||
|  |   If you repeat --data several times on the command line, curl will | ||||||
|  |   concatenate all the given data pieces - and put a '&' symbol between each | ||||||
|  |   data segment. | ||||||
|  |  | ||||||
|  4.4 File Upload POST |  4.4 File Upload POST | ||||||
|  |  | ||||||
|   Back in late 1995 they defined an additional way to post data over HTTP. It |   Back in late 1995 they defined an additional way to post data over HTTP. It | ||||||
| @@ -557,8 +601,10 @@ The Art Of Scripting HTTP Requests Using Curl | |||||||
|  truckload of advanced features to allow all those encryptions and key |  truckload of advanced features to allow all those encryptions and key | ||||||
|  infrastructure mechanisms encrypted HTTP requires. |  infrastructure mechanisms encrypted HTTP requires. | ||||||
|  |  | ||||||
|  Curl supports encrypted fetches thanks to the freely available OpenSSL |  Curl supports encrypted fetches when built to use a TLS library and it can be | ||||||
|  libraries. To get a page from a HTTPS server, simply run curl like: |  built to use one out of a fairly large set of libraries - "curl -V" will show | ||||||
|  |  which one your curl was built to use (if any!). To get a page from a HTTPS | ||||||
|  |  server, simply run curl like: | ||||||
|  |  | ||||||
|         curl https://secure.example.com |         curl https://secure.example.com | ||||||
|  |  | ||||||
| @@ -584,6 +630,12 @@ The Art Of Scripting HTTP Requests Using Curl | |||||||
|  |  | ||||||
|         http://curl.haxx.se/docs/sslcerts.html |         http://curl.haxx.se/docs/sslcerts.html | ||||||
|  |  | ||||||
|  |   At times you may end up with your own CA cert store and then you can tell | ||||||
|  |   curl to use that to verify the server's certificate: | ||||||
|  |  | ||||||
|  |         curl --cacert ca-bundle.pem https://example.com/ | ||||||
|  |  | ||||||
|  |  | ||||||
| 11. Custom Request Elements | 11. Custom Request Elements | ||||||
|  |  | ||||||
| 11.1 Modify method and headers | 11.1 Modify method and headers | ||||||
| @@ -692,7 +744,7 @@ The Art Of Scripting HTTP Requests Using Curl | |||||||
|  |  | ||||||
|  14.1 Standards |  14.1 Standards | ||||||
|  |  | ||||||
|  RFC 2616 is a must to read if you want in-depth understanding of the HTTP |  RFC 7230 is a must to read if you want in-depth understanding of the HTTP | ||||||
|  protocol |  protocol | ||||||
|  |  | ||||||
|  RFC 3986 explains the URL syntax |  RFC 3986 explains the URL syntax | ||||||
|   | |||||||
| @@ -1,22 +1,18 @@ | |||||||
|                                   _   _ ____  _ |  | ||||||
|                               ___| | | |  _ \| | |  | ||||||
|                              / __| | | | |_) | | |  | ||||||
|                             | (__| |_| |  _ <| |___ |  | ||||||
|                              \___|\___/|_| \_\_____| |  | ||||||
|  |  | ||||||
| Version Numbers and Releases | Version Numbers and Releases | ||||||
|  | ============================ | ||||||
|  |  | ||||||
|  Curl is not only curl. Curl is also libcurl. They're actually individually |  Curl is not only curl. Curl is also libcurl. They're actually individually | ||||||
|  versioned, but they mostly follow each other rather closely. |  versioned, but they mostly follow each other rather closely. | ||||||
|  |  | ||||||
|  The version numbering is always built up using the same system: |  The version numbering is always built up using the same system: | ||||||
|  |  | ||||||
|         X.Y[.Z] |         X.Y.Z | ||||||
|  |  | ||||||
|  Where |   - X is main version number | ||||||
|    X is main version number |   - Y is release number | ||||||
|    Y is release number |   - Z is patch number | ||||||
|    Z is patch number |  | ||||||
|  | ## Bumping numbers | ||||||
|  |  | ||||||
|  One of these numbers will get bumped in each new release. The numbers to the |  One of these numbers will get bumped in each new release. The numbers to the | ||||||
|  right of a bumped number will be reset to zero. If Z is zero, it may not be |  right of a bumped number will be reset to zero. If Z is zero, it may not be | ||||||
| @@ -57,4 +53,4 @@ Version Numbers and Releases | |||||||
|  release. It makes comparisons with greater than and less than work. |  release. It makes comparisons with greater than and less than work. | ||||||
|  |  | ||||||
|  This number is also available as three separate defines: |  This number is also available as three separate defines: | ||||||
|  LIBCURL_VERSION_MAJOR, LIBCURL_VERSION_MINOR and LIBCURL_VERSION_PATCH. |  `LIBCURL_VERSION_MAJOR`, `LIBCURL_VERSION_MINOR` and `LIBCURL_VERSION_PATCH`. | ||||||
|   | |||||||
							
								
								
									
										96
									
								
								docs/curl.1
									
									
									
									
									
								
							
							
						
						
									
										96
									
								
								docs/curl.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 | ||||||
| @@ -39,8 +39,7 @@ resume, Metalink, and more. As you will see below, the number of features will | |||||||
| make your head spin! | make your head spin! | ||||||
|  |  | ||||||
| curl is powered by libcurl for all transfer-related features. See | curl is powered by libcurl for all transfer-related features. See | ||||||
| .BR libcurl (3) | \fIlibcurl(3)\fP for details. | ||||||
| for details. |  | ||||||
| .SH URL | .SH URL | ||||||
| The URL syntax is protocol-dependent. You'll find a detailed description in | The URL syntax is protocol-dependent. You'll find a detailed description in | ||||||
| RFC 3986. | RFC 3986. | ||||||
| @@ -269,11 +268,11 @@ If this option is used several times, the last one will be used. | |||||||
| .IP "--ciphers <list of ciphers>" | .IP "--ciphers <list of ciphers>" | ||||||
| (SSL) Specifies which ciphers to use in the connection. The list of ciphers | (SSL) Specifies which ciphers to use in the connection. The list of ciphers | ||||||
| must specify valid ciphers. Read up on SSL cipher list details on this URL: | must specify valid ciphers. Read up on SSL cipher list details on this URL: | ||||||
| \fIhttp://www.openssl.org/docs/apps/ciphers.html\fP | \fIhttps://www.openssl.org/docs/apps/ciphers.html\fP | ||||||
|  |  | ||||||
| NSS ciphers are done differently than OpenSSL and GnuTLS. The full list of NSS | NSS ciphers are done differently than OpenSSL and GnuTLS. The full list of NSS | ||||||
| ciphers is in the NSSCipherSuite entry at this URL: | ciphers is in the NSSCipherSuite entry at this URL: | ||||||
| \fIhttp://git.fedorahosted.org/cgit/mod_nss.git/plain/docs/mod_nss.html#Directives\fP | \fIhttps://git.fedorahosted.org/cgit/mod_nss.git/plain/docs/mod_nss.html#Directives\fP | ||||||
|  |  | ||||||
| If this option is used several times, the last one will be used. | If this option is used several times, the last one will be used. | ||||||
| .IP "--compressed" | .IP "--compressed" | ||||||
| @@ -315,9 +314,10 @@ presses the submit button. This will cause curl to pass the data to the server | |||||||
| using the content-type application/x-www-form-urlencoded.  Compare to | using the content-type application/x-www-form-urlencoded.  Compare to | ||||||
| \fI-F, --form\fP. | \fI-F, --form\fP. | ||||||
|  |  | ||||||
| \fI-d, --data\fP is the same as \fI--data-ascii\fP. To post data purely binary, | \fI-d, --data\fP is the same as \fI--data-ascii\fP. \fI--data-raw\fP is almost | ||||||
| you should instead use the \fI--data-binary\fP option. To URL-encode the value | the same but does not have a special interpretation of the @ character. To | ||||||
| of a form field you may use \fI--data-urlencode\fP. | post data purely binary, you should instead use the \fI--data-binary\fP option. | ||||||
|  | To URL-encode the value of a form field you may use \fI--data-urlencode\fP. | ||||||
|  |  | ||||||
| If any of these options is used more than once on the same command line, the | If any of these options is used more than once on the same command line, the | ||||||
| data pieces specified will be merged together with a separating | data pieces specified will be merged together with a separating | ||||||
| @@ -329,7 +329,8 @@ read the data from, or - if you want curl to read the data from | |||||||
| stdin. Multiple files can also be specified. Posting data from a file | stdin. Multiple files can also be specified. Posting data from a file | ||||||
| named 'foobar' would thus be done with \fI--data\fP @foobar. When --data is | named 'foobar' would thus be done with \fI--data\fP @foobar. When --data is | ||||||
| told to read from a file like that, carriage returns and newlines will be | told to read from a file like that, carriage returns and newlines will be | ||||||
| stripped out. | stripped out. If you don't want the @ character to have a special | ||||||
|  | interpretation use \fI--data-raw\fP instead. | ||||||
| .IP "-D, --dump-header <file>" | .IP "-D, --dump-header <file>" | ||||||
| Write the protocol headers to the specified file. | Write the protocol headers to the specified file. | ||||||
|  |  | ||||||
| @@ -354,6 +355,10 @@ and carriage returns are preserved and conversions are never done. | |||||||
|  |  | ||||||
| If this option is used several times, the ones following the first will append | If this option is used several times, the ones following the first will append | ||||||
| data as described in \fI-d, --data\fP. | data as described in \fI-d, --data\fP. | ||||||
|  | .IP "--data-raw <data>" | ||||||
|  | (HTTP) This posts data similarly to \fI--data\fP but without the special | ||||||
|  | interpretation of the @ character. See \fI-d, --data\fP. | ||||||
|  | (Added in 7.43.0) | ||||||
| .IP "--data-urlencode <data>" | .IP "--data-urlencode <data>" | ||||||
| (HTTP) This posts data, similar to the other --data options with the exception | (HTTP) This posts data, similar to the other --data options with the exception | ||||||
| that this performs URL-encoding. (Added in 7.18.0) | that this performs URL-encoding. (Added in 7.18.0) | ||||||
| @@ -548,10 +553,30 @@ indicating its identity. A public key is extracted from this certificate and | |||||||
| if it does not exactly match the public key provided to this option, curl will | 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. | ||||||
|  |  | ||||||
| This is currently only implemented in the OpenSSL, GnuTLS and GSKit backends. | 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. | ||||||
|  |  | ||||||
| If this option is used several times, the last one will be used. | If this option is used several times, the last one will be used. | ||||||
| (Added in 7.39.0) | .IP "--cert-status" | ||||||
|  | (SSL) Tells curl to verify the status of the server certificate by using the | ||||||
|  | Certificate Status Request (aka. OCSP stapling) TLS extension. | ||||||
|  |  | ||||||
|  | If this option is enabled and the server sends an invalid (e.g. expired) | ||||||
|  | response, if the response suggests that the server certificate has been revoked, | ||||||
|  | or no response at all is received, the verification fails. | ||||||
|  |  | ||||||
|  | This is currently only implemented in the OpenSSL, GnuTLS and NSS backends. | ||||||
|  | (Added in 7.41.0) | ||||||
|  | .IP "--false-start" | ||||||
|  |  | ||||||
|  | (SSL) Tells curl to use false start during the TLS handshake. False start is a | ||||||
|  | mode where a TLS client will start sending application data before verifying | ||||||
|  | the server's Finished message, thus saving a round trip when performing a full | ||||||
|  | handshake. | ||||||
|  |  | ||||||
|  | This is currently only implemented in the NSS and Secure Transport (on iOS 7.0 | ||||||
|  | or later, or OS X 10.9 or later) backends. | ||||||
|  | (Added in 7.42.0) | ||||||
| .IP "-f, --fail" | .IP "-f, --fail" | ||||||
| (HTTP) Fail silently (no output at all) on server errors. This is mostly done | (HTTP) Fail silently (no output at all) on server errors. This is mostly done | ||||||
| to better enable scripts etc to better deal with failed attempts. In normal | to better enable scripts etc to better deal with failed attempts. In normal | ||||||
| @@ -641,6 +666,7 @@ curl does one CWD with the full target directory and then operates on the file | |||||||
| \&"normally" (like in the multicwd case). This is somewhat more standards | \&"normally" (like in the multicwd case). This is somewhat more standards | ||||||
| compliant than 'nocwd' but without the full penalty of 'multicwd'. | compliant than 'nocwd' but without the full penalty of 'multicwd'. | ||||||
| .RE | .RE | ||||||
|  | .IP | ||||||
| (Added in 7.15.1) | (Added in 7.15.1) | ||||||
| .IP "--ftp-pasv" | .IP "--ftp-pasv" | ||||||
| (FTP) Use passive mode for the data connection. Passive is the internal default | (FTP) Use passive mode for the data connection. Passive is the internal default | ||||||
| @@ -733,6 +759,12 @@ Example: | |||||||
|  |  | ||||||
| \&# curl -H "X-First-Name: Joe" http://192.168.0.1/ | \&# curl -H "X-First-Name: Joe" http://192.168.0.1/ | ||||||
|  |  | ||||||
|  | \fBWARNING\fP: headers set with this option will be set in all requests - even | ||||||
|  | after redirects are followed, like when told with \fB-L, --location\fP. This | ||||||
|  | can lead to the header being sent to other hosts than the original host, so | ||||||
|  | sensitive headers should be used with caution combined with following | ||||||
|  | redirects. | ||||||
|  |  | ||||||
| This option can be used multiple times to add/replace/remove multiple headers. | This option can be used multiple times to add/replace/remove multiple headers. | ||||||
| .IP "--hostpubmd5 <md5>" | .IP "--hostpubmd5 <md5>" | ||||||
| (SCP/SFTP) Pass a string containing 32 hexadecimal digits. The string should | (SCP/SFTP) Pass a string containing 32 hexadecimal digits. The string should | ||||||
| @@ -1027,13 +1059,10 @@ in Metalink file, hash check will fail. | |||||||
| Makes curl scan the \fI.netrc\fP (\fI_netrc\fP on Windows) file in the user's | Makes curl scan the \fI.netrc\fP (\fI_netrc\fP on Windows) file in the user's | ||||||
| home directory for login name and password. This is typically used for FTP on | home directory for login name and password. This is typically used for FTP on | ||||||
| Unix. If used with HTTP, curl will enable user authentication. See | Unix. If used with HTTP, curl will enable user authentication. See | ||||||
| .BR netrc(4) | \fInetrc(5)\fP \fIftp(1)\fP for details on the file format. Curl will not | ||||||
| or | complain if that file doesn't have the right permissions (it should not be | ||||||
| .BR ftp(1) | either world- or group-readable). The environment variable "HOME" is used to | ||||||
| for details on the file format. Curl will not complain if that file | find the home directory. | ||||||
| doesn't have the right permissions (it should not be either world- or |  | ||||||
| group-readable). The environment variable "HOME" is used to find the home |  | ||||||
| directory. |  | ||||||
|  |  | ||||||
| A quick and very simple example of how to setup a \fI.netrc\fP to allow curl | A quick and very simple example of how to setup a \fI.netrc\fP to allow curl | ||||||
| to FTP to the machine host.domain.com with user name \&'myself' and password | to FTP to the machine host.domain.com with user name \&'myself' and password | ||||||
| @@ -1195,7 +1224,7 @@ i.e "my.host.domain" to specify the machine | |||||||
| make curl pick the same IP address that is already used for the control | make curl pick the same IP address that is already used for the control | ||||||
| connection | connection | ||||||
| .RE | .RE | ||||||
|  | .IP | ||||||
| If this option is used several times, the last one will be used. Disable the | If this option is used several times, the last one will be used. Disable the | ||||||
| use of PORT with \fI--ftp-pasv\fP. Disable the attempt to use the EPRT command | use of PORT with \fI--ftp-pasv\fP. Disable the attempt to use the EPRT command | ||||||
| instead of PORT by using \fI--disable-eprt\fP. EPRT is really PORT++. | instead of PORT by using \fI--disable-eprt\fP. EPRT is really PORT++. | ||||||
| @@ -1209,6 +1238,12 @@ available. | |||||||
| (SSL/SSH) Passphrase for the private key | (SSL/SSH) Passphrase for the private key | ||||||
|  |  | ||||||
| If this option is used several times, the last one will be used. | If this option is used several times, the last one will be used. | ||||||
|  | .IP "--path-as-is" | ||||||
|  | Tell curl to not handle sequences of /../ or /./ in the given URL | ||||||
|  | path. Normally curl will squash or merge them according to standards but with | ||||||
|  | this option set you tell it not to do that. | ||||||
|  |  | ||||||
|  | (Added in 7.42.0) | ||||||
| .IP "--post301" | .IP "--post301" | ||||||
| (HTTP) Tells curl to respect RFC 2616/10.3.2 and not convert POST requests | (HTTP) Tells curl to respect RFC 2616/10.3.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 | ||||||
| @@ -1294,6 +1329,11 @@ with a remote host. (Added in 7.17.1) | |||||||
| .IP "--proxy-ntlm" | .IP "--proxy-ntlm" | ||||||
| Tells curl to use HTTP NTLM authentication when communicating with the given | Tells curl to use HTTP NTLM authentication when communicating with the given | ||||||
| proxy. Use \fI--ntlm\fP for enabling NTLM with a remote host. | proxy. Use \fI--ntlm\fP for enabling NTLM with a remote host. | ||||||
|  | .IP "--proxy-service-name <servicename>" | ||||||
|  | This option allows you to change the service name for proxy negotiation. | ||||||
|  |  | ||||||
|  | Examples: --proxy-negotiate proxy-name \fI--proxy-service-name\fP sockd would use | ||||||
|  | sockd/proxy-name.  (Added in 7.43.0). | ||||||
| .IP "--proxy1.0 <proxyhost[:port]>" | .IP "--proxy1.0 <proxyhost[:port]>" | ||||||
| Use the specified HTTP 1.0 proxy. If the port number is not specified, it is | Use the specified HTTP 1.0 proxy. If the port number is not specified, it is | ||||||
| assumed at port 1080. | assumed at port 1080. | ||||||
| @@ -1391,7 +1431,7 @@ specifies 300 bytes from offset 500(H) | |||||||
| .B 100-199,500-599 | .B 100-199,500-599 | ||||||
| specifies two separate 100-byte ranges(*)(H) | specifies two separate 100-byte ranges(*)(H) | ||||||
| .RE | .RE | ||||||
|  | .IP | ||||||
| (*) = NOTE that this will cause the server to reply with a multipart | (*) = NOTE that this will cause the server to reply with a multipart | ||||||
| response! | response! | ||||||
|  |  | ||||||
| @@ -1475,6 +1515,11 @@ terminal/stdout unless you redirect it. | |||||||
| .IP "--sasl-ir" | .IP "--sasl-ir" | ||||||
| Enable initial response in SASL authentication. | Enable initial response in SASL authentication. | ||||||
| (Added in 7.31.0) | (Added in 7.31.0) | ||||||
|  | .IP "--service-name <servicename>" | ||||||
|  | This option allows you to change the service name for SPNEGO. | ||||||
|  |  | ||||||
|  | Examples: --negotiate \fI--service-name\fP sockd would use | ||||||
|  | sockd/server-name.  (Added in 7.43.0). | ||||||
| .IP "-S, --show-error" | .IP "-S, --show-error" | ||||||
| When used with \fI-s\fP it makes curl show an error message if it fails. | When used with \fI-s\fP it makes curl show an error message if it fails. | ||||||
| .IP "--ssl" | .IP "--ssl" | ||||||
| @@ -1676,7 +1721,7 @@ impossible to use a colon in the user name with this option. The password can, | |||||||
| still. | still. | ||||||
|  |  | ||||||
| When using Kerberos V5 with a Windows based server you should include the | When using Kerberos V5 with a Windows based server you should include the | ||||||
| Windows domain name in the user name, in order for the server to succesfully | Windows domain name in the user name, in order for the server to successfully | ||||||
| obtain a Kerberos Ticket. If you don't then the initial authentication | obtain a Kerberos Ticket. If you don't then the initial authentication | ||||||
| handshake may fail. | handshake may fail. | ||||||
|  |  | ||||||
| @@ -1850,7 +1895,7 @@ displayed with millisecond resolution. | |||||||
| The URL that was fetched last. This is most meaningful if you've told curl | The URL that was fetched last. This is most meaningful if you've told curl | ||||||
| to follow location: headers. | to follow location: headers. | ||||||
| .RE | .RE | ||||||
|  | .IP | ||||||
| If this option is used several times, the last one will be used. | If this option is used several times, the last one will be used. | ||||||
| .IP "-x, --proxy <[protocol://][user:password@]proxyhost[:port]>" | .IP "-x, --proxy <[protocol://][user:password@]proxyhost[:port]>" | ||||||
| Use the specified proxy. | Use the specified proxy. | ||||||
| @@ -1884,7 +1929,7 @@ password. | |||||||
| If this option is used several times, the last one will be used. | If this option is used several times, the last one will be used. | ||||||
| .IP "-X, --request <command>" | .IP "-X, --request <command>" | ||||||
| (HTTP) Specifies a custom request method to use when communicating with the | (HTTP) Specifies a custom request method to use when communicating with the | ||||||
| HTTP server.  The specified request will be used instead of the method | HTTP server.  The specified request method will be used instead of the method | ||||||
| otherwise used (which defaults to GET). Read the HTTP 1.1 specification for | otherwise used (which defaults to GET). Read the HTTP 1.1 specification for | ||||||
| details and explanations. Common additional HTTP requests include PUT and | details and explanations. Common additional HTTP requests include PUT and | ||||||
| DELETE, but related technologies like WebDAV offers PROPFIND, COPY, MOVE and | DELETE, but related technologies like WebDAV offers PROPFIND, COPY, MOVE and | ||||||
| @@ -1898,6 +1943,11 @@ alter the way curl behaves. So for example if you want to make a proper HEAD | |||||||
| request, using -X HEAD will not suffice. You need to use the \fI-I, --head\fP | request, using -X HEAD will not suffice. You need to use the \fI-I, --head\fP | ||||||
| option. | option. | ||||||
|  |  | ||||||
|  | The method string you set with -X will be used for all requests, which if you | ||||||
|  | for example use \fB-L, --location\fP may cause unintended side-effects when | ||||||
|  | curl doesn't change request method according to the HTTP 30x response codes - | ||||||
|  | and similar. | ||||||
|  |  | ||||||
| (FTP) | (FTP) | ||||||
| Specifies a custom FTP command to use instead of LIST when doing file lists | Specifies a custom FTP command to use instead of LIST when doing file lists | ||||||
| with FTP. | with FTP. | ||||||
|   | |||||||
| @@ -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,9 +19,10 @@ | |||||||
|  * KIND, either express or implied. |  * KIND, either express or implied. | ||||||
|  * |  * | ||||||
|  ***************************************************************************/ |  ***************************************************************************/ | ||||||
| /* Example application source code using the multi interface to download many | /* <DESC> | ||||||
|  * files, but with a capped maximum amount of simultaneous transfers. |  * Source code using the multi interface to download many | ||||||
|  * |  * files, with a capped maximum amount of simultaneous transfers. | ||||||
|  |  * </DESC> | ||||||
|  * Written by Michael Wallner |  * Written by Michael Wallner | ||||||
|  */ |  */ | ||||||
|  |  | ||||||
|   | |||||||
| @@ -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 | ||||||
| @@ -31,7 +31,8 @@ check_PROGRAMS = 10-at-a-time anyauthput cookie_interface debug fileupload \ | |||||||
|   pop3-dele pop3-top pop3-stat pop3-noop pop3-ssl pop3-tls pop3-multi      \ |   pop3-dele pop3-top pop3-stat pop3-noop pop3-ssl pop3-tls pop3-multi      \ | ||||||
|   imap-list imap-lsub imap-fetch imap-store imap-append imap-examine       \ |   imap-list imap-lsub imap-fetch imap-store imap-append imap-examine       \ | ||||||
|   imap-search imap-create imap-delete imap-copy imap-noop imap-ssl         \ |   imap-search imap-create imap-delete imap-copy imap-noop imap-ssl         \ | ||||||
|   imap-tls imap-multi url2file sftpget ftpsget postinmemory |   imap-tls imap-multi url2file sftpget ftpsget postinmemory http2-download \ | ||||||
|  |   http2-upload http2-serverpush | ||||||
|  |  | ||||||
| # These examples require external dependencies that may not be commonly | # These examples require external dependencies that may not be commonly | ||||||
| # available on POSIX systems, so don't bother attempting to compile them here. | # available on POSIX systems, so don't bother attempting to compile them here. | ||||||
|   | |||||||
| @@ -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 | ||||||
| @@ -21,7 +21,7 @@ | |||||||
| ########################################################################### | ########################################################################### | ||||||
| # | # | ||||||
| ## Makefile for building curl examples with MingW (GCC-3.2 or later) | ## Makefile for building curl examples with MingW (GCC-3.2 or later) | ||||||
| ## and optionally OpenSSL (0.9.8), libssh2 (1.3), zlib (1.2.5), librtmp (2.3) | ## and optionally OpenSSL (1.0.2a), libssh2 (1.5), zlib (1.2.8), librtmp (2.4) | ||||||
| ## | ## | ||||||
| ## Usage:   mingw32-make -f Makefile.m32 CFG=-feature1[-feature2][-feature3][...] | ## Usage:   mingw32-make -f Makefile.m32 CFG=-feature1[-feature2][-feature3][...] | ||||||
| ## Example: mingw32-make -f Makefile.m32 CFG=-zlib-ssl-spi-winidn | ## Example: mingw32-make -f Makefile.m32 CFG=-zlib-ssl-spi-winidn | ||||||
| @@ -38,23 +38,23 @@ ZLIB_PATH = ../../../zlib-1.2.8 | |||||||
| endif | endif | ||||||
| # Edit the path below to point to the base of your OpenSSL package. | # Edit the path below to point to the base of your OpenSSL package. | ||||||
| ifndef OPENSSL_PATH | ifndef OPENSSL_PATH | ||||||
| OPENSSL_PATH = ../../../openssl-0.9.8zc | OPENSSL_PATH = ../../../openssl-1.0.2a | ||||||
| endif | endif | ||||||
| # Edit the path below to point to the base of your LibSSH2 package. | # Edit the path below to point to the base of your LibSSH2 package. | ||||||
| ifndef LIBSSH2_PATH | ifndef LIBSSH2_PATH | ||||||
| LIBSSH2_PATH = ../../../libssh2-1.4.3 | LIBSSH2_PATH = ../../../libssh2-1.5.0 | ||||||
| endif | endif | ||||||
| # Edit the path below to point to the base of your librtmp package. | # Edit the path below to point to the base of your librtmp package. | ||||||
| ifndef LIBRTMP_PATH | ifndef LIBRTMP_PATH | ||||||
| LIBRTMP_PATH = ../../../librtmp-2.3 | LIBRTMP_PATH = ../../../librtmp-2.4 | ||||||
| endif | endif | ||||||
| # Edit the path below to point to the base of your libidn package. | # Edit the path below to point to the base of your libidn package. | ||||||
| ifndef LIBIDN_PATH | ifndef LIBIDN_PATH | ||||||
| LIBIDN_PATH = ../../../libidn-1.18 | LIBIDN_PATH = ../../../libidn-1.30 | ||||||
| endif | endif | ||||||
| # Edit the path below to point to the base of your MS IDN package. | # Edit the path below to point to the base of your MS IDN package. | ||||||
| # Microsoft Internationalized Domain Names (IDN) Mitigation APIs 1.1 | # Microsoft Internationalized Domain Names (IDN) Mitigation APIs 1.1 | ||||||
| # http://www.microsoft.com/downloads/en/details.aspx?FamilyID=ad6158d7-ddba-416a-9109-07607425a815 | # https://www.microsoft.com/en-us/download/details.aspx?id=734 | ||||||
| ifndef WINIDN_PATH | ifndef WINIDN_PATH | ||||||
| WINIDN_PATH = ../../../Microsoft IDN Mitigation APIs | WINIDN_PATH = ../../../Microsoft IDN Mitigation APIs | ||||||
| endif | endif | ||||||
| @@ -62,6 +62,10 @@ endif | |||||||
| ifndef LDAP_SDK | ifndef LDAP_SDK | ||||||
| LDAP_SDK = c:/novell/ndk/cldapsdk/win32 | LDAP_SDK = c:/novell/ndk/cldapsdk/win32 | ||||||
| endif | endif | ||||||
|  | # Edit the path below to point to the base of your nghttp2 package. | ||||||
|  | ifndef NGHTTP2_PATH | ||||||
|  | NGHTTP2_PATH = ../../../nghttp2-1.0.0 | ||||||
|  | endif | ||||||
|  |  | ||||||
| PROOT = ../.. | PROOT = ../.. | ||||||
|  |  | ||||||
| @@ -72,14 +76,24 @@ endif | |||||||
|  |  | ||||||
| # Edit the var below to set to your architecture or set environment var. | # Edit the var below to set to your architecture or set environment var. | ||||||
| ifndef ARCH | ifndef ARCH | ||||||
|  | ifeq ($(findstring x86_64,$(shell $(CC) -dumpmachine)),x86_64) | ||||||
|  | ARCH    = w64 | ||||||
|  | else | ||||||
| ARCH    = w32 | ARCH    = w32 | ||||||
| endif | endif | ||||||
|  | endif | ||||||
|  |  | ||||||
| CC	= $(CROSSPREFIX)gcc | CC	= $(CROSSPREFIX)gcc | ||||||
| CFLAGS	= -g -O2 -Wall | CFLAGS	= -g -O2 -Wall | ||||||
| CFLAGS	+= -fno-strict-aliasing | CFLAGS	+= -fno-strict-aliasing | ||||||
| ifeq ($(ARCH),w64) | ifeq ($(ARCH),w64) | ||||||
| CFLAGS	+= -D_AMD64_ | CFLAGS	+= -m64 -D_AMD64_ | ||||||
|  | LDFLAGS += -m64 | ||||||
|  | RCFLAGS += -F pe-x86-64 | ||||||
|  | else | ||||||
|  | CFLAGS	+= -m32 | ||||||
|  | LDFLAGS += -m32 | ||||||
|  | RCFLAGS += -F pe-i386 | ||||||
| endif | endif | ||||||
| # comment LDFLAGS below to keep debug info | # comment LDFLAGS below to keep debug info | ||||||
| LDFLAGS	= -s | LDFLAGS	= -s | ||||||
| @@ -158,9 +172,12 @@ ifeq ($(findstring -metalink,$(CFG)),-metalink) | |||||||
| METALINK = 1 | METALINK = 1 | ||||||
| endif | endif | ||||||
| ifeq ($(findstring -winssl,$(CFG)),-winssl) | ifeq ($(findstring -winssl,$(CFG)),-winssl) | ||||||
| SCHANNEL = 1 | WINSSL = 1 | ||||||
| SSPI = 1 | SSPI = 1 | ||||||
| endif | endif | ||||||
|  | ifeq ($(findstring -nghttp2,$(CFG)),-nghttp2) | ||||||
|  | NGHTTP2 = 1 | ||||||
|  | endif | ||||||
|  |  | ||||||
| INCLUDES = -I. -I$(PROOT) -I$(PROOT)/include -I$(PROOT)/lib | INCLUDES = -I. -I$(PROOT) -I$(PROOT)/include -I$(PROOT)/lib | ||||||
|  |  | ||||||
| @@ -184,6 +201,10 @@ ifdef RTMP | |||||||
|   CFLAGS += -DUSE_LIBRTMP |   CFLAGS += -DUSE_LIBRTMP | ||||||
|   curl_LDADD += -L"$(LIBRTMP_PATH)/librtmp" -lrtmp -lwinmm |   curl_LDADD += -L"$(LIBRTMP_PATH)/librtmp" -lrtmp -lwinmm | ||||||
| endif | endif | ||||||
|  | ifdef NGHTTP2 | ||||||
|  |   CFLAGS += -DUSE_NGHTTP2 | ||||||
|  |   curl_LDADD += -L"$(NGHTTP2_PATH)/lib" -lnghttp2 | ||||||
|  | endif | ||||||
| ifdef SSH2 | ifdef SSH2 | ||||||
|   CFLAGS += -DUSE_LIBSSH2 -DHAVE_LIBSSH2_H |   CFLAGS += -DUSE_LIBSSH2 -DHAVE_LIBSSH2_H | ||||||
|   curl_LDADD += -L"$(LIBSSH2_PATH)/win32" -lssh2 |   curl_LDADD += -L"$(LIBSSH2_PATH)/win32" -lssh2 | ||||||
| @@ -204,7 +225,7 @@ ifdef SSL | |||||||
|   ifndef DYN |   ifndef DYN | ||||||
|     OPENSSL_LIBS += -lgdi32 -lcrypt32 |     OPENSSL_LIBS += -lgdi32 -lcrypt32 | ||||||
|   endif |   endif | ||||||
|   CFLAGS += -DUSE_SSLEAY |   CFLAGS += -DUSE_OPENSSL | ||||||
|   curl_LDADD += -L"$(OPENSSL_LIBPATH)" $(OPENSSL_LIBS) |   curl_LDADD += -L"$(OPENSSL_LIBPATH)" $(OPENSSL_LIBS) | ||||||
| endif | endif | ||||||
| ifdef ZLIB | ifdef ZLIB | ||||||
| @@ -223,7 +244,7 @@ endif | |||||||
| endif | endif | ||||||
| ifdef SSPI | ifdef SSPI | ||||||
|   CFLAGS += -DUSE_WINDOWS_SSPI |   CFLAGS += -DUSE_WINDOWS_SSPI | ||||||
|   ifdef SCHANNEL |   ifdef WINSSL | ||||||
|     CFLAGS += -DUSE_SCHANNEL |     CFLAGS += -DUSE_SCHANNEL | ||||||
|   endif |   endif | ||||||
| endif | endif | ||||||
|   | |||||||
| @@ -19,12 +19,12 @@ endif | |||||||
|  |  | ||||||
| # Edit the path below to point to the base of your OpenSSL package. | # Edit the path below to point to the base of your OpenSSL package. | ||||||
| ifndef OPENSSL_PATH | ifndef OPENSSL_PATH | ||||||
| OPENSSL_PATH = ../../../openssl-0.9.8zc | OPENSSL_PATH = ../../../openssl-1.0.2a | ||||||
| endif | endif | ||||||
|  |  | ||||||
| # Edit the path below to point to the base of your LibSSH2 package. | # Edit the path below to point to the base of your LibSSH2 package. | ||||||
| ifndef LIBSSH2_PATH | ifndef LIBSSH2_PATH | ||||||
| LIBSSH2_PATH = ../../../libssh2-1.4.3 | LIBSSH2_PATH = ../../../libssh2-1.5.0 | ||||||
| endif | endif | ||||||
|  |  | ||||||
| # Edit the path below to point to the base of your axTLS package. | # Edit the path below to point to the base of your axTLS package. | ||||||
| @@ -34,12 +34,12 @@ endif | |||||||
|  |  | ||||||
| # Edit the path below to point to the base of your libidn package. | # Edit the path below to point to the base of your libidn package. | ||||||
| ifndef LIBIDN_PATH | ifndef LIBIDN_PATH | ||||||
| LIBIDN_PATH = ../../../libidn-1.18 | LIBIDN_PATH = ../../../libidn-1.30 | ||||||
| endif | endif | ||||||
|  |  | ||||||
| # Edit the path below to point to the base of your librtmp package. | # Edit the path below to point to the base of your librtmp package. | ||||||
| ifndef LIBRTMP_PATH | ifndef LIBRTMP_PATH | ||||||
| LIBRTMP_PATH = ../../../librtmp-2.3 | LIBRTMP_PATH = ../../../librtmp-2.4 | ||||||
| endif | endif | ||||||
|  |  | ||||||
| # Edit the path below to point to the base of your fbopenssl package. | # Edit the path below to point to the base of your fbopenssl package. | ||||||
|   | |||||||
| @@ -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,11 @@ | |||||||
|  * KIND, either express or implied. |  * KIND, either express or implied. | ||||||
|  * |  * | ||||||
|  ***************************************************************************/ |  ***************************************************************************/ | ||||||
|  | /* <DESC> | ||||||
|  |  * HTTP PUT upload with authentiction using "any" method. libcurl picks the | ||||||
|  |  * one the server supports/wants. | ||||||
|  |  * </DESC> | ||||||
|  |  */ | ||||||
| #include <stdio.h> | #include <stdio.h> | ||||||
| #include <fcntl.h> | #include <fcntl.h> | ||||||
| #ifdef WIN32 | #ifdef WIN32 | ||||||
|   | |||||||
| @@ -5,7 +5,7 @@ | |||||||
|  *                            | (__| |_| |  _ <| |___ |  *                            | (__| |_| |  _ <| |___ | ||||||
|  *                             \___|\___/|_| \_\_____| |  *                             \___|\___/|_| \_\_____| | ||||||
|  * |  * | ||||||
|  * Copyright (C) 2012 - 2014, Daniel Stenberg, <daniel@haxx.se>, et al. |  * Copyright (C) 2012 - 2015, Daniel Stenberg, <daniel@haxx.se>, et al. | ||||||
|  * |  * | ||||||
|  * This software is licensed as described in the file COPYING, which |  * This software is licensed as described in the file COPYING, which | ||||||
|  * you should have received as part of this distribution. The terms |  * you should have received as part of this distribution. The terms | ||||||
| @@ -20,11 +20,11 @@ | |||||||
|  * |  * | ||||||
|  ***************************************************************************/ |  ***************************************************************************/ | ||||||
|  |  | ||||||
|  | /* <DESC> | ||||||
|  |  * demonstrate the use of multi socket interface with boost::asio | ||||||
|  |  * </DESC> | ||||||
|  |  */ | ||||||
| /* | /* | ||||||
|  * file: asiohiper.cpp |  | ||||||
|  * Example program to demonstrate the use of multi socket interface |  | ||||||
|  * with boost::asio |  | ||||||
|  * |  | ||||||
|  * This program is in c++ and uses boost::asio instead of libevent/libev. |  * This program is in c++ and uses boost::asio instead of libevent/libev. | ||||||
|  * Requires boost::asio, boost::bind and boost::system |  * Requires boost::asio, boost::bind and boost::system | ||||||
|  * |  * | ||||||
|   | |||||||
| @@ -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,17 +19,11 @@ | |||||||
|  * KIND, either express or implied. |  * KIND, either express or implied. | ||||||
|  * |  * | ||||||
|  ***************************************************************************/ |  ***************************************************************************/ | ||||||
| /* Example using a "in core" PEM certificate to retrieve a https page. | /* <DESC> | ||||||
|  * Written by Theo Borm |  * CA cert in memory with OpenSSL to get a HTTPS page. | ||||||
|  |  * </DESC> | ||||||
|  */ |  */ | ||||||
|  |  | ||||||
| /* on a netBSD system with OPENSSL& LIBCURL installed from |  | ||||||
|  * pkgsrc (using default paths) this program can be compiled using: |  | ||||||
|  * gcc -I/usr/pkg/include -L/usr/pkg/lib -lcurl -Wl,-R/usr/pkg/lib -lssl |  | ||||||
|  * -lcrypto -lz -o curlcacerttest curlcacerttest.c |  | ||||||
|  * on other operating systems you may want to change paths to headers |  | ||||||
|  * and libraries |  | ||||||
| */ |  | ||||||
| #include <openssl/ssl.h> | #include <openssl/ssl.h> | ||||||
| #include <curl/curl.h> | #include <curl/curl.h> | ||||||
| #include <stdio.h> | #include <stdio.h> | ||||||
|   | |||||||
| @@ -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> | ||||||
|  |  * Extract lots of TLS certificate info. | ||||||
|  |  * </DESC> | ||||||
|  |  */ | ||||||
| #include <stdio.h> | #include <stdio.h> | ||||||
|  |  | ||||||
| #include <curl/curl.h> | #include <curl/curl.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> | ||||||
|  |  * Show transfer timing info after download completes. | ||||||
|  |  * </DESC> | ||||||
|  |  */ | ||||||
| /* Example source code to show how the callback function can be used to | /* Example source code to show how the callback function can be used to | ||||||
|  * download data into a chunk of memory instead of storing it in a file. |  * download data into a chunk of memory instead of storing it in a file. | ||||||
|  * After successful download we use curl_easy_getinfo() calls to get the |  * After successful download we use curl_easy_getinfo() calls to get the | ||||||
|   | |||||||
| @@ -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,7 +19,10 @@ | |||||||
|  * KIND, either express or implied. |  * KIND, either express or implied. | ||||||
|  * |  * | ||||||
|  ***************************************************************************/ |  ***************************************************************************/ | ||||||
| /* This example shows usage of simple cookie interface. */ | /* <DESC> | ||||||
|  |  * Import and export cookies with COOKIELIST. | ||||||
|  |  * </DESC> | ||||||
|  |  */ | ||||||
|  |  | ||||||
| #include <stdio.h> | #include <stdio.h> | ||||||
| #include <string.h> | #include <string.h> | ||||||
| @@ -96,7 +99,12 @@ main(void) | |||||||
|       return 1; |       return 1; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /* HTTP-header style cookie */ |     /* HTTP-header style cookie. If you use the Set-Cookie format and don't | ||||||
|  |     specify a domain then the cookie is sent for any domain and will not be | ||||||
|  |     modified, likely not what you intended. Starting in 7.43.0 any-domain | ||||||
|  |     cookies will not be exported either. For more information refer to the | ||||||
|  |     CURLOPT_COOKIELIST documentation. | ||||||
|  |     */ | ||||||
|     snprintf(nline, sizeof(nline), |     snprintf(nline, sizeof(nline), | ||||||
|       "Set-Cookie: OLD_PREF=3d141414bf4209321; " |       "Set-Cookie: OLD_PREF=3d141414bf4209321; " | ||||||
|       "expires=Sun, 17-Jan-2038 19:14:07 GMT; path=/; domain=.google.com"); |       "expires=Sun, 17-Jan-2038 19:14:07 GMT; path=/; domain=.google.com"); | ||||||
|   | |||||||
| @@ -5,9 +5,12 @@ | |||||||
|  *                            | (__| |_| |  _ <| |___ |  *                            | (__| |_| |  _ <| |___ | ||||||
|  *                             \___|\___/|_| \_\_____| |  *                             \___|\___/|_| \_\_____| | ||||||
|  * |  * | ||||||
|  |  *  Copyright (c) 2000 David Odin (aka DindinX) for MandrakeSoft | ||||||
|  |  */ | ||||||
|  | /* <DESC> | ||||||
|  |  * use the libcurl in a gtk-threaded application | ||||||
|  |  * </DESC> | ||||||
|  */ |  */ | ||||||
| /* Copyright (c) 2000 David Odin (aka DindinX) for MandrakeSoft */ |  | ||||||
| /* an attempt to use the curl library in concert with a gtk-threaded application */ |  | ||||||
|  |  | ||||||
| #include <stdio.h> | #include <stdio.h> | ||||||
| #include <gtk/gtk.h> | #include <gtk/gtk.h> | ||||||
|   | |||||||
| @@ -9,7 +9,10 @@ | |||||||
|   certificate presented during ssl session establishment. |   certificate presented during ssl session establishment. | ||||||
|  |  | ||||||
| */ | */ | ||||||
|  | /* <DESC> | ||||||
|  |  * demonstrates use of SSL context callback, requires OpenSSL | ||||||
|  |  * </DESC> | ||||||
|  |  */ | ||||||
|  |  | ||||||
| /* | /* | ||||||
|  * Copyright (c) 2003 The OpenEvidence Project.  All rights reserved. |  * Copyright (c) 2003 The OpenEvidence Project.  All rights reserved. | ||||||
| @@ -490,7 +493,7 @@ int main(int argc, char **argv) { | |||||||
|         BIO_printf(p.errorbio,"the response has a correct mimetype : %s\n", |         BIO_printf(p.errorbio,"the response has a correct mimetype : %s\n", | ||||||
|                    response); |                    response); | ||||||
|       else |       else | ||||||
|         BIO_printf(p.errorbio,"the reponse doesn\'t has an acceptable " |         BIO_printf(p.errorbio,"the response doesn\'t have an acceptable " | ||||||
|                    "mime type, it is %s instead of %s\n", |                    "mime type, it is %s instead of %s\n", | ||||||
|                    response,mimetypeaccept); |                    response,mimetypeaccept); | ||||||
|   } |   } | ||||||
|   | |||||||
| @@ -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 | ||||||
| @@ -19,6 +19,10 @@ | |||||||
|  * KIND, either express or implied. |  * KIND, either express or implied. | ||||||
|  * |  * | ||||||
|  ***************************************************************************/ |  ***************************************************************************/ | ||||||
|  | /* <DESC> | ||||||
|  |  * Show how CURLOPT_DEBUGFUNCTION can be used. | ||||||
|  |  * </DESC> | ||||||
|  |  */ | ||||||
| #include <stdio.h> | #include <stdio.h> | ||||||
| #include <curl/curl.h> | #include <curl/curl.h> | ||||||
|  |  | ||||||
|   | |||||||
| @@ -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> | ||||||
|  |  * multi socket interface together with libev | ||||||
|  |  * </DESC> | ||||||
|  |  */ | ||||||
| /* Example application source code using the multi socket interface to | /* Example application source code using the multi socket interface to | ||||||
|  * download many files at once. |  * download many files at once. | ||||||
|  * |  * | ||||||
|   | |||||||
| @@ -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,9 +19,10 @@ | |||||||
|  * KIND, either express or implied. |  * KIND, either express or implied. | ||||||
|  * |  * | ||||||
|  ***************************************************************************/ |  ***************************************************************************/ | ||||||
| /* | /* <DESC> | ||||||
|  * This is an example demonstrating how an application can pass in a custom |  * An example demonstrating how an application can pass in a custom | ||||||
|  * socket to libcurl to use. This example also handles the connect itself. |  * socket to libcurl to use. This example also handles the connect itself. | ||||||
|  |  * </DESC> | ||||||
|  */ |  */ | ||||||
| #include <stdio.h> | #include <stdio.h> | ||||||
| #include <string.h> | #include <string.h> | ||||||
|   | |||||||
| @@ -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> | ||||||
|  |  * Upload to a file:// URL | ||||||
|  |  * </DESC> | ||||||
|  |  */ | ||||||
| #include <stdio.h> | #include <stdio.h> | ||||||
| #include <curl/curl.h> | #include <curl/curl.h> | ||||||
| #include <sys/stat.h> | #include <sys/stat.h> | ||||||
|   | |||||||
| @@ -42,6 +42,10 @@ | |||||||
|  * |  * | ||||||
|  * This example requires libcurl 7.9.7 or later. |  * This example requires libcurl 7.9.7 or later. | ||||||
|  */ |  */ | ||||||
|  | /* <DESC> | ||||||
|  |  * implements an fopen() abstraction allowing reading from URLs | ||||||
|  |  * </DESC> | ||||||
|  |  */ | ||||||
|  |  | ||||||
| #include <stdio.h> | #include <stdio.h> | ||||||
| #include <string.h> | #include <string.h> | ||||||
| @@ -108,7 +112,7 @@ static size_t write_callback(char *buffer, | |||||||
|       size=rembuff; |       size=rembuff; | ||||||
|     } |     } | ||||||
|     else { |     else { | ||||||
|       /* realloc suceeded increase buffer size*/ |       /* realloc succeeded increase buffer size*/ | ||||||
|       url->buffer_len+=size - rembuff; |       url->buffer_len+=size - rembuff; | ||||||
|       url->buffer=newbuff; |       url->buffer=newbuff; | ||||||
|     } |     } | ||||||
| @@ -131,7 +135,7 @@ static int fill_buffer(URL_FILE *file, size_t want) | |||||||
|   CURLMcode mc; /* curl_multi_fdset() return code */ |   CURLMcode mc; /* curl_multi_fdset() return code */ | ||||||
|  |  | ||||||
|   /* only attempt to fill buffer if transactions still running and buffer |   /* only attempt to fill buffer if transactions still running and buffer | ||||||
|    * doesnt exceed required size already |    * doesn't exceed required size already | ||||||
|    */ |    */ | ||||||
|   if((!file->still_running) || (file->buffer_pos > want)) |   if((!file->still_running) || (file->buffer_pos > want)) | ||||||
|     return 0; |     return 0; | ||||||
| @@ -205,14 +209,12 @@ static int fill_buffer(URL_FILE *file, size_t want) | |||||||
| } | } | ||||||
|  |  | ||||||
| /* use to remove want bytes from the front of a files buffer */ | /* use to remove want bytes from the front of a files buffer */ | ||||||
| static int use_buffer(URL_FILE *file,int want) | static int use_buffer(URL_FILE *file, size_t want) | ||||||
| { | { | ||||||
|   /* sort out buffer */ |   /* sort out buffer */ | ||||||
|   if((file->buffer_pos - want) <=0) { |   if((file->buffer_pos - want) <=0) { | ||||||
|     /* ditch buffer - write will recreate */ |     /* ditch buffer - write will recreate */ | ||||||
|     if(file->buffer) |  | ||||||
|     free(file->buffer); |     free(file->buffer); | ||||||
|  |  | ||||||
|     file->buffer=NULL; |     file->buffer=NULL; | ||||||
|     file->buffer_pos=0; |     file->buffer_pos=0; | ||||||
|     file->buffer_len=0; |     file->buffer_len=0; | ||||||
| @@ -231,7 +233,7 @@ static int use_buffer(URL_FILE *file,int want) | |||||||
| URL_FILE *url_fopen(const char *url,const char *operation) | URL_FILE *url_fopen(const char *url,const char *operation) | ||||||
| { | { | ||||||
|   /* this code could check for URLs or types in the 'url' and |   /* this code could check for URLs or types in the 'url' and | ||||||
|      basicly use the real fopen() for standard files */ |      basically use the real fopen() for standard files */ | ||||||
|  |  | ||||||
|   URL_FILE *file; |   URL_FILE *file; | ||||||
|   (void)operation; |   (void)operation; | ||||||
| @@ -302,9 +304,7 @@ int url_fclose(URL_FILE *file) | |||||||
|     break; |     break; | ||||||
|   } |   } | ||||||
|  |  | ||||||
|   if(file->buffer) |  | ||||||
|   free(file->buffer);/* free any allocated buffer space */ |   free(file->buffer);/* free any allocated buffer space */ | ||||||
|  |  | ||||||
|   free(file); |   free(file); | ||||||
|  |  | ||||||
|   return ret; |   return ret; | ||||||
| @@ -379,7 +379,7 @@ char *url_fgets(char *ptr, size_t size, URL_FILE *file) | |||||||
|  |  | ||||||
|   switch(file->type) { |   switch(file->type) { | ||||||
|   case CFTYPE_FILE: |   case CFTYPE_FILE: | ||||||
|     ptr = fgets(ptr,size,file->handle.file); |     ptr = fgets(ptr, (int)size, file->handle.file); | ||||||
|     break; |     break; | ||||||
|  |  | ||||||
|   case CFTYPE_CURL: |   case CFTYPE_CURL: | ||||||
| @@ -435,9 +435,7 @@ void url_rewind(URL_FILE *file) | |||||||
|     curl_multi_add_handle(multi_handle, file->handle.curl); |     curl_multi_add_handle(multi_handle, file->handle.curl); | ||||||
|  |  | ||||||
|     /* ditch buffer - write will recreate - resets stream pos*/ |     /* ditch buffer - write will recreate - resets stream pos*/ | ||||||
|     if(file->buffer) |  | ||||||
|     free(file->buffer); |     free(file->buffer); | ||||||
|  |  | ||||||
|     file->buffer=NULL; |     file->buffer=NULL; | ||||||
|     file->buffer_pos=0; |     file->buffer_pos=0; | ||||||
|     file->buffer_len=0; |     file->buffer_len=0; | ||||||
| @@ -457,7 +455,7 @@ int main(int argc, char *argv[]) | |||||||
|   URL_FILE *handle; |   URL_FILE *handle; | ||||||
|   FILE *outf; |   FILE *outf; | ||||||
|  |  | ||||||
|   int nread; |   size_t nread; | ||||||
|   char buffer[256]; |   char buffer[256]; | ||||||
|   const char *url; |   const char *url; | ||||||
|  |  | ||||||
| @@ -505,7 +503,7 @@ int main(int argc, char *argv[]) | |||||||
|   } |   } | ||||||
|  |  | ||||||
|   do { |   do { | ||||||
|     nread = url_fread(buffer, 1,sizeof(buffer), handle); |     nread = url_fread(buffer, 1, sizeof(buffer), handle); | ||||||
|     fwrite(buffer,1,nread,outf); |     fwrite(buffer,1,nread,outf); | ||||||
|   } while(nread); |   } while(nread); | ||||||
|  |  | ||||||
|   | |||||||
| @@ -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> | ||||||
|  |  * FTP wildcard pattern matching | ||||||
|  |  * </DESC> | ||||||
|  |  */ | ||||||
| #include <curl/curl.h> | #include <curl/curl.h> | ||||||
| #include <stdio.h> | #include <stdio.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 | ||||||
| @@ -23,11 +23,9 @@ | |||||||
|  |  | ||||||
| #include <curl/curl.h> | #include <curl/curl.h> | ||||||
|  |  | ||||||
| /* | /* <DESC> | ||||||
|  * This is an example showing how to get a single file from an FTP server. |  * Get a single file from an FTP server. | ||||||
|  * It delays the actual destination file creation until the first write |  * </DESC> | ||||||
|  * callback so that it won't create an empty file in case the remote file |  | ||||||
|  * doesn't exist or something else fails. |  | ||||||
|  */ |  */ | ||||||
|  |  | ||||||
| struct FtpFile { | struct FtpFile { | ||||||
| @@ -53,7 +51,7 @@ int main(void) | |||||||
|   CURL *curl; |   CURL *curl; | ||||||
|   CURLcode res; |   CURLcode res; | ||||||
|   struct FtpFile ftpfile={ |   struct FtpFile ftpfile={ | ||||||
|     "curl.tar.gz", /* name to store the file as if succesful */ |     "curl.tar.gz", /* name to store the file as if successful */ | ||||||
|     NULL |     NULL | ||||||
|   }; |   }; | ||||||
|  |  | ||||||
|   | |||||||
| @@ -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 | ||||||
| @@ -24,9 +24,9 @@ | |||||||
|  |  | ||||||
| #include <curl/curl.h> | #include <curl/curl.h> | ||||||
|  |  | ||||||
| /* | /* <DESC> | ||||||
|  * This is an example showing how to check a single file's size and mtime |  * Checks a single file's size and mtime from an FTP server. | ||||||
|  * from an FTP server. |  * </DESC> | ||||||
|  */ |  */ | ||||||
|  |  | ||||||
| static size_t throw_away(void *ptr, size_t size, size_t nmemb, void *data) | static size_t throw_away(void *ptr, size_t size, size_t nmemb, void *data) | ||||||
|   | |||||||
| @@ -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 | ||||||
| @@ -23,13 +23,11 @@ | |||||||
|  |  | ||||||
| #include <curl/curl.h> | #include <curl/curl.h> | ||||||
|  |  | ||||||
| /* | /* <DESC> | ||||||
|  * Similar to ftpget.c but this also stores the received response-lines |  * Similar to ftpget.c but also stores the received response-lines | ||||||
|  * in a separate file using our own callback! |  * in a separate file using our own callback! | ||||||
|  * |  * </DESC> | ||||||
|  * This functionality was introduced in libcurl 7.9.3. |  | ||||||
|  */ |  */ | ||||||
|  |  | ||||||
| static size_t | static size_t | ||||||
| write_response(void *ptr, size_t size, size_t nmemb, void *data) | write_response(void *ptr, size_t size, size_t nmemb, void *data) | ||||||
| { | { | ||||||
|   | |||||||
| @@ -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 | ||||||
| @@ -24,11 +24,9 @@ | |||||||
|  |  | ||||||
| #include <curl/curl.h> | #include <curl/curl.h> | ||||||
|  |  | ||||||
| /* | /* <DESC> | ||||||
|  * This is an example showing how to get a single file from an FTPS server. |  * Get a single file from an FTPS server. | ||||||
|  * It delays the actual destination file creation until the first write |  * </DESC> | ||||||
|  * callback so that it won't create an empty file in case the remote file |  | ||||||
|  * doesn't exist or something else fails. |  | ||||||
|  */ |  */ | ||||||
|  |  | ||||||
| struct FtpFile { | struct FtpFile { | ||||||
| @@ -55,7 +53,7 @@ int main(void) | |||||||
|   CURL *curl; |   CURL *curl; | ||||||
|   CURLcode res; |   CURLcode res; | ||||||
|   struct FtpFile ftpfile={ |   struct FtpFile ftpfile={ | ||||||
|     "yourfile.bin", /* name to store the file as if succesful */ |     "yourfile.bin", /* name to store the file as if successful */ | ||||||
|     NULL |     NULL | ||||||
|   }; |   }; | ||||||
|  |  | ||||||
|   | |||||||
| @@ -5,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 | ||||||
| @@ -33,11 +33,10 @@ | |||||||
| #include <unistd.h> | #include <unistd.h> | ||||||
| #endif | #endif | ||||||
|  |  | ||||||
| /* | /* <DESC> | ||||||
|  * This example shows an FTP upload, with a rename of the file just after |  * Performs an FTP upload and renames the file just after a successful | ||||||
|  * a successful upload. |  * transfer. | ||||||
|  * |  * </DESC> | ||||||
|  * Example based on source code provided by Erick Nuwendam. Thanks! |  | ||||||
|  */ |  */ | ||||||
|  |  | ||||||
| #define LOCAL_FILE      "/tmp/uploadthis.txt" | #define LOCAL_FILE      "/tmp/uploadthis.txt" | ||||||
|   | |||||||
| @@ -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,13 +19,9 @@ | |||||||
|  * KIND, either express or implied. |  * KIND, either express or implied. | ||||||
|  * |  * | ||||||
|  ***************************************************************************/ |  ***************************************************************************/ | ||||||
| /* Upload to FTP, resuming failed transfers | /* <DESC> | ||||||
|  * |  * Upload to FTP, resuming failed transfers. | ||||||
|  * Compile for MinGW like this: |  * </DESC> | ||||||
|  *  gcc -Wall -pedantic -std=c99 ftpuploadwithresume.c -o ftpuploadresume.exe |  | ||||||
|  *  -lcurl -lmsvcr70 |  | ||||||
|  * |  | ||||||
|  * Written by Philip Bock |  | ||||||
|  */ |  */ | ||||||
|  |  | ||||||
| #include <stdlib.h> | #include <stdlib.h> | ||||||
|   | |||||||
| @@ -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> | ||||||
|  |  * Use getinfo to get content-type after completed transfer. | ||||||
|  |  * </DESC> | ||||||
|  |  */ | ||||||
| #include <stdio.h> | #include <stdio.h> | ||||||
| #include <curl/curl.h> | #include <curl/curl.h> | ||||||
|  |  | ||||||
| @@ -27,18 +31,14 @@ int main(void) | |||||||
|   CURL *curl; |   CURL *curl; | ||||||
|   CURLcode res; |   CURLcode res; | ||||||
|  |  | ||||||
|   /* http://curl.haxx.se/libcurl/c/curl_easy_init.html */ |  | ||||||
|   curl = curl_easy_init(); |   curl = curl_easy_init(); | ||||||
|   if(curl) { |   if(curl) { | ||||||
|     /* http://curl.haxx.se/libcurl/c/curl_easy_setopt.html#CURLOPTURL */ |  | ||||||
|     curl_easy_setopt(curl, CURLOPT_URL, "http://www.example.com/"); |     curl_easy_setopt(curl, CURLOPT_URL, "http://www.example.com/"); | ||||||
|     /* http://curl.haxx.se/libcurl/c/curl_easy_perform.html */ |  | ||||||
|     res = curl_easy_perform(curl); |     res = curl_easy_perform(curl); | ||||||
|  |  | ||||||
|     if(CURLE_OK == res) { |     if(CURLE_OK == res) { | ||||||
|       char *ct; |       char *ct; | ||||||
|       /* ask for the content-type */ |       /* ask for the content-type */ | ||||||
|       /* http://curl.haxx.se/libcurl/c/curl_easy_getinfo.html */ |  | ||||||
|       res = curl_easy_getinfo(curl, CURLINFO_CONTENT_TYPE, &ct); |       res = curl_easy_getinfo(curl, CURLINFO_CONTENT_TYPE, &ct); | ||||||
|  |  | ||||||
|       if((CURLE_OK == res) && ct) |       if((CURLE_OK == res) && ct) | ||||||
| @@ -46,7 +46,6 @@ int main(void) | |||||||
|     } |     } | ||||||
|  |  | ||||||
|     /* always cleanup */ |     /* always cleanup */ | ||||||
|     /* http://curl.haxx.se/libcurl/c/curl_easy_cleanup.html */ |  | ||||||
|     curl_easy_cleanup(curl); |     curl_easy_cleanup(curl); | ||||||
|   } |   } | ||||||
|   return 0; |   return 0; | ||||||
|   | |||||||
| @@ -5,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 | ||||||
| @@ -19,8 +19,10 @@ | |||||||
|  * KIND, either express or implied. |  * KIND, either express or implied. | ||||||
|  * |  * | ||||||
|  ***************************************************************************/ |  ***************************************************************************/ | ||||||
| /* Example source code to show how the callback function can be used to | /* <DESC> | ||||||
|  * download data into a chunk of memory instead of storing it in a file. |  * Shows how the write callback function can be used to download data into a | ||||||
|  |  * chunk of memory instead of storing it in a file. | ||||||
|  |  * </DESC> | ||||||
|  */ |  */ | ||||||
|  |  | ||||||
| #include <stdio.h> | #include <stdio.h> | ||||||
| @@ -34,7 +36,6 @@ struct MemoryStruct { | |||||||
|   size_t size; |   size_t size; | ||||||
| }; | }; | ||||||
|  |  | ||||||
|  |  | ||||||
| static size_t | static size_t | ||||||
| WriteMemoryCallback(void *contents, size_t size, size_t nmemb, void *userp) | WriteMemoryCallback(void *contents, size_t size, size_t nmemb, void *userp) | ||||||
| { | { | ||||||
| @@ -55,7 +56,6 @@ WriteMemoryCallback(void *contents, size_t size, size_t nmemb, void *userp) | |||||||
|   return realsize; |   return realsize; | ||||||
| } | } | ||||||
|  |  | ||||||
|  |  | ||||||
| int main(void) | int main(void) | ||||||
| { | { | ||||||
|   CURL *curl_handle; |   CURL *curl_handle; | ||||||
| @@ -106,7 +106,6 @@ int main(void) | |||||||
|   /* cleanup curl stuff */ |   /* cleanup curl stuff */ | ||||||
|   curl_easy_cleanup(curl_handle); |   curl_easy_cleanup(curl_handle); | ||||||
|  |  | ||||||
|   if(chunk.memory) |  | ||||||
|   free(chunk.memory); |   free(chunk.memory); | ||||||
|  |  | ||||||
|   /* we're done with libcurl, so clean it up */ |   /* we're done with libcurl, so clean it up */ | ||||||
|   | |||||||
| @@ -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> | ||||||
|  |  * multi socket API usage together with with glib2 | ||||||
|  |  * </DESC> | ||||||
|  |  */ | ||||||
| /* Example application source code using the multi socket interface to | /* Example application source code using the multi socket interface to | ||||||
|  * download many files at once. |  * download many files at once. | ||||||
|  * |  * | ||||||
|   | |||||||
| @@ -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> | ||||||
|  |  * multi socket API usage with libevent 2 | ||||||
|  |  * </DESC> | ||||||
|  |  */ | ||||||
| /* Example application source code using the multi socket interface to | /* Example application source code using the multi socket interface to | ||||||
|    download many files at once. |    download many files at once. | ||||||
|  |  | ||||||
|   | |||||||
| @@ -5,7 +5,7 @@ | |||||||
|  *                            | (__| |_| |  _ <| |___ |  *                            | (__| |_| |  _ <| |___ | ||||||
|  *                             \___|\___/|_| \_\_____| |  *                             \___|\___/|_| \_\_____| | ||||||
|  * |  * | ||||||
|  * Copyright (C) 2012, Daniel Stenberg, <daniel@haxx.se>, et al. |  * Copyright (C) 2012 - 2015, Daniel Stenberg, <daniel@haxx.se>, et al. | ||||||
|  * |  * | ||||||
|  * This software is licensed as described in the file COPYING, which |  * This software is licensed as described in the file COPYING, which | ||||||
|  * you should have received as part of this distribution. The terms |  * you should have received as part of this distribution. The terms | ||||||
| @@ -20,13 +20,13 @@ | |||||||
|  * |  * | ||||||
|  ***************************************************************************/ |  ***************************************************************************/ | ||||||
|  |  | ||||||
|  | /* <DESC> | ||||||
|  |  * Uses the "Streaming HTML parser" to extract the href pieces in a streaming | ||||||
|  |  * manner from a downloaded HTML. | ||||||
|  |  * </DESC> | ||||||
|  |  */ | ||||||
| /* | /* | ||||||
|  * This example uses the "Streaming HTML parser" to extract the href pieces in |  * The HTML parser is found at http://code.google.com/p/htmlstreamparser/ | ||||||
|  * a streaming manner from a downloaded HTML. Kindly donated by Michał |  | ||||||
|  * Kowalczyk. |  | ||||||
|  * |  | ||||||
|  * The parser is found at |  | ||||||
|  * http://code.google.com/p/htmlstreamparser/ |  | ||||||
|  */ |  */ | ||||||
|  |  | ||||||
| #include <stdio.h> | #include <stdio.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,13 +19,12 @@ | |||||||
|  * KIND, either express or implied. |  * KIND, either express or implied. | ||||||
|  * |  * | ||||||
|  ***************************************************************************/ |  ***************************************************************************/ | ||||||
| /* Download a document and use libtidy to parse the HTML. | /* <DESC> | ||||||
|  * Written by Jeff Pohlmeyer |  * Download a document and use libtidy to parse the HTML. | ||||||
|  * |  * </DESC> | ||||||
|  |  */ | ||||||
|  | /* | ||||||
|  * LibTidy => http://tidy.sourceforge.net |  * LibTidy => http://tidy.sourceforge.net | ||||||
|  * |  | ||||||
|  * gcc -Wall -I/usr/local/include tidycurl.c -lcurl -ltidy -o tidycurl |  | ||||||
|  * |  | ||||||
|  */ |  */ | ||||||
|  |  | ||||||
| #include <stdio.h> | #include <stdio.h> | ||||||
|   | |||||||
							
								
								
									
										288
									
								
								docs/examples/http2-download.c
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										288
									
								
								docs/examples/http2-download.c
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,288 @@ | |||||||
|  | /*************************************************************************** | ||||||
|  |  *                                  _   _ ____  _ | ||||||
|  |  *  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. | ||||||
|  |  * | ||||||
|  |  ***************************************************************************/ | ||||||
|  | #include <stdio.h> | ||||||
|  | #include <stdlib.h> | ||||||
|  |  | ||||||
|  | /* somewhat unix-specific */ | ||||||
|  | #include <sys/time.h> | ||||||
|  | #include <unistd.h> | ||||||
|  |  | ||||||
|  | /* curl stuff */ | ||||||
|  | #include <curl/curl.h> | ||||||
|  |  | ||||||
|  | #ifndef CURLPIPE_MULTIPLEX | ||||||
|  | /* This little trick will just make sure that we don't enable pipelining for | ||||||
|  |    libcurls old enough to not have this symbol. It is _not_ defined to zero in | ||||||
|  |    a recent libcurl header. */ | ||||||
|  | #define CURLPIPE_MULTIPLEX 0 | ||||||
|  | #endif | ||||||
|  |  | ||||||
|  | #define NUM_HANDLES 1000 | ||||||
|  |  | ||||||
|  | void *curl_hnd[NUM_HANDLES]; | ||||||
|  | int num_transfers; | ||||||
|  |  | ||||||
|  | /* a handle to number lookup, highly ineffective when we do many | ||||||
|  |    transfers... */ | ||||||
|  | static int hnd2num(CURL *hnd) | ||||||
|  | { | ||||||
|  |   int i; | ||||||
|  |   for(i=0; i< num_transfers; i++) { | ||||||
|  |     if(curl_hnd[i] == hnd) | ||||||
|  |       return i; | ||||||
|  |   } | ||||||
|  |   return 0; /* weird, but just a fail-safe */ | ||||||
|  | } | ||||||
|  |  | ||||||
|  | static | ||||||
|  | void dump(const char *text, int num, unsigned char *ptr, size_t size, | ||||||
|  |           char nohex) | ||||||
|  | { | ||||||
|  |   size_t i; | ||||||
|  |   size_t c; | ||||||
|  |  | ||||||
|  |   unsigned int width=0x10; | ||||||
|  |  | ||||||
|  |   if(nohex) | ||||||
|  |     /* without the hex output, we can fit more on screen */ | ||||||
|  |     width = 0x40; | ||||||
|  |  | ||||||
|  |   fprintf(stderr, "%d %s, %ld bytes (0x%lx)\n", | ||||||
|  |           num, text, (long)size, (long)size); | ||||||
|  |  | ||||||
|  |   for(i=0; i<size; i+= width) { | ||||||
|  |  | ||||||
|  |     fprintf(stderr, "%4.4lx: ", (long)i); | ||||||
|  |  | ||||||
|  |     if(!nohex) { | ||||||
|  |       /* hex not disabled, show it */ | ||||||
|  |       for(c = 0; c < width; c++) | ||||||
|  |         if(i+c < size) | ||||||
|  |           fprintf(stderr, "%02x ", ptr[i+c]); | ||||||
|  |         else | ||||||
|  |           fputs("   ", stderr); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     for(c = 0; (c < width) && (i+c < size); c++) { | ||||||
|  |       /* check for 0D0A; if found, skip past and start a new line of output */ | ||||||
|  |       if (nohex && (i+c+1 < size) && ptr[i+c]==0x0D && ptr[i+c+1]==0x0A) { | ||||||
|  |         i+=(c+2-width); | ||||||
|  |         break; | ||||||
|  |       } | ||||||
|  |       fprintf(stderr, "%c", | ||||||
|  |               (ptr[i+c]>=0x20) && (ptr[i+c]<0x80)?ptr[i+c]:'.'); | ||||||
|  |       /* check again for 0D0A, to avoid an extra \n if it's at width */ | ||||||
|  |       if (nohex && (i+c+2 < size) && ptr[i+c+1]==0x0D && ptr[i+c+2]==0x0A) { | ||||||
|  |         i+=(c+3-width); | ||||||
|  |         break; | ||||||
|  |       } | ||||||
|  |     } | ||||||
|  |     fputc('\n', stderr); /* newline */ | ||||||
|  |   } | ||||||
|  | } | ||||||
|  |  | ||||||
|  | static | ||||||
|  | int my_trace(CURL *handle, curl_infotype type, | ||||||
|  |              char *data, size_t size, | ||||||
|  |              void *userp) | ||||||
|  | { | ||||||
|  |   const char *text; | ||||||
|  |   int num = hnd2num(handle); | ||||||
|  |   (void)handle; /* prevent compiler warning */ | ||||||
|  |   (void)userp; | ||||||
|  |   switch (type) { | ||||||
|  |   case CURLINFO_TEXT: | ||||||
|  |     fprintf(stderr, "== %d Info: %s", num, data); | ||||||
|  |   default: /* in case a new one is introduced to shock us */ | ||||||
|  |     return 0; | ||||||
|  |  | ||||||
|  |   case CURLINFO_HEADER_OUT: | ||||||
|  |     text = "=> Send header"; | ||||||
|  |     break; | ||||||
|  |   case CURLINFO_DATA_OUT: | ||||||
|  |     text = "=> Send data"; | ||||||
|  |     break; | ||||||
|  |   case CURLINFO_SSL_DATA_OUT: | ||||||
|  |     text = "=> Send SSL data"; | ||||||
|  |     break; | ||||||
|  |   case CURLINFO_HEADER_IN: | ||||||
|  |     text = "<= Recv header"; | ||||||
|  |     break; | ||||||
|  |   case CURLINFO_DATA_IN: | ||||||
|  |     text = "<= Recv data"; | ||||||
|  |     break; | ||||||
|  |   case CURLINFO_SSL_DATA_IN: | ||||||
|  |     text = "<= Recv SSL data"; | ||||||
|  |     break; | ||||||
|  |   } | ||||||
|  |  | ||||||
|  |   dump(text, num, (unsigned char *)data, size, 1); | ||||||
|  |   return 0; | ||||||
|  | } | ||||||
|  |  | ||||||
|  | static void setup(CURL *hnd, int num) | ||||||
|  | { | ||||||
|  |   FILE *out; | ||||||
|  |   char filename[128]; | ||||||
|  |  | ||||||
|  |   sprintf(filename, "dl-%d", num); | ||||||
|  |  | ||||||
|  |   out = fopen(filename, "wb"); | ||||||
|  |  | ||||||
|  |   /* write to this file */ | ||||||
|  |   curl_easy_setopt(hnd, CURLOPT_WRITEDATA, out); | ||||||
|  |  | ||||||
|  |   /* set the same URL */ | ||||||
|  |   curl_easy_setopt(hnd, CURLOPT_URL, "https://localhost:8443/index.html"); | ||||||
|  |  | ||||||
|  |   /* send it verbose for max debuggaility */ | ||||||
|  |   curl_easy_setopt(hnd, CURLOPT_VERBOSE, 1L); | ||||||
|  |   curl_easy_setopt(hnd, CURLOPT_DEBUGFUNCTION, my_trace); | ||||||
|  |  | ||||||
|  |   /* HTTP/2 please */ | ||||||
|  |   curl_easy_setopt(hnd, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_2_0); | ||||||
|  |  | ||||||
|  |   /* we use a self-signed test server, skip verification during debugging */ | ||||||
|  |   curl_easy_setopt(hnd, CURLOPT_SSL_VERIFYPEER, 0L); | ||||||
|  |   curl_easy_setopt(hnd, CURLOPT_SSL_VERIFYHOST, 0L); | ||||||
|  |  | ||||||
|  | #if (CURLPIPE_MULTIPLEX > 0) | ||||||
|  |   /* wait for pipe connection to confirm */ | ||||||
|  |   curl_easy_setopt(hnd, CURLOPT_PIPEWAIT, 1L); | ||||||
|  | #endif | ||||||
|  |  | ||||||
|  |   curl_hnd[num] = hnd; | ||||||
|  | } | ||||||
|  |  | ||||||
|  | /* | ||||||
|  |  * Simply download two files over HTTP/2, using the same physical connection! | ||||||
|  |  */ | ||||||
|  | int main(int argc, char **argv) | ||||||
|  | { | ||||||
|  |   CURL *easy[NUM_HANDLES]; | ||||||
|  |   CURLM *multi_handle; | ||||||
|  |   int i; | ||||||
|  |   int still_running; /* keep number of running handles */ | ||||||
|  |  | ||||||
|  |   if(argc > 1) | ||||||
|  |     /* if given a number, do that many transfers */ | ||||||
|  |     num_transfers = atoi(argv[1]); | ||||||
|  |  | ||||||
|  |   if(!num_transfers || (num_transfers > NUM_HANDLES)) | ||||||
|  |     num_transfers = 3; /* a suitable low default */ | ||||||
|  |  | ||||||
|  |   /* init a multi stack */ | ||||||
|  |   multi_handle = curl_multi_init(); | ||||||
|  |  | ||||||
|  |   for(i=0; i<num_transfers; i++) { | ||||||
|  |     easy[i] = curl_easy_init(); | ||||||
|  |     /* set options */ | ||||||
|  |     setup(easy[i], i); | ||||||
|  |  | ||||||
|  |     /* add the individual transfer */ | ||||||
|  |     curl_multi_add_handle(multi_handle, easy[i]); | ||||||
|  |   } | ||||||
|  |  | ||||||
|  |   curl_multi_setopt(multi_handle, CURLMOPT_PIPELINING, CURLPIPE_MULTIPLEX); | ||||||
|  |  | ||||||
|  |   /* we start some action by calling perform right away */ | ||||||
|  |   curl_multi_perform(multi_handle, &still_running); | ||||||
|  |  | ||||||
|  |   do { | ||||||
|  |     struct timeval timeout; | ||||||
|  |     int rc; /* select() return code */ | ||||||
|  |     CURLMcode mc; /* curl_multi_fdset() return code */ | ||||||
|  |  | ||||||
|  |     fd_set fdread; | ||||||
|  |     fd_set fdwrite; | ||||||
|  |     fd_set fdexcep; | ||||||
|  |     int maxfd = -1; | ||||||
|  |  | ||||||
|  |     long curl_timeo = -1; | ||||||
|  |  | ||||||
|  |     FD_ZERO(&fdread); | ||||||
|  |     FD_ZERO(&fdwrite); | ||||||
|  |     FD_ZERO(&fdexcep); | ||||||
|  |  | ||||||
|  |     /* set a suitable timeout to play around with */ | ||||||
|  |     timeout.tv_sec = 1; | ||||||
|  |     timeout.tv_usec = 0; | ||||||
|  |  | ||||||
|  |     curl_multi_timeout(multi_handle, &curl_timeo); | ||||||
|  |     if(curl_timeo >= 0) { | ||||||
|  |       timeout.tv_sec = curl_timeo / 1000; | ||||||
|  |       if(timeout.tv_sec > 1) | ||||||
|  |         timeout.tv_sec = 1; | ||||||
|  |       else | ||||||
|  |         timeout.tv_usec = (curl_timeo % 1000) * 1000; | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /* get file descriptors from the transfers */ | ||||||
|  |     mc = curl_multi_fdset(multi_handle, &fdread, &fdwrite, &fdexcep, &maxfd); | ||||||
|  |  | ||||||
|  |     if(mc != CURLM_OK) | ||||||
|  |     { | ||||||
|  |       fprintf(stderr, "curl_multi_fdset() failed, code %d.\n", mc); | ||||||
|  |       break; | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /* On success the value of maxfd is guaranteed to be >= -1. We call | ||||||
|  |        select(maxfd + 1, ...); specially in case of (maxfd == -1) there are | ||||||
|  |        no fds ready yet so we call select(0, ...) --or Sleep() on Windows-- | ||||||
|  |        to sleep 100ms, which is the minimum suggested value in the | ||||||
|  |        curl_multi_fdset() doc. */ | ||||||
|  |  | ||||||
|  |     if(maxfd == -1) { | ||||||
|  | #ifdef _WIN32 | ||||||
|  |       Sleep(100); | ||||||
|  |       rc = 0; | ||||||
|  | #else | ||||||
|  |       /* Portable sleep for platforms other than Windows. */ | ||||||
|  |       struct timeval wait = { 0, 100 * 1000 }; /* 100ms */ | ||||||
|  |       rc = select(0, NULL, NULL, NULL, &wait); | ||||||
|  | #endif | ||||||
|  |     } | ||||||
|  |     else { | ||||||
|  |       /* Note that on some platforms 'timeout' may be modified by select(). | ||||||
|  |          If you need access to the original value save a copy beforehand. */ | ||||||
|  |       rc = select(maxfd+1, &fdread, &fdwrite, &fdexcep, &timeout); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     switch(rc) { | ||||||
|  |     case -1: | ||||||
|  |       /* select error */ | ||||||
|  |       break; | ||||||
|  |     case 0: | ||||||
|  |     default: | ||||||
|  |       /* timeout or readable/writable sockets */ | ||||||
|  |       curl_multi_perform(multi_handle, &still_running); | ||||||
|  |       break; | ||||||
|  |     } | ||||||
|  |   } while(still_running); | ||||||
|  |  | ||||||
|  |   curl_multi_cleanup(multi_handle); | ||||||
|  |  | ||||||
|  |   for(i=0; i<num_transfers; i++) | ||||||
|  |     curl_easy_cleanup(easy[i]); | ||||||
|  |  | ||||||
|  |   return 0; | ||||||
|  | } | ||||||
							
								
								
									
										313
									
								
								docs/examples/http2-serverpush.c
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										313
									
								
								docs/examples/http2-serverpush.c
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,313 @@ | |||||||
|  | /*************************************************************************** | ||||||
|  |  *                                  _   _ ____  _ | ||||||
|  |  *  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. | ||||||
|  |  * | ||||||
|  |  ***************************************************************************/ | ||||||
|  | #include <stdio.h> | ||||||
|  | #include <stdlib.h> | ||||||
|  |  | ||||||
|  | /* somewhat unix-specific */ | ||||||
|  | #include <sys/time.h> | ||||||
|  | #include <unistd.h> | ||||||
|  |  | ||||||
|  | /* curl stuff */ | ||||||
|  | #include <curl/curl.h> | ||||||
|  |  | ||||||
|  | #ifndef CURLPIPE_MULTIPLEX | ||||||
|  | #error "too old libcurl, can't do HTTP/2 server push!" | ||||||
|  | #endif | ||||||
|  |  | ||||||
|  | static | ||||||
|  | void dump(const char *text, unsigned char *ptr, size_t size, | ||||||
|  |           char nohex) | ||||||
|  | { | ||||||
|  |   size_t i; | ||||||
|  |   size_t c; | ||||||
|  |  | ||||||
|  |   unsigned int width=0x10; | ||||||
|  |  | ||||||
|  |   if(nohex) | ||||||
|  |     /* without the hex output, we can fit more on screen */ | ||||||
|  |     width = 0x40; | ||||||
|  |  | ||||||
|  |   fprintf(stderr, "%s, %ld bytes (0x%lx)\n", | ||||||
|  |           text, (long)size, (long)size); | ||||||
|  |  | ||||||
|  |   for(i=0; i<size; i+= width) { | ||||||
|  |  | ||||||
|  |     fprintf(stderr, "%4.4lx: ", (long)i); | ||||||
|  |  | ||||||
|  |     if(!nohex) { | ||||||
|  |       /* hex not disabled, show it */ | ||||||
|  |       for(c = 0; c < width; c++) | ||||||
|  |         if(i+c < size) | ||||||
|  |           fprintf(stderr, "%02x ", ptr[i+c]); | ||||||
|  |         else | ||||||
|  |           fputs("   ", stderr); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     for(c = 0; (c < width) && (i+c < size); c++) { | ||||||
|  |       /* check for 0D0A; if found, skip past and start a new line of output */ | ||||||
|  |       if (nohex && (i+c+1 < size) && ptr[i+c]==0x0D && ptr[i+c+1]==0x0A) { | ||||||
|  |         i+=(c+2-width); | ||||||
|  |         break; | ||||||
|  |       } | ||||||
|  |       fprintf(stderr, "%c", | ||||||
|  |               (ptr[i+c]>=0x20) && (ptr[i+c]<0x80)?ptr[i+c]:'.'); | ||||||
|  |       /* check again for 0D0A, to avoid an extra \n if it's at width */ | ||||||
|  |       if (nohex && (i+c+2 < size) && ptr[i+c+1]==0x0D && ptr[i+c+2]==0x0A) { | ||||||
|  |         i+=(c+3-width); | ||||||
|  |         break; | ||||||
|  |       } | ||||||
|  |     } | ||||||
|  |     fputc('\n', stderr); /* newline */ | ||||||
|  |   } | ||||||
|  | } | ||||||
|  |  | ||||||
|  | static | ||||||
|  | int my_trace(CURL *handle, curl_infotype type, | ||||||
|  |              char *data, size_t size, | ||||||
|  |              void *userp) | ||||||
|  | { | ||||||
|  |   const char *text; | ||||||
|  |   (void)handle; /* prevent compiler warning */ | ||||||
|  |   (void)userp; | ||||||
|  |   switch (type) { | ||||||
|  |   case CURLINFO_TEXT: | ||||||
|  |     fprintf(stderr, "== Info: %s", data); | ||||||
|  |   default: /* in case a new one is introduced to shock us */ | ||||||
|  |     return 0; | ||||||
|  |  | ||||||
|  |   case CURLINFO_HEADER_OUT: | ||||||
|  |     text = "=> Send header"; | ||||||
|  |     break; | ||||||
|  |   case CURLINFO_DATA_OUT: | ||||||
|  |     text = "=> Send data"; | ||||||
|  |     break; | ||||||
|  |   case CURLINFO_SSL_DATA_OUT: | ||||||
|  |     text = "=> Send SSL data"; | ||||||
|  |     break; | ||||||
|  |   case CURLINFO_HEADER_IN: | ||||||
|  |     text = "<= Recv header"; | ||||||
|  |     break; | ||||||
|  |   case CURLINFO_DATA_IN: | ||||||
|  |     text = "<= Recv data"; | ||||||
|  |     break; | ||||||
|  |   case CURLINFO_SSL_DATA_IN: | ||||||
|  |     text = "<= Recv SSL data"; | ||||||
|  |     break; | ||||||
|  |   } | ||||||
|  |  | ||||||
|  |   dump(text, (unsigned char *)data, size, 1); | ||||||
|  |   return 0; | ||||||
|  | } | ||||||
|  |  | ||||||
|  | static void setup(CURL *hnd) | ||||||
|  | { | ||||||
|  |   FILE *out = fopen("dl", "wb"); | ||||||
|  |  | ||||||
|  |   /* write to this file */ | ||||||
|  |   curl_easy_setopt(hnd, CURLOPT_WRITEDATA, out); | ||||||
|  |  | ||||||
|  |   /* set the same URL */ | ||||||
|  |   curl_easy_setopt(hnd, CURLOPT_URL, "https://localhost:8443/index.html"); | ||||||
|  |  | ||||||
|  |   /* send it verbose for max debuggaility */ | ||||||
|  |   curl_easy_setopt(hnd, CURLOPT_VERBOSE, 1L); | ||||||
|  |   curl_easy_setopt(hnd, CURLOPT_DEBUGFUNCTION, my_trace); | ||||||
|  |  | ||||||
|  |   /* HTTP/2 please */ | ||||||
|  |   curl_easy_setopt(hnd, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_2_0); | ||||||
|  |  | ||||||
|  |   /* we use a self-signed test server, skip verification during debugging */ | ||||||
|  |   curl_easy_setopt(hnd, CURLOPT_SSL_VERIFYPEER, 0L); | ||||||
|  |   curl_easy_setopt(hnd, CURLOPT_SSL_VERIFYHOST, 0L); | ||||||
|  |  | ||||||
|  | #if (CURLPIPE_MULTIPLEX > 0) | ||||||
|  |   /* wait for pipe connection to confirm */ | ||||||
|  |   curl_easy_setopt(hnd, CURLOPT_PIPEWAIT, 1L); | ||||||
|  | #endif | ||||||
|  |  | ||||||
|  | } | ||||||
|  |  | ||||||
|  | /* called when there's an incoming push */ | ||||||
|  | static int server_push_callback(CURL *parent, | ||||||
|  |                                 CURL *easy, | ||||||
|  |                                 size_t num_headers, | ||||||
|  |                                 struct curl_pushheaders *headers, | ||||||
|  |                                 void *userp) | ||||||
|  | { | ||||||
|  |   char *headp; | ||||||
|  |   size_t i; | ||||||
|  |   int *transfers = (int *)userp; | ||||||
|  |   char filename[128]; | ||||||
|  |   FILE *out; | ||||||
|  |   static unsigned int count = 0; | ||||||
|  |  | ||||||
|  |   (void)parent; /* we have no use for this */ | ||||||
|  |  | ||||||
|  |   sprintf(filename, "push%u", count++); | ||||||
|  |  | ||||||
|  |   /* here's a new stream, save it in a new file for each new push */ | ||||||
|  |   out = fopen(filename, "wb"); | ||||||
|  |  | ||||||
|  |   /* write to this file */ | ||||||
|  |   curl_easy_setopt(easy, CURLOPT_WRITEDATA, out); | ||||||
|  |  | ||||||
|  |   fprintf(stderr, "**** push callback approves stream %u, got %d headers!\n", | ||||||
|  |           count, (int)num_headers); | ||||||
|  |  | ||||||
|  |   for(i=0; i<num_headers; i++) { | ||||||
|  |     headp = curl_pushheader_bynum(headers, i); | ||||||
|  |     fprintf(stderr, "**** header %u: %s\n", (int)i, headp); | ||||||
|  |   } | ||||||
|  |  | ||||||
|  |   headp = curl_pushheader_byname(headers, ":path"); | ||||||
|  |   if(headp) { | ||||||
|  |     fprintf(stderr, "**** The PATH is %s\n", headp /* skip :path + colon */ ); | ||||||
|  |   } | ||||||
|  |  | ||||||
|  |   (*transfers)++; /* one more */ | ||||||
|  |   return CURL_PUSH_OK; | ||||||
|  | } | ||||||
|  |  | ||||||
|  |  | ||||||
|  | /* | ||||||
|  |  * Download a file over HTTP/2, take care of server push. | ||||||
|  |  */ | ||||||
|  | int main(void) | ||||||
|  | { | ||||||
|  |   CURL *easy; | ||||||
|  |   CURLM *multi_handle; | ||||||
|  |   int still_running; /* keep number of running handles */ | ||||||
|  |   int transfers=1; /* we start with one */ | ||||||
|  |   struct CURLMsg *m; | ||||||
|  |  | ||||||
|  |   /* init a multi stack */ | ||||||
|  |   multi_handle = curl_multi_init(); | ||||||
|  |  | ||||||
|  |   easy = curl_easy_init(); | ||||||
|  |  | ||||||
|  |   /* set options */ | ||||||
|  |   setup(easy); | ||||||
|  |  | ||||||
|  |   /* add the easy transfer */ | ||||||
|  |   curl_multi_add_handle(multi_handle, easy); | ||||||
|  |  | ||||||
|  |   curl_multi_setopt(multi_handle, CURLMOPT_PIPELINING, CURLPIPE_MULTIPLEX); | ||||||
|  |   curl_multi_setopt(multi_handle, CURLMOPT_PUSHFUNCTION, server_push_callback); | ||||||
|  |   curl_multi_setopt(multi_handle, CURLMOPT_PUSHDATA, &transfers); | ||||||
|  |  | ||||||
|  |   /* we start some action by calling perform right away */ | ||||||
|  |   curl_multi_perform(multi_handle, &still_running); | ||||||
|  |  | ||||||
|  |   do { | ||||||
|  |     struct timeval timeout; | ||||||
|  |     int rc; /* select() return code */ | ||||||
|  |     CURLMcode mc; /* curl_multi_fdset() return code */ | ||||||
|  |  | ||||||
|  |     fd_set fdread; | ||||||
|  |     fd_set fdwrite; | ||||||
|  |     fd_set fdexcep; | ||||||
|  |     int maxfd = -1; | ||||||
|  |  | ||||||
|  |     long curl_timeo = -1; | ||||||
|  |  | ||||||
|  |     FD_ZERO(&fdread); | ||||||
|  |     FD_ZERO(&fdwrite); | ||||||
|  |     FD_ZERO(&fdexcep); | ||||||
|  |  | ||||||
|  |     /* set a suitable timeout to play around with */ | ||||||
|  |     timeout.tv_sec = 1; | ||||||
|  |     timeout.tv_usec = 0; | ||||||
|  |  | ||||||
|  |     curl_multi_timeout(multi_handle, &curl_timeo); | ||||||
|  |     if(curl_timeo >= 0) { | ||||||
|  |       timeout.tv_sec = curl_timeo / 1000; | ||||||
|  |       if(timeout.tv_sec > 1) | ||||||
|  |         timeout.tv_sec = 1; | ||||||
|  |       else | ||||||
|  |         timeout.tv_usec = (curl_timeo % 1000) * 1000; | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /* get file descriptors from the transfers */ | ||||||
|  |     mc = curl_multi_fdset(multi_handle, &fdread, &fdwrite, &fdexcep, &maxfd); | ||||||
|  |  | ||||||
|  |     if(mc != CURLM_OK) { | ||||||
|  |       fprintf(stderr, "curl_multi_fdset() failed, code %d.\n", mc); | ||||||
|  |       break; | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /* On success the value of maxfd is guaranteed to be >= -1. We call | ||||||
|  |        select(maxfd + 1, ...); specially in case of (maxfd == -1) there are | ||||||
|  |        no fds ready yet so we call select(0, ...) --or Sleep() on Windows-- | ||||||
|  |        to sleep 100ms, which is the minimum suggested value in the | ||||||
|  |        curl_multi_fdset() doc. */ | ||||||
|  |  | ||||||
|  |     if(maxfd == -1) { | ||||||
|  | #ifdef _WIN32 | ||||||
|  |       Sleep(100); | ||||||
|  |       rc = 0; | ||||||
|  | #else | ||||||
|  |       /* Portable sleep for platforms other than Windows. */ | ||||||
|  |       struct timeval wait = { 0, 100 * 1000 }; /* 100ms */ | ||||||
|  |       rc = select(0, NULL, NULL, NULL, &wait); | ||||||
|  | #endif | ||||||
|  |     } | ||||||
|  |     else { | ||||||
|  |       /* Note that on some platforms 'timeout' may be modified by select(). | ||||||
|  |          If you need access to the original value save a copy beforehand. */ | ||||||
|  |       rc = select(maxfd+1, &fdread, &fdwrite, &fdexcep, &timeout); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     switch(rc) { | ||||||
|  |     case -1: | ||||||
|  |       /* select error */ | ||||||
|  |       break; | ||||||
|  |     case 0: | ||||||
|  |     default: | ||||||
|  |       /* timeout or readable/writable sockets */ | ||||||
|  |       curl_multi_perform(multi_handle, &still_running); | ||||||
|  |       break; | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /* | ||||||
|  |      * A little caution when doing server push is that libcurl itself has | ||||||
|  |      * created and added one or more easy handles but we need to clean them up | ||||||
|  |      * when we are done. | ||||||
|  |      */ | ||||||
|  |  | ||||||
|  |     do { | ||||||
|  |       int msgq = 0;; | ||||||
|  |       m = curl_multi_info_read(multi_handle, &msgq); | ||||||
|  |       if(m && (m->msg == CURLMSG_DONE)) { | ||||||
|  |         CURL *e = m->easy_handle; | ||||||
|  |         transfers--; | ||||||
|  |         curl_multi_remove_handle(multi_handle, e); | ||||||
|  |         curl_easy_cleanup(e); | ||||||
|  |       } | ||||||
|  |     } while(m); | ||||||
|  |  | ||||||
|  |   } while(transfers); /* as long as we have transfers going */ | ||||||
|  |  | ||||||
|  |   curl_multi_cleanup(multi_handle); | ||||||
|  |  | ||||||
|  |  | ||||||
|  |   return 0; | ||||||
|  | } | ||||||
							
								
								
									
										352
									
								
								docs/examples/http2-upload.c
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										352
									
								
								docs/examples/http2-upload.c
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,352 @@ | |||||||
|  | /*************************************************************************** | ||||||
|  |  *                                  _   _ ____  _ | ||||||
|  |  *  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. | ||||||
|  |  * | ||||||
|  |  ***************************************************************************/ | ||||||
|  | #include <stdio.h> | ||||||
|  | #include <stdlib.h> | ||||||
|  | #include <fcntl.h> | ||||||
|  | #include <sys/stat.h> | ||||||
|  |  | ||||||
|  | /* somewhat unix-specific */ | ||||||
|  | #include <sys/time.h> | ||||||
|  | #include <unistd.h> | ||||||
|  |  | ||||||
|  | /* curl stuff */ | ||||||
|  | #include <curl/curl.h> | ||||||
|  |  | ||||||
|  | #ifndef CURLPIPE_MULTIPLEX | ||||||
|  | /* This little trick will just make sure that we don't enable pipelining for | ||||||
|  |    libcurls old enough to not have this symbol. It is _not_ defined to zero in | ||||||
|  |    a recent libcurl header. */ | ||||||
|  | #define CURLPIPE_MULTIPLEX 0 | ||||||
|  | #endif | ||||||
|  |  | ||||||
|  | #define NUM_HANDLES 1000 | ||||||
|  |  | ||||||
|  | void *curl_hnd[NUM_HANDLES]; | ||||||
|  | int num_transfers; | ||||||
|  |  | ||||||
|  | /* a handle to number lookup, highly ineffective when we do many | ||||||
|  |    transfers... */ | ||||||
|  | static int hnd2num(CURL *hnd) | ||||||
|  | { | ||||||
|  |   int i; | ||||||
|  |   for(i=0; i< num_transfers; i++) { | ||||||
|  |     if(curl_hnd[i] == hnd) | ||||||
|  |       return i; | ||||||
|  |   } | ||||||
|  |   return 0; /* weird, but just a fail-safe */ | ||||||
|  | } | ||||||
|  |  | ||||||
|  | static | ||||||
|  | void dump(const char *text, int num, unsigned char *ptr, size_t size, | ||||||
|  |           char nohex) | ||||||
|  | { | ||||||
|  |   size_t i; | ||||||
|  |   size_t c; | ||||||
|  |   unsigned int width=0x10; | ||||||
|  |  | ||||||
|  |   if(nohex) | ||||||
|  |     /* without the hex output, we can fit more on screen */ | ||||||
|  |     width = 0x40; | ||||||
|  |  | ||||||
|  |   fprintf(stderr, "%d %s, %ld bytes (0x%lx)\n", | ||||||
|  |           num, text, (long)size, (long)size); | ||||||
|  |  | ||||||
|  |   for(i=0; i<size; i+= width) { | ||||||
|  |  | ||||||
|  |     fprintf(stderr, "%4.4lx: ", (long)i); | ||||||
|  |  | ||||||
|  |     if(!nohex) { | ||||||
|  |       /* hex not disabled, show it */ | ||||||
|  |       for(c = 0; c < width; c++) | ||||||
|  |         if(i+c < size) | ||||||
|  |           fprintf(stderr, "%02x ", ptr[i+c]); | ||||||
|  |         else | ||||||
|  |           fputs("   ", stderr); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     for(c = 0; (c < width) && (i+c < size); c++) { | ||||||
|  |       /* check for 0D0A; if found, skip past and start a new line of output */ | ||||||
|  |       if (nohex && (i+c+1 < size) && ptr[i+c]==0x0D && ptr[i+c+1]==0x0A) { | ||||||
|  |         i+=(c+2-width); | ||||||
|  |         break; | ||||||
|  |       } | ||||||
|  |       fprintf(stderr, "%c", | ||||||
|  |               (ptr[i+c]>=0x20) && (ptr[i+c]<0x80)?ptr[i+c]:'.'); | ||||||
|  |       /* check again for 0D0A, to avoid an extra \n if it's at width */ | ||||||
|  |       if (nohex && (i+c+2 < size) && ptr[i+c+1]==0x0D && ptr[i+c+2]==0x0A) { | ||||||
|  |         i+=(c+3-width); | ||||||
|  |         break; | ||||||
|  |       } | ||||||
|  |     } | ||||||
|  |     fputc('\n', stderr); /* newline */ | ||||||
|  |   } | ||||||
|  | } | ||||||
|  |  | ||||||
|  | static | ||||||
|  | int my_trace(CURL *handle, curl_infotype type, | ||||||
|  |              char *data, size_t size, | ||||||
|  |              void *userp) | ||||||
|  | { | ||||||
|  |   char timebuf[20]; | ||||||
|  |   const char *text; | ||||||
|  |   int num = hnd2num(handle); | ||||||
|  |   static time_t epoch_offset; | ||||||
|  |   static int    known_offset; | ||||||
|  |   struct timeval tv; | ||||||
|  |   time_t secs; | ||||||
|  |   struct tm *now; | ||||||
|  |  | ||||||
|  |   (void)handle; /* prevent compiler warning */ | ||||||
|  |   (void)userp; | ||||||
|  |  | ||||||
|  |   gettimeofday(&tv, NULL); | ||||||
|  |   if(!known_offset) { | ||||||
|  |     epoch_offset = time(NULL) - tv.tv_sec; | ||||||
|  |     known_offset = 1; | ||||||
|  |   } | ||||||
|  |   secs = epoch_offset + tv.tv_sec; | ||||||
|  |   now = localtime(&secs);  /* not thread safe but we don't care */ | ||||||
|  |   snprintf(timebuf, sizeof(timebuf), "%02d:%02d:%02d.%06ld", | ||||||
|  |            now->tm_hour, now->tm_min, now->tm_sec, (long)tv.tv_usec); | ||||||
|  |  | ||||||
|  |   switch (type) { | ||||||
|  |   case CURLINFO_TEXT: | ||||||
|  |     fprintf(stderr, "%s [%d] Info: %s", timebuf, num, data); | ||||||
|  |   default: /* in case a new one is introduced to shock us */ | ||||||
|  |     return 0; | ||||||
|  |  | ||||||
|  |   case CURLINFO_HEADER_OUT: | ||||||
|  |     text = "=> Send header"; | ||||||
|  |     break; | ||||||
|  |   case CURLINFO_DATA_OUT: | ||||||
|  |     text = "=> Send data"; | ||||||
|  |     break; | ||||||
|  |   case CURLINFO_SSL_DATA_OUT: | ||||||
|  |     text = "=> Send SSL data"; | ||||||
|  |     break; | ||||||
|  |   case CURLINFO_HEADER_IN: | ||||||
|  |     text = "<= Recv header"; | ||||||
|  |     break; | ||||||
|  |   case CURLINFO_DATA_IN: | ||||||
|  |     text = "<= Recv data"; | ||||||
|  |     break; | ||||||
|  |   case CURLINFO_SSL_DATA_IN: | ||||||
|  |     text = "<= Recv SSL data"; | ||||||
|  |     break; | ||||||
|  |   } | ||||||
|  |  | ||||||
|  |   dump(text, num, (unsigned char *)data, size, 1); | ||||||
|  |   return 0; | ||||||
|  | } | ||||||
|  |  | ||||||
|  | struct input { | ||||||
|  |   FILE *in; | ||||||
|  |   size_t bytes_read; /* count up */ | ||||||
|  |   CURL *hnd; | ||||||
|  | }; | ||||||
|  |  | ||||||
|  | static size_t read_callback(void *ptr, size_t size, size_t nmemb, void *userp) | ||||||
|  | { | ||||||
|  |   struct input *i = userp; | ||||||
|  |   size_t retcode = fread(ptr, size, nmemb, i->in); | ||||||
|  |   i->bytes_read += retcode; | ||||||
|  |   return retcode; | ||||||
|  | } | ||||||
|  |  | ||||||
|  | struct input indata[NUM_HANDLES]; | ||||||
|  |  | ||||||
|  | static void setup(CURL *hnd, int num, const char *upload) | ||||||
|  | { | ||||||
|  |   FILE *out; | ||||||
|  |   char url[256]; | ||||||
|  |   char filename[128]; | ||||||
|  |   struct stat file_info; | ||||||
|  |   curl_off_t uploadsize; | ||||||
|  |  | ||||||
|  |   sprintf(filename, "dl-%d", num); | ||||||
|  |   out = fopen(filename, "wb"); | ||||||
|  |  | ||||||
|  |   sprintf(url, "https://localhost:8443/upload-%d", num); | ||||||
|  |  | ||||||
|  |   /* get the file size of the local file */ | ||||||
|  |   stat(upload, &file_info); | ||||||
|  |   uploadsize = file_info.st_size; | ||||||
|  |  | ||||||
|  |   indata[num].in = fopen(upload, "rb"); | ||||||
|  |   indata[num].hnd = hnd; | ||||||
|  |  | ||||||
|  |   /* write to this file */ | ||||||
|  |   curl_easy_setopt(hnd, CURLOPT_WRITEDATA, out); | ||||||
|  |  | ||||||
|  |   /* we want to use our own read function */ | ||||||
|  |   curl_easy_setopt(hnd, CURLOPT_READFUNCTION, read_callback); | ||||||
|  |   /* read from this file */ | ||||||
|  |   curl_easy_setopt(hnd, CURLOPT_READDATA, &indata[num]); | ||||||
|  |   /* provide the size of the upload */ | ||||||
|  |   curl_easy_setopt(hnd, CURLOPT_INFILESIZE_LARGE, uploadsize); | ||||||
|  |  | ||||||
|  |   /* send in the URL to store the upload as */ | ||||||
|  |   curl_easy_setopt(hnd, CURLOPT_URL, url); | ||||||
|  |  | ||||||
|  |   /* upload please */ | ||||||
|  |   curl_easy_setopt(hnd, CURLOPT_UPLOAD, 1L); | ||||||
|  |  | ||||||
|  |   /* send it verbose for max debuggaility */ | ||||||
|  |   curl_easy_setopt(hnd, CURLOPT_VERBOSE, 1L); | ||||||
|  |   curl_easy_setopt(hnd, CURLOPT_DEBUGFUNCTION, my_trace); | ||||||
|  |  | ||||||
|  |   /* HTTP/2 please */ | ||||||
|  |   curl_easy_setopt(hnd, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_2_0); | ||||||
|  |  | ||||||
|  |   /* we use a self-signed test server, skip verification during debugging */ | ||||||
|  |   curl_easy_setopt(hnd, CURLOPT_SSL_VERIFYPEER, 0L); | ||||||
|  |   curl_easy_setopt(hnd, CURLOPT_SSL_VERIFYHOST, 0L); | ||||||
|  |  | ||||||
|  | #if (CURLPIPE_MULTIPLEX > 0) | ||||||
|  |   /* wait for pipe connection to confirm */ | ||||||
|  |   curl_easy_setopt(hnd, CURLOPT_PIPEWAIT, 1L); | ||||||
|  | #endif | ||||||
|  |  | ||||||
|  |   curl_hnd[num] = hnd; | ||||||
|  | } | ||||||
|  |  | ||||||
|  | /* | ||||||
|  |  * Upload all files over HTTP/2, using the same physical connection! | ||||||
|  |  */ | ||||||
|  | int main(int argc, char **argv) | ||||||
|  | { | ||||||
|  |   CURL *easy[NUM_HANDLES]; | ||||||
|  |   CURLM *multi_handle; | ||||||
|  |   int i; | ||||||
|  |   int still_running; /* keep number of running handles */ | ||||||
|  |   const char *filename = "index.html"; | ||||||
|  |  | ||||||
|  |   if(argc > 1) | ||||||
|  |     /* if given a number, do that many transfers */ | ||||||
|  |     num_transfers = atoi(argv[1]); | ||||||
|  |  | ||||||
|  |   if(argc > 2) | ||||||
|  |     /* if given a file name, upload this! */ | ||||||
|  |     filename = argv[2]; | ||||||
|  |  | ||||||
|  |   if(!num_transfers || (num_transfers > NUM_HANDLES)) | ||||||
|  |     num_transfers = 3; /* a suitable low default */ | ||||||
|  |  | ||||||
|  |   /* init a multi stack */ | ||||||
|  |   multi_handle = curl_multi_init(); | ||||||
|  |  | ||||||
|  |   for(i=0; i<num_transfers; i++) { | ||||||
|  |     easy[i] = curl_easy_init(); | ||||||
|  |     /* set options */ | ||||||
|  |     setup(easy[i], i, filename); | ||||||
|  |  | ||||||
|  |     /* add the individual transfer */ | ||||||
|  |     curl_multi_add_handle(multi_handle, easy[i]); | ||||||
|  |   } | ||||||
|  |  | ||||||
|  |   curl_multi_setopt(multi_handle, CURLMOPT_PIPELINING, CURLPIPE_MULTIPLEX); | ||||||
|  |  | ||||||
|  |   /* We do HTTP/2 so let's stick to one connection per host */ | ||||||
|  |   curl_multi_setopt(multi_handle, CURLMOPT_MAX_HOST_CONNECTIONS, 1L); | ||||||
|  |  | ||||||
|  |   /* we start some action by calling perform right away */ | ||||||
|  |   curl_multi_perform(multi_handle, &still_running); | ||||||
|  |  | ||||||
|  |   do { | ||||||
|  |     struct timeval timeout; | ||||||
|  |     int rc; /* select() return code */ | ||||||
|  |     CURLMcode mc; /* curl_multi_fdset() return code */ | ||||||
|  |  | ||||||
|  |     fd_set fdread; | ||||||
|  |     fd_set fdwrite; | ||||||
|  |     fd_set fdexcep; | ||||||
|  |     int maxfd = -1; | ||||||
|  |  | ||||||
|  |     long curl_timeo = -1; | ||||||
|  |  | ||||||
|  |     FD_ZERO(&fdread); | ||||||
|  |     FD_ZERO(&fdwrite); | ||||||
|  |     FD_ZERO(&fdexcep); | ||||||
|  |  | ||||||
|  |     /* set a suitable timeout to play around with */ | ||||||
|  |     timeout.tv_sec = 1; | ||||||
|  |     timeout.tv_usec = 0; | ||||||
|  |  | ||||||
|  |     curl_multi_timeout(multi_handle, &curl_timeo); | ||||||
|  |     if(curl_timeo >= 0) { | ||||||
|  |       timeout.tv_sec = curl_timeo / 1000; | ||||||
|  |       if(timeout.tv_sec > 1) | ||||||
|  |         timeout.tv_sec = 1; | ||||||
|  |       else | ||||||
|  |         timeout.tv_usec = (curl_timeo % 1000) * 1000; | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /* get file descriptors from the transfers */ | ||||||
|  |     mc = curl_multi_fdset(multi_handle, &fdread, &fdwrite, &fdexcep, &maxfd); | ||||||
|  |  | ||||||
|  |     if(mc != CURLM_OK) | ||||||
|  |     { | ||||||
|  |       fprintf(stderr, "curl_multi_fdset() failed, code %d.\n", mc); | ||||||
|  |       break; | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /* On success the value of maxfd is guaranteed to be >= -1. We call | ||||||
|  |        select(maxfd + 1, ...); specially in case of (maxfd == -1) there are | ||||||
|  |        no fds ready yet so we call select(0, ...) --or Sleep() on Windows-- | ||||||
|  |        to sleep 100ms, which is the minimum suggested value in the | ||||||
|  |        curl_multi_fdset() doc. */ | ||||||
|  |  | ||||||
|  |     if(maxfd == -1) { | ||||||
|  | #ifdef _WIN32 | ||||||
|  |       Sleep(100); | ||||||
|  |       rc = 0; | ||||||
|  | #else | ||||||
|  |       /* Portable sleep for platforms other than Windows. */ | ||||||
|  |       struct timeval wait = { 0, 100 * 1000 }; /* 100ms */ | ||||||
|  |       rc = select(0, NULL, NULL, NULL, &wait); | ||||||
|  | #endif | ||||||
|  |     } | ||||||
|  |     else { | ||||||
|  |       /* Note that on some platforms 'timeout' may be modified by select(). | ||||||
|  |          If you need access to the original value save a copy beforehand. */ | ||||||
|  |       rc = select(maxfd+1, &fdread, &fdwrite, &fdexcep, &timeout); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     switch(rc) { | ||||||
|  |     case -1: | ||||||
|  |       /* select error */ | ||||||
|  |       break; | ||||||
|  |     case 0: | ||||||
|  |     default: | ||||||
|  |       /* timeout or readable/writable sockets */ | ||||||
|  |       curl_multi_perform(multi_handle, &still_running); | ||||||
|  |       break; | ||||||
|  |     } | ||||||
|  |   } while(still_running); | ||||||
|  |  | ||||||
|  |   curl_multi_cleanup(multi_handle); | ||||||
|  |  | ||||||
|  |   for(i=0; i<num_transfers; i++) | ||||||
|  |     curl_easy_cleanup(easy[i]); | ||||||
|  |  | ||||||
|  |   return 0; | ||||||
|  | } | ||||||
| @@ -60,7 +60,7 @@ int main(void) | |||||||
|      * they have mentioned in their server certificate's commonName (or |      * they have mentioned in their server certificate's commonName (or | ||||||
|      * subjectAltName) fields, libcurl will refuse to connect. You can skip |      * subjectAltName) fields, libcurl will refuse to connect. You can skip | ||||||
|      * this check, but this will make the connection less secure. */ |      * this check, but this will make the connection less secure. */ | ||||||
| #ifdef SKIP_HOSTNAME_VERFICATION | #ifdef SKIP_HOSTNAME_VERIFICATION | ||||||
|     curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 0L); |     curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 0L); | ||||||
| #endif | #endif | ||||||
|  |  | ||||||
|   | |||||||
| @@ -64,7 +64,7 @@ int main(void) | |||||||
|   curl = curl_easy_init(); |   curl = curl_easy_init(); | ||||||
|   multi_handle = curl_multi_init(); |   multi_handle = curl_multi_init(); | ||||||
|  |  | ||||||
|   /* initalize custom header list (stating that Expect: 100-continue is not |   /* initialize custom header list (stating that Expect: 100-continue is not | ||||||
|      wanted */ |      wanted */ | ||||||
|   headerlist = curl_slist_append(headerlist, buf); |   headerlist = curl_slist_append(headerlist, buf); | ||||||
|   if(curl && multi_handle) { |   if(curl && multi_handle) { | ||||||
|   | |||||||
| @@ -81,7 +81,7 @@ int main(void) | |||||||
|     } |     } | ||||||
|  |  | ||||||
|     /* 'numfds' being zero means either a timeout or no file descriptors to |     /* 'numfds' being zero means either a timeout or no file descriptors to | ||||||
|        wait for. Try timeout on first occurance, then assume no file |        wait for. Try timeout on first occurrence, then assume no file | ||||||
|        descriptors and no file descriptors to wait for means wait for 100 |        descriptors and no file descriptors to wait for means wait for 100 | ||||||
|        milliseconds. */ |        milliseconds. */ | ||||||
|  |  | ||||||
|   | |||||||
| @@ -69,7 +69,7 @@ int main(void) | |||||||
|   curl_easy_setopt(curl, CURLOPT_USERNAME, "user"); |   curl_easy_setopt(curl, CURLOPT_USERNAME, "user"); | ||||||
|   curl_easy_setopt(curl, CURLOPT_PASSWORD, "secret"); |   curl_easy_setopt(curl, CURLOPT_PASSWORD, "secret"); | ||||||
|  |  | ||||||
|   /* This will retreive message 1 from the user's mailbox */ |   /* This will retrieve message 1 from the user's mailbox */ | ||||||
|   curl_easy_setopt(curl, CURLOPT_URL, "pop3://pop.example.com/1"); |   curl_easy_setopt(curl, CURLOPT_URL, "pop3://pop.example.com/1"); | ||||||
|  |  | ||||||
|   /* Tell the multi stack about our easy handle */ |   /* Tell the multi stack about our easy handle */ | ||||||
|   | |||||||
| @@ -39,7 +39,7 @@ int main(void) | |||||||
|     curl_easy_setopt(curl, CURLOPT_USERNAME, "user"); |     curl_easy_setopt(curl, CURLOPT_USERNAME, "user"); | ||||||
|     curl_easy_setopt(curl, CURLOPT_PASSWORD, "secret"); |     curl_easy_setopt(curl, CURLOPT_PASSWORD, "secret"); | ||||||
|  |  | ||||||
|     /* This will retreive message 1 from the user's mailbox */ |     /* This will retrieve message 1 from the user's mailbox */ | ||||||
|     curl_easy_setopt(curl, CURLOPT_URL, "pop3://pop.example.com/1"); |     curl_easy_setopt(curl, CURLOPT_URL, "pop3://pop.example.com/1"); | ||||||
|  |  | ||||||
|     /* Perform the retr */ |     /* Perform the retr */ | ||||||
|   | |||||||
| @@ -40,7 +40,7 @@ int main(void) | |||||||
|     curl_easy_setopt(curl, CURLOPT_USERNAME, "user"); |     curl_easy_setopt(curl, CURLOPT_USERNAME, "user"); | ||||||
|     curl_easy_setopt(curl, CURLOPT_PASSWORD, "secret"); |     curl_easy_setopt(curl, CURLOPT_PASSWORD, "secret"); | ||||||
|  |  | ||||||
|     /* This will retreive message 1 from the user's mailbox. Note the use of |     /* This will retrieve message 1 from the user's mailbox. Note the use of | ||||||
|      * pop3s:// rather than pop3:// to request a SSL based connection. */ |      * pop3s:// rather than pop3:// to request a SSL based connection. */ | ||||||
|     curl_easy_setopt(curl, CURLOPT_URL, "pop3s://pop.example.com/1"); |     curl_easy_setopt(curl, CURLOPT_URL, "pop3s://pop.example.com/1"); | ||||||
|  |  | ||||||
| @@ -60,7 +60,7 @@ int main(void) | |||||||
|      * they have mentioned in their server certificate's commonName (or |      * they have mentioned in their server certificate's commonName (or | ||||||
|      * subjectAltName) fields, libcurl will refuse to connect. You can skip |      * subjectAltName) fields, libcurl will refuse to connect. You can skip | ||||||
|      * this check, but this will make the connection less secure. */ |      * this check, but this will make the connection less secure. */ | ||||||
| #ifdef SKIP_HOSTNAME_VERFICATION | #ifdef SKIP_HOSTNAME_VERIFICATION | ||||||
|     curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 0L); |     curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 0L); | ||||||
| #endif | #endif | ||||||
|  |  | ||||||
|   | |||||||
| @@ -40,7 +40,7 @@ int main(void) | |||||||
|     curl_easy_setopt(curl, CURLOPT_USERNAME, "user"); |     curl_easy_setopt(curl, CURLOPT_USERNAME, "user"); | ||||||
|     curl_easy_setopt(curl, CURLOPT_PASSWORD, "secret"); |     curl_easy_setopt(curl, CURLOPT_PASSWORD, "secret"); | ||||||
|  |  | ||||||
|     /* This will retreive message 1 from the user's mailbox */ |     /* This will retrieve message 1 from the user's mailbox */ | ||||||
|     curl_easy_setopt(curl, CURLOPT_URL, "pop3://pop.example.com/1"); |     curl_easy_setopt(curl, CURLOPT_URL, "pop3://pop.example.com/1"); | ||||||
|  |  | ||||||
|     /* In this example, we'll start with a plain text connection, and upgrade |     /* In this example, we'll start with a plain text connection, and upgrade | ||||||
|   | |||||||
| @@ -101,7 +101,6 @@ int main(void) | |||||||
|     /* always cleanup */ |     /* always cleanup */ | ||||||
|     curl_easy_cleanup(curl); |     curl_easy_cleanup(curl); | ||||||
|  |  | ||||||
|     if(chunk.memory) |  | ||||||
|     free(chunk.memory); |     free(chunk.memory); | ||||||
|  |  | ||||||
|     /* we're done with libcurl, so clean it up */ |     /* we're done with libcurl, so clean it up */ | ||||||
|   | |||||||
| @@ -73,7 +73,7 @@ int main(int argc, char *argv[]) | |||||||
|                CURLFORM_END); |                CURLFORM_END); | ||||||
|  |  | ||||||
|   curl = curl_easy_init(); |   curl = curl_easy_init(); | ||||||
|   /* initalize custom header list (stating that Expect: 100-continue is not |   /* initialize custom header list (stating that Expect: 100-continue is not | ||||||
|      wanted */ |      wanted */ | ||||||
|   headerlist = curl_slist_append(headerlist, buf); |   headerlist = curl_slist_append(headerlist, buf); | ||||||
|   if(curl) { |   if(curl) { | ||||||
|   | |||||||
| @@ -58,7 +58,7 @@ int main(void) | |||||||
|   CURL *curl; |   CURL *curl; | ||||||
|   CURLcode res; |   CURLcode res; | ||||||
|   struct FtpFile ftpfile={ |   struct FtpFile ftpfile={ | ||||||
|     "yourfile.bin", /* name to store the file as if succesful */ |     "yourfile.bin", /* name to store the file as if successful */ | ||||||
|     NULL |     NULL | ||||||
|   }; |   }; | ||||||
|  |  | ||||||
|   | |||||||
| @@ -24,7 +24,7 @@ | |||||||
| #include <curl/curl.h> | #include <curl/curl.h> | ||||||
|  |  | ||||||
| /* This is a simple example showing how to send mail using libcurl's SMTP | /* This is a simple example showing how to send mail using libcurl's SMTP | ||||||
|  * capabilities. For an exmaple of using the multi interface please see |  * capabilities. For an example of using the multi interface please see | ||||||
|  * smtp-multi.c. |  * smtp-multi.c. | ||||||
|  * |  * | ||||||
|  * Note that this example requires libcurl 7.20.0 or above. |  * Note that this example requires libcurl 7.20.0 or above. | ||||||
|   | |||||||
| @@ -111,7 +111,7 @@ int main(void) | |||||||
|      * they have mentioned in their server certificate's commonName (or |      * they have mentioned in their server certificate's commonName (or | ||||||
|      * subjectAltName) fields, libcurl will refuse to connect. You can skip |      * subjectAltName) fields, libcurl will refuse to connect. You can skip | ||||||
|      * this check, but this will make the connection less secure. */ |      * this check, but this will make the connection less secure. */ | ||||||
| #ifdef SKIP_HOSTNAME_VERFICATION | #ifdef SKIP_HOSTNAME_VERIFICATION | ||||||
|     curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 0L); |     curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 0L); | ||||||
| #endif | #endif | ||||||
|  |  | ||||||
|   | |||||||
| @@ -120,7 +120,7 @@ int main(void) | |||||||
|   XML_SetElementHandler(parser, startElement, endElement); |   XML_SetElementHandler(parser, startElement, endElement); | ||||||
|   XML_SetCharacterDataHandler(parser, characterDataHandler); |   XML_SetCharacterDataHandler(parser, characterDataHandler); | ||||||
|  |  | ||||||
|   /* Initalize a libcurl handle. */ |   /* Initialize a libcurl handle. */ | ||||||
|   curl_global_init(CURL_GLOBAL_ALL ^ CURL_GLOBAL_SSL); |   curl_global_init(CURL_GLOBAL_ALL ^ CURL_GLOBAL_SSL); | ||||||
|   curl_handle = curl_easy_init(); |   curl_handle = curl_easy_init(); | ||||||
|   curl_easy_setopt(curl_handle, CURLOPT_URL, "http://www.w3schools.com/xml/simple.xml"); |   curl_easy_setopt(curl_handle, CURLOPT_URL, "http://www.w3schools.com/xml/simple.xml"); | ||||||
|   | |||||||
							
								
								
									
										1
									
								
								docs/libcurl/.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								docs/libcurl/.gitignore
									
									
									
									
										vendored
									
									
								
							| @@ -1,2 +1,3 @@ | |||||||
| *.html | *.html | ||||||
| *.pdf | *.pdf | ||||||
|  | libcurl-symbols.3 | ||||||
|   | |||||||
| @@ -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 | ||||||
| @@ -40,7 +40,7 @@ man_MANS = curl_easy_cleanup.3 curl_easy_getinfo.3 curl_easy_init.3	 \ | |||||||
|  curl_easy_unescape.3 curl_multi_setopt.3 curl_multi_socket.3		 \ |  curl_easy_unescape.3 curl_multi_setopt.3 curl_multi_socket.3		 \ | ||||||
|  curl_multi_timeout.3 curl_formget.3 curl_multi_assign.3		 \ |  curl_multi_timeout.3 curl_formget.3 curl_multi_assign.3		 \ | ||||||
|  curl_easy_pause.3 curl_easy_recv.3 curl_easy_send.3			 \ |  curl_easy_pause.3 curl_easy_recv.3 curl_easy_send.3			 \ | ||||||
|  curl_multi_socket_action.3 curl_multi_wait.3 |  curl_multi_socket_action.3 curl_multi_wait.3 libcurl-symbols.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,7 +60,7 @@ HTMLPAGES = curl_easy_cleanup.html curl_easy_getinfo.html		\ | |||||||
|  curl_easy_unescape.html curl_multi_setopt.html curl_multi_socket.html	\ |  curl_easy_unescape.html curl_multi_setopt.html curl_multi_socket.html	\ | ||||||
|  curl_multi_timeout.html curl_formget.html curl_multi_assign.html	\ |  curl_multi_timeout.html curl_formget.html curl_multi_assign.html	\ | ||||||
|  curl_easy_pause.html curl_easy_recv.html curl_easy_send.html		\ |  curl_easy_pause.html curl_easy_recv.html curl_easy_send.html		\ | ||||||
|  curl_multi_socket_action.html curl_multi_wait.html |  curl_multi_socket_action.html curl_multi_wait.html libcurl-symbols.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		 \ | ||||||
| @@ -79,19 +79,23 @@ PDFPAGES = curl_easy_cleanup.pdf curl_easy_getinfo.pdf			 \ | |||||||
|  curl_easy_escape.pdf curl_easy_unescape.pdf curl_multi_setopt.pdf	 \ |  curl_easy_escape.pdf curl_easy_unescape.pdf curl_multi_setopt.pdf	 \ | ||||||
|  curl_multi_socket.pdf curl_multi_timeout.pdf curl_formget.pdf		 \ |  curl_multi_socket.pdf curl_multi_timeout.pdf curl_formget.pdf		 \ | ||||||
|  curl_multi_assign.pdf curl_easy_pause.pdf curl_easy_recv.pdf		 \ |  curl_multi_assign.pdf curl_easy_pause.pdf curl_easy_recv.pdf		 \ | ||||||
|  curl_easy_send.pdf curl_multi_socket_action.pdf curl_multi_wait.pdf |  curl_easy_send.pdf curl_multi_socket_action.pdf curl_multi_wait.pdf     \ | ||||||
|  |  libcurl-symbols.pdf | ||||||
|  |  | ||||||
| m4macrodir = $(datadir)/aclocal | m4macrodir = $(datadir)/aclocal | ||||||
| dist_m4macro_DATA = libcurl.m4 | dist_m4macro_DATA = libcurl.m4 | ||||||
|  |  | ||||||
| CLEANFILES = $(HTMLPAGES) $(PDFPAGES) | CLEANFILES = $(HTMLPAGES) $(PDFPAGES) $(TESTS) libcurl-symbols.3 | ||||||
|  |  | ||||||
| EXTRA_DIST = $(man_MANS) $(HTMLPAGES) index.html $(PDFPAGES) ABI \ | EXTRA_DIST = $(man_MANS) $(HTMLPAGES) index.html $(PDFPAGES) ABI \ | ||||||
|   symbols-in-versions symbols.pl |   symbols-in-versions symbols.pl mksymbolsmanpage.pl | ||||||
| MAN2HTML= roffit --mandir=. < $< >$@ | MAN2HTML= roffit --mandir=. < $< >$@ | ||||||
|  |  | ||||||
| SUFFIXES = .3 .html | SUFFIXES = .3 .html | ||||||
|  |  | ||||||
|  | libcurl-symbols.3: $(srcdir)/symbols-in-versions $(srcdir)/mksymbolsmanpage.pl | ||||||
|  | 	perl $(srcdir)/mksymbolsmanpage.pl < $(srcdir)/symbols-in-versions > $@ | ||||||
|  |  | ||||||
| html: $(HTMLPAGES) | html: $(HTMLPAGES) | ||||||
| 	cd opts; make html | 	cd opts; make html | ||||||
|  |  | ||||||
| @@ -107,3 +111,17 @@ pdf: $(PDFPAGES) | |||||||
| 	ps2pdf $$foo.ps $@; \ | 	ps2pdf $$foo.ps $@; \ | ||||||
| 	rm $$foo.ps; \ | 	rm $$foo.ps; \ | ||||||
| 	echo "converted $< to $@") | 	echo "converted $< to $@") | ||||||
|  |  | ||||||
|  | # Make sure each option man page is referenced in the main man page | ||||||
|  | TESTS = check-easy check-multi | ||||||
|  | LOG_COMPILER = $(PERL) | ||||||
|  | # The test fails if the log file contains any text | ||||||
|  | AM_LOG_FLAGS = -p -e 'die "$$_" if ($$_);' | ||||||
|  |  | ||||||
|  | check-easy: $(srcdir)/curl_easy_setopt.3 $(srcdir)/opts/CURLOPT*.3 | ||||||
|  | 	OPTS="$$(ls $(srcdir)/opts/CURLOPT*.3 | $(SED) -e 's,^.*/,,' -e 's,\.3$$,,')" && \ | ||||||
|  | 	for opt in $$OPTS; do grep "^\.IP $$opt$$" $(srcdir)/curl_easy_setopt.3 >/dev/null || echo Missing $$opt; done > $@ | ||||||
|  |  | ||||||
|  | check-multi: $(srcdir)/curl_multi_setopt.3 $(srcdir)/opts/CURLMOPT*.3 | ||||||
|  | 	OPTS="$$(ls $(srcdir)/opts/CURLMOPT*.3 | $(SED) -e 's,^.*/,,' -e 's,\.3$$,,')" && \ | ||||||
|  | 	for opt in $$OPTS; do grep "^\.IP $$opt$$" $(srcdir)/curl_multi_setopt.3 >/dev/null || echo Missing $$opt; done > $@ | ||||||
|   | |||||||
| @@ -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 | ||||||
| @@ -63,5 +63,6 @@ if(curl) { | |||||||
| } | } | ||||||
| .fi | .fi | ||||||
| .SH "SEE ALSO" | .SH "SEE ALSO" | ||||||
| .BR curl_easy_init "(3), " | .BR curl_easy_init "(3), " curl_easy_duphandle "(3), " | ||||||
|  | .BR curl_easy_reset "(3), " | ||||||
|  | .BR curl_multi_cleanup "(3), " curl_multi_remove_handle "(3) " | ||||||
|   | |||||||
| @@ -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 | ||||||
| @@ -47,4 +47,6 @@ in a synchronous way, the input handle may not be in use when cloned. | |||||||
| If this function returns NULL, something went wrong and no valid handle was | If this function returns NULL, something went wrong and no valid handle was | ||||||
| returned. | returned. | ||||||
| .SH "SEE ALSO" | .SH "SEE ALSO" | ||||||
| .BR curl_easy_init "(3)," curl_easy_cleanup "(3)," curl_global_init "(3)" | .BR curl_easy_init "(3)," curl_easy_cleanup "(3)," curl_easy_reset "(3)," | ||||||
|  | .BR curl_global_init "(3)" | ||||||
|  |  | ||||||
|   | |||||||
| @@ -29,13 +29,13 @@ curl_easy_escape - URL encodes the given string | |||||||
| .BI "char *curl_easy_escape( CURL *" curl ", char *" string ", int "length " );" | .BI "char *curl_easy_escape( CURL *" curl ", char *" string ", int "length " );" | ||||||
| .ad | .ad | ||||||
| .SH DESCRIPTION | .SH DESCRIPTION | ||||||
| This function converts the given input \fBstring\fP to an URL encoded string | This function converts the given input \fIstring\fP to a URL encoded string | ||||||
| and returns that as a new allocated string. All input characters that are not | and returns that as a new allocated string. All input characters that are not | ||||||
| a-z, A-Z, 0-9, '-', '.', '_' or '~' are converted to their "URL escaped" | a-z, A-Z, 0-9, '-', '.', '_' or '~' are converted to their "URL escaped" | ||||||
| version (%NN where NN is a two-digit hexadecimal number). | version (%NN where NN is a two-digit hexadecimal number). | ||||||
|  |  | ||||||
| If the \fBlength\fP argument is set to 0 (zero), \fIcurl_easy_escape(3)\fP | If \fIlength\fP is set to 0 (zero), \fIcurl_easy_escape(3)\fP uses strlen() on | ||||||
| uses strlen() on the input \fBurl\fP to find out the size. | the input \fIstring\fP to find out the size. | ||||||
|  |  | ||||||
| You must \fIcurl_free(3)\fP the returned string when you're done with it. | You must \fIcurl_free(3)\fP the returned string when you're done with it. | ||||||
| .SH AVAILABILITY | .SH AVAILABILITY | ||||||
|   | |||||||
| @@ -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 | ||||||
| @@ -236,6 +236,26 @@ option may not be available for all SSL backends; unsupported SSL backends | |||||||
| will return 'CURLSSLBACKEND_NONE' to indicate that they are not supported; | 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) | 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 | 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, | the previous request didn't match (see \fICURLOPT_TIMECONDITION(3)\fP). Alas, | ||||||
|   | |||||||
| @@ -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 | ||||||
| @@ -66,7 +66,7 @@ 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_setopt "(3), " | .BR curl_easy_init "(3), " curl_easy_setopt "(3), " | ||||||
|   | |||||||
| @@ -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 | ||||||
| @@ -42,8 +42,9 @@ 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. Note that \fIcurl_easy_recv(3)\fP does not | calling \fIcurl_easy_perform(3)\fP or \cIcurl_multi_perform(3)\fP. Note that | ||||||
| work on connections that were created without this option. | \fIcurl_easy_recv(3)\fP does not work on connections that were created without | ||||||
|  | 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 - | ||||||
|   | |||||||
| @@ -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 | ||||||
| @@ -40,8 +40,9 @@ connection set-up. | |||||||
| The variable \fBn\fP points to will receive the number of sent bytes. | The variable \fBn\fP points to will receive the number of sent 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. Note that \fIcurl_easy_send(3)\fP will not | calling \fIcurl_easy_perform(3)\fP or \fIcurl_multi_perform()\fP. Note that | ||||||
| work on connections that were created without this option. | \fIcurl_easy_send(3)\fP will not work on connections that were created without | ||||||
|  | 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 - | ||||||
|   | |||||||
| @@ -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 | ||||||
| @@ -50,6 +50,8 @@ really \fICURLOPT_POSTFIELDS(3)\fP, but the alternative that copies the string | |||||||
| \fICURLOPT_COPYPOSTFIELDS(3)\fP has some usage characteristics you need to | \fICURLOPT_COPYPOSTFIELDS(3)\fP has some usage characteristics you need to | ||||||
| read up on. | read up on. | ||||||
|  |  | ||||||
|  | The order in which the options are set does not matter. | ||||||
|  |  | ||||||
| Before version 7.17.0, strings were not copied. Instead the user was forced | Before version 7.17.0, strings were not copied. Instead the user was forced | ||||||
| keep them available until libcurl no longer needed them. | keep them available until libcurl no longer needed them. | ||||||
|  |  | ||||||
| @@ -145,6 +147,8 @@ Fail on HTTP 4xx errors. \fICURLOPT_FAILONERROR(3)\fP | |||||||
| .SH NETWORK OPTIONS | .SH NETWORK OPTIONS | ||||||
| .IP CURLOPT_URL | .IP CURLOPT_URL | ||||||
| URL to work on. See \fICURLOPT_URL(3)\fP | URL to work on. See \fICURLOPT_URL(3)\fP | ||||||
|  | .IP CURLOPT_PATH_AS_IS | ||||||
|  | Disable squashing /../ and /./ sequences in the path. See \fICURLOPT_PATH_AS_IS(3)\fP | ||||||
| .IP CURLOPT_PROTOCOLS | .IP CURLOPT_PROTOCOLS | ||||||
| Allowed protocols. See \fICURLOPT_PROTOCOLS(3)\fP | Allowed protocols. See \fICURLOPT_PROTOCOLS(3)\fP | ||||||
| .IP CURLOPT_REDIR_PROTOCOLS | .IP CURLOPT_REDIR_PROTOCOLS | ||||||
| @@ -163,6 +167,10 @@ Tunnel through the HTTP proxy. \fICURLOPT_HTTPPROXYTUNNEL(3)\fP | |||||||
| Socks5 GSSAPI service name. \fICURLOPT_SOCKS5_GSSAPI_SERVICE(3)\fP | Socks5 GSSAPI service name. \fICURLOPT_SOCKS5_GSSAPI_SERVICE(3)\fP | ||||||
| .IP CURLOPT_SOCKS5_GSSAPI_NEC | .IP CURLOPT_SOCKS5_GSSAPI_NEC | ||||||
| Socks5 GSSAPI NEC mode. See \fICURLOPT_SOCKS5_GSSAPI_NEC(3)\fP | Socks5 GSSAPI NEC mode. See \fICURLOPT_SOCKS5_GSSAPI_NEC(3)\fP | ||||||
|  | .IP CURLOPT_PROXY_SERVICE_NAME | ||||||
|  | Proxy service name. \fICURLOPT_PROXY_SERVICE_NAME(3)\fP | ||||||
|  | .IP CURLOPT_SERVICE_NAME | ||||||
|  | SPNEGO service name. \fICURLOPT_SERVICE_NAME(3)\fP | ||||||
| .IP CURLOPT_INTERFACE | .IP CURLOPT_INTERFACE | ||||||
| Bind connection locally to this. See \fICURLOPT_INTERFACE(3)\fP | Bind connection locally to this. See \fICURLOPT_INTERFACE(3)\fP | ||||||
| .IP CURLOPT_LOCALPORT | .IP CURLOPT_LOCALPORT | ||||||
| @@ -214,6 +222,8 @@ HTTP server authentication methods. See \fICURLOPT_HTTPAUTH(3)\fP | |||||||
| TLS authentication user name. See \fICURLOPT_TLSAUTH_USERNAME(3)\fP | TLS authentication user name. See \fICURLOPT_TLSAUTH_USERNAME(3)\fP | ||||||
| .IP CURLOPT_TLSAUTH_PASSWORD | .IP CURLOPT_TLSAUTH_PASSWORD | ||||||
| TLS authentication password. See \fICURLOPT_TLSAUTH_PASSWORD(3)\fP | TLS authentication password. See \fICURLOPT_TLSAUTH_PASSWORD(3)\fP | ||||||
|  | .IP CURLOPT_TLSAUTH_TYPE | ||||||
|  | TLS authentication methods. See \fICURLOPT_TLSAUTH_TYPE(3)\fP | ||||||
| .IP CURLOPT_PROXYAUTH | .IP CURLOPT_PROXYAUTH | ||||||
| HTTP proxy authentication methods. See \fICURLOPT_PROXYAUTH(3)\fP | HTTP proxy authentication methods. See \fICURLOPT_PROXYAUTH(3)\fP | ||||||
| .IP CURLOPT_SASL_IR | .IP CURLOPT_SASL_IR | ||||||
| @@ -283,6 +293,8 @@ Disable Content decoding. See \fICURLOPT_HTTP_CONTENT_DECODING(3)\fP | |||||||
| Disable Transfer decoding. See \fICURLOPT_HTTP_TRANSFER_DECODING(3)\fP | Disable Transfer decoding. See \fICURLOPT_HTTP_TRANSFER_DECODING(3)\fP | ||||||
| .IP CURLOPT_EXPECT_100_TIMEOUT_MS | .IP CURLOPT_EXPECT_100_TIMEOUT_MS | ||||||
| 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 | ||||||
|  | Wait on connection to pipeline on it. See \fICURLOPT_PIPEWAIT(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 | ||||||
| @@ -411,6 +423,8 @@ Bind name resolves to this interface. See \fICURLOPT_DNS_INTERFACE(3)\fP | |||||||
| Bind name resolves to this IP4 address. See \fICURLOPT_DNS_LOCAL_IP4(3)\fP | Bind name resolves to this IP4 address. See \fICURLOPT_DNS_LOCAL_IP4(3)\fP | ||||||
| .IP CURLOPT_DNS_LOCAL_IP6 | .IP CURLOPT_DNS_LOCAL_IP6 | ||||||
| Bind name resolves to this IP6 address. See \fICURLOPT_DNS_LOCAL_IP6(3)\fP | Bind name resolves to this IP6 address. See \fICURLOPT_DNS_LOCAL_IP6(3)\fP | ||||||
|  | .IP CURLOPT_DNS_SERVERS | ||||||
|  | Preferred DNS servers. See \fICURLOPT_DNS_SERVERS(3)\fP | ||||||
| .IP CURLOPT_ACCEPTTIMEOUT_MS | .IP CURLOPT_ACCEPTTIMEOUT_MS | ||||||
| Timeout for waiting for the server's connect back to be accepted. See \fICURLOPT_ACCEPTTIMEOUT_MS(3)\fP | Timeout for waiting for the server's connect back to be accepted. See \fICURLOPT_ACCEPTTIMEOUT_MS(3)\fP | ||||||
| .SH SSL and SECURITY OPTIONS | .SH SSL and SECURITY OPTIONS | ||||||
| @@ -432,10 +446,16 @@ Enable use of NPN. See \fICURLOPT_SSL_ENABLE_NPN(3)\fP | |||||||
| Use identifier with SSL engine. See \fICURLOPT_SSLENGINE(3)\fP | Use identifier with SSL engine. See \fICURLOPT_SSLENGINE(3)\fP | ||||||
| .IP CURLOPT_SSLENGINE_DEFAULT | .IP CURLOPT_SSLENGINE_DEFAULT | ||||||
| Default SSL engine. See \fICURLOPT_SSLENGINE_DEFAULT(3)\fP | Default SSL engine. See \fICURLOPT_SSLENGINE_DEFAULT(3)\fP | ||||||
|  | .IP CURLOPT_SSL_FALSESTART | ||||||
|  | Enable TLS False Start. See \fICURLOPT_SSL_FALSESTART(3)\fP | ||||||
| .IP CURLOPT_SSLVERSION | .IP CURLOPT_SSLVERSION | ||||||
| SSL version to use. See \fICURLOPT_SSLVERSION(3)\fP | SSL version to use. See \fICURLOPT_SSLVERSION(3)\fP | ||||||
|  | .IP CURLOPT_SSL_VERIFYHOST | ||||||
|  | Verify the host name in the SSL certificate. See \fICURLOPT_SSL_VERIFYHOST(3)\fP | ||||||
| .IP CURLOPT_SSL_VERIFYPEER | .IP CURLOPT_SSL_VERIFYPEER | ||||||
| Verify the SSL certificate. See \fICURLOPT_SSL_VERIFYPEER(3)\fP | Verify the SSL certificate. See \fICURLOPT_SSL_VERIFYPEER(3)\fP | ||||||
|  | .IP CURLOPT_SSL_VERIFYSTATUS | ||||||
|  | Verify the SSL certificate's status. See \fICURLOPT_SSL_VERIFYSTATUS(3)\fP | ||||||
| .IP CURLOPT_CAINFO | .IP CURLOPT_CAINFO | ||||||
| CA cert bundle. See \fICURLOPT_CAINFO(3)\fP | CA cert bundle. See \fICURLOPT_CAINFO(3)\fP | ||||||
| .IP CURLOPT_ISSUERCERT | .IP CURLOPT_ISSUERCERT | ||||||
| @@ -444,8 +464,6 @@ Issuer certificate. See \fICURLOPT_ISSUERCERT(3)\fP | |||||||
| Path to CA cert bundle. See \fICURLOPT_CAPATH(3)\fP | Path to CA cert bundle. See \fICURLOPT_CAPATH(3)\fP | ||||||
| .IP CURLOPT_CRLFILE | .IP CURLOPT_CRLFILE | ||||||
| Certificate Revocation List. See \fICURLOPT_CRLFILE(3)\fP | Certificate Revocation List. See \fICURLOPT_CRLFILE(3)\fP | ||||||
| .IP CURLOPT_SSL_VERIFYHOST |  | ||||||
| Verify the host name in the SSL certificate. See \fICURLOPT_SSL_VERIFYHOST(3)\fP |  | ||||||
| .IP CURLOPT_CERTINFO | .IP CURLOPT_CERTINFO | ||||||
| Extract certificate info. See \fICURLOPT_CERTINFO(3)\fP | Extract certificate info. See \fICURLOPT_CERTINFO(3)\fP | ||||||
| .IP CURLOPT_PINNEDPUBLICKEY | .IP CURLOPT_PINNEDPUBLICKEY | ||||||
|   | |||||||
| @@ -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 | ||||||
| @@ -48,4 +48,4 @@ Added in 7.15.4 and replaces the old \fIcurl_unescape(3)\fP function. | |||||||
| .SH RETURN VALUE | .SH RETURN VALUE | ||||||
| A pointer to a zero terminated string or NULL if it failed. | A pointer to a zero terminated string or NULL if it failed. | ||||||
| .SH "SEE ALSO" | .SH "SEE ALSO" | ||||||
| .BR curl_easy_escape "(3), " curl_free "(3)," RFC 2396 | .BR curl_easy_escape "(3), " curl_free "(3)," RFC 3986 | ||||||
|   | |||||||
| @@ -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 | ||||||
| @@ -91,7 +91,7 @@ Sat, 11 Sep 2004 21:32:11 +0200 | |||||||
| This parser was written to handle date formats specified in RFC 822 (including | This parser was written to handle date formats specified in RFC 822 (including | ||||||
| the update in RFC 1123) using time zone name or time zone delta and RFC 850 | the update in RFC 1123) using time zone name or time zone delta and RFC 850 | ||||||
| (obsoleted by RFC 1036) and ANSI C's asctime() format. These formats are the | (obsoleted by RFC 1036) and ANSI C's asctime() format. These formats are the | ||||||
| only ones RFC2616 says HTTP applications may use. | only ones RFC 7231 says HTTP applications may use. | ||||||
| .SH RETURN VALUE | .SH RETURN VALUE | ||||||
| This function returns -1 when it fails to parse the date string. Otherwise it | This function returns -1 when it fails to parse the date string. Otherwise it | ||||||
| returns the number of seconds as described. | returns the number of seconds as described. | ||||||
|   | |||||||
| @@ -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 | ||||||
| @@ -49,8 +49,8 @@ calling \fIcurl_multi_cleanup(3)\fP, \fIcurl_multi_remove_handle(3)\fP or | |||||||
| \fIcurl_easy_cleanup(3)\fP. | \fIcurl_easy_cleanup(3)\fP. | ||||||
|  |  | ||||||
| The 'CURLMsg' struct is very simple and only contains very basic information. | The 'CURLMsg' struct is very simple and only contains very basic information. | ||||||
| If more involved information is wanted, the particular "easy handle" in | If more involved information is wanted, the particular "easy handle" is | ||||||
| present in that struct and can thus be used in subsequent regular | present in that struct and can be used in subsequent regular | ||||||
| \fIcurl_easy_getinfo(3)\fP calls (or similar): | \fIcurl_easy_getinfo(3)\fP calls (or similar): | ||||||
|  |  | ||||||
| .nf | .nf | ||||||
| @@ -68,6 +68,24 @@ is done, and then \fBresult\fP contains the return code for the easy handle | |||||||
| that just completed. | that just completed. | ||||||
|  |  | ||||||
| At this point, there are no other \fBmsg\fP types defined. | At this point, there are no other \fBmsg\fP types defined. | ||||||
|  | .SH EXAMPLE | ||||||
|  | .nf | ||||||
|  | struct CURLMsg *m; | ||||||
|  |  | ||||||
|  | /* call curl_multi_perform or curl_multi_socket_action first, then loop | ||||||
|  |    through and check if there are any transfers that have completed */ | ||||||
|  |  | ||||||
|  | do { | ||||||
|  |   int msgq = 0; | ||||||
|  |   m = curl_multi_info_read(multi_handle, &msgq); | ||||||
|  |   if(m && (m->msg == CURLMSG_DONE)) { | ||||||
|  |     CURL *e = m->easy_handle; | ||||||
|  |     transfers--; | ||||||
|  |     curl_multi_remove_handle(multi_handle, e); | ||||||
|  |     curl_easy_cleanup(e); | ||||||
|  |   } | ||||||
|  | } while(m); | ||||||
|  | .fi | ||||||
| .SH "RETURN VALUE" | .SH "RETURN VALUE" | ||||||
| A pointer to a filled-in struct, or NULL if it failed or ran out of | A pointer to a filled-in struct, or NULL if it failed or ran out of | ||||||
| structs. It also writes the number of messages left in the queue (after this | structs. It also writes the number of messages left in the queue (after this | ||||||
|   | |||||||
| @@ -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 | ||||||
| @@ -49,6 +49,55 @@ added handle fails very quickly, it may never be counted as a running_handle. | |||||||
|  |  | ||||||
| When \fIrunning_handles\fP is set to zero (0) on the return of this function, | When \fIrunning_handles\fP is set to zero (0) on the return of this function, | ||||||
| there is no longer any transfers in progress. | there is no longer any transfers in progress. | ||||||
|  | .SH EXAMPLE | ||||||
|  | .nf | ||||||
|  | #ifdef _WIN32 | ||||||
|  | #define SHORT_SLEEP Sleep(100) | ||||||
|  | #else | ||||||
|  | #define SHORT_SLEEP usleep(100000) | ||||||
|  | #endif | ||||||
|  |  | ||||||
|  | fd_set fdread; | ||||||
|  | fd_set fdwrite; | ||||||
|  | fd_set fdexcep; | ||||||
|  | int maxfd = -1; | ||||||
|  |  | ||||||
|  | long curl_timeo; | ||||||
|  |  | ||||||
|  | curl_multi_timeout(multi_handle, &curl_timeo); | ||||||
|  | if(curl_timeo < 0) | ||||||
|  |   curl_timeo = 1000; | ||||||
|  |  | ||||||
|  | timeout.tv_sec = curl_timeo / 1000; | ||||||
|  | timeout.tv_usec = (curl_timeo % 1000) * 1000; | ||||||
|  |  | ||||||
|  | FD_ZERO(&fdread); | ||||||
|  | FD_ZERO(&fdwrite); | ||||||
|  | FD_ZERO(&fdexcep); | ||||||
|  |  | ||||||
|  | /* get file descriptors from the transfers */ | ||||||
|  | mc = curl_multi_fdset(multi_handle, &fdread, &fdwrite, &fdexcep, &maxfd); | ||||||
|  |  | ||||||
|  | if(maxfd == -1) { | ||||||
|  |   SHORT_SLEEP; | ||||||
|  |   rc = 0; | ||||||
|  | } | ||||||
|  | else | ||||||
|  |   rc = select(maxfd+1, &fdread, &fdwrite, &fdexcep, &timeout); | ||||||
|  |  | ||||||
|  | switch(rc) { | ||||||
|  | case -1: | ||||||
|  |   /* select error */ | ||||||
|  |   break; | ||||||
|  | case 0: | ||||||
|  | default: | ||||||
|  |   /* timeout or readable/writable sockets */ | ||||||
|  |   curl_multi_perform(multi_handle, &still_running); | ||||||
|  |   break; | ||||||
|  | } | ||||||
|  |  | ||||||
|  | /* if there are still transfers, loop! */ | ||||||
|  | .fi | ||||||
| .SH "RETURN VALUE" | .SH "RETURN VALUE" | ||||||
| CURLMcode type, general libcurl multi interface error code. | CURLMcode type, general libcurl multi interface error code. | ||||||
|  |  | ||||||
|   | |||||||
| @@ -47,6 +47,8 @@ See \fICURLMOPT_PIPELINING(3)\fP | |||||||
| See \fICURLMOPT_TIMERFUNCTION(3)\fP | See \fICURLMOPT_TIMERFUNCTION(3)\fP | ||||||
| .IP CURLMOPT_TIMERDATA | .IP CURLMOPT_TIMERDATA | ||||||
| See \fICURLMOPT_TIMERDATA(3)\fP | 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 | ||||||
|   | |||||||
Some files were not shown because too many files have changed in this diff Show More
		Reference in New Issue
	
	Block a user