Results 1 to 2 of 2

Thread: [2005] Request Webpage

  1. #1

    Thread Starter
    Frenzied Member Inuyasha1782's Avatar
    Join Date
    May 2005
    Location
    California, USA
    Posts
    1,035

    [2005] Request Webpage

    How would you request a webpage in GZIP format and then decompress it? I just want to request the page in GZIP format and then decompress the contents to display the contents normally to the user. Any help?
    Age - 15 ::: Level - Advanced
    If you find my post useful please ::Rate It::


  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    110,299

    Re: [2005] Request Webpage

    Web pages aren't in GZIP format. If you want a file from a server then you get it in the format that the server provides it in. If you're requesting an HTML page then you'll get a text file containing HTML code. If the file you're requesting resides on the server in GZIP format then you'll get it in GZIP format.

    If you want to get the source code for a Web page then you can use various methods. The HttpWebRequest/HttpWebResponse combination gives you the most control. My.Computer.Network.DownloadFile will also work, as will WebClient.DownloadFile or WebClient.DownloadString.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width