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

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -