Re: [PHP] Curl Question

2006-01-04 Thread Curt Zirzow
On Tue, Jan 03, 2006 at 01:52:44PM -0700, Ray Hauge wrote:
 Hello everyone,
 
 I just wanted to see if anyone knew if there was any difference in 
 performance between using curl in an exec() statement and when using the 
 libCurl functions within PHP.

You might notice a difference if you loop though the code 100,000
times or so.

One advantage of using libCurl vs exec() is that you dont have to
worry about where the location of the actual 'curl' binary is:

  exec('/usr/local/bin/curl');
  exec('/usr/bin/curl');
  exec('/bin/curl');
  exec('C:/windows/curl.exe');
  exec('C:/Program Files/Curl/curl.exe');
  exec('X:/shared apps/curl/curl.exe')'
  etc.. 

With libCurl, you just ensure that curl is enabled in php.

Curt. 
-- 
cat .signature: No such file or directory

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Curl Question

2006-01-03 Thread Ray Hauge

Hello everyone,

I just wanted to see if anyone knew if there was any difference in 
performance between using curl in an exec() statement and when using the 
libCurl functions within PHP.


Thanks,
Ray

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] CURL question, cutting off custom request

2004-08-16 Thread Dominic Schanen
Hello,
I'm sending a custom request to a server using CURL, which may contain 
some high-ascii characters. Are there certain characters that would 
cause CURL not to send the complete custom request? Are there some CURL 
options that can help make sure the request is sent in its entirity? 
Here is my code:

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_VERBOSE, 1);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($ch, CURLOPT_HTTP_VERSION, 1.0);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, $request);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$return = curl_exec ($ch);
Sometimes it appears to cutoff my request with the existance of a NUL 
character.

Any ideas?
Thanks,
Dominic
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] curl question

2003-07-28 Thread Dale Hersh
I am using authorize.net and I need to get this curl function working on a
win 2k server platform in order to process credit card transactions through
php. I have read through the manual and I am still failing to integrate php
with curl. I was wondering if anyone could provide help or step by step
instructions on how to install and integrate curl with php on a win 2k
server.

Thanks,
Dale



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] curl question

2002-02-07 Thread wm

hi. i've been experimenting with curl and it has been working great. i
was
wondering though if anybody knows why an extra 0 value is being tacked

on to the end of the post.

here is the example:

?
$test=i hope this worked;
$ch=curl_init();
curl_setopt($ch, CURLOPT_URL, http://www.mydomain.com/testing.php;);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, v1=$testv2=20v3=30);
curl_exec($ch);
curl_close($ch);

?

and then the testing.php is:

?

echo $v1 $v2 $v3;


?

the output, however is:

i hope this worked 20 30 0

how do i get rid of the extra 0? i'm not sure i need to for my purposes,
but i am
curious.

thanks.





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php