| probe | R Documentation |
Sends a GET for the first byte, so that the answer carries the
resource's headers without the resource; a HEAD is not used because
some servers answer it differently.
probe(url, clearance = NULL)
url |
The URL. |
clearance |
A clearance from |
It is the one-request way for a calling package to find out whether a
host needs a browser before opening one, say to tell its user that Chrome
is wanted only when it is: a browser is needed when challenged or
blocked is TRUE. fetch() and read_page() make the same probe
first themselves, so there is no need to probe before calling them. Each
probe is a request from this address, and counts towards the bursts that
make a host tighten its check (see fetch()).
A list: reachable, status (NA when unreachable),
challenged (is_challenge()), blocked (is_block()), type (the
content-type, lower case), size (bytes, from content-range or
content-length, NA when unknown) and headers (a named list). A
browser is called for when challenged or blocked is TRUE.
## Not run:
probe("https://www12.statcan.gc.ca/census-recensement/index-eng.cfm")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.