Home
last modified time | relevance | path

Searched refs:useragent (Results 1 – 14 of 14) sorted by relevance

/external/python/cpython3/Lib/urllib/
Drobotparser.py154 def can_fetch(self, useragent, url): argument
175 if entry.applies_to(useragent):
183 def crawl_delay(self, useragent): argument
187 if entry.applies_to(useragent):
193 def request_rate(self, useragent): argument
197 if entry.applies_to(useragent):
253 def applies_to(self, useragent): argument
256 useragent = useragent.split("/")[0].lower()
262 if agent in useragent:
/external/python/cpython3/Doc/library/
Durllib.robotparser.rst43 .. method:: can_fetch(useragent, url)
45 Returns ``True`` if the *useragent* is allowed to fetch the *url*
60 .. method:: crawl_delay(useragent)
63 for the *useragent* in question. If there is no such parameter or it
64 doesn't apply to the *useragent* specified or the ``robots.txt`` entry
69 .. method:: request_rate(useragent)
73 If there is no such parameter or it doesn't apply to the *useragent*
/external/apache-http/src/org/apache/http/protocol/
DRequestUserAgent.java67 String useragent = HttpProtocolParams.getUserAgent(request.getParams()); in process() local
68 if (useragent != null) { in process()
69 request.addHeader(HTTP.USER_AGENT, useragent); in process()
/external/python/cpython2/Lib/
Drobotparser.py130 def can_fetch(self, useragent, url): argument
153 if entry.applies_to(useragent):
201 def applies_to(self, useragent): argument
204 useragent = useragent.split("/")[0].lower()
210 if agent in useragent:
/external/apache-http/src/org/apache/http/params/
DHttpProtocolParams.java160 public static void setUserAgent(final HttpParams params, final String useragent) { in setUserAgent() argument
164 params.setParameter(CoreProtocolPNames.USER_AGENT, useragent); in setUserAgent()
/external/python/cpython2/Doc/library/
Drobotparser.rst50 .. method:: can_fetch(useragent, url)
52 Returns ``True`` if the *useragent* is allowed to fetch the *url*
/external/curl/src/
Dtool_paramhlp.c606 if(!config->useragent) { in get_args()
607 config->useragent = my_useragent(); in get_args()
608 if(!config->useragent) { in get_args()
Dtool_cfgable.h56 char *useragent; member
Dtool_cfgable.c55 Curl_safefree(config->useragent); in free_config_fields()
Dtool_getparam.c1269 GetStr(&config->useragent, nextarg); in getparameter()
Dtool_operate.c1307 my_setopt_str(curl, CURLOPT_USERAGENT, config->useragent); in single_transfer()
/external/curl/lib/
Dhttp_proxy.c237 const char *useragent = ""; in CONNECT() local
267 useragent = conn->allocptr.uagent; in CONNECT()
281 useragent, in CONNECT()
/external/grpc-grpc/src/objective-c/tests/
DGRPCClientTests.m285 call.requestHeaders[@"x-grpc-test-echo-useragent"] = @"";
292 NSString *userAgent = call.responseHeaders[@"x-grpc-test-echo-useragent"];
/external/apache-http/api/
Dcurrent.txt3755 field @Deprecated public static final String USER_AGENT = "http.useragent";