incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Simon MacDonald (Created) (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CB-480) Add cookie support to FileTransfer.download
Date Wed, 11 Apr 2012 13:59:20 GMT
Add cookie support to FileTransfer.download
-------------------------------------------

                 Key: CB-480
                 URL: https://issues.apache.org/jira/browse/CB-480
             Project: Apache Callback
          Issue Type: Improvement
          Components: Android
    Affects Versions: 1.5.0
            Reporter: Simon MacDonald
            Assignee: Joe Bowser
             Fix For: 1.7.0


谭恒 tanheng81@gmail.com

When use FileTransfer.download, Sometimes we need some
session cookies to authenticate before downloading.
ios version has cookie support, but lacked in android.

It can be achieved by add 3 lines in download method of FileTransfer.java:
----->
String cookie = CookieManager.getInstance().getCookie(source);
if (cookie != null) {
   connection.setRequestProperty("Cookie", cookie);
}
<-----

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

Mime
View raw message