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>

try:

HTTP/1.1 200 OK
Server: XXXXX
Accept-Ranges: bytes
Content-length: 328
Connection: close
Content-type: text/html; charset=UTF-8
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.