|Subject:||Problems sending ampersand in a POST parameter.|
|Posted by:||Brian Driscoll (firstname.lastname@example.org)|
|Date:||Mon, 29 Dec 2008|
I'm using IdHTTP and IdSSLIOHandlerSocketOpenSSL to POST parameters to a PHP
I am using Delphi 2009 with Indy 10.2.5.
The page is a challenge/reponse for a user and password combination.
So it is possible that the password includes the ampersand '&'.
When this is the case, things muck up.
When the paramter has an ampersand, the string gets cut off.
I poked around the code and the ampersand seems to be used to delimit the
parameters in some way.
Is there any way I can ensure that a string that has an ampersand will get
sent in it's entirety?
I had no problem doing this in the past (Delphi 7! :) ).
Something seems to have changed... somewhere in Indy.
Any ideas would be greatly appreciated.