Modules

filter

 

Objects/Functions

module (N/http)

SuiteScript 2.0

http.get(options)

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

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

Example:

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

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