Send() public method

Send HTTP request for the full content from the specified server.
public Send ( System.Version httpVersion, string>.Dictionary httpHeader, byte httpBodyData, HttpMethod httpMethod, int timeOut ) : void
httpVersion System.Version The HTTP version.
httpHeader string>.Dictionary The HTTP header.
httpBodyData byte The HTTP body data.
httpMethod HttpMethod The HTTP method.
timeOut int The number of milliseconds to wait before the request times out.
return void
        protected bool SetupHttpsConnection()
        {
            sutControlAdapter.ClearCache(testConfig.HostedCacheServerComputerFQDNOrNetBiosName);

            int timeout = 20000;
            byte[] content = TestUtility.GenerateRandomArray(10);

            HttpClientTransport testClient = new HttpClientTransport(
                TransferProtocol.HTTPS,
                testConfig.HostedCacheServerComputerName,
                testConfig.HostedCacheServerHTTPSListenPort,
                PchcConsts.HttpsUrl,
                testConfig.DomainName,
                testConfig.UserName,
                testConfig.UserPassword);
            try
            {
                testClient.Send(HttpVersion.Version10, null, content, HttpMethod.POST, timeout);
            }
            catch (Exception)
            {
                return false;
            }
            finally
            {
                testClient.Dispose();
            }

            return true;
        }