Get status code using CURLINFO_HTTP_CONNECTCODE when using proxy