gives the total number of seconds to request one byte from the specified URL.
gives the specified timing.
Details and Options
- The URL may be specified as "url" or URL["url"]. IPAddress["host:protocol"] is also supported.
- The URL given can be just a host name, in which case the default HTTP port (80) is assumed.
- If a URL cannot be reached, URLResponseTime returns $Failed.
- Possible properties in URLResponseTime include:
All an association of all timings "ConnectionTimes" an association of timings related to connection steps "HostConnection" time until connection to host is established "HTTPRedirect" time spent on all redirection steps, if any "NameLookup" time until DNS lookup completed "PreTransfer" time to complete all steps prior to data transfer initiation "SSLHandshake" time until SSL handshake completed "TransactionTotal" total time for the complete request "TransferInitiation" time until the first byte of data is received
- URLResponseTime[url] is equivalent to URLResponseTime[url,"TransactionTotal"].
- URLResponseTime takes the following option:
TimeConstraint 60 time to wait for URL to respond
- Option settings t are interpreted as t seconds. Settings involving Quantity can also be used.
Examplesopen allclose all
Wolfram Research (2017), URLResponseTime, Wolfram Language function, https://reference.wolfram.com/language/ref/URLResponseTime.html.
Wolfram Language. 2017. "URLResponseTime." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/URLResponseTime.html.
Wolfram Language. (2017). URLResponseTime. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/URLResponseTime.html