Currently, I'm working on a HTTP Proxy using libcurl in C++.
curl_easy_setopt(curl, CURLOPT_HTTPHEADER, headers);
Above is my code to customize HTTP request header. The headers parameter is a curl_slist pointer variable. I have append all necessary heads information like Accept, Keep Alive, Referer and so on using curl_slist_append() method. However, when I used wireshark to observe the network traffic, I found that CURL didn't use my customized headers while it used "Accept: * / *\r\n".
Does anyone know how to disable the internal header of CURL?