Link to home
Start Free TrialLog in
Avatar of PinTail
PinTailFlag for United Kingdom of Great Britain and Northern Ireland

asked on

http library for solaris 2.5

I am looking for a class library which would eliminate the need to write HTTP at the socket level.

It should be clean enough so that I could do something simple like this example where I establish a connection to a HTTP server, do a HTTP-POST and disconnect.

ClassHTTPStream httpStream;
ClassHTTP httpObj;

try
{
  httpStream = "val=hello world";
  httpObj.connect("4.3.2.1", Port);
  httpObj.Post(httpStream);
  httpObj.disconnect();
}
catch(ClassException E)
{
  // handle http error here
}
Avatar of shanechambers
shanechambers

Does it have to be in C++?  If not, Perl has lots of libaries for doing things like this.
Avatar of PinTail

ASKER

C++ is a requirement.

This is a server side application communicating with another server side app via an HTTP server.

It sounds kind of dumb to me, but that's what I have been told to do.

I wrote a HTTP Server about 5 years ago, but since then have had NOTHING to do with HTTP, and really don't want to be bothered to write my own library to do this kind of grunt work, I really just want to ship this data via HTTP in the simplest possible way.
ASKER CERTIFIED SOLUTION
Avatar of graf27
graf27

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial