Forums

Display xml response to cURL Post request

jtasti 17 Jun, 2013
Hi,

Apologies in advance if this is obvious - I'm new to all of this.

I need my site to interact with another site via an API in order to: (a) create new users and update their information, and (b) acquire user information back from the remote site.

The API uses http post calls to create users and update their info on the remote site. Chronoforms cURL does this beautifully.

The problem is when I assemble a cURL request to acquire the user info from the remote site. I make the call successfully but the user info is not displayed at all.

BTW If I make a call by assembling a URL by hand the data comes back (but in Firefox unformatted with the following: "This XML file does not appear to have any style information associated with it. The document tree is shown below.").

I wonder what I need to do to display the returned data.

Thanks in advance for the help!
GreyHead 05 Sep, 2013
Hi jstasi,

If you add a DeBugger action you will see what data ChronoForms has got from the cURL response. It is added the the $form->data array and if the XML file is there, then you should be able to process it OK.

Bob
This topic is locked and no more replies can be posted.