473,387 Members | 1,844 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Webserver with VC++


I want to code for a webserver using VC++.

There will only be a server part. It has to listen to a port and on
request display web pages.

The request will be like "http://swift.com:<portno>" from a browser.

I would like to know how can I send a page to a browser, and whether I
should use html or others for this purpose.

If I have to retrieve information form the user how can I make my
program do that.

Thanks in advance,
Charlie.

Jul 23 '05 #1
5 2114
charlie wrote:
I want to code for a webserver using VC++.

There will only be a server part. It has to listen to a port and on
request display web pages.

The request will be like "http://swift.com:<portno>" from a browser.

I would like to know how can I send a page to a browser, and whether I
should use html or others for this purpose.

If I have to retrieve information form the user how can I make my
program do that.

Thanks in advance,
Charlie.


This is off-topic in this newsgroup, but either you have
to code an entire WEB server (non-trivial), or you can just
install/use a WEB server (the free Apache server perhaps).

Is this a homework assignment?

Larry
Jul 23 '05 #2
charlie wrote:
I want to code for a webserver using VC++.
[...]


This is impossible using the means of the Standard C++ language only.
Your query is simply misplaced. You need to ask in a newsgroup for
programming your OS or, at least, in microsoft.public.vc.language.

V
Jul 23 '05 #3
I do not want to code for the whole complexity of a web server. I just
want to use it locally in my network as a tool to log some information
from different users.

I have another application that talks with a mainframe to do some
checks. this was written in VC++. I want this tool also to be in VC++
so that I can integrate the former application. This will help me
reduce much amount of labour.

I just want to know how to send pages written in Html using a simple
socket based connection.

To be clear...on receiving a call to the port that my program will
listen I have to fork a new process for data to flow. if the data is
html conten how can I send such a file for the user to view supposing
he is using IE to connect to my application.

please let me know any ideas of doing this.

Jul 23 '05 #4
charlie wrote:
I do not want to code for the whole complexity of a web server. I just
want to use it locally in my network as a tool to log some information
from different users.

I have another application that talks with a mainframe to do some
checks. this was written in VC++. I want this tool also to be in VC++
so that I can integrate the former application. This will help me
reduce much amount of labour.

I just want to know how to send pages written in Html using a simple
socket based connection.

To be clear...on receiving a call to the port that my program will
listen I have to fork a new process for data to flow. if the data is
html conten how can I send such a file for the user to view supposing
he is using IE to connect to my application.

please let me know any ideas of doing this.


What in "impossible using the means of Standard C++" don't you get?
This is not a VC++ newsgroup. Network, sockets, HTML, forking, IE,
are all OT (that's short for off-topic) here. Do you understand the
_OT_ part? If you do, find another place to ask your question. I
strongly recommend the newsgroup for your OS. Or, if you don't find
anything better, you could ask in 'microsoft.public.vc.language'.
That's where they ask about VC++. Get it?
Jul 23 '05 #5
charlie wrote:
I do not want to code for the whole complexity of a web server. I just
want to use it locally in my network as a tool to log some information
from different users.

I have another application that talks with a mainframe to do some
checks. this was written in VC++. I want this tool also to be in VC++
so that I can integrate the former application. This will help me
reduce much amount of labour.

I just want to know how to send pages written in Html using a simple
socket based connection.

To be clear...on receiving a call to the port that my program will
listen I have to fork a new process for data to flow. if the data is
html conten how can I send such a file for the user to view supposing
he is using IE to connect to my application.

please let me know any ideas of doing this.


You'll need to read these...

"HTTP Made Really Easy":
http://www.jmarshall.com/easy/http/#toc

Hypertext Transfer Protocol -- HTTP/1.1 (RFC 2616):
http://www.w3.org/Protocols/rfc2616/rfc2616.html

Regards,
Larry
Jul 23 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: Ann Marinas | last post by:
Hi all, I would like to ask for some help regarding separating the asp.net webserver and the sql server. I have created an asp.net application for a certain company. Initially, we installed...
7
by: TCDolphin. | last post by:
Hi everyone, I'm currently developing an intranet application for a company and I have an informative question about the webserver. Before users can access a certain webpage they must identify...
0
by: Jakob Lithner | last post by:
I use VS 2005 and ASP.Net. For conveniance I use the inbuilt webserver, but recently I have encountered a lot of problem. When I debug it sometimes takes extremely long time to launch the...
1
by: Owen Blacker | last post by:
Apologies, first of all, for the cross-posting. I'm getting WebDev.WebServer.exe crashing all the time at the moment, despite having done a Detect and Repair with Visual Studio 2005, but I guess...
2
by: ¥|¥J | last post by:
Dear all, Please help~~ I have a problem in connecting my new FC5 webserver (apache 2.2 + php 5.1.4) to a few database servers through the PHP scripts (RH9, FC2, FC3). I have set host...
0
by: Rob C | last post by:
I have an unmanaged app written using VS2003 VC++. I was able to connect to a webservice by selecting "Add Web Reference" and selecting a WSDL file in the project menu. This created a header file...
1
by: swissclash79 | last post by:
Good morning everybody I have a question regarding configuring mappings in the development webserver. I am currently implementing a proxy server that is lied between the clients and a customer's...
1
by: Tina | last post by:
At my old company we used to put the IIS web server, containing our asp and asp.net websites, in the DMZ and the database on a machine that was behind the firewall. In this scenario we knew we...
1
by: mpc | last post by:
hello, how does one run a PHP page with a python webserver? Lets say i have a simple python web server running /path/webserver.py #!/usr/bin/env python from BaseHTTPServer import HTTPServer...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.