views:

489

answers:

6

I have a C++ app and looking for a library that would make it a HTTP Server that's able to serve static files as well as perform very simple tasks. The only constraint is that it must be Cross-platform.

What are my options.

Clarify: I need a web interface for my application. This application is a background program that does other tasks. I want to provide a way so you can access http://localhost:9999/performtask or http://localhost:9999/viewstatus

clarification2: something like this http://www.gnu.org/software/libmicrohttpd/

A: 

You mention a library, do you mean something in process or out of process? You could try apache webserver.

Apache Webserver

Coda
In process, not depend on anything outside.
The Unknown
A: 

Java would be a better choice for a cross-platform solution plus it has good web services apis. Take a look at Netbeans it is a good way to get started.

This would be a good route to take, except the application is already written, it has to be C or C++
The Unknown
A: 

Qt framework have buildin webkit. have a lookinto that.

I think you didn't read the question.
BastiBense
A: 

I am partial to the poco library as a starting point.

jdkoftinoff
+4  A: 

See this question. I ended up choosing Mongoose.

Bklyn
Exactly what I need (points++ for Mongoose doing threading) Thanks!
The Unknown
A: 

Take a look at Snorkel it is a light weight fast cross-platform embedded/application server SDK that allows you to quickly add web interfaces to any C/C++ application. Its free and can be found at http://sites.google.com/site/snorkelembedded. Its faster than mongoose.

Walt C.