GooglePlayInstant/Editor/QuickDeploy/HttpRequestHelper.cs
/// <summary>
/// Sends a general POST request to the provided endpoint, along with the data provided in the byte-array and
/// header parameters.
/// </summary>
/// <param name="endpoint">Endpoint to which the data should be sent.</param>
/// <param name="postData">An array of bytes representing the data that will be passed in the POST request
/// body.</param>
/// <param name="postHeaders">A collection of key-value pairs to be added to the request headers.</param>
/// <returns>A reference to the WWW instance representing the request in progress.</returns>
Sends a general POST request to the provided endpoint, along with the data provided in the byte-array and
header parameters.
Sends a general POST request to the provided endpoint along with the data provided in the byte - array and header parameters .
public static WWW SendHttpPostRequest(string endpoint, byte[] postData,
            Dictionary<string, string> postHeaders)
        {
            var form = new WWWForm();
            var newHeaders = GetCombinedDictionary(form.headers, postHeaders);
            return new WWW(endpoint, postData, newHeaders);
        }
public static WWW SendHttpPostRequest ( string endpoint , byte [ ] postData , Dictionary < string , string > postHeaders ) { var form = new WWWForm ( ) ; var newHeaders = GetCombinedDictionary ( form . headers , postHeaders ) ; return new WWW ( endpoint , postData , newHeaders ) ; }
Sends a general POST request to the provided endpoint, along with the data provided in the byte-array and
header parameters.
Sends a general POST request to the provided endpoint along with the data provided in the byte - array and header parameters .
A reference to the WWW instance representing the request in progress.
A reference to the WWW instance representing the request in progress .
endpoint
string
Endpoint to which the data should be sent.
Endpoint to which the data should be sent .
postData
byte[]
An array of bytes representing the data that will be passed in the POST request
body.
An array of bytes representing the data that will be passed in the POST request body .
postHeaders
Dictionary<string, string>
A collection of key-value pairs to be added to the request headers.
A collection of key - value pairs to be added to the request headers .