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:

http://i.stack.imgur.com/qgg6u.jpg

 

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

Popular posts from this blog

Warning, the Safe Path is not accessible vm3 - Joomla! Forum - community, help and support

uppercase letters in url - Joomla! Forum - community, help and support

Joomla! Update is not offering Joomla 3 - Joomla! Forum - community, help and support