Removing / compressing the headers of a flash request

[COLOR=Black]Hey Guys…

I’m working on a Flash app that throws some commands around to the server and back to keep a live update of the current situation… The only problem is the overhead this keeps on building.

A request gets sent per interval (500ms in the current build) and gets a reply… Most of the bandwith overhead is in the headers, about 90% on the request and 75% on the reply.

Does anyone have an idea on how to strip these headers, because only the bold stuff is relevant IMO?

Example of headers below.

Request:

**POST /script.php HTTP/1.1
Accept: */***
Referer: http://domain.com/flash.swf
x-flash-version: 9,0,28,0
Content-Type: application/x-www-form-urlencoded
Content-Length: 96
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727; .NET CLR 1.1.4322)
Host: domain.com
Connection: Keep-Alive
Cache-Control: no-cache
**
module=mod1&action=action1&user_id=1**

Reply:

**HTTP/1.1 200 OK**
Date: Mon, 26 Mar 2007 14:49:33 GMT
Server: Apache/2.2.2 (Win32) PHP/5.2.1
X-Powered-By: PHP/5.2.1
Content-Length: 610
Keep-Alive: timeout=5, max=100
Connection: Keep-Alive
Content-Type: text/xml;charset=UTF-8

**<?xml version="1.0"?><cmds><cmd mod="mod1" action="action"><var name="a">b</var></cmd></cmds>**

[/COLOR]