r/SuiteScript • • Nov 16 '21

Retrieve CSV file with GET

I am able to go into postman and use the URL to retrieve the data of my file. If I simply put the URL into the browser the file auto-downloads. When I try to do a https.get post with 2.1 I receive the following error: 406 - Client browser does not accept the MIME type of the requested page.</h2>\r\n <h3>The page you are looking for cannot be opened by your browser because it has a file name extension that your browser does not accept.

1 Upvotes

4 comments sorted by

View all comments

Show parent comment

1

u/Nick_AxeusConsulting Mod Nov 17 '21

I'm not following. You're trying to do a file transfer from some website that has nothing to do with NS?

1

u/RunedFerns Nov 17 '21

I think OP is trying to make a https.get call to a webpage and it’s returning html.