Async Get Request Android?

Hello everyone, I need your help.

Simple task: when user push the button, we need to send GET request to server(response is not necessary).
The next code is working on the computer, but is not working on the Android.

public void Send(string arg)
{
	WebRequest request = WebRequest.Create("http://x.x.x.x/server/?value=" + arg);
	DoWithResponse(request, (response) => {
		var body = new StreamReader(response.GetResponseStream()).ReadToEnd();
		Debug.Log(body);
	});
}

void DoWithResponse(WebRequest request, Action<HttpWebResponse> responseAction)
{
	Action wrapperAction = () =>
	{
		request.BeginGetResponse(new AsyncCallback((iar) =>
		                                           {
			var response = (HttpWebResponse)((HttpWebRequest)iar.AsyncState).EndGetResponse(iar);
			responseAction(response);
		}), request);
	};
	wrapperAction.BeginInvoke(new AsyncCallback((iar) =>
	                                            {
		var action = (Action)iar.AsyncState;
		action.EndInvoke(iar);
	}), wrapperAction);
}

How can I resolve this?

For Android and non-windows, you will want to use the Unity web request objects.

using System;
using UnityEngine;
using UnityEngine.Networking;

public class RequestExample : MonoBehaviour 
{
    void Start()
    {
        this.StartCoroutine(AsyncRequest("https://www.google.com", this.RequestCallback));
    }

    private IEnumerator AsyncRequest(string url, Action<UnityWebRequest> callback)
    {
        // Start with the default Get configuration
        var request = UnityWebRequest.Get(url);

        // Configure the request
        request.SetRequestHeader("X-Some-Header", "Header Value");

        // Yield during the request
        yield return request.SendWebRequest();

        // Use the callback
        callback(request);
    }

    private void RequestCallback(UnityWebRequest request)
    {
        // Just print to the console
        Debug.LogFormat("Response Code: {0}

Response Text: {1}", request.responseCode, request.downloadHandler.text);
}
}

Any new about this?

@TreyH
How to proceed if i do not want to wait for response from server?
i mean if i want to do “write-row” async without wait for result and continue execution.
Thanks in advance.