locked
How do I use the Javascript HttpClient.PutAsync and PostAsync methods

    Question

  • Here is the documentation for the HttpClient.PutAsync method

    http://msdn.microsoft.com/en-us/library/windows/apps/windows.web.http.httpclient.putasync?cs-save-lang=1&cs-lang=javascript#code-snippet-1

    where it says the second parameter content should be of type IHttpContent (an interface), which doesn't exist in Javascript. 

    So, what should be the type for content when using the WinJS library.  I've tried using

    Windows.Web.Http.HttpStreamContent(fileStream);

    but that just gives me the error "The parameter is incorrect".

    Saturday, October 26, 2013 12:12 AM

Answers

All replies