Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
nlapiRequestURL to request http url
I have a requirement to access a web API. It’s like a web service but there is no SOAP to get in the way. Its like after authentication, post an xml file to a URL and get an xml on the reply.
I am getting the correct response when I access the url thru java application.
But when I use the nlapiRequestURL, it throws an HTTP ERROR: 401 Unauthorized.
When we click on the url directly, it will ask for username and password. So I am providing the username and password as header parameters in the nlapiRequestURL function. Is there any other way to send the username and password in order to make this call?
0