The important web methods in the context of web applications are located in the client.rb library file under /lib/msf/core/exploit/http, which further links to client.rb and the client_request.rb file under /lib/rex/proto/http, where core variables and methods related to GET and POST requests are located.
The following methods from the /lib/msf/core/exploit/http/client.rb library file can be used to create HTTP requests:
The send_request_raw and send_request_cgi methods are relevant when making a HTTP-based request, but in a different context.
We have send_request_cgi, which offers much more flexibility ...