c# - RestSharp no response when Transfer-Encoding: chunked -
i trying use simple restsharp client this
restclient client = new restclient(@"http://hostname:28000"); restrequest request = new restrequest(method.get); request.addparameter("action", "getstatus"); var res = client.execute(request);
however, fails with
system.io.invaliddataexception: block length not match complement.
so response not contain data.
what noticed when execute request in webrowser network tracer, shows transfer-encoding "chunked". somehow seems hinder restsharp. running same request standard httpwebrequest
works fine. ideas how solve restsharp?
//edit: response should valid xml.
Comments
Post a Comment