libcurl - How to get http status code directly into a variable in cURL lib? -


i know curl_easy_getinfo function can used http status code. there anyway set variable (curl_easy_setopt) , read value directly after performing request?

no, use curl_easy_getinfo() extract information previous transfer. http response codes: curlinfo_response_code.


Comments

Popular posts from this blog

java - UnknownEntityTypeException: Unable to locate persister (Hibernate 5.0) -

python - ValueError: empty vocabulary; perhaps the documents only contain stop words -

ubuntu - collect2: fatal error: ld terminated with signal 9 [Killed] -