コード例 #1
0
        public IList <HarSharp.Entry> makeRequest(HarSharp.Request request, bool followRedirect)
        {
            String harRequestStr = ClientApiUtils.convertHarRequestToString(request);

            byte[] response         = clientApi.core.sendHarRequest(this.apiKey, harRequestStr, followRedirect.ToString());
            String responseAsString = Encoding.UTF8.GetString(response);

            return(ClientApiUtils.getHarEntries(response));
        }
コード例 #2
0
 public static String convertHarRequestToString(HarSharp.Request request)
 {
     return(JsonConvert.SerializeObject(request));
 }