Click here to Skip to main content
11,813,557 members (46,539 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: C# Wifi

I'm connected to my wifi network through my Laptop, so my task is to obtain the download and the Upload volume of a Website with C# ?? ( for example: Web site: - ulpoad: 1254 - download: 25415)

Best regards

Posted 20-Jun-13 0:20am
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Use HttpWebRequest.Headers[^] to make up headers.
And HttpWebRequest.ContentLength[^], which Gets or sets the Content-length HTTP header
benhadi at 20-Jun-13 8:05am
thanks for your reply, but how can I get the data received(download), because the previous example are for the data sent(upload) ?
Rate this: bad
Please Sign up or sign in to vote.

Solution 3


You might find following articles useful. What you are really trying to achieve requires access to a network packet. Once a packet is captured then you can determine whether it's a http packet and if so then proceed with your analysis and compute the number of bytes uploaded and downloaded.

Many more great articles can be found here[^].

benhadi at 20-Jun-13 11:48am
thanks for your reply, and your response, but the source code doesn't work from the previous URL.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Abhinav S 275
1 Palash Mondal_ 190
2 KrunalRohit 150
4 Manas_Kumar 115
0 OriginalGriff 3,877
1 KrunalRohit 2,526
2 Maciej Los 2,245
3 CPallini 2,240
4 ppolymorphe 1,750

Advertise | Privacy | Mobile
Web01 | 2.8.151002.1 | Last Updated 20 Jun 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100