So I am trying to use the https module in SuiteScr...
# suitescript
s
So I am trying to use the https module in SuiteScript 2 to post a file from the file cabinet to an external endpoint, but so far I'm having no luck. Does anyone know how to do that? What I've tried so far is loading the file and sending that as the body but it's complaining about invalid http content
b
sending files is hard, what does your external endpoint accept?
z
Somethinng to potentially try…each file has a URL, and when you hit the URL, it downloads the file, right?
Well I’ve used SuiteTalk to hit that URL, and from the URL, downloaded the file
You could potentially redirect to that URL to download the file
s
I managed to make it work by using this stack overflow thread. Apparently netsuite doesnt really support it well.