In Qt C++ they use like this:
QtCUrl::Options opt;
QStringList headers;
headers
<< "Accept text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"
<< "Accept-Encoding gzip, deflate"
<< "Accept-Language ru-RU,ru;q=0.8,en-US;q=0.5,en;q=0.3"
<< "User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:20.0) Gecko/20100101 Firefox/20.0"
opt[CURLOPT_HTTPHEADER] = headers;
But, i cant use Qt libraries, so how do i do that same declaration of headers
in C++11?
Aucun commentaire:
Enregistrer un commentaire