Escape Custom Replacement Keys in ThingHTTP | ThingSpeak Apps | Forum


Please consider registering

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —

— Match —

— Forum Options —

Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed sp_TopicIcon
Escape Custom Replacement Keys in ThingHTTP
No permission to create posts
November 1, 2016
9:10 am
New Member
Forum Posts: 2
Member Since:
November 1, 2016
sp_UserOfflineSmall Offline

How may I escape custom replacement keys in ThingHTTP?


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:



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?

November 1, 2016
10:19 am
Natick, MA

Forum Posts: 396
Member Since:
January 18, 2011
sp_UserOfflineSmall Offline

Have you tried URL encoding ? There are websites that will do the encoding for you. Let us know if you try that. 

November 1, 2016
3:52 pm
New Member
Forum Posts: 2
Member Since:
November 1, 2016
sp_UserOfflineSmall Offline

@Hans: I'm unable to add any additional encoding, since the data is passed by a 3rd party service (IFTTT) - and there is the data already urlEncoded. I suspect ThingHTTP receives the data & urlDecodes it, before sending it along.

So the only solution I can see is that ThingHTTP should ensure it can be passed without any issues. 

Forum Timezone: America/New_York

Most Users Ever Online: 114

Currently Online:
17 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

rw950431: 261

Vinod: 196

piajola: 85

turgo: 70

vespapierre: 63

Adarsh_Murthy: 62

Member Stats:

Guest Posters: 1

Members: 5703

Moderators: 0

Admins: 2

Forum Stats:

Groups: 4

Forums: 17

Topics: 1313

Posts: 4565

Newest Members:

josephrj11, dennis55, jillhp4, tabathawg69, MarinaMa, Susandom

Administrators: Hans: 387, lee: 457