I'm consuming a rest service with ServiceSatck framework. Now I want to get the raw bytes. Suppose the url is http://xx.xxx.xxx.xx/Myservice/api/hello.
In this Seeing the Http Response content in ServiceStack it seems to be using get method but I used post method.
EDIT:
I used the code
`var x = "http://xx.xxx.xxx.xx/Myservice/api/hello".PostJsonToUrl(new MyRequestDTO() { RequestData = hello }).ToArray();
I did get the raw bytes. However comparing with RestSharp method, there are about 200 bytes lost.
Using RestSharp method, the code is:
var aResponse = restClient.Execute(MyRequestDTO);
byte[] bytes = aResponse.RawBytes;