Lines Matching refs:newurl
533 if(data->req.newurl) {
1128 !data->req.newurl) {
1681 /* now deal with one "./" or any amount of "../" in the newurl
1767 * Curl_follow() handles the URL redirect magic. Pass in the 'newurl' string
1771 char *newurl, /* this 'newurl' is the Location: string,
1778 (void)newurl;
1817 if(!is_absolute_url(newurl)) {
1822 char *absolute = concat_url(data->change.url, newurl);
1825 free(newurl);
1826 newurl = absolute;
1832 if(strchr(newurl, ' ')) {
1836 size_t newlen = strlen_url(newurl);
1841 strcpy_url(newest, newurl); /* create a space-free URL */
1843 free(newurl); /* that was no good */
1844 newurl = newest; /* use this instead now */
1852 data->info.wouldredirect = newurl;
1864 data->change.url = newurl;
1865 newurl = NULL; /* don't free! */
2105 char *newurl = NULL; /* possibly a new URL to follow to! */
2147 CURLcode rc = Curl_retry_request(conn, &newurl);
2151 retry = (newurl?TRUE:FALSE);
2154 /* we know (newurl != NULL) at this point */
2161 * be free()ed in the Curl_done() function. We prefer the newurl
2165 if(data->req.newurl) {
2167 newurl = strdup(data->req.newurl);
2168 if(!newurl)
2173 newurl = strdup(data->req.location);
2174 if(!newurl)
2179 /* in the above cases where 'newurl' gets assigned, we have a fresh
2217 res = Curl_follow(data, newurl, follow);
2220 responsibility for the newurl pointer */
2221 newurl = NULL;
2234 if(newurl)
2235 free(newurl);