Operating System - HP-UX
1833184 Members
3067 Online
110051 Solutions
New Discussion

Re: C callable library to do HTTP get/put form data

 
SOLVED
Go to solution
John Kittel
Trusted Contributor

C callable library to do HTTP get/put form data

Are there C callable libraries / routines avaiable for HP-UX 11i 64-bit to do HTTP get/put form data?

I don't really understand too well what I'm asking here, this is coming from one of my "advanced users" ( who knows more than I do).

Thanks,
John
5 REPLIES 5
A. Clay Stephenson
Acclaimed Contributor

Re: C callable library to do HTTP get/put form data

I would point him towards GNU's cgicc library.

http://hpux.connect.org.uk/hppd/hpux/Gnu/cgicc-3.0.2/

However, I think I would try to push him towards Perl and the CGI module. The development times will be 10x faster and the performance will be all but indistinguishable from Native C or C++.
If it ain't broke, I can fix that.
John Kittel
Trusted Contributor

Re: C callable library to do HTTP get/put form data

Thank you Clay.

Are there other options?

Of the options you mention, I think I will have to go with cgicc library. We have to somehow invoke these functions from within an existing application ( uses a language called Gembase DML ). We know how to call C routines. I wouldn't know how to attempt to call perl from within the application ( unless perhaps it would be completely transparent, i.e. exactly the same, to the app whether it was linking to a C library or a perl program). I think our needs will be fairly modest and so maybe the development time won't be prohibitive. And, the "advanced user" I mentioned is not actually going to be doing the work, he is only telling me what we need, and yet another person here is going to do the programming, and I think he'd be more comfortable with C than perl. ( He's at least done some C programming.)

- John
John Kittel
Trusted Contributor

Re: C callable library to do HTTP get/put form data

... darn, once again I replied before I finished thinking....

I didn't think/notice that cgicc is a c++ library ( duh!). I don't know if our application programming language ( Gembase DML) can link to that, or only to C, or even if there is a difference.

- John
John Kittel
Trusted Contributor

Re: C callable library to do HTTP get/put form data

... and now I see that curl-7.9.8 is available on the hp porting and archive center.

I will check that avenue out.

- John
Gregory Fruth
Esteemed Contributor
Solution

Re: C callable library to do HTTP get/put form data

Calling apps like curl and wget (via
system() or whatnot) might work for
simple HTTP requests, but to do anything
robust you'd probably be better off
using a C API as you originally suggested.
The curl authors have a really nice
summary of HTTP libraries at:

http://curl.haxx.se/libcurl/competitors.html

HTH