mirror of
https://github.com/curl/curl.git
synced 2026-08-25 11:13:32 +03:00
parent
3c4fba8cf5
commit
cb521d1f9a
478 changed files with 5989 additions and 3861 deletions
|
|
@ -45,13 +45,16 @@ NULL
|
|||
All
|
||||
.SH EXAMPLE
|
||||
.nf
|
||||
CURL *curl = curl_easy_init();
|
||||
if(curl) {
|
||||
CURLcode ret;
|
||||
curl_easy_setopt(curl, CURLOPT_URL, "ftp://example.com/");
|
||||
curl_easy_setopt(curl, CURLOPT_NETRC, CURL_NETRC_OPTIONAL);
|
||||
curl_easy_setopt(curl, CURLOPT_NETRC_FILE, "/tmp/magic-netrc");
|
||||
ret = curl_easy_perform(curl);
|
||||
int main(void)
|
||||
{
|
||||
CURL *curl = curl_easy_init();
|
||||
if(curl) {
|
||||
CURLcode ret;
|
||||
curl_easy_setopt(curl, CURLOPT_URL, "ftp://example.com/");
|
||||
curl_easy_setopt(curl, CURLOPT_NETRC, CURL_NETRC_OPTIONAL);
|
||||
curl_easy_setopt(curl, CURLOPT_NETRC_FILE, "/tmp/magic-netrc");
|
||||
ret = curl_easy_perform(curl);
|
||||
}
|
||||
}
|
||||
.fi
|
||||
.SH AVAILABILITY
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue