Server side sends HTML over HTTP to browser

Reply

Join Date: Jan 2007
Posts: 1
Reputation: henry_s is an unknown quantity at this point 
Solved Threads: 0
henry_s henry_s is offline Offline
Newbie Poster

Server side sends HTML over HTTP to browser

 
0
  #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>
Reply With Quote Quick reply to this message  
Join Date: Jul 2006
Posts: 1,091
Reputation: MattEvans is a jewel in the rough MattEvans is a jewel in the rough MattEvans is a jewel in the rough 
Solved Threads: 63
Moderator
Featured Poster
MattEvans's Avatar
MattEvans MattEvans is offline Offline
Veteran Poster

Re: Server side sends HTML over HTTP to browser

 
0
  #2
Jan 8th, 2007
try:
HTML and CSS Syntax (Toggle Plain Text)
  1. HTTP/1.1 200 OK
  2. Server: XXXXX
  3. Accept-Ranges: bytes
  4. Content-length: 328
  5. Connection: close
  6. Content-type: text/html; charset=UTF-8
Plato forgot the nullahedron..
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC