473,657 Members | 2,516 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Response.Status Code problems

I have some image resizing code that resizes images and composites them with
watermarks on the fly. I have integrated HTTP eTag aware caching with the
code, however, the Response.Status Code which I set to 304 when necessary
always shows up in the server log as a 200 even when the 304 is issued.

The browser doesn't error and behaves as expected, but I want to be able to
log the 304s as 304s, not 200s with a VERY small contentlength.

Please advise.

The Response.Status Code and Response.Status Description are both set in the
Imaging assembly which is separate to the application.

Thanks, Adrian.

I've already posted this to
microsoft.publi c.dotnet.framew ork.aspnet.cach ing, but there's not exactly a
high volume of posts so I'm trying here instead, please don't be mad at me!
Nov 18 '05 #1
0 1075

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

Similar topics

3
9380
by: Vivek Mehta | last post by:
I want to receive XML stream generated at another URL however when I try to load the XML it errors out with one error or the other. I beleive this XML comes back with HTTP header which actually comes back as part of the response and obviously causes the xmlDoc.Load(myResponseStream) to break because the test preceding the XML makes the xml invalid. How can I remove this content from the receiving XML stream ?? Here is some sample code :
4
30289
by: Chris Fink | last post by:
How do I retrieve the HTTP Status code (ie 202, 404, etc) below? I am currently receiving the response text but unable to access the response status code. string strNewValue; string strResponse; // Create the request obj
1
1501
by: Shane | last post by:
I want the function in Code Snippet #1 below to return a string of "200" by making a web request for the vbprogram.aspx that contains the PageLoad function in Code Snippet #2 below. Instead, I am getting a StatusCode of "OK" instead of 200. What should I change here? Thanks in advance for any help anyone may be able to give. Code Snippet #1 (The function that does the web request.) (from a C# program I wrote.)
0
2849
by: Shane | last post by:
Can someone tell me what the Response.StatusCode = "200" is doing below? I have another program that sends a stream of string data to the program below by using an HttpWebRequest. I want to use the HttpWebResponse or HttpResponse to get the status code back but it doesn't seem to work. Is the Response.StatusCode assignment below only visiable to the web application below or is this the response that is sent back to any programs that...
4
3330
by: Martin Robins | last post by:
I have an application which uses Windows Authentication to identify users and ensure that they are on a domain. Once access is granted at this level, I then check their login name against a database of validated users to determine whether the particular user can actually use the system. If a user is not in the database, I want to respond with the same error page as would be seen if they failed the windows authentication; the 403...
4
10882
by: Hexman | last post by:
Code below ---- I've asked a similar question on this forum earlier. This is a slightly different situation. Previous Question ---- I'm trying to save some specific web pages to disk as text files. I searched the Internet and found a basic example which I changed to fit my needs. I tested it out first on a single URL and it worked fine. Now when I incorporate an array of URL's, it fails to work. The first "responseFromServer"...
1
3835
by: Flip Rayner | last post by:
I am writing an HTTPHandler that is basically a transparent proxy / URL Mapper. I have a line in my code to return a 503: context.context.Response.StatusCode = (int)HttpStatusCode.ServiceUnavailable; I am lead to believe that there is the ability to specify the "retry-after" parameter in the header, but I am unsure how to do it in ..Net2
2
1275
by: pbd22 | last post by:
Hi. I feel like i should know this but i dont. How do I get the server to send a specific HTTP response to the browser? I want to tell the browser that there is no content coming back from ther server and I want to do it in the HTTP Headers. The status code is "204" for no content.
10
14229
by: =?Utf-8?B?U3VzaGlTZWFu?= | last post by:
Hello. I need use http header StatusCode as response. For example my page have name check.aspx and I get request like this check.aspx?idcustomer=1395 I use this idcustomer param to check if this customer exist in my database and if exist show page (http StatusCode == 200), but if customer with number 1395 not exist I need make 404 http error (page not exist) I am tring to do something like protected void Page_Load(object sender,...
0
8420
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8324
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8740
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8516
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7353
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4173
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4330
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2743
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1970
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.