Search
Plugins > HTTP-REST 2.0.1 > RESTHost > executeRequestWithCredentials

Method executeRequestWithCredentials(String method, String url, Object content, String user, String pass)

Executes a request with provided credentials. Supported only for hosts created with RESTHostManager.createTransientHostFrom() with HTTP Basic Authentication.

Returns

RESTResponse

Arguments

Name Type Description
method String HTTP method to be used for request creation.
url String URL to extend the host???s base URL.
content Object Content the request should send.
user String Username to use for the HTTP basic authentication.
pass String Password to use for the HTTP basic authentication.