Jesse
It doesn't seem a good idea to read directly from the UART at this position in a real application since it is simply getting the data byte that has arrived at the serial port. Any further which arrive will get lost (overrun) so it would be necesary to synchronise the requests to the real UART data which is not very practical in a real-word application.
It is best to add a UART driver which stores any data (any length up to the driver buffer size) and then retrieve these from the buffer instead. Then nothing will get lost, there is no synchronisation requirement and the driver can perform flow control (RTS/CTS or XON/OFF) to control any further flow of data between collection. You can then retrieve as much data as required via Web browser or other methods.
Take a look at the uTasker project since it contains also UART drivers (flow control, DMA or intetrrupt) as well as a complete TCP/IP stack - it is also fully supported (see
http://www.uTasker.com/forum/) as well as being open-source and completely free for non-commercial work. On top of that you can use its simulator to develop and test M5223X projects without hardware which can greatly increase development efficiency.
Regards
Mark
www.uTasker.com