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: Erich Kitzmüller
Subject: [Pnet-developers] [bugs #10848] HttpWebResponse returns garbage around
User-agent: Mozilla/5.0 (X11; U; Linux i686; de-DE; rv:1.7) Gecko/20040803 Firefox/0.9.3

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

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

Changes by: 
                Erich Kitzmüller <address@hidden>
'Date: 
                Mon 01.11.2004 at 00:16 (GMT)

------------------ Additional Follow-up Comments ----------------------------
This is caused by "chunked transfer". Seems like HttpWebResponse is not able to 
decode chunked transfer yet.






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

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

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


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: Mon 01.11.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: Son 31.10.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: Son 31.10.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]