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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

All other Modules /

Discuss all other Modules here.

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

RestfulService


Go to End


1501 Views

Avatar
squared99

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.

Cheers