开发者

Get chunked-encoded url

开发者 https://www.devze.com 2023-01-31 03:42 出处:网络
I need to get a webpage (by url) with chunked-encoding in C#. There are some topics (on SO too, this Chunked Encoding Impleme开发者_开发百科ntation in .NET (or at least pseudo code) for ex) about it,

I need to get a webpage (by url) with chunked-encoding in C#. There are some topics (on SO too, this Chunked Encoding Impleme开发者_开发百科ntation in .NET (or at least pseudo code) for ex) about it, but I can't figure out how to do this in plain C#. Please help me with code :)


Figured this out. My actually problem was in gzip :)

For the future reference about subject If you need implementation of chunked-encoded request see this Mono sources: http://www.koders.com/csharp/fid20277378DA3C2E68BAB2BC30A899CA45CFE0C150.aspx?s=webclient.cs


Watchout you can also get gZip and Chunked

My un-chunk code was a lot smaller then shown in the link but it was not always perfect for some reason or another.

It would be nice to somehow stream data from a socket into a httprequest and then let that deal with gzip, deflate and chunks but i don't know how to force feed a request stream from a socket.

Click my name if you want a simple .aspx page that realys results from google with 100 results at a time and also removes mouseover and spyware scripts

0

精彩评论

暂无评论...
验证码 换一张
取 消