CB-480 work, back button and history issues are preventing this from being tested properly

This commit is contained in:
Joe Bowser 2012-04-17 17:13:33 -07:00
parent c341cf0d47
commit 76820ebaff

View File

@ -421,6 +421,14 @@ public class FileTransfer extends Plugin {
URL url = new URL(source);
HttpURLConnection connection = (HttpURLConnection) url.openConnection();
connection.setRequestMethod("GET");
//Add cookie support
String cookie = CookieManager.getInstance().getCookie(source);
if(cookie != null)
{
connection.setRequestProperty("cookie", cookie);
}
connection.connect();
Log.d(LOG_TAG, "Download file:" + url);