#1
  1. No Profile Picture
    Contributing User
    ASP Explorer (0 - 99 posts)

    Join Date
    Jul 2007
    Posts
    50
    Rep Power
    15

    Does setting headers conflictwith sending binary?


    I am writing an ASP script that sends mp3 binary information to a player. In order for the player to get a grip on what is coming I want to send a CONTENT-LENGTH header. Problem is, when I do this it causes the page to be called again right before sending the binary data. Setting CONTENT-TYPE doesn't cause this but CONTENT-LENGTH does. What is going on?

    This is an issue for me because I am trying to prevent saving or downloading of the mp3. My ASP script checks a parameter against a Session cookie created seconds ago from XMLHTTP. The file is too big for the buffer, so I loop though it and send it in chunks. I must cancel the Session, for otherwise the site is unresponsive to the user. When the client tries to re-access the page with the session already gone, he can't get the mp3 data.
  2. #2
  3. No Profile Picture
    Registered User

    Join Date
    Dec 2013
    Posts
    1
    Rep Power
    0
    Thanks for info.

Similar Threads

  1. Setting the headers to prevent caching
    By ccc in forum ASP Development
    Replies: 8
    Last Post: February 23rd, 2009, 12:14 PM
  2. 404.asp and headers question
    By ADAMWebDesign in forum ASP Development
    Replies: 13
    Last Post: April 21st, 2005, 08:38 AM
  3. Headers in Excel?
    By mwhbu in forum ASP Free Lounge
    Replies: 1
    Last Post: October 7th, 2004, 11:23 AM
  4. Sub-Report Headers
    By Fowler_ko in forum Microsoft Access Help
    Replies: 2
    Last Post: April 15th, 2004, 05:44 AM
  5. Headers
    By Steve Schofield in forum ASP Development
    Replies: 0
    Last Post: February 28th, 2001, 12:55 AM

IMN logo majestic logo threadwatch logo seochat tools logo