示例#1
0
        /// <summary>
        /// Creates the API request object
        /// </summary>
        /// <returns></returns>
        protected override HttpsClientRequest GetClientRequest()
        {
            Request = base.GetClientRequest();
            string formBody;

            // If there are form values, set them as the request's contet
            if (FormValues.ValueCollection.Count > 0)
            {
                HeaderFactory.AddFormHeaders(Request);
                formBody = FormValues.GetValuesAsContentDisposition();
                Request.ContentString = formBody;
                Request.FinalizeHeader();
            }

            return(Request);
        }