<cfscript>
myString = javacast("string","test=Some crazy stuff here");
s = createObject("java", "java.net.Socket");
os = createObject("java", "java.io.OutputStream");
osw = createObject("java", "java.io.OutputStreamWriter");
s.init("127.0.0.1", 80);
os = s.getOutputStream();
osw.init(os);
osw.write(myString);
osw.flush();
osw.close();
s.close();
</cfscript>
<cfdump var=#s#>
<cfdump var=#os#>
<cfdump var=#osw#>
No comments:
Post a Comment