GooglePlayInstant/Editor/QuickDeploy/HttpRequestHelper.cs
/// <summary>
/// Send a general POST request to the provided endpoint, along with the data provided in the form and headers.
/// parameters.
/// </summary>
/// <param name="endpoint">Endpoint to which the data should be sent.</param>
/// <param name="postParams">A set of key-value pairs to be added to the request body.</param>
/// <param name="postHeaders"> A set of key-value pairs to be added to the request headers.</param>
/// <returns>A reference to the WWW instance representing the request.</returns>
Send a general POST request to the provided endpoint, along with the data provided in the form and headers.
parameters.
Send a general POST request to the provided endpoint along with the data provided in the form and headers . parameters .
public static WWW SendHttpPostRequest(string endpoint, Dictionary<string, string> postParams,
            Dictionary<string, string> postHeaders)
        {
            var form = GetWwwForm(postParams);
            return SendHttpPostRequest(endpoint, postParams != null ? form.data : null,
                GetCombinedDictionary(form.headers, postHeaders));
        }
public static WWW SendHttpPostRequest ( string endpoint , Dictionary < string , string > postParams , Dictionary < string , string > postHeaders ) { var form = GetWwwForm ( postParams ) ; return SendHttpPostRequest ( endpoint , postParams != null ? form . data : null , GetCombinedDictionary ( form . headers , postHeaders ) ) ; }
Send a general POST request to the provided endpoint, along with the data provided in the form and headers.
Send a general POST request to the provided endpoint along with the data provided in the form and headers .
A reference to the WWW instance representing the request.
A reference to the WWW instance representing the request .
endpoint
string
Endpoint to which the data should be sent.
Endpoint to which the data should be sent .
postParams
Dictionary<string, string>
A set of key-value pairs to be added to the request body.
A set of key - value pairs to be added to the request body .
postHeaders
Dictionary<string, string>
A set of key-value pairs to be added to the request headers.
A set of key - value pairs to be added to the request headers .