public Send ( System.Version httpVersion, string>.Dictionary |
||
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. |
리턴 | 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; }