/external/python/cpython3/Lib/urllib/ |
D | request.py | 659 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/ |
D | http_proxy.c | 214 free(data->req.newurl); in CONNECT() 215 data->req.newurl = NULL; in CONNECT() 586 if(s->close_connection && data->req.newurl) { in CONNECT() 597 if(data->req.newurl && (TUNNEL_COMPLETE == s->tunnel_state)) { in CONNECT() 601 } while(data->req.newurl); in CONNECT() 604 if(s->close_connection && data->req.newurl) { in CONNECT() 610 free(data->req.newurl); in CONNECT() 611 data->req.newurl = NULL; in CONNECT()
|
D | multi.c | 538 Curl_safefree(data->req.newurl); in multi_done() 1767 char *newurl = NULL; in multi_runsingle() local 1771 drc = Curl_retry_request(data->conn, &newurl); in multi_runsingle() 1783 if(newurl) { in multi_runsingle() 1786 drc = Curl_follow(data, newurl, follow); in multi_runsingle() 1806 free(newurl); in multi_runsingle() 1930 char *newurl = NULL; in multi_runsingle() local 1970 CURLcode ret = Curl_retry_request(data->conn, &newurl); in multi_runsingle() 1972 retry = (newurl)?TRUE:FALSE; in multi_runsingle() 1985 CURLcode ret = Curl_retry_request(data->conn, &newurl); in multi_runsingle() [all …]
|
D | transfer.c | 695 if(data->req.newurl) { in readwrite_data() 1322 !k->newurl) { in Curl_readwrite() 1542 char *newurl, /* the Location: string */ in Curl_follow() argument 1547 (void)newurl; in Curl_follow() 1589 if(Curl_is_absolute_url(newurl, NULL, MAX_SCHEME_LEN)) in Curl_follow() 1594 uc = curl_url_set(data->state.uh, CURLUPART_URL, newurl, in Curl_follow() 1603 newurl = strdup(newurl); in Curl_follow() 1604 if(!newurl) in Curl_follow() 1609 uc = curl_url_get(data->state.uh, CURLUPART_URL, &newurl, 0); in Curl_follow() 1617 data->info.wouldredirect = newurl; in Curl_follow() [all …]
|
D | transfer.h | 44 CURLcode Curl_follow(struct Curl_easy *data, char *newurl,
|
D | http.c | 601 Curl_safefree(data->req.newurl); in Curl_http_auth_act() 602 data->req.newurl = strdup(data->change.url); /* clone URL */ in Curl_http_auth_act() 603 if(!data->req.newurl) in Curl_http_auth_act() 615 data->req.newurl = strdup(data->change.url); /* clone URL */ in Curl_http_auth_act() 616 if(!data->req.newurl) in Curl_http_auth_act() 892 DEBUGASSERT(!data->req.newurl); in Curl_http_input_auth() 893 data->req.newurl = strdup(data->change.url); in Curl_http_input_auth() 894 if(!data->req.newurl) in Curl_http_input_auth() 4088 DEBUGASSERT(!data->req.newurl); in Curl_http_readwrite_headers() 4089 data->req.newurl = strdup(data->req.location); /* clone */ in Curl_http_readwrite_headers() [all …]
|
D | url.c | 368 free(data->req.newurl); in Curl_close() 369 data->req.newurl = NULL; in Curl_close() 1802 char *newurl; local 1815 uc = curl_url_get(uh, CURLUPART_URL, &newurl, 0); 1820 data->change.url = newurl; 1989 Curl_safefree(data->req.newurl);
|
D | urldata.h | 608 char *newurl; /* Set to the new URL to use when a redirect or a retry is member
|
/external/python/cpython2/Lib/ |
D | urllib2.py | 566 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 …]
|
D | urllib.py | 649 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/ |
D | urllib2.rst | 669 .. 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/ |
D | urllib.request.rst | 844 .. method:: HTTPRedirectHandler.redirect_request(req, fp, code, msg, hdrs, newurl) 850 redirect to *newurl*. Otherwise, raise :exc:`~urllib.error.HTTPError` if
|