Web

Load xml from web into an InDesign document script

Perform HTTP requests very easily by using the http module of the Extendables library from Stijn Debrouwere, as demonstrated here.

Web Access From Adobe InDesign CS3 ExtendScript by Kris Coppiters

See also the Socket page.