_get = get

Parameters: url

Description: Executes a GET HTTP call, and returns the HTTP response.

Copy

Example

_prepareDomain("https://www.wikipedia.org  ");
var response = _get("/");
        
assertEqual(response.status,200);
        
assertEqual(response.headers.contentType.first,"text/html");
        
log("response.getDataString()"+response.getDataString());
        
assertContains(response.getDataString(),"wikipedia");