method - HTTP method, such as GET, POST, PUT, DELETE, PATCH.
headers (optional) - A json string that identifies the header key and value in the following manner: '{"header1" : "value1" , "header2" : "value2"}'
request_body (optional) - The string body of the request (most relevant in the case of POST)
username (optional) - The user name for basic authentication. Can be empty string if the site does not require authentication.
password (optional) - The password for basic authentication. Can be empty string if the site does not require authentication.
Note:Only url and method are required; however, if you need to pass a later argument, make sure you include empty single quotes for the arguments you aren’t passing. See the third example below.