Commit 27619fc4 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

Added support for CURLINFO_HTTP_CONNECTCODE

parent 96fecba1
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -106,6 +106,9 @@ CURLcode Curl_getinfo(struct SessionHandle *data, CURLINFO info, ...)
  case CURLINFO_HTTP_CODE:
    *param_longp = data->info.httpcode;
    break;
  case CURLINFO_HTTP_CONNECTCODE:
    *param_longp = data->info.httpproxycode;
    break;
  case CURLINFO_FILETIME:
    *param_longp = data->info.filetime;
    break;
+2 −0
Original line number Diff line number Diff line
@@ -556,6 +556,8 @@ CURLcode Curl_ConnectHTTPProxyTunnel(struct connectdata *conn,
  if(error)
    return CURLE_RECV_ERROR;

  data->info.httpproxycode = httperror;

  if(200 != httperror) {
    if(407 == httperror)
      /* Added Nov 6 1998 */
+1 −0
Original line number Diff line number Diff line
@@ -566,6 +566,7 @@ struct connectdata {
 */
struct PureInfo {
  int httpcode;
  int httpproxycode;
  int httpversion;
  long filetime; /* If requested, this is might get set. Set to -1 if the time
                    was unretrievable. We cannot have this of type time_t,