예제 #1
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="command"></param>
 /// <returns></returns>
 public HttpResponse GetResponse(HttpRequestCommand command)
 {
     HttpWebResponse res = null;
     HttpResponse hr = null;
     try
     {
         res = this.GetHttpWebResponse(command);
         hr = new HttpResponse(res, this);
     }
     catch (WebException ex)
     {
         res = ex.Response as HttpWebResponse;
         if (res != null)
         {
             hr = new HttpResponse(res, this);
         }
         else
         {
             throw;
         }
     }
     return hr;
 }
예제 #2
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="httpResponse"></param>
 public HttpResponseException(HttpResponse httpResponse)
 {
     this.HttpResponse = httpResponse;
 }