Re: Possible to initiate HTTP requests via FCGI app?

"Gordon Colburn" <gordon-ph3hwQsbQ5ZWk0Htik3J/[email protected]> Fri, 26 Aug 2011 23:44:43 -0400
Newsgroups gmane.comp.web.fastcgi.devel
Message-ID <CE18692E2C7342F180EB0E8473E93521@gordon641e39fb>
You are presumably writing an application which serves http requests and
also makes http requests, correct? This is definitely possible with
fast-cgi. Are you developing in C? If so, consider using libcurl
(http://curl.haxx.se/libcurl/) to make your http requests. I have used
libcurl successfully from a fastcgi application in the past. Libcurl is
quite easy to use and has been around for years and provides 2 APIs, an easy
to use synchronous interface and a more complex async interface. It can also
handle protocols beyond http (e.g. ftp, ldap, etc.).

Regards,
Gordon

-----Original Message-----
From: fastcgi-developers-bounces-xGejAJT2w6xVgU18Zptdi0EOCMrvLtNR@public.gmane.org
[mailto:fastcgi-developers-bounces-xGejAJT2w6xVgU18Zptdi0EOCMrvLtNR@public.gmane.org] On Behalf Of Dean
Banks
Sent: Friday, August 26, 2011 5:52 PM
To: fastcgi-developers-xGejAJT2w6xVgU18Zptdi0EOCMrvLtNR@public.gmane.org
Subject: [FASTCGI] Possible to initiate HTTP requests via FCGI app?

Hi All,

Dumb question--is it possible to initiate an HTTP request (GET/POST) 
from within a FastCGI application?

All of the FCGI development that I've done in the past is based on a 
more traditional browser-initiated request, passing through a webserver 
to a FCGI application server.  In a perfect world, I'd like to add a 
threadto my existing application to do server-to-server GETs.  Is this 
possible?

Cheers,

Dean
_______________________________________________
FastCGI-developers mailing list
FastCGI-developers-xGejAJT2w6xVgU18Zptdi0EOCMrvLtNR@public.gmane.org
http://mailman.fastcgi.com/mailman/listinfo/fastcgi-developers