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 response encoding
Does nlapiRequestURL allow you to change the "Accept-Encoding" header? I'm making some calls to web services that return JSON and it appears that either nlapiRequestURL doesn't send the custom "Accept-Encoding" header I pass to it, or the web services don't honor the received "Accept-Encoding" header, as the response is always the same from each web service. One web service returns uncompressed data and the other returns compressed data, regardless of the "Accept-Encoding" header sent.
Uncompressed response:
http://api.feedzilla.com/v1/cultures.json
Compressed (deflate) response:
https://api.wunderground.com/api/d15f79daf3e2427c/conditions/q/12345.json
:h_a_w:
0