Home
last modified time | relevance | path

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

/external/python/cpython3/Lib/urllib/
Drequest.py651 def redirect_request(self, req, fp, code, msg, headers, newurl): argument
675 newurl = newurl.replace(' ', '%20')
680 return Request(newurl,
693 newurl = headers["location"]
695 newurl = headers["uri"]
700 urlparts = urlparse(newurl)
707 newurl, code,
708 "%s - Redirection to url '%s' is not allowed" % (msg, newurl),
714 newurl = urlunparse(urlparts)
719 newurl = quote(
[all …]
/external/curl/lib/
Dhttp_proxy.c219 free(data->req.newurl); in CONNECT()
220 data->req.newurl = NULL; in CONNECT()
569 if(s->close_connection && data->req.newurl) { in CONNECT()
580 if(data->req.newurl && (TUNNEL_COMPLETE == s->tunnel_state)) { in CONNECT()
584 } while(data->req.newurl); in CONNECT()
587 if(s->close_connection && data->req.newurl) { in CONNECT()
593 free(data->req.newurl); in CONNECT()
594 data->req.newurl = NULL; in CONNECT()
Dmulti.c570 Curl_safefree(data->req.newurl); in multi_done()
2093 char *newurl = NULL; local
2097 drc = Curl_retry_request(data->conn, &newurl);
2109 if(newurl) {
2112 drc = Curl_follow(data, newurl, follow);
2132 free(newurl);
2256 char *newurl = NULL; local
2296 CURLcode ret = Curl_retry_request(data->conn, &newurl);
2298 retry = (newurl)?TRUE:FALSE;
2311 CURLcode ret = Curl_retry_request(data->conn, &newurl);
[all …]
Dtransfer.c711 if(data->req.newurl) { in readwrite_data()
1339 !k->newurl) { in Curl_readwrite()
1560 char *newurl, /* the Location: string */ in Curl_follow() argument
1565 (void)newurl; in Curl_follow()
1607 if(Curl_is_absolute_url(newurl, NULL, MAX_SCHEME_LEN)) in Curl_follow()
1612 uc = curl_url_set(data->state.uh, CURLUPART_URL, newurl, in Curl_follow()
1621 newurl = strdup(newurl); in Curl_follow()
1622 if(!newurl) in Curl_follow()
1627 uc = curl_url_get(data->state.uh, CURLUPART_URL, &newurl, 0); in Curl_follow()
1635 data->info.wouldredirect = newurl; in Curl_follow()
[all …]
Dtransfer.h44 CURLcode Curl_follow(struct Curl_easy *data, char *newurl,
Dhttp.c612 Curl_safefree(data->req.newurl); in Curl_http_auth_act()
613 data->req.newurl = strdup(data->change.url); /* clone URL */ in Curl_http_auth_act()
614 if(!data->req.newurl) in Curl_http_auth_act()
626 data->req.newurl = strdup(data->change.url); /* clone URL */ in Curl_http_auth_act()
627 if(!data->req.newurl) in Curl_http_auth_act()
912 DEBUGASSERT(!data->req.newurl); in Curl_http_input_auth()
913 data->req.newurl = strdup(data->change.url); in Curl_http_input_auth()
914 if(!data->req.newurl) in Curl_http_input_auth()
3436 DEBUGASSERT(!data->req.newurl); in Curl_http_readwrite_headers()
3437 data->req.newurl = strdup(conn->data->change.url); in Curl_http_readwrite_headers()
[all …]
Durl.c398 free(data->req.newurl); in Curl_close()
399 data->req.newurl = NULL; in Curl_close()
1888 char *newurl; local
1901 uc = curl_url_get(uh, CURLUPART_URL, &newurl, 0);
1906 data->change.url = newurl;
2084 Curl_safefree(data->req.newurl);
Durldata.h634 char *newurl; /* Set to the new URL to use when a redirect or a retry is member
/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.rst836 .. method:: HTTPRedirectHandler.redirect_request(req, fp, code, msg, hdrs, newurl)
842 redirect to *newurl*. Otherwise, raise :exc:`~urllib.error.HTTPError` if