Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8942301
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T11:29:01+00:00 2026-06-15T11:29:01+00:00

With c# I download files with webclient as string in order to check download

  • 0

With c# I download files with webclient as string in order to check download speed, how can I do this with javascript or PHP?
Here is my c# sample.

  Uri URL = new Uri("https://www.example.com/File512kb");
  WebClient wc = new WebClient();
  double starttime = Environment.TickCount;
  string file = wc.DownloadString(URL);     //download this file as string so I won't need to save it to local disk.
  stopWatch.Elapsed.Milliseconds;
  double endtime = Environment.TickCount;
  double milisecs = endtime - starttime;

Thanks…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T11:29:02+00:00Added an answer on June 15, 2026 at 11:29 am

    JavaScript:

    var start = new Date();
    $.ajax({
        url: "https://www.example.com/File512kb"
    }).done(function() {
        console.log(new Date() - start);
    });
    

    This returns the time passed in milliseconds. The function does use jQuery, however, since that’s a nice’n easy way to make AJAX calls.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to download zend-framework (from http://framework.zend.com/releases/ZendFramework-1.11.11/ZendFramework-1.11.11.zip ) simply using WebClient string url =
How can I download files to my trigger.io app? My app shows offline data,
How can I download files using Android downloader? (The downloader that WebBrowser is using
I wrote a Ihttphandler in order to download files : public class DescargaFichero :
I want to ask if I can download files from the blobstore in google
I'm trying to download web page: string remoteUri = http://whois.domaintools.com/94.100.179.159; WebClient myWebClient = new
I am trying to download files through webclient and the code is like the
This is the function: private static HtmlAgilityPack.HtmlDocument getHtmlDocumentWebClient(string url, bool useProxy, string proxyIp, int
I have files on a server that can be accessed from a URL formatted
I'm trying to download multiple files but it's not working as I hoped. Can

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.