Should '&' char be included in UnsafeChars in TIdURI.ParamsEncode

Giganews Newsgroups
Subject: Should '&' char be included in UnsafeChars in TIdURI.ParamsEncode
Posted by:  loki (loki5100-newsgro…@yahoo.fr)
Date: Sun, 9 Jan 2005

Should '&' char be included in UnsafeChars in TIdURI.ParamsEncode and
TIdURI.PathEncode?

I say that because if i have a TstringList like :

  Lst.add('Field1=gnagna&bla=bla');
  Lst.add('Field2=hoho&haha');

then HTTP.Post(myUrl, LST, MyReponseStream) will be badly translated by the
server :((

The server will receive that :
Field1=gnagna&bla=bla&Field2=hoho&haha

And translate it in AMRequest like

Field1=gnagna
bla=bla
Field2=hoho
haha

Thank you by advance
stéphane

Replies