Added check for CURLINFO_HTTP_CODE.