two sendHTTPResponseData method implemented