Set correct headers with PHP to make mobile browsers download it

Budget $10 - $30 USD
Bids 7
Average Bid $108

Hello everybody!

I am trying to make an android default browser download an image ( [url removed, login to view] )

I looked through the internet and got several places saying that this solution would definitely work, but it doesn't. (to test - select an animation, click "Generate preloader", then the "download now" button.

These are the headers I am setting:

header("Pragma: public"); // required
header("Expires: 0");
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
header("Cache-Control: private",false); // required for certain browsers
header('Content-type:application/octet-stream' );
header("Content-Disposition: attachment; filename="[url removed, login to view]"" );
header("Content-Transfer-Encoding: binary");

Note that when the "Download now" button is clicked what I do is set the src attribute in Iframe to the php script that generates the loading animation with the headers above. Script is in PHP

So I need the image starting download when the "download now" button is clicked in android default browser along with all other popular browsers both on computer and mobile devices. The solution with just changing headers will be prioritized.

PLEASE, don't bid if you can't do it :)

Post a Project Like This

Looking to make some money?

  • Set your budget and the time frame
  • Outline your proposal
  • Get paid for your work

Bids on this Project

  • rosestudios Profile Picture

    rosestudios

    Naga,  Philippines

    Greetings! I illustrate and design for a living. I suck the marrow out of life by living each day in love, peace and art. I am passionate. I do what I love and I love what I do. I am Rose and I am real! Quality work needs no explanation. It speaks for itself. Have a quick look at my portfolio as it narrates the reason why on earth I was born - to design. Cheers! ~Alvin

    Adobe Flash, Graphic Design, Banner Design, and Video Services

  • srinichal Profile Picture

    srinichal

    hyderabad,  India

    Perfection and dedication are the way we deal with projects on freelancer. There have been many clients all over the world that are satisfied with the solutions provided.All types of automation works along with web based solutions are our expertise. Looking to provide solutions in the Mobile markets as well. Some of the automation tools are listed in portfolio and here as well: * AutoBidder tool for Madbid like sites * Automation tools For all emails and social Bookmark sites * Social Bookmarking tools * Facebook Likes Automation * Webbased Versions of tools tailored to custom needs * Desktop apps tailored to customer needs * Proxy tools tailored to your requirements. A dedicated team that can literally deliver any project solution with high expertise. Please don't hesitate to contact us via freelancer. Satisfaction guaranteed solutions delivered all over the world. The Skill Set ranges from C# to PHP, Iphone to Andriod. We can deliver almost any solutions for your needs. We can also take up any type of work based on web design to desktop or mobile in the broad spectrum as we always strive to learn and perfect.

    PHP, Perl, Java, and JSP

  • mrnewict Profile Picture

    mrnewict

    HCM City,  Vietnam

    I'm a C#, Java, NodeJS and PHP developer. Expert about C# desktop app, bot. Expert about curl lib, automatic bot, script app, database. Expert about JSP, PHP and ASPX web. Nice to work with you!

    PHP, Java, Javascript, and .NET

  • tlchung Profile Picture

    tlchung

    Central District,  Hong Kong

    WE are a team of talents which have wide range experience in system development. Project included: inter-bank clearing system, QC portal, paid learning system, SEO portal, property agent listing system. We building system/website according to your need. We also provide site/server support on a low monthly rate/per ticket. Please visit [Removed by Freelancer.com Admin] for more detail. [Removed by Freelancer.com Admin]

    PHP, ASP, Java, and JSP

  • DeathLine Profile Picture

    DeathLine

    Ho Chi Minh,  Vietnam

    Hello, We are leading and experienced IT Services Group from Viet Nam. We deals in a web as well as mobile app developments.

    PHP, Website Design, Shopping Carts, and iPhone

  • Valentina1993 Profile Picture

    Valentina1993

    Baia Mare,  Romania

    SERVICES : We have 5+ years of experienced in IT industries specialist in services below o Custom Web & Smartphone Application Development o iPhone & iPad application Development o API SKD & Connection with all major platforms. o Responsive Web Application o Yearly Maintenance Contract or Upgrade Old version to new o Upgrade your existing website to mobile application o Payment Gateway Integration - PayPal, EBS, Google Checkout, WordPay, Moneris, Sage Pay etc. o Web & Mobile UX / UI Designing TECHNOLOGIES: We have experienced with following technologies o PHP + MYSQL o Cordova , Objective C , iPhone Application Development o Core Java for Android Apps Development o PhoneGap & Titanium Cross Platform Mobile apps Development o Frameworks : MVC , CodeIgniter . DOMAIN EXPERTISE: o Retail o Social-Media o Event Management o Utility o Schools, Hospitals and Restaurants o Real-Estate o Education o Marketing o Financial & Banking o Lifestyle

    PHP, Mobile Phone, Photoshop, and iPhone