473,435 Members | 1,513 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,435 software developers and data experts.

Building a Webserver; issues with the 404 header

Plater
7,872 Expert 4TB
Well, I'm not sure where to put this, but I figured people using ajax are more likely to run into these issues.

I have been building my own webserver (don't ask, just trust me when I say I have to) from scratch.
I have been using the RFCs to correctly generate response headers, particularly the status line:
"HTTP/1.0 200 Ok "+crlf
"HTTP/1.0 404 Not Found"+crlf

Now when I use the XMLHttpRequest, it sees my "404" status code and "Not Found" line correctly.
However, both firefox and IE don't believe the 404 and just make a blank page.

I was under the assumption that the browsers would auto-generate a default error message page when it sees the 404 error. I am perfectly capable of creating a custom one to return, but I would prefer to save the overhead of sending more data if I could.

I thought I should be able to send a fully qualified set of headers with the 404 status code and not have the browser just sit there blankly.

Anyone have any ideas on this? Or should I just start making my own 404 page now?
Jul 19 '07 #1
3 1248
pbmods
5,821 Expert 4TB
Heya, Plater.

If you're building your own webserver, then the message has to come from somewhere. Either set up a 404 page and display that (preferred), or else hard-code the message into your app.
Jul 19 '07 #2
Plater
7,872 Expert 4TB
I was afraid of that. Thanks for the confirm.
Jul 19 '07 #3
pbmods
5,821 Expert 4TB
No problem.

Good luck with your project, and if you ever need anything, post back anytime :)
Jul 19 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: sorenson2414 | last post by:
Hello~ I am just starting out in web building and have a general basic idea of what goes on. Thankfully I have a friend helping me out who has a server and knows PHP, and HTML etc... I would like...
7
by: BenignVanilla | last post by:
My ISP provides a web based email client, but it is not brandable and the features are not that extensive. I'd like to build my own. Has anyone done this, or is anyone aware of any tools out there...
18
by: Jeremy Weiss | last post by:
I'm trying to build a database that will handle the monthly billing needs of a small company. I'm charting everything out and here's what I see: table for customers sub table to track payments...
8
by: Ted Miller | last post by:
Hi folks, I'm looking at moving a large base of C++ code to .Net under tight time constraints. The code runs in mission-critical environments, and I am extremely concerned about the loader lock...
1
by: Andy_Khosravi | last post by:
I'm having trouble building a query to gather the information I need from a table. I need to be able to assemble an inventory report that displays receipts, output, and running inventory from a...
5
by: ayaz.usman | last post by:
Hi, I've built a web services proxy server, in C# using wsdl.exe, by importing wsdl. Howeever, when I go to : http://localhost/sample.asmx?wsdl, they wsdl there does not match the wsdl I fed...
2
by: Zach Burnett | last post by:
I have created a page that should unlock our local users throughout our network. The page is simple enough. It just takes users input for the IP Address and the User Name of the lockout computer....
3
by: K Viltersten | last post by:
I've been informed that a webserver sending a XML file is supposed to add "Content-Type: text/xml header". I'm not questioning that infromation but i'm unsure what was ment by it. The XML i get...
7
Curtis Rutland
by: Curtis Rutland | last post by:
Building A Silverlight (2.0) Multi-File Uploader All source code is C#. VB.NET source is coming soon. Note: This project requires Visual Studio 2008 SP1 or Visual Web Developer 2008 SP1 and...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.