I'm writing a web server and an Ajax-y web UI for an embedded system. My server is just plain dumb and quite resource constrained and right now I have code in the server to skip over all the POST header fields. I'd rather not use bandwidth to send them and CPU to skip them. Can I minimize my request header? I was looking to do something like:

Code:
req = new xHttpRequest();
for (f in req.header) {
  if (f != "Content-Type:') {
    req.header[f] = null;
  }
}
But I haven't found a reliable way to get the header fields. Maybe I haven't looked hard enough. Pointers...?