Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    May 2006
    Posts
    107
    Thanks
    1
    Thanked 0 Times in 0 Posts

    need help in force download

    Hi
    I want to download a .pdf file forcefully, I need help in that regard. I forgot which header to be used for that, please anyone help me.

    i have pdf file and on click i don't want this to open in browser instead it should get downloaded.

    thanks

  • #2
    Senior Coder Arbitrator's Avatar
    Join Date
    Mar 2006
    Location
    Splendora, Texas, United States of America
    Posts
    3,300
    Thanks
    28
    Thanked 275 Times in 269 Posts
    The HTTP header is, I believe, Content-Type: application/octet-stream.
    Last edited by Arbitrator; 08-07-2007 at 10:05 AM.
    For every complex problem, there is an answer that is clear, simple, and wrong.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •