public static void Test_01(string file, bool executeRequest = false) { Trace.WriteLine("file \"{0}\"", file); HttpArchive har = new HttpArchive(file); Trace.WriteLine("select first entry"); var entry = har.Entries.First(); string url = entry.request.GetHttpRequestUrl(); Trace.WriteLine("url \"{0}\"", url); HttpRequestParameters_v1 requestParameters = entry.request.GetHttpRequestParameters(); Trace.WriteLine("requestParameters :"); Trace.WriteLine(requestParameters.zToJson()); if (executeRequest) { //Http2.LoadUrl(url, requestParameters); Http_v3.LoadUrl(url, requestParameters); } }
public static void Test_01(string file) { Trace.WriteLine("file \"{0}\"", file); HttpArchive har = new HttpArchive(file); Trace.WriteLine("Version : {0}", har.Version); Trace.WriteLine("Creator : {0}", har.Creator); Trace.WriteLine("Browser : {0}", har.Browser); Trace.WriteLine("Pages : "); foreach (var page in har.Pages) { Trace.WriteLine(page.zToJson()); } Trace.WriteLine("Entries : "); foreach (var entry in har.Entries) { Trace.WriteLine(entry.zToJson()); } }