Trouble getting the socket object to work
i'm trying pull external xml file indesign, know need use socket object. went documentation , copied/pasted code there:
reply = "";
conn = new socket;
// access adobe’s home page
if (conn.open ("www.adobe.com:80")) {
// send http request
conn.write ("get /index.html http/1.0\n\n");
// , read server’s reply
reply = conn.read(999999);
conn.close();
}
when ran it, received error message:
so, i'm stuck! either adobe's code sample has error, or, more likely, there's wrong on end. if had guess, i'd guess it's kind of proxy problem, don't know sure , don't know how find out.
can help? principles of socket object make sense me, if can't sample work, don't have anywhere go this.
More discussions in InDesign Scripting
adobe
Comments
Post a Comment