jhy/jsoup — pull request #323 by mariuszs (2013-04-26 20:58:20+00:00)
Title: Fix for PrematureEOF 

This is for situation like below, server is badly configured, but works. With my fix JSoup can read data from server like this.

$ curl --raw -S -v --ignore-content-length http://www.dotnetnuke.com/Resources/Blogs/rssid/99.aspx
* About to connect() to www.dotnetnuke.com port 80 (#0)
* Trying 66.29.208.101...
* connected
* Connected to www.dotnetnuke.com (66.29.208.101) port 80 (#0)
> GET /Resources/Blogs/rssid/99.aspx HTTP/1.1
> User-Agent: curl/7.27.0
> Host: www.dotnetnuke.com
> Accept: */*
>
< HTTP/1.1 200 OK
< Cache-Control: private
< Transfer-Encoding: chunked
< Content-Type: application/xml; charset=utf-8
< Server: Microsoft-IIS/7.0
< X-AspNet-Version: 4.0.30319
< Access-Control-Allow-Origin: *
< Date: Fri, 26 Apr 2013 18:44:57 GMT
<
28c

Alec Whittington

My personal blog on DotNetNuke.
http://www.dotnetnuke.com/Resources/Blogs/BlogId/99.aspx
en-US

Fri, 26 Apr 2013 08:19:16 GMT
Fri, 26 Apr 2013 08:19:16 GMT
http://backend.userland.com/rss
Blog RSS Generator Version 1.0.0.0

* transfer closed with outstanding read data remaining
* Closing connection #0
curl: (18) transfer closed with outstanding read data remaining