https://bugzilla.novell.com/show_bug.cgi?id=636219
https://bugzilla.novell.com/show_bug.cgi?id=636219#c0 Summary: WebRequest fails to submit form, timeout occurs. Likely due to mishandling 302 header. Classification: Mono Product: Mono: Class Libraries Version: 2.4.x Platform: i386 OS/Version: Windows 7 Status: NEW Severity: Critical Priority: P5 - None Component: System AssignedTo: [email protected] ReportedBy: [email protected] QAContact: [email protected] Found By: --- Blocker: --- Created an attachment (id=386826) --> (http://bugzilla.novell.com/attachment.cgi?id=386826) The sample code. User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.3 (KHTML, like Gecko) Chrome/6.0.472.51 Safari/534.3 Sample code attached as Program.cs. WebRequest is used to POST a username/password to the site. When the user/pass is wrong, the program completes successfully (prints webpage). If the user/pass is correct, the program hangs and errors out with: Unhandled Exception: System.Net.WebException: The request timed out at System.Net.HttpWebRequest.EndGetResponse (IAsyncResult asyncResult) [0x0006c] in C:\cygwin\tmp\monobuild\build\BUILD\mono-2.6.7\mcs\class\System\System.Net\HttpWebRequest.cs:820 Wireshark verifies that the packets are indeed both sent and replied to. Furthermore, it seems like a 302 header with location is causing this problem. A correct username/password results in the above header, which causes the timeout. A wrong username/password results in a 200 header, which is fine (doesn't crash). Tested with mono 2.6.7 Reproducible: Always Steps to Reproduce: 1. Compile and run the attached Program.cs. The timeout exception occurs. 2. Change "username=b466439&password=b466439" to some other user/pass and re-run. 3. Program will then complete successfully. Actual Results: Compiling with .NET Framework results in the resultant page being displayed. Expected Results: Compiling with mono results in 10-seconds of nothing, followed by the timeout exception. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug. You are the assignee for the bug. _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
