[Top][All Lists]
[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:23 (GMT)
------------------ Additional Follow-up Comments ----------------------------
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
<
/**************************************************************************/
[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: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 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&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/