POST() public static method

public static POST ( string url, string>.Dictionary post, System callback ) : IEnumerator
url string
post string>.Dictionary
callback System
return IEnumerator
Esempio n. 1
0
    ////////////////////////////////////////
    /// helpers for standalone
    ///

    private void sendDataStandalone(string urlSuffix, string pDataString, System.Action <WWW> callback)
    {
        //logMessage("RedMetricsManager::sendDataStandalone");
        string url = redMetricsURL + urlSuffix;
        Dictionary <string, string> headers = new Dictionary <string, string> ();

        headers.Add("Content-Type", "application/json");
        byte[] pData = System.Text.Encoding.ASCII.GetBytes(pDataString.ToCharArray());
        //logMessage(MessageLevel.DEFAULT, "RedMetricsManager::sendDataStandalone StartCoroutine POST with data={0} ...", pDataString);
        StartCoroutine(RedMetricsManager.POST(url, pData, headers, callback));
    }