Install curl-7.25.0.tar.bz2
[msysgit.git] / mingw / share / man / man3 / libcurl-easy.3
blob698a4ce720f7f0d5df5d0384370dd971be1068c4
1 .\" **************************************************************************
2 .\" *                                  _   _ ____  _
3 .\" *  Project                     ___| | | |  _ \| |
4 .\" *                             / __| | | | |_) | |
5 .\" *                            | (__| |_| |  _ <| |___
6 .\" *                             \___|\___/|_| \_\_____|
7 .\" *
8 .\" * Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al.
9 .\" *
10 .\" * This software is licensed as described in the file COPYING, which
11 .\" * you should have received as part of this distribution. The terms
12 .\" * are also available at http://curl.haxx.se/docs/copyright.html.
13 .\" *
14 .\" * You may opt to use, copy, modify, merge, publish, distribute and/or sell
15 .\" * copies of the Software, and permit persons to whom the Software is
16 .\" * furnished to do so, under the terms of the COPYING file.
17 .\" *
18 .\" * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
19 .\" * KIND, either express or implied.
20 .\" *
21 .\" **************************************************************************
22 .TH libcurl 3 "12 Aug 2003" "libcurl 7.10.7" "libcurl easy interface"
23 .SH NAME
24 libcurl-easy \- easy interface overview
25 .SH DESCRIPTION
26 When using libcurl's "easy" interface you init your session and get a handle
27 (often referred to as an "easy handle"), which you use as input to the easy
28 interface functions you use. Use \fIcurl_easy_init(3)\fP to get the handle.
30 You continue by setting all the options you want in the upcoming transfer, the
31 most important among them is the URL itself (you can't transfer anything
32 without a specified URL as you may have figured out yourself). You might want
33 to set some callbacks as well that will be called from the library when data
34 is available etc. \fIcurl_easy_setopt(3)\fP is used for all this.
36 When all is setup, you tell libcurl to perform the transfer using
37 \fIcurl_easy_perform(3)\fP.  It will then do the entire operation and won't
38 return until it is done (successfully or not).
40 After the transfer has been made, you can set new options and make another
41 transfer, or if you're done, cleanup the session by calling
42 \fIcurl_easy_cleanup(3)\fP. If you want persistent connections, you don't
43 cleanup immediately, but instead run ahead and perform other transfers using
44 the same easy handle.