dotgnu-pnet
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Pnet-developers] [bugs #10848] HttpWebResponse returns garbage around


From: Gopal.V
Subject: [Pnet-developers] [bugs #10848] HttpWebResponse returns garbage around
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; rv:1.7.3) Gecko/20041001 Firefox/0.10.1

This mail is an automated notification from the bugs tracker
 of the project: DotGNU Portable.NET.

/**************************************************************************/
[bugs #10848] Latest Modifications:

Changes by: 
                Gopal.V <address@hidden>
'Date: 
                Sat 11/20/2004 at 13:03 (Asia/Calcutta)

            What     | Removed                   | Added
---------------------------------------------------------------------------
          Resolution | None                      | Fixed
              Status | Open                      | Closed


------------------ Additional Follow-up Comments ----------------------------
Fixed in CVS on 20th Nov 2004.

Please see attached testcase used to test this.






/**************************************************************************/
[bugs #10848] Full Item Snapshot:

URL: <http://savannah.gnu.org/bugs/?func=detailitem&item_id=10848>
Project: DotGNU Portable.NET
Submitted by: 0
On: Sun 10/31/2004 at 01:13

Category:  None
Severity:  5 - Average
Item Group:  None
Resolution:  Fixed
Privacy:  Public
Assigned to:  None
Status:  Closed


Summary:  HttpWebResponse returns garbage around

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)

Follow-up Comments
------------------


-------------------------------------------------------
Date: Sat 11/20/2004 at 13:03       By: Gopal.V <t3rmin4t0r>
Fixed in CVS on 20th Nov 2004.

Please see attached testcase used to test this.

-------------------------------------------------------
Date: Mon 11/01/2004 at 00:23       By: Erich Kitzmüller <ammoq>
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
<


-------------------------------------------------------
Date: Mon 11/01/2004 at 00:16       By: Erich Kitzmüller <ammoq>
This is caused by "chunked transfer". Seems like HttpWebResponse is not able to 
decode chunked transfer yet.

-------------------------------------------------------
Date: Sun 10/31/2004 at 02:02       By: Deryk Robosson <drobosson>
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?






File Attachments
-------------------

-------------------------------------------------------
Date: Sat 11/20/2004 at 13:03  Name: chunked.cgi  Size: 300B   By: t3rmin4t0r
Test case for server side
http://savannah.gnu.org/bugs/download.php?item_id=10848&amp;item_file_id=1897

-------------------------------------------------------
Date: Sun 10/31/2004 at 02:02  Name: wc.cs  Size: 332B   By: drobosson
Working test case.
http://savannah.gnu.org/bugs/download.php?item_id=10848&amp;item_file_id=1822






For detailed info, follow this link:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=10848>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]