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

Submitted by:  None
Submitted on:  Sun 31 Oct 2004 01:13:13 AM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned 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>
Project 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>
Project 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

 

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

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 4 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Sat 20 Nov 2004 01:03:18 PM UTCt3rmin4t0rStatusNone=>Fixed
  Open/ClosedOpen=>Closed
  Attached File-=>Added chunked.cgi, #1897
Sun 31 Oct 2004 02:02:31 AM UTCdrobossonAttached File-=>Added wc.cs, #1822

Back to the top


Powered by Savane 3.1-cleanup1