Generate http request/response