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: anonymous
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] 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)











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]