check end of HTTP request