Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Apr 10th, 2006, 9:33 AM   #1
cCj
Newbie
 
Join Date: Mar 2006
Posts: 11
Rep Power: 0 cCj is on a distinguished road
HTTP compression

Hi,
I'm using HTTP 1.1 to download files from server but it could really use a compression because the total size of the files is quite much. So my question is simply, can you some how request the server to send the data in some compressed form?

If this isn't possible with HTTP could you recommend some other protocol?

Thank you.

Jari.
cCj is offline   Reply With Quote
Old Apr 10th, 2006, 10:07 AM   #2
The Dark
Expert Programmer
 
Join Date: Jun 2005
Posts: 893
Rep Power: 4 The Dark is on a distinguished road
You can add a request header to your http like:
Accept-Encoding: gzip

This tells the server that you can handle the gzip data returned.

Now all you have to do is handle the gzip data retruned.

Note: Some servers will be able to send back the data gzipped and some won't.
The Dark is offline   Reply With Quote
Old Apr 11th, 2006, 8:05 AM   #3
cCj
Newbie
 
Join Date: Mar 2006
Posts: 11
Rep Power: 0 cCj is on a distinguished road
Thank you!
cCj is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 2:28 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC