Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

All other Modules /

Discuss all other Modules here.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba


Go to End



Community Member, 12 Posts

20 March 2009 at 7:23pm

Sorry if not the right place to post but I wanted to post about an issue I have encountered a couple times with the RestfulService.php.

on line 122 there is a call to $responseBody = curl_exec($ch);
and then again on line 125.

I have manually removed the line a few times after downloading latest builds of 2.3 and the forget to mention it the Silverstripe community.

Basically this means that the service makes a double call to the url being consumed with the service call. Most of the time this is probably not an issue other performance hits.

But in cases where a single hit to service is setting a state of any kind it may cause some havoc.

Just curious if this curl_exec double up is a bug...or if it is actually there for some reason.