Reduce code duplication by setting http->ocmd in parse_http_request()