The logic for filtering out the various parts of the header is executed too slow so the buffer (not sure if hardware or SoftwareSerial) is overflowing and I am missing most of the request.