LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 08-19-2005, 05:08 PM   #1
Diederick
LQ Newbie
 
Registered: Apr 2005
Posts: 25

Rep: Reputation: 15
Help with writing a small web server


I have created the server, but i want the server to display the actual web site page and not just the html tags in dos prompt style.

Can someone help me please.
Thanx DD
 
Old 08-19-2005, 05:59 PM   #2
carl.waldbieser
Member
 
Registered: Jun 2005
Location: Pennsylvania
Distribution: Kubuntu
Posts: 197

Rep: Reputation: 32
Re: Help with writing a small web server

Quote:
Originally posted by Diederick
I have created the server, but i want the server to display the actual web site page and not just the html tags in dos prompt style.

Can someone help me please.
Thanx DD
Not sure exactly what you mean.
A web server delivers content over HTTP.
Various User Agents can render the HTML devivered over HTTP as web pages. Do you want to make a browser of some sort?

What do you mean by "dos prompt style"?
 
Old 08-19-2005, 07:46 PM   #3
zaichik
Member
 
Registered: May 2004
Location: Iowa USA
Distribution: CentOS
Posts: 419

Rep: Reputation: 30
Hello,

If I understand what you are saying, you have written the program that will respond to HTTP requests by serving the requested content. However, the output looks much as it would if you went to a command prompt and typed

telnet google.com 80

GET /

That is, a text stream that is exactly the same as the HTML page that is being served.

Guess what--that is exactly what a web server is supposed to do! If your goal was to create a web server, you can stop now.

It sounds like you actually want to write a web browser--a program that will request HTML documents from your web server, and render them as Firefox or Internet Explorer would. Is this what you are looking to do?

If so, that is really quite an undertaking--it will involve sending requests to your web server, parsing through the text stream you receive from it, and rendering the text accordingly.

Big undertaking. Really big.

Last edited by zaichik; 08-19-2005 at 11:02 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting Of A Small Web Hosting Company!! AskMe Linux - General 12 06-08-2004 09:09 AM
Small web browsers BBQ_Matt Linux - Software 4 03-05-2004 06:41 AM
A small bit of web hosting Tarts General 5 12-07-2003 06:42 AM
using a small java program to download a web page mrtwice Programming 3 04-23-2003 07:44 AM
Small Network -- Linux Web, DNS, SAMBA server -- Help/suggestions please! Bungo2000 Linux - Networking 2 03-30-2002 09:55 AM


All times are GMT -5. The time now is 09:28 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration