-
Oct 15th, 2006, 06:51 PM
#1
Thread Starter
Frenzied Member
[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::
-
Oct 15th, 2006, 09:01 PM
#2
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|