private static void Test() { var googClient = new GoogleCloudPrintClient(provider, token); using (var client = new WebClient()) { client.Headers.Add("X-CloudPrint-Proxy", proxy); var authToken = googClient.GetTokenAsync().Result.AccessToken; client.Headers.Add("Authorization", string.Format("Bearer {0}", authToken)); client.OpenRead("https://www.google.com/cloudprint/download?id=71a1c2f9-62a8-884a-a673-114db79b87bf"); var bytes_total = Convert.ToInt64(client.ResponseHeaders["Content-Length"]); Console.WriteLine(bytes_total.ToString() + " Bytes"); } }