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)); }
public static String convertHarRequestToString(HarSharp.Request request) { return(JsonConvert.SerializeObject(request)); }