/// <summary>
        /// To web response.
        /// </summary>
        /// <returns>The http web response</returns>
        public HttpWebResponse ToWebResponse()
        {
            try
            {
                HttpWebRequest request = ToWebRequest();
                return((HttpWebResponse)request.GetResponse());
            }
            catch (WebException webEx)
            {
                OAuthException authException;

                if (WebExceptionHelper.TryWrapException(Context, webEx, out authException, ResponseBodyAction))
                {
                    throw authException;
                }

                throw;
            }
        }