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.
Please note that on Saturday, April 11, 2026, at 8:00 PM Pacific time, our Case Management System will undergo a scheduled maintenance for approximately 30 minutes. During this time, case creation via SuiteAnswers will be unavailable and inbound calls will be routed to Customer Service.
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