Imported more HTTP parsing code