Quantcast
Channel: ThingSpeak IoT Community - Forum: ThingSpeak Apps
Viewing all articles
Browse latest Browse all 223

mandelkind on Escape Custom Replacement Keys in ThingHTTP

$
0
0

How may I escape custom replacement keys in ThingHTTP?

https://ch.mathworks.com/help/thingspeak/thinghttp-app.html#bvevu2b-5

 

I've managed to get an API request up and running and everything seems to work perfectly. At least, everything except one thing:

In my ThingHTTP body there are custom replacement key which get replaced by the passed in values:

labels=ThingHTTP,%%labels%%&title=%%title%%&description=%%description%%

 

Unfortunately, as soon as one of the replacement values contain special characters, such as & or +, things are going weird.

How may I tell ThingHTTP to escape the custom replacement keys before sending them along in a POST request?


Viewing all articles
Browse latest Browse all 223

Trending Articles