UtilWebGetPostResponseAsync(String, DictionaryString, String) 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(
string url,
Dictionary<string, string> postData
)
Public Shared Function GetPostResponseAsync (
url As String,
postData As Dictionary(Of String, String)
) As Task(Of Byte())
Dim url As String
Dim postData As Dictionary(Of String, String)
Dim returnValue As Task(Of Byte())
returnValue = UtilWeb.GetPostResponseAsync(url,
postData)
public:
static Task<array<unsigned char>^>^ GetPostResponseAsync(
String^ url,
Dictionary<String^, String^>^ postData
)
static member GetPostResponseAsync :
url : string *
postData : Dictionary<string, string> -> Task<byte[]>
No code example is currently available or this language may not be supported.
- url String
-
The Url.
- postData DictionaryString, String
-
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 response As Byte() =
Await GetPostResponseAsync("http://es.wikipedia.org/wiki/Special:Search?",
New Dictionary(Of String, String) From {
{"search", "Petición+POST"},
{"sourceid", "Mozilla-search"}
}) ' Formated POST Data: "search=Petición+POST&sourceid=Mozilla-search"
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.