Charles not capturing Unity Request

Hi,

In Unity 2019.2.12f1, we are sending request from both WWWForm and UnityWebRequest using GET and POST methods.

Charles proxy 4.5.6 not able to capture requests which send via Unity version 2019.2.12f1.

But In Unity version 2019.1.10f1, Charles proxy can able to capture requests.

Do we need to change any settings in Charles or Do we need to change any settings in Unity Engine in-order to capture the request ?

Where do you send the requests to?
If requests are sent to localhost, they won’t go through proxy, but in general they should use proxy.

The request are sent to a domain.
Request Response is not captured in charles.
public class WebRequestTesting : MonoBehaviour
{
string URL = “https://www.xxx.php”;
public Text _outputFormText;
public Text _outputWebRequestText;

public void WebFormButtonClicked()
{
StartCoroutine(sendDataToServerViaWWW());
}
public void WebRequestButtonClicked()
{
StartCoroutine(sendDataToServerViaWebRequest());
}
IEnumerator sendDataToServerViaWebRequest()
{
WWWForm _form = new WWWForm();
_form.AddField(“action”, “creq”);
UnityWebRequest request = UnityWebRequest.Post(URL, _form);

yield return request.SendWebRequest();
if (request.isNetworkError || request.isHttpError)
{
Debug.LogError(request.error);
}
else
{
_outputWebRequestText.text = request.downloadHandler.text;
}
}
IEnumerator sendDataToServerViaWWW()
{
WWWForm _form = new WWWForm();
_form.AddField(“action”, “creq”);
WWW download = new WWW(URL, _form);
yield return download;
_outputFormText.text = download.text;
}
}