public static HttpRequestMessage CreateGetRequest(this HttpResponseMessage response, string path) { var httpRequestMessage = new HttpRequestMessage(HttpMethod.Get, path); return(CookiesHelper.CopyCookiesFromResponse(httpRequestMessage, response)); }
public static HttpRequestMessage CreatePostRequest(this HttpResponseMessage response, string path, Dictionary <string, string> formPostBodyData) { var httpRequestMessage = CreatePostRequest(path, formPostBodyData); return(CookiesHelper.CopyCookiesFromResponse(httpRequestMessage, response)); }