HTTP specific code. Can't one of the higher level TX functions handle this?