http://bugzilla.novell.com/show_bug.cgi?id=508027
User [email protected] added comment http://bugzilla.novell.com/show_bug.cgi?id=508027#c465613 Summary: HttpWebRequest.BeginGetRequestStream throws ProtocolViolationException Classification: Mono Product: Mono: Class Libraries Version: 2.0.x Platform: x86 OS/Version: Linux Status: NEW Severity: Normal Priority: P5 - None Component: System AssignedTo: [email protected] ReportedBy: [email protected] QAContact: [email protected] CC: [email protected] Depends on: 465613 Found By: Development +++ This bug was initially created as a clone of Bug #465613 +++ Description of Problem: HttpWebRequest.BeginGetRequestStream throws ProtocolViolationException. This behavior is different from HttpWebRequest implementation on .NET, and prohibits scenarios where KeepAlive and Buffering is not desired. Steps to reproduce the problem: HttpWebRequest request = (HttpWebRequest)WebRequest.Create(new Uri("http://mono-project.com")); request.Method = "POST"; request.ProtocolVersion = HttpVersion.Version11; request.KeepAlive = false; request.AllowWriteStreamBuffering = false; request.ContentLength = 45; request.GetRequestStream(); request.BeginGetResponse(null, null); Actual Results: ProtocolViolationException saying that Content Length has not been set. Expected Results: No exception thrown. How often does this happen? Every time. Additional Information: This is similar to bug #465613, however it happens on the path of GetResponse. -- Configure bugmail: http://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
