Skip to content

Commit 16f5658

Browse files
committed
libcurl-easy.md: now *more* than 300 options
it previously said "almost 300". Also cleaned up the language somewhat. Closes curl#14153
1 parent b7f2c66 commit 16f5658

File tree

1 file changed

+15
-16
lines changed

1 file changed

+15
-16
lines changed

docs/libcurl/libcurl-easy.md

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -27,28 +27,27 @@ interface functions you use. Use curl_easy_init(3) to get the handle.
2727

2828
You continue by setting all the options you want in the upcoming transfer, the
2929
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
3938
available options.
4039

4140
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
4443
curl_easy_duphandle(3).
4544

4645
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).
4948

5049
After the transfer has been made, you can set new options and make another
5150
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

Comments
 (0)