Finally make it almost clear, summed up as follows (omit the Try Catch), refer to from here
1.get:
A lump of URL with "code good" (UrlEncode need to handle) the parameters (can see) a piece sent to the server: eg:
Public Async task<string> Getasync (string uri) { varnewnew TimeSpan (000)}; var await Httpclient.getstringasync (URI); return content;}
Get Method
2.post:
A lump of url+ can not see the parameters of a piece into the data stream (UrlEncode could be processed in advance) sent to the server.
eg
Public Asynctask<string> Postasync (stringURL, dictionary<string,string>para) { varHttpClient =NewHttpClient {Timeout =NewTimeSpan (0,0,0, -)}; varContenta =NewFormurlencodedcontent (para); varResponse =awaithttpclient.postasync (URL, contenta); stringContent =awaitResponse. Content.readasstringasync (); returncontent; }
Post Method
The Get/post of HttpClient