Esempio n. 1
0
        /// <summary>
        /// 응답 Header 내용을 반환한다.
        /// </summary>
        /// <returns></returns>
        public WebHeaderCollection Head() {
            if(IsDebugEnabled)
                log.Debug("Execute Http HEAD method.");

            using(WebResponse response = GetResponse(WebRequestMethods.Http.Head))
                _responseHeaders = (response != null) ? response.Headers : new WebHeaderCollection();

            if(IsDebugEnabled)
                log.Debug("Execute Http HEAD method is SUCCESS. headers=[{0}]", _responseHeaders.CollectionToString());

            return _responseHeaders;
        }