Page 1 of 1

LI HttpService URL Encoding

Posted: Wed Jul 28, 2021 1:43 am
by Fabrice.geay
Hi all,

i use the HTTPService to call an REST API for sending a SMS. follow the text to sent :

Nom de la société
Bonjour prénom nom ,
Dans le cadre de votre hospitalisation, sachez que nous serons là pour vous !

but when I call 'SEND SERVICE_LIST(W_NAME,W_VALUE) HOST(<adress>) VERSION(1) URI(<API REST>) HANDLER(OutboundNameValue) METHOD(GET)'
the text change to this in the URL
Using uri : <API REST>?to=<phone number>&text=Nom+de+la+soci%E9t%E9%0DBonjour+pr%E9nom+nom%0DDans+le+cadre+de+votre+hospitalisation%2C+sachez+que+nous+seront+l%E0+pour+vous+!

and the final text is :

Nom de la socit
Bonjour prnom nom
Dans le cadre de votre hospitalisation, sachez que nous seront l pour vous !

all accented characters are not included.

I need to send text like this :
&text=Nom de la société%0DBonjour prénom nom%0DDans le cadre de votre hospitalisation, sachez que nous seront pour vous !

how i can do to avoid url encoding ?

Re: LI HttpService URL Encoding

Posted: Fri Aug 06, 2021 12:25 pm
by Dino
Hi Fabrice

Maybe your problem is closer to this one in regards as how the jsm fields are defined?
viewtopic.php?f=3&t=2462&p=7129&hilit=encoding#p7129

kind regards