Skeptic Friends Network

Username:
Password:
Save Password
Forgot your Password?
Home | Forums | Active Topics | Active Polls | Register | FAQ | Contact Us  
  Connect: Chat | SFN Messenger | Buddy List | Members
Personalize: Profile | My Page | Forum Bookmarks  
 All Forums
 Community Forums
 General Discussion
 Programming Corner
 New Topic  Reply to Topic
 Printer Friendly Bookmark this Topic BookMark Topic
Author Previous Topic Topic Next Topic  

Dave W.
Info Junkie

USA
26022 Posts

Posted - 04/10/2010 :  22:11:21  Show Profile  Visit Dave W.'s Homepage Send Dave W. a Private Message  Reply with Quote
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

Posted - 04/10/2010 :  22:50:32   [Permalink]  Show Profile  Send Ricky an AOL message Send Ricky a Private Message  Reply with Quote
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.


You are making requests to traditional HTTP servers? You'd have to hand write (algorithms for) your HTTP messages which are tedious but easy. Other than this, it should be straight forward since you know sockets. And the appropriate HTTP port number is always 80.

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.

Why continue? Because we must. Because we have the call. Because it is nobler to fight for rationality without winning than to give up in the face of continued defeats. Because whatever true progress humanity makes is through the rationality of the occasional individual and because any one individual we may win for the cause may do more for humanity than a hundred thousand who hug their superstitions to their breast.
- Isaac Asimov
Edited by - Ricky on 04/10/2010 22:54:16
Go to Top of Page

Dave W.
Info Junkie

USA
26022 Posts

Posted - 04/10/2010 :  23:27:05   [Permalink]  Show Profile  Visit Dave W.'s Homepage Send Dave W. a Private Message  Reply with Quote
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.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly Bookmark this Topic BookMark Topic
Jump To:

The mission of the Skeptic Friends Network is to promote skepticism, critical thinking, science and logic as the best methods for evaluating all claims of fact, and we invite active participation by our members to create a skeptical community with a wide variety of viewpoints and expertise.


Home | Skeptic Forums | Skeptic Summary | The Kil Report | Creation/Evolution | Rationally Speaking | Skeptillaneous | About Skepticism | Fan Mail | Claims List | Calendar & Events | Skeptic Links | Book Reviews | Gift Shop | SFN on Facebook | Staff | Contact Us

Skeptic Friends Network
© 2008 Skeptic Friends Network Go To Top Of Page
This page was generated in 0.09 seconds.
Powered by @tomic Studio
Snitz Forums 2000