Ricardo Brandão - 2 - Feb 24, 2015


I’m having a problem when trying to access HttpRequest inside a razor view. I’m doing the following:
var httpRequest = Request.OriginalRequest as System.Web.HttpRequest;

Am I missing something?


it should be HttpRequestBase

Ricardo Brandão:

Thanks, it worked.

Sorry for the trouble… I thought I had tested that but it seems that i’ve missed it.