Quote:
Originally Posted by tdawg00
I think alot of people are forgetting that on EDGE you are getting alot compression from the BB servers, with wifi its the raw data being converted. compression makes alot things go faster
|
I just stuck a simple PHP script on my home apache, the BB devices accept gzip and deflate compression surprisingly. Here are the interesting bits:
HTTP_HOST
192.168.1.100
HTTP_CONNECTION
keep-alive
HTTP_USER_AGENT
BlackBerry8320/4.2.2 Profile/MIDP-2.0 Configuration/CLDC-1.1 VendorID/100
HTTP_ACCEPT
text/html,
application/xhtml+xml,
application/vnd.wap.xhtml+xml,
application/vnd.wap.wmlc;q=0.9,
application/vnd.wap.wmlscriptc;q=0.7,
text/vnd.wap.wml;q=0.7,
text/vnd.sun.j2me.app-descriptor,*/*;q=0.5
HTTP_ACCEPT_CHARSET
ISO-8859-1,
UTF-8,
US-ASCII,
UTF-16BE,
windows-1252,
UTF-16LE,
windows-1250
HTTP_ACCEPT_LANGUAGE
en-US,en;q=0.5
HTTP_ACCEPT_ENCODING
gzip,deflate
HTTP_X_WAP_PROFILE
"http://www.blackberry.net/go/mobile/profiles/uaprof/8320/4.2.2.rdf"
If you have a modern Apache >=2.0.45, you can ensure your gzip/deflate is active with a logic block like the following:
Code:
DeflateCompressionLevel 6
<Location />
SetOutputFilter DEFLATE
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html
SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png|swf|zip)$ no-gzip dont-vary
Header append Vary User-Agent env=!dont-vary
</Location>