944,212 Members | Top Members by Rank

Ad:
Jan 8th, 2007
0

Server side sends HTML over HTTP to browser

Expand Post »
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>
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
henry_s is offline Offline
1 posts
since Jan 2007
Jan 8th, 2007
0

Re: Server side sends HTML over HTTP to browser

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
Moderator
Featured Poster
Reputation Points: 522
Solved Threads: 64
Veteran Poster
MattEvans is offline Offline
1,091 posts
since Jul 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in HTML and CSS Forum Timeline: Help needed with floating nav bar css/html
Next Thread in HTML and CSS Forum Timeline: fixing IE and FF differences





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC