Ejemplo n.º 1
0
		/// <summary>
		/// 保存 api_start2 通信数据到本地
		/// </summary>
		static void SaveSessionData(Session session)
		{
			//var path = Settings.Current.CacheFolder + "\\api_start2.dat";

			session.SaveSession(Settings.Current.CacheFolder + "\\api_start2.session", false);

			//var data = session.GetRequestBodyAsString();
			//data = data.StartsWith("svdata=")
			//	? data.Substring(7) : data.Replace("svdata=", "");

			//Debug.WriteLineIf(data.Length < 100, data);

			//File.WriteAllText(path, data);
		}