GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
CURLOPT_STDERR(3) curl_easy_setopt options CURLOPT_STDERR(3)

CURLOPT_STDERR - redirect stderr to another stream

#include <curl/curl.h>
CURLcode curl_easy_setopt(CURL *handle, CURLOPT_STDERR, FILE *stream);

Pass a FILE * as parameter. Tell libcurl to use this stream instead of stderr when showing the progress meter and displaying CURLOPT_VERBOSE(3) data.

If you are using libcurl as a win32 DLL, this option will cause an exception and crash in the library since it cannot access a FILE * passed on from the application. A work-around is to instead use CURLOPT_DEBUGFUNCTION(3).

stderr

All

CURL *curl = curl_easy_init();
FILE *filep = fopen("dump", "wb");
if(curl) {
  curl_easy_setopt(curl, CURLOPT_URL, "https://example.com");
  curl_easy_setopt(curl, CURLOPT_STDERR, filep);
  curl_easy_perform(curl);
}

Always

Returns CURLE_OK

CURLOPT_VERBOSE(3), CURLOPT_NOPROGRESS(3), CURLOPT_DEBUGFUNCTION(3)
December 6, 2021 libcurl 7.83.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.