User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the HTML and CSS section within the Web Development category of DaniWeb, a massive community of 401,952 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,302 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our HTML and CSS advertiser: Lunarpages Web Hosting
Views: 783 | Replies: 1
Reply
Join Date: Jan 2007
Posts: 1
Reputation: henry_s is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
henry_s henry_s is offline Offline
Newbie Poster

Help Server side sends HTML over HTTP to browser

  #1  
Jan 8th, 2007
Hi all,

I’m new to the HTML/HTTP world …
My server side send HTTP request with HTML body.
(I’m not using a well known web server, this is self implementation)
When I’m trying to use a browser to fetch the page,
I type the URL: http://<APP_IP>:2024/xxx.html
I can see the page in the browser, BUT the browser is keeping on searching…
This is the dummy HTML I’m trying to send. ANY Idea????

HTTP/1.1 200 OK
Server: XXXXX
Accept-Ranges: bytes
Content-length: 328
Keep-Alive: timeout=40, max=100
Connection: Keep-Alive
Content-type: text/html; charset=UTF-8

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Test Tamar</title>
</head>
<body bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080" alink="#FF0000">
<div style="font:normal 11px arial,sans-serif;text-align:center; margin:1em auto;">XXXXX Test </div>
</body>
</html>
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Jul 2006
Location: Deptford, London
Posts: 943
Reputation: MattEvans has a spectacular aura about MattEvans has a spectacular aura about 
Rep Power: 5
Solved Threads: 47
Moderator
Featured Poster
MattEvans's Avatar
MattEvans MattEvans is online now Online
Posting Shark

Re: Server side sends HTML over HTTP to browser

  #2  
Jan 8th, 2007
try:
HTTP/1.1 200 OK
Server: XXXXX
Accept-Ranges: bytes
Content-length: 328
Connection: close
Content-type: text/html; charset=UTF-8
If it only works in Internet Explorer; it doesn't work.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb HTML and CSS Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the HTML and CSS Forum

All times are GMT -4. The time now is 5:36 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC