Version: v0.6.0 - Beta.  We welcome contributors & feedback.  THanks!

Net.httpGet

Net.httpGet($url, $headers = {})

Description

Send an HTTP GET request and get the body of the response as a string.

$url must be a URL TypeString.

$headers is an optional map of HTTP request headers.

// Basic call
$content = Net.httpGet(url'http://example.com');

// With headers
$headers = {
    'Cookie': 'sessionId=1234; otherCookie=1;'
};
$content2 = Net.httpGet(url'http://example.com', $headers);