Transfer-Encoding: chunked in Windows Phone

后端 未结 2 554
余生分开走
余生分开走 2021-01-18 22:09

I have a server response with Transfer-Encoding: chunked

HTTP/1.1 200 OK
Server: nginx/1.2.1
Date: Mon, 18 Feb 2013 08:22:49 GMT
Content-Type: application/js         


        
2条回答
  •  栀梦
    栀梦 (楼主)
    2021-01-18 23:13

    HttpClient is able to parse chunked output automatically http://msdn.microsoft.com/en-us/library/system.net.http.httpclient(v=vs.110).aspx

    HttpClient is an overall cool thing with PostAsync and GetAsinc and tons of other goodness. I never-ever use HttpWebRequest again.

    HttpClient is readily available in .NET Framework 4.5, Windows 8, or Windows Phone 8.1

    Use NuGet package http://www.nuget.org/packages/Microsoft.Net.Http if you need HttpClient in - .NET Framework 4 - Windows Phone Silverlight 7.5 - Silverlight 4 - Portable Class Libraries

提交回复
热议问题