/* TBD: set the URL with curl_setopt() */
data->url = data->newurl;
data->newurl = NULL; /* don't show! */
+ data->bits.urlstringalloc = TRUE; /* the URL is allocated */
/* Disable both types of POSTs, since doing a second POST when
following isn't what anyone would want! */
*bytecount = http->readbytecount + http->writebytecount;
}
- /* TBD: the HTTP struct remains allocated here */
+ free(http);
+ data->proto.http=NULL; /* it is gone */
return CURLE_OK;
}
bool mute;
bool no_body;
bool proxy_user_passwd;
- bool proxystringalloc; /* the http proxy string is malloc()'ed */
bool set_port;
bool set_range;
- bool rangestringalloc; /* the range string is malloc()'ed */
bool upload;
bool use_netrc;
bool user_passwd;
bool verbose;
bool this_is_a_follow; /* this is a followed Location: request */
bool krb4; /* kerberos4 connection requested */
+
+ bool proxystringalloc; /* the http proxy string is malloc()'ed */
+ bool rangestringalloc; /* the range string is malloc()'ed */
+ bool urlstringalloc; /* the URL string is malloc()'ed */
};
/* What type of interface that intiated this struct */