Discussion:
TIdURI.ParamsEncode
(too old to reply)
dESFasado
2003-11-03 19:19:55 UTC
Permalink
Hi there

I need to encode a string of params to be posted with the default encoding.

I've use TIdURI.ParamsEncode class function but I have this problem...

I tought that space char is + in its encoded form

but TIdURI.ParamsEncode gives me %20


is that right?


Thanks in advance
eshipman
2003-11-03 19:23:33 UTC
Permalink
Post by dESFasado
I've use TIdURI.ParamsEncode class function but I have this problem...
I tought that space char is + in its encoded form
but TIdURI.ParamsEncode gives me %20
is that right?
%20 is correct.
dESFasado
2003-11-03 19:28:38 UTC
Permalink
En Mon, 3 Nov 2003 13:23:33 -0600, escribió:

OK Thanks.

One more question.

is any difference between a POST an a GET method in parameter encoding from the Indy point of view?


Thanks
eshipman
2003-11-03 22:14:02 UTC
Permalink
Post by dESFasado
OK Thanks.
One more question.
is any difference between a POST an a GET method in parameter encoding from the Indy point of view?
Yes. In a Post, they would be encoded in the http stream and in a Get,
they would be in the URL. Easier for snoops to get your params.

Loading...