Monday, 17 September 2007

Damm cab files and windows mobile...

When you want to download a cab file to your windows mobile device 5/6 from an apache webserver, which you are able to control (legally ;-) make sure to set the mime-type correct or else your device will just love to show you the binary junk on his screen :-(

Set application/x-cab-compressed to the cab files, when you are using ubuntu (cause your hosting provider to to lazy to install a proper BSD OS by default) use

$echo 'application/x-cab-compressed cab' | sudo tee -a /etc/mime.types
$sudo killall -HUP apache2
Now check whether it worked fine
$curl -I URL
Kudo to 6brand for the hint

No comments:

Post a Comment