@@ -27,28 +27,27 @@ interface functions you use. Use curl_easy_init(3) to get the handle.
27
27
28
28
You continue by setting all the options you want in the upcoming transfer, the
29
29
most important among them is the URL itself (you cannot transfer anything
30
- without a specified URL as you may have figured out yourself). You might want
31
- to set some callbacks as well that are called from the library when data is
32
- available etc. curl_easy_setopt(3) is used for all this.
33
-
34
- CURLOPT_URL(3) is the only option you really must set, as otherwise
35
- there can be no transfer. Another commonly used option is
36
- CURLOPT_VERBOSE(3) that helps you see what libcurl is doing under the
37
- hood, which is useful when debugging for example. The
38
- curl_easy_setopt(3) man page has a full index of the almost 300
30
+ without a specified URL). You might want to set some callbacks as well that
31
+ are called from the library when data is available etc. For example
32
+ CURLOPT_WRITEFUNCTION(3). curl_easy_setopt(3) is used for all this.
33
+
34
+ CURLOPT_URL(3) is the only option you really must set, as otherwise there can
35
+ be no transfer. Another commonly used option is CURLOPT_VERBOSE(3) that helps
36
+ you see what libcurl is doing under the hood, which is useful when debugging
37
+ for example. The curl_easy_setopt(3) man page has a full index of the over 300
39
38
available options.
40
39
41
40
If you at any point would like to blank all previously set options for a
42
- single easy handle, you can call curl_easy_reset(3) and you can also
43
- make a clone of an easy handle (with all its set options) using
41
+ single easy handle, you can call curl_easy_reset(3) and you can also make a
42
+ clone of an easy handle (with all its set options) using
44
43
curl_easy_duphandle(3).
45
44
46
45
When all is setup, you tell libcurl to perform the transfer using
47
- curl_easy_perform(3). It performs the entire transfer operation and does
48
- not return until it is done (successfully or not).
46
+ curl_easy_perform(3). It performs the entire transfer operation and does not
47
+ return until it is done (successfully or not).
49
48
50
49
After the transfer has been made, you can set new options and make another
51
50
transfer, or if you are done, cleanup the session by calling
52
- curl_easy_cleanup(3). If you want persistent connections, you do not
53
- cleanup immediately, but instead run ahead and perform other transfers using
54
- the same easy handle.
51
+ curl_easy_cleanup(3). If you want persistent connections, you do not cleanup
52
+ immediately, but instead run ahead and perform other transfers using the same
53
+ easy handle.
0 commit comments