Monday, 10 February 2020
  5 Replies
  1.2K Visits

i use socketio parameters property to initialize some json data.

These parameters are send by GET method to node server.
If these parameters contains special characters, i need to urlencode these parameters.

Who should call urlencode ? socketio component in GetParameters function or developer when he initialize parameters property ?

Indy ParamsEncode function (in IdUri.pas) seems not properly encode some characters ("&" for example).
However, HttpEncode in HttpApp seems work.

Thank you,