use HttpRequest instead of RequestFactory for simplicity