|
|
|
Dave W.
Info Junkie
USA
26022 Posts |
Posted - 04/10/2010 : 22:11:21
|
This is a general thread for tech talk about computer programming.
I'll start with this:
Anyone know of a simple set of C++ routines for providing and using HTTP services? I've been doing this sort of thing for years in Java, since the routines for grabbing Web pages in Java are built-in and easy to use, but I now have a requirement for doing GETs and POSTs in C++, along with providing server code to handle such requests.
I've been directed to gSOAP, but it seems like extreme overkill with all the XML handling.
I'm in a Windows XP environment, and already have hundreds of thousands of lines of code in Microsoft Visual Studio C++, so I'm not about to jump ship on either one. And I've got experience with Windows Sockets, and am wondering if perhaps HTTP services might be accomplished just using Sockets with the appropriate HTTP port number.
|
- Dave W. (Private Msg, EMail) Evidently, I rock! Why not question something for a change? Visit Dave's Psoriasis Info, too. |
|
Ricky
SFN Die Hard
USA
4907 Posts |
|
Dave W.
Info Junkie
USA
26022 Posts |
Posted - 04/10/2010 : 23:27:05 [Permalink]
|
Originally posted by Ricky
You are making requests to traditional HTTP servers? | Well, actually what I need is inter-process communications between some dozen or so Windows services that I need to write, plus some other third-party services which are already in place as HTTP servers. I figured making the comms routines that I need to write match what's already there would be easiest, instead of writing HTTP clients and some sort of home-grown Sockets protocol.And the appropriate HTTP port number is always 80. | With a boatload of services running on the same machine, I'm going to have to go non-standard with the port numbers, but that's not a big deal.Edit: After a little searching, here is a HTTP server written in C. They should have all the code you'd need, and then some. | I'll have to look into it later tomorrow, but do they have client routines, too? |
- Dave W. (Private Msg, EMail) Evidently, I rock! Why not question something for a change? Visit Dave's Psoriasis Info, too. |
|
|
|
|
|
|
|