Jump to:

10851 Posts in 2517 Topics by 1793 members

All other Modules

SilverStripe Forums » All other Modules » RestfulService

Discuss all other Modules here.

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

Page: 1
Go to End
Author Topic: 645 Views
  • squared99
    Avatar
    Community Member
    12 Posts

    RestfulService Link to this post

    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

    645 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.