set non-interactive

git-svn-id: http://jclouds.googlecode.com/svn/trunk@114 3d8758e0-26b5-11de-8745-db77d3ebf521
This commit is contained in:
adrian.f.cole 2009-04-30 18:39:22 +00:00
parent 6839d6c40f
commit 9785a88d1e
1 changed files with 2 additions and 0 deletions

View File

@ -140,6 +140,8 @@ public class JavaUrlHttpFutureCommandClient implements HttpFutureCommandClient {
URL url = new URL(target, request.getUri()); URL url = new URL(target, request.getUri());
HttpURLConnection connection = (HttpURLConnection) url.openConnection(); HttpURLConnection connection = (HttpURLConnection) url.openConnection();
connection.setDoOutput(true); connection.setDoOutput(true);
connection.setAllowUserInteraction(false);
connection.setInstanceFollowRedirects(false);
connection.setRequestMethod(request.getMethod()); connection.setRequestMethod(request.getMethod());
for (String header : request.getHeaders().keySet()) { for (String header : request.getHeaders().keySet()) {
for (String value : request.getHeaders().get(header)) for (String value : request.getHeaders().get(header))