Thejus Krishna
Thejus Krishna

Reputation: 1899

Is there any other way of fetching a URL in Googlescript?

I am writing a Googlescript to fetch the contents from an internal URL. I want to call that URL through the browser. Currently on calling using fetch, it never hits my internal server.

Upvotes: 0

Views: 390

Answers (1)

Ryan Roth
Ryan Roth

Reputation: 1424

If your internal server is preventing requests from Apps Script's UrlFetch, you may be able to send your request via HTMLService. However, there are restrictions to this; see HTTP restrictions. For your situation, these restrictions may prevent all such access through Apps Script.

Another (more complicated) approach would be to set up your internal server to allow external access with authorization.

Upvotes: 1

Related Questions