Question: I have an android app that is built using the sony add on sdk. I would like build my app in ci. Is there is a way to download the sdk via command line.

Because the sdk is not available on the default google site. So I was wondering if I can add a Add On site to android sdk via command line and download the sdk. Because I can't create a CI agent preinstalled with the sdk as I use the travis hosted ci and don't have much control over it.

Can someone help me..??

Answer: 
Browsers open that save as dialog depending on the content-type.
Within the browser a user can specify which mime-type should open in which way.

btw. normally you specify for json the mime type `application/json` - see RFC 4627

you could try to set the type to `application/octet-stream`.

but as i wrote - it depends on user settings.

In firefox it can be modified this way:
<https://support.mozilla.org/en-US/kb/change-firefox-behavior-when-open-file>
Step - 1 . First when click on download button open a form with input filename (open popup or another page its upon you)

Step - 2 Now give the name of file (I mean enter name in text box and click on submit);

Step - 3 On submit send request as a post (method = 'POST') to the download file.
 this look like $\_POST['filename'];

Step - 4 

```
if($_POST['filename']){
    $filename = $_POST['filename']; 
}

if (file_exists($myFile)){
    header ("Content-Type: application/download");
    header ("Content-Disposition: attachment; filename=$filename ");
    header("Content-Length: " . filesize("$filename "));
    $fp = fopen("$filename ", "r");
    fpassthru($fp);
} else {
    echo "no file exists";
};  

```

I hope this will help you ..!!