UtilWebGetPostResponseAsync(Uri, NameValueCollection) Method
Asynchronously sends a POST method request and returns the server response.
Namespace: DevCase.Core.Networking.CommonAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static Task<byte[]> GetPostResponseAsync(
Uri uri,
NameValueCollection postData
)
Public Shared Function GetPostResponseAsync (
uri As Uri,
postData As NameValueCollection
) As Task(Of Byte())
Dim uri As Uri
Dim postData As NameValueCollection
Dim returnValue As Task(Of Byte())
returnValue = UtilWeb.GetPostResponseAsync(uri,
postData)
public:
static Task<array<unsigned char>^>^ GetPostResponseAsync(
Uri^ uri,
NameValueCollection^ postData
)
static member GetPostResponseAsync :
uri : Uri *
postData : NameValueCollection -> Task<byte[]>
No code example is currently available or this language may not be supported.
- uri Uri
-
The Uri.
- postData NameValueCollection
-
The post data.
TaskByte
The response content.
This is a code example.
No code example is currently available or this language may not be supported.
Dim params As New Specialized.NameValueCollection() From {
{"search", "Petición+POST"},
{"sourceid", "Mozilla-search"}
} ' Formated POST Data: "search=Petición+POST&sourceid=Mozilla-search"
Dim response As Byte() = Await GetPostResponseAsync(New Uri("http://es.wikipedia.org/wiki/Special:Search?"), params)
Dim str As String = Await Encoding.Default.GetString(response)
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.