Search

Sorry, this is a bit of a Noob question. I am thinking of using Symphony CMS to connect to an API which only supports POST requests even when retrieving data. Do dynamic datasources support this out of the box?

Nah, it's GET by default. To do a POST you'd have to add the curl option into /symphony/lib/toolkit/data-sources/datasource.dynamic_xml.php at line 86

$ch->setopt('CURLOPT_POST', true);

Editing the core isn't a good idea though, so you could make an extension of it. I have a CSV datasource extension I created from work by @brentburgouyne on github. You could use it as an example.

Thanks designermonkey!

Create an account or sign in to comment.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details