Sign in to follow this  
Followers 0
RoLex

Public hublist issue

3 posts in this topic

Hi.

I've been trying to understand why this XML>BZ2 hublist works in ApexDC++:

http://www.te-home.net/?do=hublist&get=hublist.xml.bz2 (HTTP redirect)

While this one, same XML but uncompressed, does not work:

http://www.te-home.net/?do=hublist&get=hublist.xml (HTTP redirect)

The only difference between those two is BZ2 compression. Both are being given to the client same way, no MIME-type is being sent from web server.

Please help me to understand.

Regards.

Share this post


Link to post
Share on other sites

If the server does not send a mime type (Apex)DC++ falls back to assuming compressed hublist most likely. Also for what it is worth when working with serverside scripting, and DC++'s limited http support, you might need to explicitly make sure that the mime type and Content-Length headers are sent (also effectively disable chunked transfers, because DC++ hasn't supported them for that long).

Also, make sure that serverside gzip compression is not applied to the plain xml files obviously, and check that the files are utf-8 encoded, or compatible, because dcpp's XML classes take some liberties when it comes to encoding.

Share this post


Link to post
Share on other sites
Sign in to follow this  
Followers 0