[Mono-bugs] [Bug 513087] New: HttpListener does not handle requests with HTTP methods other than "GET" and "SET"

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Jun 15 04:33:21 EDT 2009


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


           Summary: HttpListener does not handle requests with HTTP
                    methods other than "GET" and "SET"
    Classification: Mono
           Product: Mono: Class Libraries
           Version: SVN
          Platform: x86
        OS/Version: Ubuntu
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: System
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: lunchtimemama at gmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


Test Code:

using System;

using System.Net;



class Program

{

    static void Main(string[] args)

    {

        // Substitue your loopback address here

        var address = "http://127.0.0.1:8080/";

        var listener = new HttpListener ();

        listener.Prefixes.Add(address);

        listener.Start();

        listener.BeginGetContext(result => {

            var context = listener.EndGetContext(result);

            Console.WriteLine(context.Request.HttpMethod);

            context.Response.Close();

        }, null);

        var request = WebRequest.Create(address);

        request.Method = "SUBSCRIBE";

        request.GetResponse().Close();

    }

}


Expected Result:

The program should print "SUBSCRIBE". This is what happens on .NET 3.5.

Actual Result:

The web request times out and the program fails.

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