Modules

filter

 

Objects/Functions

module (N/https)

SuiteScript 2.0

https.get(options)

{https}.get({url: {string*},headers: {Object}})

N/https Module
https.get()
Method Description: Sends an HTTPS GET request.
Returns: https.ClientResponse or https.ServerResponse
Supported Script Types: Server scripts For more information, see SuiteScript 2.0 Script Types.
Governance: 10 units
Module: N/https Module
Since: 2015.2
Search NetSuite - https://system.netsuite.com/app/help/helpcenter.nl?search=https.get(options)

Example:

// Code Example 1
// Add additional code
//...
var headerObj = {
name: 'Accept-Language',
value: 'en-us'
};
var response = https.get({
url: 'https://www.testwebsite.com',
headers: headerObj
});
//...
// Add additional code

//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_4567631366.html