bugDotGNU Portable.NET - Bugs: bug #10848, HttpWebResponse returns garbage...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #10848: HttpWebResponse returns garbage around

Submitter:  None
Submitted:  Sun 31 Oct 2004 01:13:13 AM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  None
Open/Closed:  Closed

Sat 20 Nov 2004 01:03:18 PM UTC, comment #4: 

Fixed in CVS on 20th Nov 2004.

Please see attached testcase used to test this.

Gopal.V <t3rmin4t0r>
Group administrator
Mon 01 Nov 2004 12:23:03 AM UTC, comment #3: 

Chunked transfer looks like that (see RFC 2616 section 3.6.1 for details):

> GET http://localhost:3737/servlet/ExampleServlet HTTP/1.1
> User-Agent: DotGNU Portable.net
> Host: localhost:3737
> Date: So, 31 Okt 2004 23:56:09 GMT+01
>

< HTTP/1.1 200 OK
< Date: Sun, 31 Oct 2004 23:58:23 GMT
< Server: Jetty/4.2.19 (Linux/2.4.22-10mdk i386 java/1.4.2_01)
< Content-Type: application/x-mlwl
< Transfer-Encoding: chunked
<
< 7
< <c></c>
< 0
<

Erich Kitzmüller <ammoq>
Mon 01 Nov 2004 12:16:39 AM UTC, comment #2: 

This is caused by "chunked transfer". Seems like HttpWebResponse is not able to decode chunked transfer yet.

Erich Kitzmüller <ammoq>
Sun 31 Oct 2004 02:02:31 AM UTC, comment #1: 

I'm not able to duplicate this bug on Linux with 0.6.10 while pulling an XML RSS feed using http://www.irc-rp.net/backend/news.xml for the test.

Can the URL or XML file being used be provided for further testing?

Deryk Robosson <drobosson>
Group Member
Sun 31 Oct 2004 01:13:13 AM UTC, original submission:  

my program downloads an XML file from a HTTP server (Jetty 4.2.19). The code looks like this:

WebClient clnt = new WebClient();
byte[] buff = clnt.DownloadData(myurl);
string s = Encoding.UTF8.GetString(buff);

The resulting string contains the XML data, but some additional chars around it:
e.g. instead of
"<c></c>"
it's "7[CarriageReturn]<c></c>[CarriageReturn]0[CarriageReturn][CarriageReturn]"

The first line (7 in my example) is the length of the file in hex. (My example program uses WebClient but I'm pretty sure the bug is eighter in HttpWebRequest or HttpWebResponse)

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attached Files
file #2035:  chunked.cgi added by t3rmin4t0r (300B - application/octet-stream - Test case for server side)
file #1950:  wc.cs added by drobosson (332B - text/x-csharp - Working test case.)

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

 

Follow 4 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2004-11-20 t3rmin4t0r StatusNone Fixed
    Open/ClosedOpen Closed
    Attached File- Added chunked.cgi, #1897
2004-10-31 drobosson Attached File- Added wc.cs, #1822

Back to the top

Powered by Savane 3.13-aa77.
Corresponding source code