Server code for 3G data transmission