summaryrefslogtreecommitdiff
path: root/docs/libcurl/opts/CURLOPT_HEADERFUNCTION.html
diff options
context:
space:
mode:
Diffstat (limited to 'docs/libcurl/opts/CURLOPT_HEADERFUNCTION.html')
-rw-r--r--docs/libcurl/opts/CURLOPT_HEADERFUNCTION.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/libcurl/opts/CURLOPT_HEADERFUNCTION.html b/docs/libcurl/opts/CURLOPT_HEADERFUNCTION.html
index 1876a64b..182c1aea 100644
--- a/docs/libcurl/opts/CURLOPT_HEADERFUNCTION.html
+++ b/docs/libcurl/opts/CURLOPT_HEADERFUNCTION.html
@@ -72,13 +72,13 @@ static size_t header_callback(char *buffer, size_t size,
  /* 'userdata' is set with CURLOPT_WRITEDATA */
  return nitems * size;
}
-
+ 
CURL *curl = curl_easy_init();
if(curl) {
&nbsp; curl_easy_setopt(curl, CURLOPT_URL, "<a href="http://example.com">http://example.com</a>");
-
+&nbsp;
&nbsp; curl_easy_setopt(curl, CURLOPT_HEADERFUNCTION, header_callback);
-
+&nbsp;
&nbsp; curl_easy_perform(curl);
}
</pre>