SendCustomRequest Method
Sends a custom request to the server.
Syntax
[VB.NET] Public Function SendCustomRequest(ByVal URL As String, ByVal RequestData As String, ByVal OtherHeaders As String) As String
[C#] public string SendCustomRequest(string URL, string requestData, string otherHeaders);
Remarks
If RequestData is not empty, an HTTP POST will be sent to the server with RequestData as the POST data.
If RequestData is empty, an HTTP GET will be sent to the server and RequestData will be ignored.
If OtherHeaders is not empty, OtherHeaders will be appended to the HTTP headers of the request.
The method returns the HTTP response in its entirety.
NOTE: This method has a corresponding asynchronous version (SendCustomRequestAsync) for use in the Xamarin environment.