curl-library
RE: how to turn off console?
Date: Thu, 30 Jun 2005 10:44:14 +0530
One solution is to provide your own handler for the response body. The API
to use is
curl_easy_setopt(m_Curl,CURLOPT_WRITEFUNCTION,<your handler>);
In your handler you can ignore the output.
Seetha
_____
From: curl-library-bounces_at_cool.haxx.se
[mailto:curl-library-bounces_at_cool.haxx.se] On Behalf Of Cris D Putnam
Sent: Wednesday, June 29, 2005 11:27 PM
To: curl-library_at_cool.haxx.se
Subject: how to turn off console?
I am using libcurl in a C++/ QT gui app. for windows. Using
curl_easy_perform(curl); for http basic authentication and the like. Now
throughout my development stage having the console window popup and display
the html as a connection to a webpage is established was fine and
reassuring,
Now that my project is almost complete I would like to remove the console.
If use the FreeConsole(); command it works and frees the console but
libcurl will not connect any longer.
freopen("NUL", "w+", stdout);
freopen("NUL", "w+", stderr);
These also cause lib curl to not make an http connection.
The same thing happens if I use visual studio to switch from a console app
to a windows app. I also tried
curl_easy_setopt(curl_handle,CURLOPT_VERBOSE,0); but the html still
displays in the console.
How can I stop the console window from popping up and still allow curl to
make my http connections?
Thank You
Cris D. Putnam
Received on 2005-06-30