easy:SetOpt_DebugFunction(debug_callback[, userdata])
#CURLOPT_VERBOSE
is in effect. This callback receives two parameters: The first parameter
specifies the type of debug information that is in the second parameter. This can
currently be one of the following special values:
#CURLINFO_TEXT
#CURLINFO_HEADER_IN
#CURLINFO_HEADER_OUT
#CURLINFO_DATA_IN
#CURLINFO_DATA_OUT
#CURLINFO_SSL_DATA_OUT
#CURLINFO_SSL_DATA_IN
The second parameter passed to your callback function is a string containing the actual debug information.
If you pass the optional userdata
argument, the value you pass in userdata
will
be passed to your callback function as a third parameter. The userdata
parameter can
be of any type.
Your debug callback shouldn't return anything.