Quantcast
Channel: Web API
Viewing all articles
Browse latest Browse all 4850

Web api 2.1 does not work with a chunked request

$
0
0

I have a application running correctly on web api 2.0 platform.

When I upgrade web api to version 2.1, it does not work.

The client request code such as :

HttpWebRequest hRqst = (HttpWebRequest)WebRequest.Create("http://localhost:7897/api/Test");

hRqst.Method = "Post";

hRqst.ContentType = "application/json";

hRqst.SendChunked = true; // The key code of the problem.

Web api 2.1 would not deserialize the json content, it will deserialize the json data as a null object.


Viewing all articles
Browse latest Browse all 4850

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>