import jalview.bin.Console;
import jalview.gui.Preferences;
import jalview.structure.StructureCommandI;
+import jalview.util.HttpUtils;
import jalview.util.Platform;
public class PymolManager
boolean getReply)
{
String postBody = getPostRequest(command);
- // System.out.println(postBody);// debug
+ // jalview.bin.Console.outPrintln(postBody);// debug
String rpcUrl = "http://127.0.0.1:" + this.pymolXmlRpcPort;
PrintWriter out = null;
BufferedReader in = null;
try
{
URL realUrl = new URL(rpcUrl);
- HttpURLConnection conn = (HttpURLConnection) realUrl.openConnection();
+ HttpURLConnection conn = (HttpURLConnection) HttpUtils
+ .openConnection(realUrl);
conn.setRequestProperty("accept", "*/*");
conn.setRequestProperty("content-type", "text/xml");
conn.setDoOutput(true);