How to handle data sent via HTTP PUT from another application?
===

In my app, I am trying to accept PUT methods. Here is a request:

    PUT http://localhost:2515/api/Profile HTTP/1.1
    User-Agent: Fiddler
    Host: localhost:2515
    Content-Length: 960

    {"Id":2,"Name":"Canada","ProjectType":"Program","Description":"This is a description.", "Status":"","StartDate":"2011-02-15T00:00:00"}

In my `ProfileController` I have:

    public HttpResponseMessage PutCreateProfile(ProjectProfile p)
    {
        HttpResponseMessage response;
        int profile_id;
        code = HttpStatusCode.NotImplemented;
        
        ... snip ...

        response = Request.CreateResponse(code);
        response.Headers.Location = new Uri(Url.Link("DefaultApi", new { id = profile_id }));
        return response;
    }

When I test this with Fiddler, I get:

    No MediaTypeFormatter is available to read an object of type 'ProjectProfile' 
    from content with media type 'undefined'.

And that is about it.

I don't understand how to get the data from the PUT into the `ProjectProfile` constructor to create the object.

Can somebody shed some light onto this?

Thanks
