Re: curl Question

From: Date: Thu, 04 Jan 2001 01:22:05 +0000
Subject: Re: curl Question
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-32594@lists.php.net to get a copy of this message
I am working on a system that uses curl. What we are using it for is negotiating with a credit card approval system. They want us to submit our information to a specific URL and we want to control the output of the result. So, using curl, we sent the info to their URL and pull the response back and then process it with PHP. It seems to work well. I don't know if there are any security risks, yet. But... -- Jesse Swensen swensenj@bellsouth.net > From: Sonia Tsui <Stsui@villamontage.com> > Date: Wed, 3 Jan 2001 16:36:20 -0800 > To: "'php-general@lists.php.net'" <php-general@lists.php.net> > Subject: [PHP] curl Question > > Hi, > > Has anyone ever used libcurl with PHP? libcurl is a library that allows you > to connect and communicate to many different types of servers with many > different types of protocols (eg httpds). What I don't understand is when do > we need to use curl functions. In the documentation, an example is given as > follows: > <?php > > $ch = curl_init ("http://www.php.net/"); > $fp = fopen ("php_homepage.txt", "w"); > > curl_setopt ($ch, CURLOPT_FILE, $fp); > curl_setopt ($ch, CURLOPT_HEADER, 0); > > curl_exec ($ch); > curl_close ($ch); > fclose ($fp); > ?> > > This example uses PHP's CURL module to fetch the PHP homepage. But why do we > need to use those curl functions at all?? > I am getting so confused aboout writing client scripts which has to > communicate with httpds. Would the standard client scripts work the same in > a secure enviroment as in a standard one (httpd)? My understanding is that > if I want to program clients that access secure web servers, I need to use > say a perl module which allows me to SSL functions. If I just want to view > web pages on https servers, I do not need this since my web browser already > know to do that > > Anyone who has experience or know anything in about writing client scripts > which talks to secure web server (httpds), please help me in clearing up the > concepts. > > thanks > ---Sonia > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > >

« previous php.general (#32594) next »