2

I am using a third-party handset detection library which receives the HttpRequest object as a parameter. My problem is that I need to have the code for using this library in a web-service. I wanted to use ServiceStack since it's supposed to be much faster than other technologies.

But by using ServiceStack I haven't found any way of sending the HttpRequest from my website to the service. I have found a way to set the UserAgent like this:

var client = new JsonServiceClient(BaseUrl);
client.LocalHttpWebRequestFilter = request => request.UserAgent = Request.UserAgent;

but nothing more than that.

Is there any way to achieve this?

4

0 回答 0