[Mono-bugs] [Bug 614483] New: WebClient UploadData does not allow method DELETE

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Jun 15 14:25:15 EDT 2010


http://bugzilla.novell.com/show_bug.cgi?id=614483

http://bugzilla.novell.com/show_bug.cgi?id=614483#c0


           Summary: WebClient UploadData does not allow method DELETE
    Classification: Mono
           Product: MonoTouch
           Version: unspecified
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Critical
          Priority: P5 - None
         Component: Class Libraries
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: christian.weyer at thinktecture.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: Yes


Description of Problem:
When using the UploadData method of WebCLient and choosing DELETE as the method
we get an exception (ProtocolViolationException).

Steps to reproduce the problem:
1. public static string RetrieveMessage(WebClient webClient, string
authHeaderValue)
        {
            webClient.Headers[HttpRequestHeader.Authorization] =
authHeaderValue;
            return
Encoding.UTF8.GetString(webClient.UploadData("messages/head?timeout=20",
"DELETE", new byte[0]));
        } 


Actual Results:
Exception.

Expected Results:
UploadData should support DELETE as NETFX does.

How often does this happen? 
Always.

Additional Information:
-

-- 
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.


More information about the mono-bugs mailing list