so coming python c++ pretty difficult transition pardon might simple.
i looking response code of website after redirects , have after few google searches
curl_easy_setopt(curl, curlopt_postredir, curl_redir_get_all); curl_easy_setopt(curl, curlopt_url, url.c_str()); curl_easy_perform(curl); long http_code; curl_easy_getinfo(curl, curlinfo_response_code, &http_code); cout << http_code << endl;
but returns initial response code. might missing basic have python script similar , prints differen't response code program.
Comments
Post a Comment