![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Mar 2006
Posts: 11
Rep Power: 0
![]() |
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. |
|
|
|
|
|
#2 |
|
Expert Programmer
Join Date: Jun 2005
Posts: 893
Rep Power: 4
![]() |
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. |
|
|
|
|
|
#3 |
|
Newbie
Join Date: Mar 2006
Posts: 11
Rep Power: 0
![]() |
Thank you!
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|