Ejemplo n.º 1
0
        /// <summary>Adds the given form to this request.
        /// Note that if you wish to also use custom headers with a form, call this first.
        /// Then, add to the Headers property.</summary>
        /// <param name="form">The form to attach to this request.</param>
        public void AttachForm(UnityEngine.WWWForm form)
        {
            // Get the payload:
            request = form.data;

            // Add each header (but don't overwrite):
            Headers rH = requestHeaders;

            foreach (KeyValuePair <string, string> kvp in form.headers)
            {
                // Add:
                rH.AddIfNew(kvp.Key, kvp.Value);
            }
        }