The Windows.Web.Http namespace is documented here: http://msdn.microsoft.com/en-us/library/windows/apps/windows.web.http.aspx
As far as your question goes, the uri parameter to GetAsync and PostAsync is the URI where the request will be sent to. There is no 1:1 mapping between WinHTTP API and Windows.Web.Http.HttpClient class, however if you are looking for information on setting Headers for the request, you can do that using the DefaultRequestHeaders property of the class. The entity body for the POST/PUT request can be set using the PostAsync/PutAsync functions.
There is also a sample available on MSDN which you can take a look at: http://code.msdn.microsoft.com/HttpClient-sample-55700664
Windows Store Developer Solutions #WSDevSol || Want more solutions? See our blog, http://aka.ms/t4vuvz
No comments:
Post a Comment