简体   繁体   中英

how to create compressesed SSL/TLS connection on android

i want to have an https connection to the server, but in order to conserve bandwidth i want it to be compressed. I heard that some SSL implementations support compression (i dont mean the zlib encoding of the HTTP payload itself), can it be activated in android? i couldnt find any reference to it neither in javax.net.ssl.HttpsURLConnection nor in javax.net.ssl.SSLServerSocketFactory

SSL and TLS were defined so as to include a compression feature, but it isn't supported in Java JSSE, ie javax.net.ssl.* , at least in Oracle's implementation. Use zip-encoding. The zip-encoding happens to the plaintext content, then SSL is applied over that.

EDIT Not supported by default in anything else except OpenSSL either as of date. ' conservative implementations do not enable compression at the TLS level'

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM