Skip to content Skip to sidebar Skip to footer

Android Download File From Php Server

I am trying to download a file from my PHP server. Here is my PHP code: $file = 'androidApps/app.apk'; header('Content-Description: File Transfer'); header('Content-Type: applicat

Solution 1:

My code is fine. I just had to add cookies in my request:

 dlrequest.addRequestHeader("Cookie","PHPSESSID="+session);

Post a Comment for "Android Download File From Php Server"