Home
last modified time | relevance | path

Searched refs:newurl (Results 1 – 13 of 13) sorted by relevance

/external/python/cpython3/Lib/urllib/
Drequest.py659 def redirect_request(self, req, fp, code, msg, headers, newurl): argument
683 newurl = newurl.replace(' ', '%20')
688 return Request(newurl,
701 newurl = headers["location"]
703 newurl = headers["uri"]
708 urlparts = urlparse(newurl)
715 newurl, code,
716 "%s - Redirection to url '%s' is not allowed" % (msg, newurl),
722 newurl = urlunparse(urlparts)
727 newurl = quote(
[all …]
/external/curl/lib/
Dhttp_proxy.c214 free(data->req.newurl); in CONNECT()
215 data->req.newurl = NULL; in CONNECT()
583 if(s->close_connection && data->req.newurl) { in CONNECT()
594 if(data->req.newurl && (TUNNEL_COMPLETE == s->tunnel_state)) { in CONNECT()
598 } while(data->req.newurl); in CONNECT()
601 if(s->close_connection && data->req.newurl) { in CONNECT()
607 free(data->req.newurl); in CONNECT()
608 data->req.newurl = NULL; in CONNECT()
Dmulti.c544 Curl_safefree(data->req.newurl); in multi_done()
1646 char *newurl = NULL; in multi_runsingle() local
1650 drc = Curl_retry_request(data->conn, &newurl); in multi_runsingle()
1662 if(newurl) { in multi_runsingle()
1665 drc = Curl_follow(data, newurl, follow); in multi_runsingle()
1685 free(newurl); in multi_runsingle()
1818 char *newurl = NULL; in multi_runsingle() local
1870 CURLcode ret = Curl_retry_request(data->conn, &newurl); in multi_runsingle()
1872 retry = (newurl)?TRUE:FALSE; in multi_runsingle()
1885 CURLcode ret = Curl_retry_request(data->conn, &newurl); in multi_runsingle()
[all …]
Dtransfer.c737 if(data->req.newurl) { in readwrite_data()
1381 !k->newurl) { in Curl_readwrite()
1604 char *newurl, /* the Location: string */ in Curl_follow() argument
1609 (void)newurl; in Curl_follow()
1651 if(Curl_is_absolute_url(newurl, NULL, MAX_SCHEME_LEN)) in Curl_follow()
1656 uc = curl_url_set(data->state.uh, CURLUPART_URL, newurl, in Curl_follow()
1664 newurl = strdup(newurl); in Curl_follow()
1665 if(!newurl) in Curl_follow()
1670 uc = curl_url_get(data->state.uh, CURLUPART_URL, &newurl, 0); in Curl_follow()
1678 data->info.wouldredirect = newurl; in Curl_follow()
[all …]
Dtransfer.h45 CURLcode Curl_follow(struct Curl_easy *data, char *newurl,
Dhttp.c586 Curl_safefree(data->req.newurl); in Curl_http_auth_act()
587 data->req.newurl = strdup(data->change.url); /* clone URL */ in Curl_http_auth_act()
588 if(!data->req.newurl) in Curl_http_auth_act()
600 data->req.newurl = strdup(data->change.url); /* clone URL */ in Curl_http_auth_act()
601 if(!data->req.newurl) in Curl_http_auth_act()
860 DEBUGASSERT(!data->req.newurl); in Curl_http_input_auth()
861 data->req.newurl = strdup(data->change.url); in Curl_http_input_auth()
862 if(!data->req.newurl) in Curl_http_input_auth()
4006 DEBUGASSERT(!data->req.newurl); in Curl_http_readwrite_headers()
4007 data->req.newurl = strdup(data->req.location); /* clone */ in Curl_http_readwrite_headers()
[all …]
Durldata.h593 char *newurl; /* Set to the new URL to use when a redirect or a retry is member
Durl.c365 free(data->req.newurl); in Curl_close()
366 data->req.newurl = NULL; in Curl_close()
2305 Curl_safefree(data->req.newurl); in Curl_free_request_state()
/external/python/cpython2/Lib/
Durllib2.py566 def redirect_request(self, req, fp, code, msg, headers, newurl): argument
585 newurl = newurl.replace(' ', '%20')
589 return Request(newurl,
604 newurl = headers.getheaders('location')[0]
606 newurl = headers.getheaders('uri')[0]
611 urlparts = urlparse.urlparse(newurl)
615 newurl = urlparse.urlunparse(urlparts)
617 newurl = urlparse.urljoin(req.get_full_url(), newurl)
621 newurl_lower = newurl.lower()
625 raise HTTPError(newurl, code,
[all …]
Durllib.py649 newurl = headers['location']
651 newurl = headers['uri']
656 newurl = basejoin(self.type + ":" + url, newurl)
660 newurl_lower = newurl.lower()
666 newurl,
669 return self.open(newurl)
732 newurl = 'http://' + host + selector
743 return self.open(newurl)
745 return self.open(newurl, data)
749 newurl = 'https://' + host + selector
[all …]
/external/python/cpython2/Doc/library/
Durllib2.rst669 .. method:: HTTPRedirectHandler.redirect_request(req, fp, code, msg, hdrs, newurl)
675 redirect to *newurl*. Otherwise, raise :exc:`HTTPError` if no other handler
/external/python/cpython3/Doc/library/
Durllib.request.rst817 .. method:: HTTPRedirectHandler.redirect_request(req, fp, code, msg, hdrs, newurl)
823 redirect to *newurl*. Otherwise, raise :exc:`~urllib.error.HTTPError` if
/external/curl/
DCHANGES4094 - Curl_follow: remove remaining free(newurl)