public void DebugReq(HttpWebRequest req, WebResponse resp)
		{
			if (Config.IsDebugMode)
			{
				var methodtxt = req.Method;
				Debug.WriteLine(string.Empty);
				Debug.WriteLine("vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv");
				Debug.WriteLine("Method: " + req.Method);
				Debug.WriteLine("Request URL: " + req.RequestUri);
				Debug.WriteLine(req.Headers.ToString());
				Debug.WriteLine(req.ToString());
				Debug.WriteLine("Response from: " + resp.ResponseUri);
				Debug.WriteLine("Status Code: " + Convert.ToInt32((resp as HttpWebResponse).StatusCode));
				Debug.WriteLine("Status Name: " + (resp as HttpWebResponse).StatusCode);
				Debug.WriteLine("Status Description: " + (resp as HttpWebResponse).StatusDescription);
				Debug.WriteLine(resp.Headers.ToString());
				Debug.WriteLine(resp.ToString());
				Debug.WriteLine("^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^");
				Debug.WriteLine(string.Empty);
			}
		}
		public void DebugReq(HttpWebRequest req, WebResponse resp)
		{
			if (Config.IsDebugMode)
			{
				var methodtxt = req.Method;
				Debug.WriteLine(string.Empty);
				Debug.WriteLine("vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv");
				Debug.WriteLine("Method: " + req.Method);
				Debug.WriteLine("Request URL: " + req.RequestUri);
				Debug.WriteLine(req.Headers.ToString());
				Debug.WriteLine(req.ToString());
				Debug.WriteLine("Response from: " + resp.ResponseUri);
				Debug.WriteLine(resp.Headers.ToString());
				Debug.WriteLine(resp.ToString());
				Debug.WriteLine("^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^");
				Debug.WriteLine(string.Empty);
			}
		}
コード例 #3
0
 private void ParseJSON(WebResponse response)
 {
     //token = JObject.Parse(response.ToString());
     Debug.Print(response.ToString());
 }