Hi Utsavi,
have you seen httpsrv example in MQX installation?
C:\Freescale\Freescale_MQX_4_0\rtcs\examples\httpsrv
The RTC does what you want to do with UART, here you can see how the RTC is running and the server is being updated with RTC data. In the other way, you can also see that the webserver retrieves data from the client when the client clicks the buttons in the webpage to toggle the on board LEDs.
All this is done with CGI.
Hope this helps!
Carlos