AssemblyCSharp.BackendConnection.CreatePostFormWWW C# (CSharp) Method

CreatePostFormWWW() private method

private CreatePostFormWWW ( string path, Dictionary,System.Collections.Generic formData ) : WWW
path string
formData Dictionary,System.Collections.Generic
return UnityEngine.WWW
        private WWW CreatePostFormWWW(string path, Hash formData)
        {
            var wwwForm = new WWWForm();
            foreach (var param in formData)
            {
            if (string.IsNullOrEmpty(param.Value))
            {
                PSDebug.Log("Dropping empty param {0}", param.Key);
                continue;
            }

            wwwForm.AddField(param.Key, param.Value);
            }

            var headers = CreateRequestHeaders(path, null, formData) ?? new Hash();
            foreach (DictionaryEntry formHeader in wwwForm.headers)
            {
            headers[formHeader.Key.ToString()] = formHeader.Value.ToString();
            }

            return new WWW(AbsURL(path), wwwForm.data, headers);
        }