| Daniel Stenberg | 1c96128 | 2002-09-03 11:58:18 +0000 | [diff] [blame] | 1 | Updated: September 3, 2002 (http://curl.haxx.se/docs/faq.html) |
| Daniel Stenberg | 7c37c6a | 2000-05-22 17:35:35 +0000 | [diff] [blame] | 2 | _ _ ____ _ |
| 3 | ___| | | | _ \| | |
| 4 | / __| | | | |_) | | |
| 5 | | (__| |_| | _ <| |___ |
| 6 | \___|\___/|_| \_\_____| |
| 7 | |
| 8 | FAQ |
| 9 | |
| Daniel Stenberg | c3318b4 | 2000-08-17 14:06:42 +0000 | [diff] [blame] | 10 | 1. Philosophy |
| 11 | 1.1 What is cURL? |
| 12 | 1.2 What is libcurl? |
| 13 | 1.3 What is cURL not? |
| 14 | 1.4 When will you make curl do XXXX ? |
| Daniel Stenberg | a0eb52b | 2001-03-23 15:28:13 +0000 | [diff] [blame] | 15 | 1.5 Who makes cURL? |
| 16 | 1.6 What do you get for making cURL? |
| Daniel Stenberg | c528dc5 | 2001-08-07 11:17:37 +0000 | [diff] [blame] | 17 | 1.7 What about CURL from curl.com? |
| Daniel Stenberg | 8eaa7fe | 2002-04-27 18:12:26 +0000 | [diff] [blame] | 18 | 1.8 I have a problem who do I mail? |
| Daniel Stenberg | 7c37c6a | 2000-05-22 17:35:35 +0000 | [diff] [blame] | 19 | |
| Daniel Stenberg | c3318b4 | 2000-08-17 14:06:42 +0000 | [diff] [blame] | 20 | 2. Install Related Problems |
| 21 | 2.1 configure doesn't find OpenSSL even when it is installed |
| 22 | 2.1.1. native linker doesn't find openssl |
| 23 | 2.1.2. only the libssl lib is missing |
| 24 | 2.2 Does curl work/build with other SSL libraries? |
| 25 | 2.3 Where can I find a copy of LIBEAY32.DLL? |
| 26 | 2.4 Does cURL support Socks (RFC 1928) ? |
| Daniel Stenberg | 7c37c6a | 2000-05-22 17:35:35 +0000 | [diff] [blame] | 27 | |
| Daniel Stenberg | c3318b4 | 2000-08-17 14:06:42 +0000 | [diff] [blame] | 28 | 3. Usage Problems |
| 29 | 3.1 curl: (1) SSL is disabled, https: not supported |
| 30 | 3.2 How do I tell curl to resume a transfer? |
| 31 | 3.3 Why doesn't my posting using -F work? |
| 32 | 3.4 How do I tell curl to run custom FTP commands? |
| 33 | 3.5 How can I disable the Pragma: nocache header? |
| Daniel Stenberg | 48bc73c | 2002-05-21 13:53:32 +0000 | [diff] [blame] | 34 | 3.6 Does curl support ASP, XML, XHTML or HTML version Y? |
| Daniel Stenberg | c3318b4 | 2000-08-17 14:06:42 +0000 | [diff] [blame] | 35 | 3.7 Can I use curl to delete/rename a file through FTP? |
| 36 | 3.8 How do I tell curl to follow HTTP redirects? |
| Daniel Stenberg | 98871d1 | 2002-05-22 22:14:03 +0000 | [diff] [blame] | 37 | 3.9 How do I use curl in my favorite programming language? |
| Daniel Stenberg | 147a673 | 2001-03-08 09:25:09 +0000 | [diff] [blame] | 38 | 3.10 What about SOAP, WebDAV, XML-RPC or similar protocols over HTTP? |
| Daniel Stenberg | 88d14e9 | 2001-05-29 14:02:20 +0000 | [diff] [blame] | 39 | 3.11 How do I POST with a different Content-Type? |
| Daniel Stenberg | 6513dce | 2001-11-27 13:34:59 +0000 | [diff] [blame] | 40 | 3.12 Why do FTP specific features over HTTP proxy fail? |
| Daniel Stenberg | 6b1a1a6 | 2002-03-11 08:29:26 +0000 | [diff] [blame] | 41 | 3.13 Why does my single/double quotes fail? |
| Daniel Stenberg | 48bc73c | 2002-05-21 13:53:32 +0000 | [diff] [blame] | 42 | 3.14 Does curl support javascript or pac (automated proxy config)? |
| Daniel Stenberg | 7c37c6a | 2000-05-22 17:35:35 +0000 | [diff] [blame] | 43 | |
| Daniel Stenberg | c3318b4 | 2000-08-17 14:06:42 +0000 | [diff] [blame] | 44 | 4. Running Problems |
| 45 | 4.1 Problems connecting to SSL servers. |
| Daniel Stenberg | e26ee09 | 2001-01-15 10:26:37 +0000 | [diff] [blame] | 46 | 4.2 Why do I get problems when I use & or % in the URL? |
| Daniel Stenberg | c3318b4 | 2000-08-17 14:06:42 +0000 | [diff] [blame] | 47 | 4.3 How can I use {, }, [ or ] to specify multiple URLs? |
| 48 | 4.4 Why do I get downloaded data even though the web page doesn't exist? |
| 49 | 4.5 Why do I get return code XXX from a HTTP server? |
| 50 | 4.5.1 "400 Bad Request" |
| 51 | 4.5.2 "401 Unauthorized" |
| 52 | 4.5.3 "403 Forbidden" |
| 53 | 4.5.4 "404 Not Found" |
| 54 | 4.5.5 "405 Method Not Allowed" |
| Daniel Stenberg | d60029d | 2001-12-19 23:25:04 +0000 | [diff] [blame] | 55 | 4.5.6 "301 Moved Permanently" |
| Daniel Stenberg | c3318b4 | 2000-08-17 14:06:42 +0000 | [diff] [blame] | 56 | 4.6 Can you tell me what error code 142 means? |
| Daniel Stenberg | 4c48599 | 2001-04-22 15:45:27 +0000 | [diff] [blame] | 57 | 4.7 How do I keep user names and passwords secret in Curl command lines? |
| Daniel Stenberg | 09ba856 | 2000-10-27 12:25:00 +0000 | [diff] [blame] | 58 | 4.8 I found a bug! |
| Daniel Stenberg | 2c10037 | 2000-12-19 07:30:51 +0000 | [diff] [blame] | 59 | 4.9 Curl can't authenticate to the server that requires NTLM? |
| Daniel Stenberg | bc74375 | 2002-05-15 21:40:29 +0000 | [diff] [blame] | 60 | 4.10 My HTTP request using HEAD, PUT or DELETE doesn't work! |
| Daniel Stenberg | 7c37c6a | 2000-05-22 17:35:35 +0000 | [diff] [blame] | 61 | |
| Daniel Stenberg | c3318b4 | 2000-08-17 14:06:42 +0000 | [diff] [blame] | 62 | 5. libcurl Issues |
| Daniel Stenberg | 7d09e51 | 2001-01-11 12:52:07 +0000 | [diff] [blame] | 63 | 5.1 Is libcurl thread-safe? |
| Daniel Stenberg | a40b55d | 2000-11-22 07:27:26 +0000 | [diff] [blame] | 64 | 5.2 How can I receive all data into a large memory chunk? |
| Daniel Stenberg | 2c10037 | 2000-12-19 07:30:51 +0000 | [diff] [blame] | 65 | 5.3 How do I fetch multiple files with libcurl? |
| Daniel Stenberg | 910fc85 | 2000-12-30 11:48:51 +0000 | [diff] [blame] | 66 | 5.4 Does libcurl do Winsock initing on win32 systems? |
| Daniel Stenberg | 5d7b32d | 2001-02-04 20:08:42 +0000 | [diff] [blame] | 67 | 5.5 Does CURLOPT_FILE and CURLOPT_INFILE work on win32 ? |
| Daniel Stenberg | 4c48599 | 2001-04-22 15:45:27 +0000 | [diff] [blame] | 68 | 5.6 What about Keep-Alive or persistent connections? |
| Daniel Stenberg | 7c37c6a | 2000-05-22 17:35:35 +0000 | [diff] [blame] | 69 | |
| Daniel Stenberg | c3318b4 | 2000-08-17 14:06:42 +0000 | [diff] [blame] | 70 | 6. License Issues |
| 71 | 6.1 I have a GPL program, can I use the libcurl library? |
| 72 | 6.2 I have a closed-source program, can I use the libcurl library? |
| Daniel Stenberg | 31b8eea | 2000-08-23 07:27:00 +0000 | [diff] [blame] | 73 | 6.3 I have a BSD licensed program, can I use the libcurl library? |
| 74 | 6.4 I have a program that uses LGPL libraries, can I use libcurl? |
| 75 | 6.5 Can I modify curl/libcurl for my program and keep the changes secret? |
| 76 | 6.6 Can you please change the curl/libcurl license to XXXX? |
| Daniel Stenberg | c3318b4 | 2000-08-17 14:06:42 +0000 | [diff] [blame] | 77 | |
| 78 | ============================================================================== |
| 79 | |
| 80 | 1. Philosophy |
| 81 | |
| 82 | 1.1 What is cURL? |
| 83 | |
| 84 | cURL (or simply just 'curl') is a command line tool for getting or sending |
| 85 | files using URL syntax. The name is a play on 'Client for URLs', originally |
| Daniel Stenberg | 09ba856 | 2000-10-27 12:25:00 +0000 | [diff] [blame] | 86 | with URL spelled in uppercase to make it obvious it deals with URLs. The |
| Daniel Stenberg | d16c757 | 2002-08-08 11:54:11 +0000 | [diff] [blame] | 87 | fact it can also be pronounced 'see URL' also helped, it works as an |
| 88 | abbrivation for "Client URL Request Library" or why not the recursive |
| 89 | version: "Curl is a URL Request Library". |
| Daniel Stenberg | c3318b4 | 2000-08-17 14:06:42 +0000 | [diff] [blame] | 90 | |
| Daniel Stenberg | 4c48599 | 2001-04-22 15:45:27 +0000 | [diff] [blame] | 91 | Curl supports a range of common Internet protocols, currently including |
| Daniel Stenberg | d73d28a | 2001-08-23 11:12:07 +0000 | [diff] [blame] | 92 | HTTP, HTTPS, FTP, FTPS, GOPHER, LDAP, DICT, TELNET and FILE. |
| Daniel Stenberg | c3318b4 | 2000-08-17 14:06:42 +0000 | [diff] [blame] | 93 | |
| Daniel Stenberg | 8e7b261 | 2001-03-22 11:23:48 +0000 | [diff] [blame] | 94 | We spell it cURL or just curl. We pronounce it with an initial k sound: |
| 95 | [kurl]. |
| Daniel Stenberg | 887e728 | 2001-01-03 09:13:07 +0000 | [diff] [blame] | 96 | |
| Daniel Stenberg | c3318b4 | 2000-08-17 14:06:42 +0000 | [diff] [blame] | 97 | 1.2 What is libcurl? |
| 98 | |
| Daniel Stenberg | bc5954f | 2001-03-23 08:16:24 +0000 | [diff] [blame] | 99 | libcurl is a reliable and portable library which provides you with an easy |
| Daniel Stenberg | 4c48599 | 2001-04-22 15:45:27 +0000 | [diff] [blame] | 100 | interface to a range of common Internet protocols. |
| Daniel Stenberg | c3318b4 | 2000-08-17 14:06:42 +0000 | [diff] [blame] | 101 | |
| Daniel Stenberg | bc5954f | 2001-03-23 08:16:24 +0000 | [diff] [blame] | 102 | You can use libcurl for free in your application even if it is commercial |
| 103 | or closed-source. |
| Daniel Stenberg | c3318b4 | 2000-08-17 14:06:42 +0000 | [diff] [blame] | 104 | |
| 105 | 1.3 What is cURL not? |
| Daniel Stenberg | e9640b6 | 2000-08-02 07:17:56 +0000 | [diff] [blame] | 106 | |
| Daniel Stenberg | 7d24ce9 | 2001-11-01 09:12:35 +0000 | [diff] [blame] | 107 | Curl is *not* a wget clone even though that is a very common misconception. |
| 108 | Never, during curl's development, have we intended curl to replace wget or |
| 109 | compete on its market. Curl is targeted at single-shot file transfers. |
| Daniel Stenberg | ef34ad2 | 2000-06-02 12:45:23 +0000 | [diff] [blame] | 110 | |
| Daniel Stenberg | c3318b4 | 2000-08-17 14:06:42 +0000 | [diff] [blame] | 111 | Curl is not a web site mirroring program. If you wanna use curl to mirror |
| 112 | something: fine, go ahead and write a script that wraps around curl to make |
| 113 | it reality (like curlmirror.pl does). |
| Daniel Stenberg | ef34ad2 | 2000-06-02 12:45:23 +0000 | [diff] [blame] | 114 | |
| Daniel Stenberg | 4c48599 | 2001-04-22 15:45:27 +0000 | [diff] [blame] | 115 | Curl is not an FTP site mirroring program. Sure, get and send FTP with curl |
| 116 | but if you want systematic and sequential behavior you should write a |
| Daniel Stenberg | c3318b4 | 2000-08-17 14:06:42 +0000 | [diff] [blame] | 117 | script (or write a new program that interfaces libcurl) and do it. |
| 118 | |
| 119 | Curl is not a PHP tool, even though it works perfectly well when used from |
| 120 | or with PHP. |
| 121 | |
| Daniel Stenberg | 31b8eea | 2000-08-23 07:27:00 +0000 | [diff] [blame] | 122 | Curl is not a single-OS program. Curl exists, compiles, builds and runs |
| Daniel Stenberg | c59baa0 | 2001-02-12 10:05:09 +0000 | [diff] [blame] | 123 | under a wide range of operating systems, including all modern Unixes (and a |
| 124 | bunch of older ones too), Windows, Amiga, BeOS, OS/2, OS X, QNX etc. |
| Daniel Stenberg | 31b8eea | 2000-08-23 07:27:00 +0000 | [diff] [blame] | 125 | |
| Daniel Stenberg | c3318b4 | 2000-08-17 14:06:42 +0000 | [diff] [blame] | 126 | 1.4 When will you make curl do XXXX ? |
| 127 | |
| Daniel Stenberg | 11d718b | 2001-03-13 11:47:30 +0000 | [diff] [blame] | 128 | We love suggestions of what to change in order to make curl and libcurl |
| 129 | better. We do however believe in a few rules when it comes to the future of |
| Daniel Stenberg | c3318b4 | 2000-08-17 14:06:42 +0000 | [diff] [blame] | 130 | curl: |
| 131 | |
| Daniel Stenberg | 11d718b | 2001-03-13 11:47:30 +0000 | [diff] [blame] | 132 | * Curl is to remain a command line tool. If you want GUIs or fancy scripting |
| Daniel Stenberg | c3318b4 | 2000-08-17 14:06:42 +0000 | [diff] [blame] | 133 | capabilities, you're free to write another tool that uses libcurl and that |
| Daniel Stenberg | 11d718b | 2001-03-13 11:47:30 +0000 | [diff] [blame] | 134 | offers this. There's no point in having a single tool that does every |
| Daniel Stenberg | c3318b4 | 2000-08-17 14:06:42 +0000 | [diff] [blame] | 135 | imaginable thing. That's also one of the great advantages of having the |
| Daniel Stenberg | 11d718b | 2001-03-13 11:47:30 +0000 | [diff] [blame] | 136 | core of curl as a library. |
| Daniel Stenberg | c3318b4 | 2000-08-17 14:06:42 +0000 | [diff] [blame] | 137 | |
| Daniel Stenberg | 11d718b | 2001-03-13 11:47:30 +0000 | [diff] [blame] | 138 | * We do not add things to curl that other small and available tools already |
| Daniel Stenberg | c3318b4 | 2000-08-17 14:06:42 +0000 | [diff] [blame] | 139 | do very fine at the side. Curl's output is fine to pipe into another |
| 140 | program or redirect to another file for the next program to interpret. |
| 141 | |
| Daniel Stenberg | 11d718b | 2001-03-13 11:47:30 +0000 | [diff] [blame] | 142 | * We focus on protocol related issues and improvements. If you wanna do more |
| Daniel Stenberg | 5f8e93d | 2000-10-25 07:41:58 +0000 | [diff] [blame] | 143 | magic with the supported protocols than curl currently does, chances are |
| Daniel Stenberg | 7d24ce9 | 2001-11-01 09:12:35 +0000 | [diff] [blame] | 144 | big we will agree. If you wanna add more protocols, we may very well |
| Daniel Stenberg | c3318b4 | 2000-08-17 14:06:42 +0000 | [diff] [blame] | 145 | agree. |
| 146 | |
| Daniel Stenberg | 11d718b | 2001-03-13 11:47:30 +0000 | [diff] [blame] | 147 | * If you want someone else to make all the work while you wait for us to |
| 148 | implement it for you, that is not a very friendly attitude. We spend a |
| 149 | considerable time already on maintaining and developing curl. In order to |
| 150 | get more out of us, you should consider trading in some of your time and |
| 151 | efforts in return. |
| Daniel Stenberg | c3318b4 | 2000-08-17 14:06:42 +0000 | [diff] [blame] | 152 | |
| 153 | * If you write the code, chances are bigger that it will get into curl |
| 154 | faster. |
| 155 | |
| Daniel Stenberg | a0eb52b | 2001-03-23 15:28:13 +0000 | [diff] [blame] | 156 | 1.5 Who makes cURL? |
| 157 | |
| 158 | cURL and libcurl are not made by any single individual. Sure, Daniel |
| Daniel Stenberg | d16c757 | 2002-08-08 11:54:11 +0000 | [diff] [blame] | 159 | Stenberg writes the major parts, but other persons' submissions are |
| 160 | important and crucial. Anyone can contribute and post their changes and |
| 161 | improvements and have them inserted in the main sources (of course on the |
| 162 | condition that developers agree on that the fixes are good). |
| Daniel Stenberg | a0eb52b | 2001-03-23 15:28:13 +0000 | [diff] [blame] | 163 | |
| Daniel Stenberg | 81f2246 | 2001-11-27 13:33:21 +0000 | [diff] [blame] | 164 | The list of contributors in the docs/THANKS file is only a small part of all |
| 165 | the people that every day provide us with bug reports, suggestions, ideas |
| 166 | and source code. |
| Daniel Stenberg | a0eb52b | 2001-03-23 15:28:13 +0000 | [diff] [blame] | 167 | |
| 168 | curl is developed by a community, with Daniel at the wheel. |
| 169 | |
| 170 | 1.6 What do you get for making cURL? |
| 171 | |
| Daniel Stenberg | d16c757 | 2002-08-08 11:54:11 +0000 | [diff] [blame] | 172 | Project cURL is entirely free and open. No person gets paid for developing |
| 173 | curl. We do this voluntarily on our spare time. |
| Daniel Stenberg | a0eb52b | 2001-03-23 15:28:13 +0000 | [diff] [blame] | 174 | |
| 175 | We get some help from companies. Contactor Data hosts the curl web site and |
| 176 | the main mailing list, Haxx owns the curl web site's domain and |
| 177 | sourceforge.net hosts several project tools we take advantage from like the |
| 178 | bug tracker, mailing lists and more. |
| 179 | |
| Daniel Stenberg | d370681 | 2001-11-27 13:37:29 +0000 | [diff] [blame] | 180 | If you want to support our project with a donation or similar, one way of |
| Daniel Stenberg | 25fe47f | 2001-11-14 20:13:38 +0000 | [diff] [blame] | 181 | doing that would be to buy "gift certificates" at useful online shopping |
| 182 | sites, such as amazon.com or thinkgeek.com. Another way would be to sponsor |
| Daniel Stenberg | d16c757 | 2002-08-08 11:54:11 +0000 | [diff] [blame] | 183 | us through a banner-program or even better: by helping us coding, |
| 184 | documenting, testing etc. |
| Daniel Stenberg | c528dc5 | 2001-08-07 11:17:37 +0000 | [diff] [blame] | 185 | |
| 186 | 1.7 What about CURL from curl.com? |
| 187 | |
| 188 | During the summer 2001, curl.com has been busy advertising their client-side |
| 189 | programming language for the web, named CURL. |
| 190 | |
| Daniel Stenberg | 81b6ebc | 2001-08-07 18:02:37 +0000 | [diff] [blame] | 191 | We are in no way associated with curl.com or their CURL programming |
| 192 | language. |
| Daniel Stenberg | c528dc5 | 2001-08-07 11:17:37 +0000 | [diff] [blame] | 193 | |
| Daniel Stenberg | 81b6ebc | 2001-08-07 18:02:37 +0000 | [diff] [blame] | 194 | Our project name curl has been in effective use since 1998. We were not the |
| Daniel Stenberg | 4045cd5 | 2001-08-07 21:21:24 +0000 | [diff] [blame] | 195 | first computer related project to use the name "curl" and do not claim any |
| Daniel Stenberg | 81b6ebc | 2001-08-07 18:02:37 +0000 | [diff] [blame] | 196 | first-hand rights to the name. |
| Daniel Stenberg | c528dc5 | 2001-08-07 11:17:37 +0000 | [diff] [blame] | 197 | |
| Daniel Stenberg | 81b6ebc | 2001-08-07 18:02:37 +0000 | [diff] [blame] | 198 | We recognize that we will be living in parallel with curl.com and wish them |
| 199 | every success. |
| Daniel Stenberg | c528dc5 | 2001-08-07 11:17:37 +0000 | [diff] [blame] | 200 | |
| Daniel Stenberg | 8eaa7fe | 2002-04-27 18:12:26 +0000 | [diff] [blame] | 201 | 1.8 I have a problem who do I mail? |
| 202 | |
| 203 | Please do not attempt to mail any single individual unless you really need |
| 204 | to. Keep curl-related questions on a suitable mailing list. All available |
| 205 | mailing lists are listed in the MANUAL document and online at |
| 206 | http://curl.haxx.se/mail/ |
| 207 | |
| Daniel Stenberg | 98871d1 | 2002-05-22 22:14:03 +0000 | [diff] [blame] | 208 | Keeping curl-related questions and discussions on mailing lists allows others |
| Daniel Stenberg | 8eaa7fe | 2002-04-27 18:12:26 +0000 | [diff] [blame] | 209 | to join in and help, to share their ideas, contribute their suggestions and |
| 210 | spread their wisdom. Keeping discussions on public mailing lists also allows |
| 211 | for others to learn from this (both current and future users thanks to the |
| 212 | web based archives of the mailing lists), thus saving us from having to |
| 213 | repeat ourselves even more. Thanks for respecting this. |
| 214 | |
| 215 | |
| Daniel Stenberg | c3318b4 | 2000-08-17 14:06:42 +0000 | [diff] [blame] | 216 | 2. Install Related Problems |
| 217 | |
| 218 | 2.1. configure doesn't find OpenSSL even when it is installed |
| Daniel Stenberg | 7c37c6a | 2000-05-22 17:35:35 +0000 | [diff] [blame] | 219 | |
| Daniel Stenberg | ef34ad2 | 2000-06-02 12:45:23 +0000 | [diff] [blame] | 220 | This may be because of several reasons. |
| Daniel Stenberg | 7c37c6a | 2000-05-22 17:35:35 +0000 | [diff] [blame] | 221 | |
| Daniel Stenberg | 09ba856 | 2000-10-27 12:25:00 +0000 | [diff] [blame] | 222 | 2.1.1. native linker doesn't find openssl |
| Daniel Stenberg | 7c37c6a | 2000-05-22 17:35:35 +0000 | [diff] [blame] | 223 | |
| Daniel Stenberg | bfb1690 | 2000-08-17 11:42:59 +0000 | [diff] [blame] | 224 | Affected platforms: |
| 225 | Solaris (native cc compiler) |
| 226 | HPUX (native cc compiler) |
| 227 | SGI IRIX (native cc compiler) |
| Daniel Stenberg | 13962ad | 2000-09-28 10:26:44 +0000 | [diff] [blame] | 228 | SCO UNIX (native cc compiler) |
| Daniel Stenberg | 7c37c6a | 2000-05-22 17:35:35 +0000 | [diff] [blame] | 229 | |
| Daniel Stenberg | ef34ad2 | 2000-06-02 12:45:23 +0000 | [diff] [blame] | 230 | When configuring curl, I specify --with-ssl. OpenSSL is installed in |
| 231 | /usr/local/ssl Configure reports SSL in /usr/local/ssl, but fails to find |
| 232 | CRYPTO_lock in -lcrypto |
| Daniel Stenberg | 7c37c6a | 2000-05-22 17:35:35 +0000 | [diff] [blame] | 233 | |
| Daniel Stenberg | ef34ad2 | 2000-06-02 12:45:23 +0000 | [diff] [blame] | 234 | Cause: The cc for this test places the -L/usr/local/ssl/lib AFTER |
| 235 | -lcrypto, so ld can't find the library. This is due to a bug in the GNU |
| 236 | autoconf tool. |
| 237 | |
| 238 | Workaround: Specifying "LDFLAGS=-L/usr/local/ssl/lib" in front of |
| 239 | ./configure places the -L/usr/local/ssl/lib early enough in the command |
| 240 | line to make things work |
| 241 | |
| Daniel Stenberg | bfb1690 | 2000-08-17 11:42:59 +0000 | [diff] [blame] | 242 | Solution submitted by: Bob Allison <allisonb@users.sourceforge.net> |
| Daniel Stenberg | ef34ad2 | 2000-06-02 12:45:23 +0000 | [diff] [blame] | 243 | |
| Daniel Stenberg | 09ba856 | 2000-10-27 12:25:00 +0000 | [diff] [blame] | 244 | 2.1.2. only the libssl lib is missing |
| Daniel Stenberg | ef34ad2 | 2000-06-02 12:45:23 +0000 | [diff] [blame] | 245 | |
| 246 | If all include files and the libcrypto lib is present, with only the |
| 247 | libssl being missing according to configure, this is mostly likely because |
| 248 | a few functions are left out from the libssl. |
| 249 | |
| 250 | If the function names missing include RSA or RSAREF you can be certain |
| Daniel Stenberg | 4c48599 | 2001-04-22 15:45:27 +0000 | [diff] [blame] | 251 | that this is because libssl requires the RSA and RSAREF libs to build. |
| Daniel Stenberg | ef34ad2 | 2000-06-02 12:45:23 +0000 | [diff] [blame] | 252 | |
| 253 | See the INSTALL file section that explains how to add those libs to |
| 254 | configure. Make sure that you remove the config.cache file before you |
| 255 | rerun configure with the new flags. |
| 256 | |
| Daniel Stenberg | c3318b4 | 2000-08-17 14:06:42 +0000 | [diff] [blame] | 257 | 2.2. Does curl work/build with other SSL libraries? |
| Daniel Stenberg | e9640b6 | 2000-08-02 07:17:56 +0000 | [diff] [blame] | 258 | |
| Daniel Stenberg | 11d718b | 2001-03-13 11:47:30 +0000 | [diff] [blame] | 259 | Curl has been written to use OpenSSL, although there should not be much |
| Daniel Stenberg | 26d1aac | 2001-02-16 13:41:09 +0000 | [diff] [blame] | 260 | problems using a different library. If anyone does "port" curl to use a |
| Daniel Stenberg | 11d718b | 2001-03-13 11:47:30 +0000 | [diff] [blame] | 261 | different SSL library, we are of course very interested in getting the |
| 262 | patch! |
| Daniel Stenberg | e9640b6 | 2000-08-02 07:17:56 +0000 | [diff] [blame] | 263 | |
| Daniel Stenberg | c3318b4 | 2000-08-17 14:06:42 +0000 | [diff] [blame] | 264 | 2.3. Where can I find a copy of LIBEAY32.DLL? |
| Daniel Stenberg | e9640b6 | 2000-08-02 07:17:56 +0000 | [diff] [blame] | 265 | |
| 266 | That is an OpenSSL binary built for Windows. |
| 267 | |
| 268 | Curl uses OpenSSL to do the SSL stuff. The LIBEAY32.DLL is what curl needs |
| Daniel Stenberg | 11d718b | 2001-03-13 11:47:30 +0000 | [diff] [blame] | 269 | on a windows machine to do https://. Check out the curl web site to find |
| Daniel Stenberg | 4c48599 | 2001-04-22 15:45:27 +0000 | [diff] [blame] | 270 | accurate and up-to-date pointers to recent OpenSSL DLLs and other binary |
| Daniel Stenberg | e9640b6 | 2000-08-02 07:17:56 +0000 | [diff] [blame] | 271 | packages. |
| 272 | |
| Daniel Stenberg | c3318b4 | 2000-08-17 14:06:42 +0000 | [diff] [blame] | 273 | 2.4. Does cURL support Socks (RFC 1928) ? |
| Daniel Stenberg | e9640b6 | 2000-08-02 07:17:56 +0000 | [diff] [blame] | 274 | |
| Daniel Stenberg | 4c48599 | 2001-04-22 15:45:27 +0000 | [diff] [blame] | 275 | No. Nobody has wanted it that badly yet. We appreciate patches that bring |
| Daniel Stenberg | 11d718b | 2001-03-13 11:47:30 +0000 | [diff] [blame] | 276 | this functionality. |
| Daniel Stenberg | e9640b6 | 2000-08-02 07:17:56 +0000 | [diff] [blame] | 277 | |
| 278 | |
| Daniel Stenberg | c3318b4 | 2000-08-17 14:06:42 +0000 | [diff] [blame] | 279 | 3. Usage problems |
| Daniel Stenberg | e9640b6 | 2000-08-02 07:17:56 +0000 | [diff] [blame] | 280 | |
| Daniel Stenberg | c3318b4 | 2000-08-17 14:06:42 +0000 | [diff] [blame] | 281 | 3.1. curl: (1) SSL is disabled, https: not supported |
| Daniel Stenberg | e9640b6 | 2000-08-02 07:17:56 +0000 | [diff] [blame] | 282 | |
| 283 | If you get this output when trying to get anything from a https:// server, |
| 284 | it means that the configure script couldn't find all libs and include files |
| 285 | it requires for SSL to work. If the configure script fails to find them, |
| 286 | curl is simply built without SSL support. |
| 287 | |
| 288 | To get the https:// support into a curl that was previously built but that |
| 289 | reports that https:// is not supported, you should dig through the document |
| 290 | and logs and check out why the configure script doesn't find the SSL libs |
| 291 | and/or include files. |
| 292 | |
| 293 | Also, check out the other paragraph in this FAQ labeled "configure doesn't |
| 294 | find OpenSSL even when it is installed". |
| 295 | |
| Daniel Stenberg | c3318b4 | 2000-08-17 14:06:42 +0000 | [diff] [blame] | 296 | 3.2. How do I tell curl to resume a transfer? |
| Daniel Stenberg | e9640b6 | 2000-08-02 07:17:56 +0000 | [diff] [blame] | 297 | |
| Daniel Stenberg | 11d718b | 2001-03-13 11:47:30 +0000 | [diff] [blame] | 298 | Curl supports resumed transfers both ways on both FTP and HTTP. |
| Daniel Stenberg | e9640b6 | 2000-08-02 07:17:56 +0000 | [diff] [blame] | 299 | |
| Daniel Stenberg | 887e728 | 2001-01-03 09:13:07 +0000 | [diff] [blame] | 300 | Try the -C option. |
| Daniel Stenberg | e9640b6 | 2000-08-02 07:17:56 +0000 | [diff] [blame] | 301 | |
| Daniel Stenberg | c3318b4 | 2000-08-17 14:06:42 +0000 | [diff] [blame] | 302 | 3.3. Why doesn't my posting using -F work? |
| Daniel Stenberg | e9640b6 | 2000-08-02 07:17:56 +0000 | [diff] [blame] | 303 | |
| 304 | You can't simply use -F or -d at your choice. The web server that will |
| 305 | receive your post assumes one of the formats. If the form you're trying to |
| Daniel Stenberg | c59baa0 | 2001-02-12 10:05:09 +0000 | [diff] [blame] | 306 | "fake" sets the type to 'multipart/form-data', then and only then you must |
| Daniel Stenberg | e9640b6 | 2000-08-02 07:17:56 +0000 | [diff] [blame] | 307 | use the -F type. In all the most common cases, you should use -d which then |
| 308 | causes a posting with the type 'application/x-www-form-urlencoded'. |
| 309 | |
| Daniel Stenberg | 4c48599 | 2001-04-22 15:45:27 +0000 | [diff] [blame] | 310 | This is described in some detail in the MANUAL and TheArtOfHttpScripting |
| 311 | documents, and if you don't understand it the first time, read it again |
| 312 | before you post questions about this to the mailing list. Also, try reading |
| 313 | through the mailing list archives for old postings and questions regarding |
| 314 | this. |
| Daniel Stenberg | e9640b6 | 2000-08-02 07:17:56 +0000 | [diff] [blame] | 315 | |
| Daniel Stenberg | c3318b4 | 2000-08-17 14:06:42 +0000 | [diff] [blame] | 316 | 3.4. How do I tell curl to run custom FTP commands? |
| Daniel Stenberg | e9640b6 | 2000-08-02 07:17:56 +0000 | [diff] [blame] | 317 | |
| 318 | You can tell curl to perform optional commands both before and/or after a |
| 319 | file transfer. Study the -Q/--quote option. |
| 320 | |
| 321 | Since curl is used for file transfers, you don't use curl to just perform |
| Daniel Stenberg | 4c48599 | 2001-04-22 15:45:27 +0000 | [diff] [blame] | 322 | FTP commands without transferring anything. Therefore you must always specify |
| Daniel Stenberg | e9640b6 | 2000-08-02 07:17:56 +0000 | [diff] [blame] | 323 | a URL to transfer to/from even when doing custom FTP commands. |
| 324 | |
| Daniel Stenberg | c3318b4 | 2000-08-17 14:06:42 +0000 | [diff] [blame] | 325 | 3.5. How can I disable the Pragma: nocache header? |
| Daniel Stenberg | e9640b6 | 2000-08-02 07:17:56 +0000 | [diff] [blame] | 326 | |
| 327 | You can change all internally generated headers by adding a replacement with |
| 328 | the -H/--header option. By adding a header with empty contents you safely |
| 329 | disable that one. Use -H "Pragma:" to disable that specific header. |
| 330 | |
| Daniel Stenberg | 48bc73c | 2002-05-21 13:53:32 +0000 | [diff] [blame] | 331 | 3.6. Does curl support ASP, XML, XHTML or HTML version Y? |
| Daniel Stenberg | e9640b6 | 2000-08-02 07:17:56 +0000 | [diff] [blame] | 332 | |
| 333 | To curl, all contents are alike. It doesn't matter how the page was |
| Daniel Stenberg | 4c48599 | 2001-04-22 15:45:27 +0000 | [diff] [blame] | 334 | generated. It may be ASP, PHP, Perl, shell-script, SSI or plain |
| Daniel Stenberg | e9640b6 | 2000-08-02 07:17:56 +0000 | [diff] [blame] | 335 | HTML-files. There's no difference to curl and it doesn't even know what kind |
| 336 | of language that generated the page. |
| 337 | |
| Daniel Stenberg | 2080738 | 2002-05-21 14:00:55 +0000 | [diff] [blame] | 338 | See also item 3.14 regarding javascript. |
| Daniel Stenberg | e9640b6 | 2000-08-02 07:17:56 +0000 | [diff] [blame] | 339 | |
| Daniel Stenberg | c3318b4 | 2000-08-17 14:06:42 +0000 | [diff] [blame] | 340 | 3.7. Can I use curl to delete/rename a file through FTP? |
| Daniel Stenberg | e9640b6 | 2000-08-02 07:17:56 +0000 | [diff] [blame] | 341 | |
| Daniel Stenberg | 4c48599 | 2001-04-22 15:45:27 +0000 | [diff] [blame] | 342 | Yes. You specify custom FTP commands with -Q/--quote. |
| Daniel Stenberg | e9640b6 | 2000-08-02 07:17:56 +0000 | [diff] [blame] | 343 | |
| 344 | One example would be to delete a file after you have downloaded it: |
| 345 | |
| 346 | curl -O ftp://download.com/coolfile -Q '-DELE coolfile' |
| 347 | |
| Daniel Stenberg | c3318b4 | 2000-08-17 14:06:42 +0000 | [diff] [blame] | 348 | 3.8 How do I tell curl to follow HTTP redirects? |
| Daniel Stenberg | e9640b6 | 2000-08-02 07:17:56 +0000 | [diff] [blame] | 349 | |
| Daniel Stenberg | c3318b4 | 2000-08-17 14:06:42 +0000 | [diff] [blame] | 350 | Curl does not follow so-called redirects by default. The Location: header |
| 351 | that informs the client about this is only interpreted if you're using the |
| 352 | -L/--location option. As in: |
| Daniel Stenberg | e9640b6 | 2000-08-02 07:17:56 +0000 | [diff] [blame] | 353 | |
| Daniel Stenberg | c3318b4 | 2000-08-17 14:06:42 +0000 | [diff] [blame] | 354 | curl -L http://redirector.com |
| 355 | |
| Daniel Stenberg | 98871d1 | 2002-05-22 22:14:03 +0000 | [diff] [blame] | 356 | 3.9 How do I use curl in my favorite programming language? |
| Daniel Stenberg | 368e352 | 2001-01-29 10:16:21 +0000 | [diff] [blame] | 357 | |
| Daniel Stenberg | dfdf491 | 2001-12-21 09:20:04 +0000 | [diff] [blame] | 358 | There exist many language interfaces/bindings for curl that integrates it |
| 359 | better with various languages. If you are fluid in a script language, you |
| 360 | may very well opt to use such an interface instead of using the command line |
| 361 | tool. |
| Daniel Stenberg | 4c48599 | 2001-04-22 15:45:27 +0000 | [diff] [blame] | 362 | |
| Daniel Stenberg | 4c48599 | 2001-04-22 15:45:27 +0000 | [diff] [blame] | 363 | Find out more about which languages that support curl directly, and how to |
| 364 | install and use them, in the libcurl section of the curl web site: |
| 365 | |
| 366 | http://curl.haxx.se/libcurl/ |
| Daniel Stenberg | 368e352 | 2001-01-29 10:16:21 +0000 | [diff] [blame] | 367 | |
| Daniel Stenberg | dfdf491 | 2001-12-21 09:20:04 +0000 | [diff] [blame] | 368 | In December 2001, there are interfaces available for the following |
| 369 | languages: C/C++, Cocoa, Dylan, Java, Perl, PHP, Python, Rexx, Ruby, Scheme |
| 370 | and Tcl. By the time you read this, additional ones may have appeared! |
| Daniel Stenberg | 368e352 | 2001-01-29 10:16:21 +0000 | [diff] [blame] | 371 | |
| Daniel Stenberg | 147a673 | 2001-03-08 09:25:09 +0000 | [diff] [blame] | 372 | 3.10 What about SOAP, WebDAV, XML-RPC or similar protocols over HTTP? |
| Daniel Stenberg | c59baa0 | 2001-02-12 10:05:09 +0000 | [diff] [blame] | 373 | |
| 374 | Curl adheres to the HTTP spec, which basically means you can play with *any* |
| Daniel Stenberg | 4c48599 | 2001-04-22 15:45:27 +0000 | [diff] [blame] | 375 | protocol that is built on top of HTTP. Protocols such as SOAP, WEBDAV and |
| Daniel Stenberg | c59baa0 | 2001-02-12 10:05:09 +0000 | [diff] [blame] | 376 | XML-RPC are all such ones. You can use -X to set custom requests and -H to |
| 377 | set custom headers (or replace internally generated ones). |
| 378 | |
| 379 | Using libcurl or PHP's curl modules is just as fine and you'd just use the |
| 380 | proper library options to do the same. |
| 381 | |
| Daniel Stenberg | 88d14e9 | 2001-05-29 14:02:20 +0000 | [diff] [blame] | 382 | 3.11 How do I POST with a different Content-Type? |
| 383 | |
| 384 | You can always replace the internally generated headers with -H/--header. |
| 385 | To make a simple HTTP POST with text/xml as content-type, do something like: |
| 386 | |
| 387 | curl -d "datatopost" -H "Content-Type: text/xml" [URL] |
| 388 | |
| Daniel Stenberg | 50e9f8f | 2001-10-23 10:12:28 +0000 | [diff] [blame] | 389 | 3.12 Why do FTP specific features over HTTP proxy fail? |
| Daniel Stenberg | 7d3daa5 | 2001-10-23 10:12:00 +0000 | [diff] [blame] | 390 | |
| 391 | Because when you use a HTTP proxy, the protocol spoken on the network will |
| 392 | be HTTP, even if you specify a FTP URL. This effectively means that you |
| Daniel Stenberg | 98871d1 | 2002-05-22 22:14:03 +0000 | [diff] [blame] | 393 | normally can't use FTP specific features such as FTP upload and FTP quote |
| Daniel Stenberg | 7d3daa5 | 2001-10-23 10:12:00 +0000 | [diff] [blame] | 394 | etc. |
| 395 | |
| 396 | There is one exception to this rule, and that is if you can "tunnel through" |
| Daniel Stenberg | 271f96f | 2001-11-20 08:03:01 +0000 | [diff] [blame] | 397 | the given HTTP proxy. Proxy tunneling is enabled with a special option (-p) |
| Daniel Stenberg | 97a8c98 | 2001-12-21 08:10:34 +0000 | [diff] [blame] | 398 | and is generally not available as proxy admins usually disable tunneling to |
| Daniel Stenberg | 7d3daa5 | 2001-10-23 10:12:00 +0000 | [diff] [blame] | 399 | other ports than 443 (which is used for HTTPS access through proxies). |
| 400 | |
| Daniel Stenberg | 6b1a1a6 | 2002-03-11 08:29:26 +0000 | [diff] [blame] | 401 | 3.13 Why does my single/double quotes fail? |
| 402 | |
| 403 | To specify a command line option that includes spaces, you might need to |
| 404 | put the entire option within quotes. Like in: |
| 405 | |
| 406 | curl -d " with spaces " url.com |
| 407 | |
| 408 | or perhaps |
| 409 | |
| 410 | curl -d ' with spaces ' url.com |
| 411 | |
| 412 | Exactly what kind of quotes and how to do this is entirely up to the shell |
| Daniel Stenberg | 98871d1 | 2002-05-22 22:14:03 +0000 | [diff] [blame] | 413 | or command line interpreter that you are using. For most unix shells, you |
| Daniel Stenberg | 6b1a1a6 | 2002-03-11 08:29:26 +0000 | [diff] [blame] | 414 | can more or less pick either single (') or double (") quotes. For |
| 415 | Windows/DOS prompts I believe you're forced to use double (") quotes. |
| 416 | |
| Daniel Stenberg | 98871d1 | 2002-05-22 22:14:03 +0000 | [diff] [blame] | 417 | Please study the documentation for your particular environment. Examples in |
| Daniel Stenberg | 6b1a1a6 | 2002-03-11 08:29:26 +0000 | [diff] [blame] | 418 | the curl docs will use a mix of both these ones as shown above. You must |
| 419 | adjust them to work in your environment. |
| 420 | |
| Daniel Stenberg | 61f6284 | 2002-03-11 08:39:00 +0000 | [diff] [blame] | 421 | Remember that curl works and runs on more operating systems than most single |
| Daniel Stenberg | 6b1a1a6 | 2002-03-11 08:29:26 +0000 | [diff] [blame] | 422 | individuals have ever tried. |
| 423 | |
| Daniel Stenberg | 48bc73c | 2002-05-21 13:53:32 +0000 | [diff] [blame] | 424 | 3.14 Does curl support javascript or pac (automated proxy config)? |
| 425 | |
| 426 | Many web pages do magic stuff using embedded javascript. Curl and libcurl |
| 427 | have no built-in support for that, so it will be treated just like any other |
| 428 | contents. |
| 429 | |
| 430 | .pac files are a netscape invention and are sometimes used by organizations |
| 431 | to allow them to differentiate which proxies to use. The .pac contents is |
| 432 | just a javascript program that gets invoked by the browser and that returns |
| 433 | the name of the proxy to connect to. Since curl doesn't support javascript, |
| 434 | it can't support .pac proxy configuration either. |
| 435 | |
| 436 | Some work-arounds usually suggested to overcome this javascript dependency: |
| 437 | |
| 438 | - Depending on the javascript complexity, write up a script that |
| 439 | translates it to another language and execute that. |
| 440 | |
| 441 | - Read the javascript code and rewrite the same logic in another language. |
| 442 | |
| 443 | - Implement a javascript interpreted, people have successfully used the |
| 444 | Mozilla javascript engine in the past. |
| 445 | |
| 446 | - Ask your admins to stop this, for a static proxy setup or similar. |
| 447 | |
| Daniel Stenberg | 6b1a1a6 | 2002-03-11 08:29:26 +0000 | [diff] [blame] | 448 | |
| Daniel Stenberg | c3318b4 | 2000-08-17 14:06:42 +0000 | [diff] [blame] | 449 | 4. Running Problems |
| 450 | |
| 451 | 4.1. Problems connecting to SSL servers. |
| Daniel Stenberg | e9640b6 | 2000-08-02 07:17:56 +0000 | [diff] [blame] | 452 | |
| Daniel Stenberg | 11d718b | 2001-03-13 11:47:30 +0000 | [diff] [blame] | 453 | It took a very long time before we could sort out why curl had problems to |
| 454 | connect to certain SSL servers when using SSLeay or OpenSSL v0.9+. The |
| 455 | error sometimes showed up similar to: |
| Daniel Stenberg | e9640b6 | 2000-08-02 07:17:56 +0000 | [diff] [blame] | 456 | |
| 457 | 16570:error:1407D071:SSL routines:SSL2_READ:bad mac decode:s2_pkt.c:233: |
| 458 | |
| 459 | It turned out to be because many older SSL servers don't deal with SSLv3 |
| 460 | requests properly. To correct this problem, tell curl to select SSLv2 from |
| 461 | the command line (-2/--sslv2). |
| 462 | |
| Daniel Stenberg | 11d718b | 2001-03-13 11:47:30 +0000 | [diff] [blame] | 463 | There has also been examples where the remote server didn't like the SSLv2 |
| Daniel Stenberg | e9640b6 | 2000-08-02 07:17:56 +0000 | [diff] [blame] | 464 | request and instead you had to force curl to use SSLv3 with -3/--sslv3. |
| 465 | |
| Daniel Stenberg | e26ee09 | 2001-01-15 10:26:37 +0000 | [diff] [blame] | 466 | 4.2. Why do I get problems when I use & or % in the URL? |
| Daniel Stenberg | 2947010 | 2000-06-02 13:32:01 +0000 | [diff] [blame] | 467 | |
| Daniel Stenberg | 11d718b | 2001-03-13 11:47:30 +0000 | [diff] [blame] | 468 | In general unix shells, the & letter is treated special and when used, it |
| Daniel Stenberg | c3c7739 | 2000-07-31 22:42:34 +0000 | [diff] [blame] | 469 | runs the specified command in the background. To safely send the & as a part |
| Daniel Stenberg | 4c48599 | 2001-04-22 15:45:27 +0000 | [diff] [blame] | 470 | of a URL, you should quote the entire URL by using single (') or double (") |
| Daniel Stenberg | c3c7739 | 2000-07-31 22:42:34 +0000 | [diff] [blame] | 471 | quotes around it. |
| Daniel Stenberg | 2947010 | 2000-06-02 13:32:01 +0000 | [diff] [blame] | 472 | |
| Daniel Stenberg | c3c7739 | 2000-07-31 22:42:34 +0000 | [diff] [blame] | 473 | An example that would invoke a remote CGI that uses &-letters could be: |
| Daniel Stenberg | 8f03732 | 2000-06-06 14:09:01 +0000 | [diff] [blame] | 474 | |
| Daniel Stenberg | edcd5df | 2000-06-06 14:13:36 +0000 | [diff] [blame] | 475 | curl 'http://www.altavista.com/cgi-bin/query?text=yes&q=curl' |
| Daniel Stenberg | 8f03732 | 2000-06-06 14:09:01 +0000 | [diff] [blame] | 476 | |
| Daniel Stenberg | daf5570 | 2002-08-29 07:05:31 +0000 | [diff] [blame] | 477 | In Windows, the standard DOS shell treats the %-letter specially and you |
| 478 | need to use TWO %-letters for each single one you want to use in the URL. |
| Daniel Stenberg | e26ee09 | 2001-01-15 10:26:37 +0000 | [diff] [blame] | 479 | |
| Daniel Stenberg | 1b77c18 | 2001-01-29 10:24:51 +0000 | [diff] [blame] | 480 | Also note that if you want the literal %-letter to be part of the data you |
| Daniel Stenberg | daf5570 | 2002-08-29 07:05:31 +0000 | [diff] [blame] | 481 | pass in a POST using -d/--data you must encode it as '%25' (which then also |
| 482 | needs the %-letter doubled on Windows machines). |
| Daniel Stenberg | 1b77c18 | 2001-01-29 10:24:51 +0000 | [diff] [blame] | 483 | |
| Daniel Stenberg | c3318b4 | 2000-08-17 14:06:42 +0000 | [diff] [blame] | 484 | 4.3. How can I use {, }, [ or ] to specify multiple URLs? |
| Daniel Stenberg | 2947010 | 2000-06-02 13:32:01 +0000 | [diff] [blame] | 485 | |
| Daniel Stenberg | c3c7739 | 2000-07-31 22:42:34 +0000 | [diff] [blame] | 486 | Because those letters have a special meaning to the shell, and to be used in |
| 487 | a URL specified to curl you must quote them. |
| Daniel Stenberg | 2947010 | 2000-06-02 13:32:01 +0000 | [diff] [blame] | 488 | |
| Daniel Stenberg | c3c7739 | 2000-07-31 22:42:34 +0000 | [diff] [blame] | 489 | An example that downloads two URLs (sequentially) would do: |
| Daniel Stenberg | 8f03732 | 2000-06-06 14:09:01 +0000 | [diff] [blame] | 490 | |
| Daniel Stenberg | edcd5df | 2000-06-06 14:13:36 +0000 | [diff] [blame] | 491 | curl '{curl,www}.haxx.se' |
| Daniel Stenberg | 8f03732 | 2000-06-06 14:09:01 +0000 | [diff] [blame] | 492 | |
| Daniel Stenberg | e26ee09 | 2001-01-15 10:26:37 +0000 | [diff] [blame] | 493 | To be able to use those letters as actual parts of the URL (without using |
| Daniel Stenberg | 11d718b | 2001-03-13 11:47:30 +0000 | [diff] [blame] | 494 | them for the curl URL "globbing" system), use the -g/--globoff option (curl |
| 495 | 7.6 and later): |
| Daniel Stenberg | e26ee09 | 2001-01-15 10:26:37 +0000 | [diff] [blame] | 496 | |
| 497 | curl -g 'www.site.com/weirdname[].html' |
| 498 | |
| Daniel Stenberg | c3318b4 | 2000-08-17 14:06:42 +0000 | [diff] [blame] | 499 | 4.4. Why do I get downloaded data even though the web page doesn't exist? |
| Daniel Stenberg | 2947010 | 2000-06-02 13:32:01 +0000 | [diff] [blame] | 500 | |
| Daniel Stenberg | c3c7739 | 2000-07-31 22:42:34 +0000 | [diff] [blame] | 501 | Curl asks remote servers for the page you specify. If the page doesn't exist |
| 502 | at the server, the HTTP protocol defines how the server should respond and |
| 503 | that means that headers and a "page" will be returned. That's simply how |
| 504 | HTTP works. |
| Daniel Stenberg | 2947010 | 2000-06-02 13:32:01 +0000 | [diff] [blame] | 505 | |
| Daniel Stenberg | c3c7739 | 2000-07-31 22:42:34 +0000 | [diff] [blame] | 506 | By using the --fail option you can tell curl explicitly to not get any data |
| 507 | if the HTTP return code doesn't say success. |
| Daniel Stenberg | 8f03732 | 2000-06-06 14:09:01 +0000 | [diff] [blame] | 508 | |
| Daniel Stenberg | c3318b4 | 2000-08-17 14:06:42 +0000 | [diff] [blame] | 509 | 4.5 Why do I get return code XXX from a HTTP server? |
| Daniel Stenberg | 2947010 | 2000-06-02 13:32:01 +0000 | [diff] [blame] | 510 | |
| Daniel Stenberg | 11d718b | 2001-03-13 11:47:30 +0000 | [diff] [blame] | 511 | RFC2616 clearly explains the return codes. This is a short transcript. Go |
| 512 | read the RFC for exact details: |
| Daniel Stenberg | 2947010 | 2000-06-02 13:32:01 +0000 | [diff] [blame] | 513 | |
| Daniel Stenberg | 09ba856 | 2000-10-27 12:25:00 +0000 | [diff] [blame] | 514 | 4.5.1 "400 Bad Request" |
| Daniel Stenberg | 2947010 | 2000-06-02 13:32:01 +0000 | [diff] [blame] | 515 | |
| Daniel Stenberg | c3318b4 | 2000-08-17 14:06:42 +0000 | [diff] [blame] | 516 | The request could not be understood by the server due to malformed |
| 517 | syntax. The client SHOULD NOT repeat the request without modifications. |
| 518 | |
| Daniel Stenberg | 09ba856 | 2000-10-27 12:25:00 +0000 | [diff] [blame] | 519 | 4.5.2 "401 Unauthorized" |
| Daniel Stenberg | c3318b4 | 2000-08-17 14:06:42 +0000 | [diff] [blame] | 520 | |
| 521 | The request requires user authentication. |
| 522 | |
| Daniel Stenberg | 09ba856 | 2000-10-27 12:25:00 +0000 | [diff] [blame] | 523 | 4.5.3 "403 Forbidden" |
| Daniel Stenberg | c3318b4 | 2000-08-17 14:06:42 +0000 | [diff] [blame] | 524 | |
| 525 | The server understood the request, but is refusing to fulfill it. |
| 526 | Authorization will not help and the request SHOULD NOT be repeated. |
| 527 | |
| Daniel Stenberg | 09ba856 | 2000-10-27 12:25:00 +0000 | [diff] [blame] | 528 | 4.5.4 "404 Not Found" |
| Daniel Stenberg | c3318b4 | 2000-08-17 14:06:42 +0000 | [diff] [blame] | 529 | |
| 530 | The server has not found anything matching the Request-URI. No indication |
| 531 | is given of whether the condition is temporary or permanent. |
| 532 | |
| Daniel Stenberg | 09ba856 | 2000-10-27 12:25:00 +0000 | [diff] [blame] | 533 | 4.5.5 "405 Method Not Allowed" |
| Daniel Stenberg | c3318b4 | 2000-08-17 14:06:42 +0000 | [diff] [blame] | 534 | |
| 535 | The method specified in the Request-Line is not allowed for the resource |
| 536 | identified by the Request-URI. The response MUST include an Allow header |
| 537 | containing a list of valid methods for the requested resource. |
| 538 | |
| Daniel Stenberg | d60029d | 2001-12-19 23:25:04 +0000 | [diff] [blame] | 539 | 4.5.6 "301 Moved Permanently" |
| 540 | |
| Daniel Stenberg | 98871d1 | 2002-05-22 22:14:03 +0000 | [diff] [blame] | 541 | If you get this return code and an HTML output similar to this: |
| Daniel Stenberg | d60029d | 2001-12-19 23:25:04 +0000 | [diff] [blame] | 542 | |
| 543 | <H1>Moved Permanently</H1> The document has moved <A |
| 544 | HREF="http://same_url_now_with_a_trailing_slash/">here</A>. |
| 545 | |
| 546 | it might be because you request a directory URL but without the trailing |
| 547 | slash. Try the same operation again _with_ the trailing URL, or use the |
| 548 | -L/--location option to follow the redirection. |
| 549 | |
| Daniel Stenberg | c3318b4 | 2000-08-17 14:06:42 +0000 | [diff] [blame] | 550 | 4.6. Can you tell me what error code 142 means? |
| Daniel Stenberg | 2947010 | 2000-06-02 13:32:01 +0000 | [diff] [blame] | 551 | |
| Daniel Stenberg | c3c7739 | 2000-07-31 22:42:34 +0000 | [diff] [blame] | 552 | All error codes that are larger than the highest documented error code means |
| Daniel Stenberg | 13bf964 | 2001-08-23 11:11:13 +0000 | [diff] [blame] | 553 | that curl has exited due to a crash. This is a serious error, and we |
| Daniel Stenberg | 25fe47f | 2001-11-14 20:13:38 +0000 | [diff] [blame] | 554 | appreciate a detailed bug report from you that describes how we could go |
| Daniel Stenberg | 13bf964 | 2001-08-23 11:11:13 +0000 | [diff] [blame] | 555 | ahead and repeat this! |
| Daniel Stenberg | 2947010 | 2000-06-02 13:32:01 +0000 | [diff] [blame] | 556 | |
| Daniel Stenberg | 4c48599 | 2001-04-22 15:45:27 +0000 | [diff] [blame] | 557 | 4.7. How do I keep user names and passwords secret in Curl command lines? |
| Daniel Stenberg | 2947010 | 2000-06-02 13:32:01 +0000 | [diff] [blame] | 558 | |
| Daniel Stenberg | 11d718b | 2001-03-13 11:47:30 +0000 | [diff] [blame] | 559 | This problem has two sides: |
| Daniel Stenberg | 2947010 | 2000-06-02 13:32:01 +0000 | [diff] [blame] | 560 | |
| Daniel Stenberg | c3c7739 | 2000-07-31 22:42:34 +0000 | [diff] [blame] | 561 | The first part is to avoid having clear-text passwords in the command line |
| 562 | so that they don't appear in 'ps' outputs and similar. That is easily |
| Daniel Stenberg | 4c48599 | 2001-04-22 15:45:27 +0000 | [diff] [blame] | 563 | avoided by using the "-K" option to tell curl to read parameters from a |
| Daniel Stenberg | c3c7739 | 2000-07-31 22:42:34 +0000 | [diff] [blame] | 564 | file or stdin to which you can pass the secret info. |
| Daniel Stenberg | 2947010 | 2000-06-02 13:32:01 +0000 | [diff] [blame] | 565 | |
| Daniel Stenberg | c3c7739 | 2000-07-31 22:42:34 +0000 | [diff] [blame] | 566 | To keep the passwords in your account secret from the rest of the world is |
| 567 | not a task that curl addresses. You could of course encrypt them somehow to |
| 568 | at least hide them from being read by human eyes, but that is not what |
| 569 | anyone would call security. |
| Daniel Stenberg | 2947010 | 2000-06-02 13:32:01 +0000 | [diff] [blame] | 570 | |
| Daniel Stenberg | 887e728 | 2001-01-03 09:13:07 +0000 | [diff] [blame] | 571 | Also note that regular HTTP and FTP passwords are sent in clear across the |
| 572 | network. All it takes for anyone to fetch them is to listen on the network. |
| Daniel Stenberg | 4c48599 | 2001-04-22 15:45:27 +0000 | [diff] [blame] | 573 | Eavesdropping is very easy. |
| Daniel Stenberg | 887e728 | 2001-01-03 09:13:07 +0000 | [diff] [blame] | 574 | |
| Daniel Stenberg | 09ba856 | 2000-10-27 12:25:00 +0000 | [diff] [blame] | 575 | 4.8 I found a bug! |
| 576 | |
| Daniel Stenberg | 4c48599 | 2001-04-22 15:45:27 +0000 | [diff] [blame] | 577 | It is not a bug if the behavior is documented. Read the docs first. |
| Daniel Stenberg | 09ba856 | 2000-10-27 12:25:00 +0000 | [diff] [blame] | 578 | |
| 579 | If it is a problem with a binary you've downloaded or a package for your |
| 580 | particular platform, try contacting the person who built the package/archive |
| 581 | you have. |
| 582 | |
| Daniel Stenberg | 8eaa7fe | 2002-04-27 18:12:26 +0000 | [diff] [blame] | 583 | If there is a bug, read the BUGS document first. Then report it as described |
| 584 | in there. |
| Daniel Stenberg | 09ba856 | 2000-10-27 12:25:00 +0000 | [diff] [blame] | 585 | |
| Daniel Stenberg | 2c10037 | 2000-12-19 07:30:51 +0000 | [diff] [blame] | 586 | 4.9. Curl can't authenticate to the server that requires NTLM? |
| 587 | |
| 588 | NTLM is a Microsoft proprietary protocol. Unfortunately, curl does not |
| Daniel Stenberg | c59baa0 | 2001-02-12 10:05:09 +0000 | [diff] [blame] | 589 | currently support that. Proprietary formats are evil. You should not use |
| 590 | such ones. |
| Daniel Stenberg | 2947010 | 2000-06-02 13:32:01 +0000 | [diff] [blame] | 591 | |
| Daniel Stenberg | bc74375 | 2002-05-15 21:40:29 +0000 | [diff] [blame] | 592 | 4.10 My HTTP request using HEAD, PUT or DELETE doesn't work! |
| 593 | |
| 594 | Many web servers allow or demand that the administrator configures the |
| 595 | server properly for these requests to work on the web server. |
| 596 | |
| 597 | Some servers seem to support HEAD only on certain kinds of URLs. |
| 598 | |
| 599 | To fully grasp this, try the documentation for the particular server |
| 600 | software you're trying to interact with. This is not anything curl can do |
| 601 | anything about. |
| 602 | |
| 603 | |
| Daniel Stenberg | c3318b4 | 2000-08-17 14:06:42 +0000 | [diff] [blame] | 604 | 5. libcurl Issues |
| Daniel Stenberg | 2947010 | 2000-06-02 13:32:01 +0000 | [diff] [blame] | 605 | |
| Daniel Stenberg | 7d09e51 | 2001-01-11 12:52:07 +0000 | [diff] [blame] | 606 | 5.1. Is libcurl thread-safe? |
| Daniel Stenberg | 2947010 | 2000-06-02 13:32:01 +0000 | [diff] [blame] | 607 | |
| Daniel Stenberg | 7d09e51 | 2001-01-11 12:52:07 +0000 | [diff] [blame] | 608 | Yes. |
| 609 | |
| 610 | We have written the libcurl code specificly adjusted for multi-threaded |
| 611 | programs. libcurl will use thread-safe functions instead of non-safe ones if |
| 612 | your system has such. |
| Daniel Stenberg | 2947010 | 2000-06-02 13:32:01 +0000 | [diff] [blame] | 613 | |
| Daniel Stenberg | 4c48599 | 2001-04-22 15:45:27 +0000 | [diff] [blame] | 614 | We would appreciate some kind of report or README file from those who have |
| Daniel Stenberg | 11d718b | 2001-03-13 11:47:30 +0000 | [diff] [blame] | 615 | used libcurl in a threaded environment. |
| Daniel Stenberg | 2947010 | 2000-06-02 13:32:01 +0000 | [diff] [blame] | 616 | |
| Daniel Stenberg | a40b55d | 2000-11-22 07:27:26 +0000 | [diff] [blame] | 617 | 5.2 How can I receive all data into a large memory chunk? |
| 618 | |
| Daniel Stenberg | a84af98 | 2001-05-15 13:09:27 +0000 | [diff] [blame] | 619 | [ See also the examples/getinmemory.c source ] |
| 620 | |
| Daniel Stenberg | a40b55d | 2000-11-22 07:27:26 +0000 | [diff] [blame] | 621 | You are in full control of the callback function that gets called every time |
| 622 | there is data received from the remote server. You can make that callback do |
| Daniel Stenberg | 4c48599 | 2001-04-22 15:45:27 +0000 | [diff] [blame] | 623 | whatever you want. You do not have to write the received data to a file. |
| Daniel Stenberg | a40b55d | 2000-11-22 07:27:26 +0000 | [diff] [blame] | 624 | |
| 625 | One solution to this problem could be to have a pointer to a struct that you |
| 626 | pass to the callback function. You set the pointer using the |
| 627 | curl_easy_setopt(CURLOPT_FILE) function. Then that pointer will be passed to |
| 628 | the callback instead of a FILE * to a file: |
| 629 | |
| 630 | /* imaginary struct */ |
| 631 | struct MemoryStruct { |
| 632 | char *memory; |
| 633 | size_t size; |
| 634 | }; |
| 635 | |
| 636 | /* imaginary callback function */ |
| 637 | size_t |
| 638 | WriteMemoryCallback(void *ptr, size_t size, size_t nmemb, void *data) |
| 639 | { |
| 640 | register int realsize = size * nmemb; |
| 641 | struct MemoryStruct *mem = (struct MemoryStruct *)data; |
| 642 | |
| 643 | mem->memory = (char *)realloc(mem->memory, mem->size + realsize + 1); |
| 644 | if (mem->memory) { |
| 645 | memcpy(&(mem->memory[mem->size]), ptr, realsize); |
| 646 | mem->size += realsize; |
| 647 | mem->memory[mem->size] = 0; |
| 648 | } |
| 649 | return realsize; |
| 650 | } |
| 651 | |
| Daniel Stenberg | 2c10037 | 2000-12-19 07:30:51 +0000 | [diff] [blame] | 652 | 5.3 How do I fetch multiple files with libcurl? |
| Daniel Stenberg | ec5ac82 | 2000-12-14 08:37:09 +0000 | [diff] [blame] | 653 | |
| Daniel Stenberg | 5dd0a8a | 2001-03-06 14:37:37 +0000 | [diff] [blame] | 654 | Starting with version 7.7, curl and libcurl will have excellent support for |
| Daniel Stenberg | 11d718b | 2001-03-13 11:47:30 +0000 | [diff] [blame] | 655 | transferring multiple files. You should just repeatedly set new URLs with |
| 656 | curl_easy_setopt() and then transfer it with curl_easy_perform(). The handle |
| 657 | you get from curl_easy_init() is not only reusable starting with libcurl |
| 658 | 7.7, but also you're encouraged to reuse it if you can, as that will enable |
| Daniel Stenberg | 4c48599 | 2001-04-22 15:45:27 +0000 | [diff] [blame] | 659 | libcurl to use persistent connections. |
| Daniel Stenberg | 5dd0a8a | 2001-03-06 14:37:37 +0000 | [diff] [blame] | 660 | |
| Daniel Stenberg | 11d718b | 2001-03-13 11:47:30 +0000 | [diff] [blame] | 661 | For libcurl prior to 7.7, there was no multiple file support. The only |
| 662 | available way to do multiple requests was to init/perform/cleanup for each |
| 663 | transfer. |
| Daniel Stenberg | a40b55d | 2000-11-22 07:27:26 +0000 | [diff] [blame] | 664 | |
| Daniel Stenberg | bc5954f | 2001-03-23 08:16:24 +0000 | [diff] [blame] | 665 | 5.4 Does libcurl do Winsock initialization on win32 systems? |
| Daniel Stenberg | 910fc85 | 2000-12-30 11:48:51 +0000 | [diff] [blame] | 666 | |
| Daniel Stenberg | 6d213e2 | 2001-11-01 14:51:02 +0000 | [diff] [blame] | 667 | Yes (since 7.8.1) if told to in the curl_global_init() call. |
| Daniel Stenberg | 910fc85 | 2000-12-30 11:48:51 +0000 | [diff] [blame] | 668 | |
| Daniel Stenberg | 5d7b32d | 2001-02-04 20:08:42 +0000 | [diff] [blame] | 669 | 5.5 Does CURLOPT_FILE and CURLOPT_INFILE work on win32 ? |
| Daniel Stenberg | 41084e5 | 2001-01-22 08:42:00 +0000 | [diff] [blame] | 670 | |
| 671 | Yes, but you cannot open a FILE * and pass the pointer to a DLL and have |
| Daniel Stenberg | 5d7b32d | 2001-02-04 20:08:42 +0000 | [diff] [blame] | 672 | that DLL use the FILE *. If you set CURLOPT_FILE you must also use |
| 673 | CURLOPT_WRITEFUNCTION as well to set a function that writes the file, even |
| 674 | if that simply writes the data to the specified FILE*. Similarly, if you use |
| 675 | CURLOPT_INFILE you must also specify CURLOPT_READFUNCTION. |
| Daniel Stenberg | 41084e5 | 2001-01-22 08:42:00 +0000 | [diff] [blame] | 676 | |
| Daniel Stenberg | 5d7b32d | 2001-02-04 20:08:42 +0000 | [diff] [blame] | 677 | (Provided by Joel DeYoung and Bob Schader) |
| Daniel Stenberg | 41084e5 | 2001-01-22 08:42:00 +0000 | [diff] [blame] | 678 | |
| Daniel Stenberg | 4c48599 | 2001-04-22 15:45:27 +0000 | [diff] [blame] | 679 | 5.6 What about Keep-Alive or persistent connections? |
| Daniel Stenberg | 6dc5c6f | 2001-01-27 20:51:31 +0000 | [diff] [blame] | 680 | |
| Daniel Stenberg | 5dd0a8a | 2001-03-06 14:37:37 +0000 | [diff] [blame] | 681 | Starting with version 7.7, curl and libcurl will have excellent support for |
| Daniel Stenberg | 4c48599 | 2001-04-22 15:45:27 +0000 | [diff] [blame] | 682 | persistent connections when transferring several files from the same server. |
| Daniel Stenberg | 11d718b | 2001-03-13 11:47:30 +0000 | [diff] [blame] | 683 | Curl will attempt to reuse connections for all URLs specified on the same |
| 684 | command line/config file, and libcurl will reuse connections for all |
| 685 | transfers that are made using the same libcurl handle. |
| Daniel Stenberg | 5dd0a8a | 2001-03-06 14:37:37 +0000 | [diff] [blame] | 686 | |
| Daniel Stenberg | 4c48599 | 2001-04-22 15:45:27 +0000 | [diff] [blame] | 687 | Previous versions had no persistent connection support. |
| Daniel Stenberg | 6dc5c6f | 2001-01-27 20:51:31 +0000 | [diff] [blame] | 688 | |
| Daniel Stenberg | c3318b4 | 2000-08-17 14:06:42 +0000 | [diff] [blame] | 689 | 6. License Issues |
| Daniel Stenberg | c3c7739 | 2000-07-31 22:42:34 +0000 | [diff] [blame] | 690 | |
| Daniel Stenberg | 1c96128 | 2002-09-03 11:58:18 +0000 | [diff] [blame] | 691 | Curl and libcurl are released under a MIT/X derivate license. The license is |
| 692 | very liberal and should not impose a problem for your project. This section |
| 693 | is just a brief summary for the cases we get the most questions. (Parts of |
| 694 | this section was much enhanced by Bjorn Reese.) |
| Daniel Stenberg | c3c7739 | 2000-07-31 22:42:34 +0000 | [diff] [blame] | 695 | |
| Daniel Stenberg | c3318b4 | 2000-08-17 14:06:42 +0000 | [diff] [blame] | 696 | 6.1. I have a GPL program, can I use the libcurl library? |
| Daniel Stenberg | c3c7739 | 2000-07-31 22:42:34 +0000 | [diff] [blame] | 697 | |
| Daniel Stenberg | 0d181b5 | 2001-01-04 12:43:53 +0000 | [diff] [blame] | 698 | Yes! |
| Daniel Stenberg | 7d1ef96 | 2000-08-14 06:31:59 +0000 | [diff] [blame] | 699 | |
| Daniel Stenberg | 0d181b5 | 2001-01-04 12:43:53 +0000 | [diff] [blame] | 700 | Since libcurl may be distributed under the MIT/X derivate license, it can be |
| 701 | used together with GPL in any software. |
| Daniel Stenberg | c3c7739 | 2000-07-31 22:42:34 +0000 | [diff] [blame] | 702 | |
| Daniel Stenberg | c3318b4 | 2000-08-17 14:06:42 +0000 | [diff] [blame] | 703 | 6.2. I have a closed-source program, can I use the libcurl library? |
| Daniel Stenberg | c3c7739 | 2000-07-31 22:42:34 +0000 | [diff] [blame] | 704 | |
| Daniel Stenberg | c59baa0 | 2001-02-12 10:05:09 +0000 | [diff] [blame] | 705 | Yes! |
| Daniel Stenberg | 0d181b5 | 2001-01-04 12:43:53 +0000 | [diff] [blame] | 706 | |
| Daniel Stenberg | c59baa0 | 2001-02-12 10:05:09 +0000 | [diff] [blame] | 707 | libcurl does not put any restrictions on the program that uses the library. |
| Daniel Stenberg | c3c7739 | 2000-07-31 22:42:34 +0000 | [diff] [blame] | 708 | |
| Daniel Stenberg | 31b8eea | 2000-08-23 07:27:00 +0000 | [diff] [blame] | 709 | 6.3. I have a BSD licensed program, can I use the libcurl library? |
| 710 | |
| Daniel Stenberg | c59baa0 | 2001-02-12 10:05:09 +0000 | [diff] [blame] | 711 | Yes! |
| Daniel Stenberg | 0d181b5 | 2001-01-04 12:43:53 +0000 | [diff] [blame] | 712 | |
| Daniel Stenberg | c59baa0 | 2001-02-12 10:05:09 +0000 | [diff] [blame] | 713 | libcurl does not put any restrictions on the program that uses the library. |
| Daniel Stenberg | 31b8eea | 2000-08-23 07:27:00 +0000 | [diff] [blame] | 714 | |
| 715 | 6.4. I have a program that uses LGPL libraries, can I use libcurl? |
| Daniel Stenberg | c3c7739 | 2000-07-31 22:42:34 +0000 | [diff] [blame] | 716 | |
| Daniel Stenberg | c59baa0 | 2001-02-12 10:05:09 +0000 | [diff] [blame] | 717 | Yes! |
| Daniel Stenberg | c3c7739 | 2000-07-31 22:42:34 +0000 | [diff] [blame] | 718 | |
| Daniel Stenberg | c59baa0 | 2001-02-12 10:05:09 +0000 | [diff] [blame] | 719 | The LGPL license doesn't clash with other licenses. |
| Daniel Stenberg | c3318b4 | 2000-08-17 14:06:42 +0000 | [diff] [blame] | 720 | |
| Daniel Stenberg | 31b8eea | 2000-08-23 07:27:00 +0000 | [diff] [blame] | 721 | 6.5. Can I modify curl/libcurl for my program and keep the changes secret? |
| Daniel Stenberg | c3c7739 | 2000-07-31 22:42:34 +0000 | [diff] [blame] | 722 | |
| Daniel Stenberg | c59baa0 | 2001-02-12 10:05:09 +0000 | [diff] [blame] | 723 | Yes! |
| Daniel Stenberg | 0d181b5 | 2001-01-04 12:43:53 +0000 | [diff] [blame] | 724 | |
| 725 | The MIT/X derivate license practically allows you to do almost anything with |
| 726 | the sources, on the condition that the copyright texts in the sources are |
| 727 | left intact. |
| Daniel Stenberg | c3c7739 | 2000-07-31 22:42:34 +0000 | [diff] [blame] | 728 | |
| Daniel Stenberg | 31b8eea | 2000-08-23 07:27:00 +0000 | [diff] [blame] | 729 | 6.6. Can you please change the curl/libcurl license to XXXX? |
| Daniel Stenberg | c3c7739 | 2000-07-31 22:42:34 +0000 | [diff] [blame] | 730 | |
| Daniel Stenberg | c59baa0 | 2001-02-12 10:05:09 +0000 | [diff] [blame] | 731 | No. |
| 732 | |
| Daniel Stenberg | 11d718b | 2001-03-13 11:47:30 +0000 | [diff] [blame] | 733 | We have carefully picked this license after years of development and |
| 734 | discussions and a large amount of people have contributed with source code |
| 735 | knowing that this is the license we use. This license puts the restrictions |
| 736 | we want on curl/libcurl and it does not spread to other programs or |
| 737 | libraries that use it. The recent dual license modification should make it |
| 738 | possible for everyone to use libcurl or curl in their projects, no matter |
| 739 | what license they already have in use. |