Proposal: HTTP(S) Download Test
Both Gettor and Tor's main website are targets that attract censorship agencies and law enforcement. We should have an automatic way of testing if an HTTP(s) URL is accessible. Given a URL, the probe will download a maximum of maxFetchSize
bytes of data, calculate its digest, and return the digest if it exists, time in second to complete the download attempt and error if it exists.
Input
To test an HTTP(S) URL's reachability, send a POST request to
https://HOST/http-state
with a request body of
{
"url":"http://domain.name/path",
"maxFetchSize":102400
}
Output
{
"error":"error reason",
"sha256":"base64Ofhash",
"downloadSize":102400,
"time":0.123
}