opts: added examples

This commit is contained in:
Daniel Stenberg
2014-10-21 08:58:03 +02:00
parent 005f2adaaa
commit c857bb68ec
14 changed files with 290 additions and 28 deletions

View File

@@ -39,7 +39,18 @@ Enabling this option means asking for a download but without a body.
.SH PROTOCOLS
Most
.SH EXAMPLE
TODO
.nf
curl = curl_easy_init();
if(curl) {
curl_easy_setopt(curl, CURLOPT_URL, "http://example.com");
/* get us the resource without a body! */
curl_easy_setopt(curl, CURLOPT_NOBODY, 1L);
/* Perform the request */
curl_easy_perform(curl);
}
.fi
.SH AVAILABILITY
Always
.SH RETURN VALUE