Can I use gzip in my network.request

Dear friends

   I am doing an network game , When I using network.request to post my data to a php server . 

Now I want use gzip to post data so I can save some net -cost . How I can do ?

your’s tei

Dear Corona team, i’d love to know it too.

Corona’s network library doesn’t support this natively because the HTTP protocol doesn’t provide transparent support (specifically there’s no way in the protocol to know that a server can or will accept a gzip compressed POST, this has to be determined out of band between the client and the server).  In other words, it’s non-standard enough that it’s not a common request.

How much data are you planning on sending?  The computational overhead of compression only makes sense for large amounts of data and the added complexity is worth avoiding if at all possible.  It’s not usual for networked games to send enough data (except perhaps saving a game to the cloud) to make the overhead of compression worthwhile.

What server are you using? 

I’m running apache/php, pulling a lot of compressed data to save/store on the server, all via https.

Actually, i found a good hint about pre-activated zip plugin features. And it looks quite handy.

Dear Corona team, i’d love to know it too.

Corona’s network library doesn’t support this natively because the HTTP protocol doesn’t provide transparent support (specifically there’s no way in the protocol to know that a server can or will accept a gzip compressed POST, this has to be determined out of band between the client and the server).  In other words, it’s non-standard enough that it’s not a common request.

How much data are you planning on sending?  The computational overhead of compression only makes sense for large amounts of data and the added complexity is worth avoiding if at all possible.  It’s not usual for networked games to send enough data (except perhaps saving a game to the cloud) to make the overhead of compression worthwhile.

What server are you using? 

I’m running apache/php, pulling a lot of compressed data to save/store on the server, all via https.

Actually, i found a good hint about pre-activated zip plugin features. And it looks quite handy.