Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9171041
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T16:06:33+00:00 2026-06-17T16:06:33+00:00

That is really happening. I made test in PHP to confirm this. I created

  • 0

That is really happening. I made test in PHP to confirm this.

I created a test.php file and put:

<?php
    error_log('Downloading...');
    header('Content-type: application/force-download');
    header('Content-Disposition: attachment; filename="test.txt"');
    echo 'test android download';
?>

So, when I open http://www.myurl/test.php via any Android mobile browser, in the error_log.log I get “Downloading…” two times.

When i open same URL in any other Mobile OS(Windows, IOS, etc.) I get only one time “Downloading…” in error_log.log file.

Does anyone know what’s going on and how to avoid this ??

This is a big problem for me, because I perform user charging when somebody download a file. And now from Android Phones there are 2 charges for 1 downloaded file.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T16:06:34+00:00Added an answer on June 17, 2026 at 4:06 pm

    I am in a dead end 🙁

    http://code.google.com/p/android/issues/detail?id=1978

    The browser needs to hit the server to determine that something is a download, and than the download manager has to separately contact the server for downloading.

    So, Android fire up first request to open dialogue box for “are you sure? – yes/no”.
    And if user click “Yes” Android Forward request to Android DownloadManager and manager send second request to download file. (some Android version send request to DownloadManager immediately)

    The problem is that both request, first and second, are type of GET (not HEAD).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I really have no idea why this is happening... I created a win32 application
Something that I think is really strange is happening when I use die() .
hope to get some help here because this is something that really makes me
There maybe some simlar questions to this but I can't see anything that really
This is for an iPhone App, but I don't think that really matters. I
I am having this really weird issue with downloading files from within ASP.Net MVC
My problem is really similar to this . However, my implementation differs in that
One thing that really bothers me about Google Code is that fact that it
I'm struggeling with an issue that really drives my crazy. I found comparable issues
I used to work in JavaScript a lot and one thing that really bothered

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.