magic posting body


Tim Downie
 

Hi Craig


Finally got to testing v3.2 by posting a file though the requester - still has the bug - if your file contains a % you need up with some sort of control char when it gets to magic breaking the document.


Id love to know your opinion on this - this is preventing us using magic in more and more situations





From: main@magicu-l.groups.io <main@magicu-l.groups.io> on behalf of Craig Martin <craig@...>
Sent: Wednesday, 17 May 2017 5:38 AM
To: main@magicu-l.groups.io
Subject: Re: [magicu-l] Httpcall with base64 authorization
 

It was a quick hit, I'll make it more robust in the next release and give you the option of setting up a microservice.


Btw, you are not in my debt, but you need to create some pay-it-forward component for the community on some other topic of your choosing. And so it goes.



From: main@magicu-l.groups.io <main@magicu-l.groups.io> on behalf of Nick Winter via Groups.Io <ndwint@...>
Sent: Tuesday, May 16, 2017 10:33:59 PM
To: main@magicu-l.groups.io
Subject: Re: [magicu-l] Httpcall with base64 authorization
 

Crack the champagne!

Craig Martin has done it again.

This Json

{
  "version": 241,
  "code": "0",
  "body": {
    "sites": [
      {
        "id": 14,
        "ref": "247b",
        "title": "247 B",
        "logo": null,
        "address": null,
        "phone": null,
        "phone_invoice": null,
        "email": null
      }
    ]
  },
  "warnings": [],
  "nonce": null
}

became this xml.....

<?xml version="1.0"?>

-<root>

<version>241</version>

<code>0</code>

-<body>

-<sites>

<id>14</id>

<ref>247b</ref>

<title>247 B</title>

<logo/>

<address/>

<phone/>

<phone_invoice/>

<email/>

</sites>

</body>

<warnings/>

<nonce/>

</root>

Absolutely perfect.

Craig, the next time I am at an MSE conference and you are there, drinks are on me.

Thank you, Nick

Join main@magicu-l.groups.io to automatically receive all group messages.