473,402 Members | 2,053 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,402 software developers and data experts.

HTTPModule

Has anyone experienced loss of HTTP header information when requesting
files via the use of a http module?

I'm authenticating the use of mp3 files before download, and the http
header request "Range: bytes=2385920-" should respond with a 206
"Partial Content" staus code and "Content-Range: bytes
2385920-9585056/9585057" within the response header. Hence returning
partial parts of an MP3.

I've tested this without the http module and I'm getting the expected
results minus the authentication (obviously).

Not sure why this isn't returning the correct response, or how to
reproduce the required response headers. Help!

Dave

Feb 1 '07 #1
2 1075
http 1.1 supports fetching content by byte offset and length thru
request headers. this is optional support though. native request
handling by iis supports this for files, but for any other handler its
optional.

-- bruce (sqlwork.com)

sp************@gmail.com wrote:
Has anyone experienced loss of HTTP header information when requesting
files via the use of a http module?

I'm authenticating the use of mp3 files before download, and the http
header request "Range: bytes=2385920-" should respond with a 206
"Partial Content" staus code and "Content-Range: bytes
2385920-9585056/9585057" within the response header. Hence returning
partial parts of an MP3.

I've tested this without the http module and I'm getting the expected
results minus the authentication (obviously).

Not sure why this isn't returning the correct response, or how to
reproduce the required response headers. Help!

Dave
Feb 1 '07 #2
OK. Are you saying that Microsoft may not support this in their
implementation of http modules/handlers because it is seen as an
optional part of the HTTP protocol?

If this is the case my options are extremely limited!

Dave

On Feb 1, 4:20 pm, bruce barker <nos...@nospam.comwrote:
http 1.1 supports fetching content by byte offset and length thru
request headers. this is optional support though. native request
handling by iis supports this for files, but for any other handler its
optional.

-- bruce (sqlwork.com)
Feb 2 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Bruce B | last post by:
Hi group, I'm experiencing some extreme weirdness over the last week with IIS related to it's Mappings and how .NET is behaving. I can't explain the behavior as it seems very random. Our...
2
by: Rob Mayo | last post by:
What I'm trying to do is Create an ASP.Net app that has both Windows-authenticated users and Anonymous users. The idea is this: When authenticated users attempt to access the site, their...
1
by: Ryan Cromwell | last post by:
I have written an httpModule for use in our test environment. If a user goes to http://testserver/SomeApplication/MyPage.aspx it will resolve to the latest version of that application deployed:...
7
by: nail | last post by:
Folks, I develop a HttpModule and it works correct, but one problem is occurs. After I register the httpmodule in the web.config, my pages (not testing http://localhost/site but...
4
by: Danny W | last post by:
Hi There! Is it possible to use HttpModule to replace the built-in ASP.NET Session object? I want to write a HttpModule that will handle storing and retrieving of session values from an external...
2
by: Simon-Pierre Jarry | last post by:
Hi, I created a custom HttpModule for managing the security of my application. in "Init" sub, I regsiter the events doing that : Public Sub Init(ByVal context As System.Web.HttpApplication)...
2
by: walter | last post by:
Hi there, I know there is pool of HttpApplications, and for each request coming in, HttpRuntime will dedicate one from pool to serve the request. My questions are : 1. since HttpModule is plug...
1
by: Faraz | last post by:
Hi everyone, I am running into a slight problem. My understanding is that a custom HttpModule will run for every request made to the server, regardless of the extension. I do not experience this...
0
by: mattdev1000 | last post by:
Hello, I have an HttpModule that uses a lazy fetch to a secondary tier for calculating some values (the calculation is can be multisecond in the worse case). The HttpModule spins up a thread to...
3
by: Joseph Geretz | last post by:
I'm implementing a web application whose purpose in life is to act as a data conduit. Data is posted to my Web app in XML format, my application examines the data and forwards it onward by posting...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.