473,748 Members | 8,530 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Simple C++ HTTP+XML server

I want to write a simple C++ backend to a website so I can use
XMLHTTPRequest. The server is stateful and cannot be cgi. Is there a
simple C++ framework to handle the HTTP communications? I had looked
into XML-RPC but I'm not sure if that's the way to go.

Jul 20 '05 #1
4 2071
Full Decent wrote:
I want to write a simple C++ backend to a website so I can use
XMLHTTPRequest. The server is stateful and cannot be cgi. Is there a
simple C++ framework to handle the HTTP communications?


Why not use Apache and develop your backend as a module?
Save yourself reinventing the wheel of an HTTP server.

--
Nick Kew
Jul 20 '05 #2
The issue is that the backend takes a long time to load and therefore
cannot be loaded each call. Is this possible with an Apache module?

Jul 20 '05 #3
Full Decent (fu********@gma il.com) wrote:
: The issue is that the backend takes a long time to load and therefore
: cannot be loaded each call. Is this possible with an Apache module?

Without being an expert of writing Apache modules, I can only say "sure, I
think that's how they all work".

mod_perl would be an example. I don't use it much, but I understand that
pre-loading perl components, and also sharing items from one request to
the next by remaining in memory, are exactly the sort of reason people use
it.
--

This space not for rent.
Jul 20 '05 #4
Full Decent wrote:
The issue is that the backend takes a long time to load and therefore
cannot be loaded each call. Is this possible with an Apache module?


Of course! That's bog-standard in the architecture commonly known as
LAMP. Since Apache 2.0 (the stable release since 2002) you can do a
good deal better than just that. There's a (sadly outdated) article
at http://www.apachetutor.org/dev/reslist explaining how.

For better, up-to-date info, see Chapter 7 of my forthcoming book,
and come to our tutorial at ApacheCon ( http://www.apachecon.com/ ).

--
Nick Kew
Jul 20 '05 #5

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

Similar topics

19
3307
by: gaudetteje | last post by:
I've been searching high and low for a way to simply convert a small XML configuration file to Python data structures. I came across gnosis XML tools, but need a built-in option for doing something similar. My knowledge of DOM and anything beyond simple XML structures is rudimentary at best. Is there a simple way to use SAX handlers to pull attributes and elements into Python lists/dictionaries?
3
7268
by: Aamir | last post by:
Hi, Quick Question: How to create a simple XML with US States list and read it into a combo box. Detail: I am very new to Dot Net technology as well as xml. I am building a desktop app in C# and need to populate the US States list (AL, AR, .. WY) in a combo box. I could have done it by reading
2
1596
by: Ivan Demkovitch | last post by:
Hi! I'm trying to parse RSS news feed with code as simple as possible. Simple XML: <?xml version="1.0"?> <rss version="2.0"> <channel> <item>
2
1753
by: dondraper | last post by:
I have an application that uses a popular but simple set of JavaScript routines that implement an AJAX call used to populate a drop-down. It works for thousands of user but I have one customer where it does not work. It was working but quit over the weekend. I suspect their XML DOM was either changed, removed or disabled somehow. My assumptions are that the XMLHTTPRequest object used by the browser to make the http request is different...
2
3146
by: James Fifth | last post by:
Hello and God Bless, I am stumped trying to get a simple xml database replacing certain data with other data programmatically. This is what my xml looks like. **************************************** <Root_Element> <Topic index="1"> <Sub_Topic> <Notes></Notes>
10
2604
by: John Baima | last post by:
Okay, so I know that there is probably not a "simple" XML editor, but I would like something fairly lightweight that I can buy for someone else so that they can edit an XML text that I've created (it's about 3 MB) with a XSD schema. I have XMLSpy 5.x Home Edition from a long time ago and that was okay (more than I need really), but when I just went to their site, I did not see anything less than a suite for $500. Surely there has to be...
0
1305
by: raysot | last post by:
I am a total nube with XML and am struggling with a simple XML import into SQL 2005. Lots of boring code to follow: (In short though, my basic question is this: What in the world are my tables supposed to look like? I have a Database named "Cube", a Table named "Cube" with 2 columns, Currency and Rate, respectively) If I can see how the table schema should be, that should be half, if not all, the battle. The error thrown is:...
3
5943
by: Simon Pickles | last post by:
Hi Can anyone suggest a really simple XML reader for python? I just want to be able to do something like this: xmlDoc = xml.open("file.xml") element = xmlDoc.GetElement("foo/bar") .... to read the value of:
0
1140
by: ojorus | last post by:
Hi, I want to make a very simple XML editor. The user is not supposed to wite XML himself; he's only going to be able to edit/add/delete elements and attribute, according to the XML DTD (or schema or whatever). Any ideas how to acheive this? (or are there allready free tools available for this?) regards ojorus. --
0
8989
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9537
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9367
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9319
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
6073
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4599
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4869
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3309
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2213
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.