LI HttpService URL Encoding

This Q&A forum allows users to post and respond to "How Do I Do ....." questions. Please do not use to report (suspected) errors - you must use your regional help desk for this. The information contained in this forum has not been validated by LANSA and, as such, LANSA cannot guarantee the accuracy of the information.
Post Reply
User avatar
Fabrice.geay
Posts: 19
Joined: Tue Dec 12, 2017 2:06 am
Location: FRANCE
Contact:

LI HttpService URL Encoding

Post by Fabrice.geay » Wed Jul 28, 2021 1:43 am

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 ?
Best regard

Fabrice GEAY

User avatar
Dino
Posts: 169
Joined: Fri Jul 19, 2019 7:49 am
Location: Robbinsville, NC
Contact:

Re: LI HttpService URL Encoding

Post by Dino » Fri Aug 06, 2021 12:25 pm

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

Post Reply