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!
CURL vs HTTP
Moderator: General Moderators
- Christopher
- Site Administrator
- Posts: 13596
- Joined: Wed Aug 25, 2004 7:54 pm
- Location: New York, NY, US
Re: CURL vs HTTP
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.
(#10850)
-
powellbound
- Forum Newbie
- Posts: 2
- Joined: Mon Nov 03, 2008 9:28 pm
Re: CURL vs HTTP
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
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