[Mono-bugs] [Bug 30234][Wis] Changed - HTTP POST doesn't work

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
24 Oct 2002 16:08:18 -0000


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by gonzalo@ximian.com.

http://bugzilla.ximian.com/show_bug.cgi?id=30234

--- shadow/30234	Mon Sep 16 17:20:49 2002
+++ shadow/30234.tmp.11490	Thu Oct 24 12:08:18 2002
@@ -1,12 +1,12 @@
 Bug#: 30234
 Product: Mono/Class Libraries
 Version: unspecified
 OS: other
 OS Details: 
-Status: NEW   
+Status: NEEDINFO   
 Resolution: 
 Severity: Unknown
 Priority: Wishlist
 Component: System
 AssignedTo: mono-bugs@ximian.com                            
 ReportedBy: duncan@ximian.com               
@@ -37,7 +37,30 @@
 in <0x000e0> 00 System.Net.HttpWebRequest:GetResponse ()
 in <0x002f7> 00 .ClientPOST:getPage (string,string)
 
 ------- Additional Comments From duncan@ximian.com  2002-09-12 10:10 -------
 Created an attachment (id=2241)
 example from quickstart tutorial
+
+
+------- Additional Comments From gonzalo@ximian.com  2002-10-24 12:08 -------
+This is what i get with the test case under MS runtime:
+
+~ $ ./bug30234.exe http://www.google.com/search q=mono
+System.ArgumentOutOfRangeException: Specified argument was out of the
+range of valid values.
+Parameter name: count
+   at System.Web.HttpUtility.UrlEncodeToBytes(Byte[] bytes, Int32
+offset, Int32 count)
+   at System.Web.HttpUtility.UrlEncode(String s, Encoding Enc)
+   at System.Web.HttpUtility.UrlEncode(String str)
+   at ClientPOST.getPage(String url, String payload)
+
+Mono runtime says:
+~ $ mono ./bug30234.exe http://www.google.com/search q=mono
+System.ArgumentOutOfRangeException: Argument is out of range
+Parameter name: count
+in <0x000bf> 00 System.Web.HttpUtility:UrlEncodeToBytes (byte[],int,int)
+in <0x00058> 00 System.Web.HttpUtility:UrlEncode
+(string,System.Text.Encoding)
+in <0x001a5> 00 .ClientPOST:getPage (string,string)