From 7883d99e95f24e24c43db34be6b1e6dc4be0fbee Mon Sep 17 00:00:00 2001 From: h00die Date: Fri, 27 Aug 2021 17:36:11 -0400 Subject: [PATCH] Updated How to Send an HTTP Request Using HttpClient (markdown) --- How-to-Send-an-HTTP-Request-Using-HttpClient.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/How-to-Send-an-HTTP-Request-Using-HttpClient.md b/How-to-Send-an-HTTP-Request-Using-HttpClient.md index 0e7b07027d..a0edd3f9fe 100644 --- a/How-to-Send-an-HTTP-Request-Using-HttpClient.md +++ b/How-to-Send-an-HTTP-Request-Using-HttpClient.md @@ -35,6 +35,11 @@ Part of send\_request\_cgi functionality is the ability to collect, edit, and se A HttpCookieJar is a collection of [HttpCookie](https://github.com/rapid7/metasploit-framework/blob/master/lib/msf/core/exploit/remote/http/http_cookie.rb). The Jar can be populated manually with it's `add` method, or automatically via the `keep_cookies` option that can be passed to [send\_request\_cgi](https://github.com/rapid7/metasploit-framework/blob/92d981fff2b4a40324969fd1d1744219589b5fa3/lib/msf/core/exploit/remote/http_client.rb#L385). +If you need to clear the cookie jar (for instance, using a 2nd login), try: + +```ruby +cookie_jar.clear +``` ### `keep_cookies` option