Results 1 to 6 of 6

Hybrid View

  1. #1
    master131's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    Melbourne, Australia
    Posts
    8,858
    Reputation
    3438
    Thanks
    101,673
    My Mood
    Breezy

    [Help] Get a website's page size![Solved]

    How would I go about getting the size of a webpage or website (eg. 13395 bytes or 10.08KB)?

    I want to do this dynamically (which means without downloading the actual webpage to calculate it!).
    Donate:
    BTC: 1GEny3y5tsYfw8E8A45upK6PKVAEcUDNv9


    Handy Tools/Hacks:
    Extreme Injector v3.7.3
    A powerful and advanced injector in a simple GUI.
    Can scramble DLLs on injection making them harder to detect and even make detected hacks work again!

    Minion Since: 13th January 2011
    Moderator Since: 6th May 2011
    Global Moderator Since: 29th April 2012
    Super User/Unknown Since: 23rd July 2013
    'Game Hacking' Team Since: 30th July 2013

    --My Art--
    [Roxas - Pixel Art, WIP]
    [Natsu - Drawn]
    [Natsu - Coloured]


    All drawings are coloured using Photoshop.

    --Gifts--
    [Kyle]

  2. #2
    freedompeace's Avatar
    Join Date
    Jul 2010
    Gender
    female
    Posts
    3,033
    Reputation
    340
    Thanks
    2,792
    My Mood
    Sad
    Content-Length property.

    It's in the header of every page. You can get it using the WebRequest class.

  3. #3
    master131's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    Melbourne, Australia
    Posts
    8,858
    Reputation
    3438
    Thanks
    101,673
    My Mood
    Breezy
    Quote Originally Posted by freedompeace View Post
    Content-Length property.

    It's in the header of every page. You can get it using the WebRequest class.
    I looked around on MSDN and had no idea what to do. /
    Donate:
    BTC: 1GEny3y5tsYfw8E8A45upK6PKVAEcUDNv9


    Handy Tools/Hacks:
    Extreme Injector v3.7.3
    A powerful and advanced injector in a simple GUI.
    Can scramble DLLs on injection making them harder to detect and even make detected hacks work again!

    Minion Since: 13th January 2011
    Moderator Since: 6th May 2011
    Global Moderator Since: 29th April 2012
    Super User/Unknown Since: 23rd July 2013
    'Game Hacking' Team Since: 30th July 2013

    --My Art--
    [Roxas - Pixel Art, WIP]
    [Natsu - Drawn]
    [Natsu - Coloured]


    All drawings are coloured using Photoshop.

    --Gifts--
    [Kyle]

  4. #4
    khaozizleet's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    40
    Reputation
    10
    Thanks
    0
    My Mood
    Blah
    Play around with this:
    Code:
            Dim getURL As String = "www.google.com"
    
            Dim request As HttpWebRequest = HttpWebRequest.Create(getURL)
         
            Dim response As HttpWebResponse = request.GetResponse()
            txtWhatever.Text = response.ContentLength
    Just replace text box with whatever you want, or the url as whatever you want etc etc.

  5. #5
    Hassan's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    System.Threading.Tasks
    Posts
    4,764
    Reputation
    495
    Thanks
    2,133
    My Mood
    Dead
    Quote Originally Posted by khaozizleet View Post
    Play around with this:
    Code:
            Dim getURL As String = "www.google.com"
    
            Dim request As HttpWebRequest = HttpWebRequest.Create(getURL)
         
            Dim response As HttpWebResponse = request.GetResponse()
            txtWhatever.Text = response.ContentLength
    Just replace text box with whatever you want, or the url as whatever you want etc etc.
    Yup this will work !!

  6. #6
    master131's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    Melbourne, Australia
    Posts
    8,858
    Reputation
    3438
    Thanks
    101,673
    My Mood
    Breezy
    It just returns -1 on Google and returns the correct amount of bytes on images and other websites.....

    Oh well, it's solved now.
    Last edited by master131; 10-23-2010 at 05:55 PM.
    Donate:
    BTC: 1GEny3y5tsYfw8E8A45upK6PKVAEcUDNv9


    Handy Tools/Hacks:
    Extreme Injector v3.7.3
    A powerful and advanced injector in a simple GUI.
    Can scramble DLLs on injection making them harder to detect and even make detected hacks work again!

    Minion Since: 13th January 2011
    Moderator Since: 6th May 2011
    Global Moderator Since: 29th April 2012
    Super User/Unknown Since: 23rd July 2013
    'Game Hacking' Team Since: 30th July 2013

    --My Art--
    [Roxas - Pixel Art, WIP]
    [Natsu - Drawn]
    [Natsu - Coloured]


    All drawings are coloured using Photoshop.

    --Gifts--
    [Kyle]

Similar Threads

  1. Help (Get text from .php website) [solved]
    By BassSR in forum Visual Basic Programming
    Replies: 19
    Last Post: 09-24-2011, 03:08 AM
  2. [Solved] Need Help Getting Hacks For CA NA
    By polotshirt in forum Combat Arms Help
    Replies: 3
    Last Post: 05-08-2011, 01:00 AM
  3. [Help] Registry Getting all values in a subkey[Solved]
    By T0P-CENT in forum Visual Basic Programming
    Replies: 7
    Last Post: 02-08-2011, 11:20 PM
  4. [HELP]Get your OS Version, Vb2008[Solved]
    By hitmen69 in forum Visual Basic Programming
    Replies: 11
    Last Post: 02-05-2011, 02:47 AM
  5. [SOLVED]Need help getting 10nth prestige.
    By Erlingnikolai in forum Call of Duty Modern Warfare 2 Help
    Replies: 10
    Last Post: 08-31-2010, 07:41 AM