Page 1 of 1

CURL vs HTTP

Posted: Mon Nov 03, 2008 9:34 pm
by powellbound
We have what is basically a webservice we consume through CURL POST command to a https connection and it works fine but the curl_exec sometimes takes a lot longer than one would expect or can account for.

Has anyone used the HTTP extensions in PHP 5 to do anything similar to what we are doing and would you recommend it? I really want to figure out this performance issue and am looking at all options.

Thanks!

Re: CURL vs HTTP

Posted: Mon Nov 03, 2008 9:39 pm
by Christopher
If you want to do performance testing just create a form to post to the target and see if the slowness is the actual HTTP time or something else.

Re: CURL vs HTTP

Posted: Tue Nov 04, 2008 10:08 am
by powellbound
It is not the simple. Using the curl stuff, about 8 time out 10, the curl_exec is about .6 seconds. Those other two are well over a seconds and has gone as long as 4.2 seconds. I dont know if the server on the other end is busy or what but it is certainly a concern when we see delays that are 7 times the norm.

I was really curious how many people have used the http extensions since there are almost no comments in the PHP docs on php.net.

Thanks