Board index » delphi » Indy http form encoded post

Indy http form encoded post

Hi all,

I program a front-end with Delphi and the Indy components, which
communicate with a html cgi page.

The post command works very well until I have to post a value with a
dot in it:

<select name="SERVER" size="1">
   <option>server.net</option>

And then the server returns something like that: invalid char given

The content type as application/x-www-form-urlencoded.

I think this because of the dot, a dot is specially encoded. This is
my question:

How is a dot encoded and is this the problem, or is this a indy
problem?

excuse my bad english and thanks for your help

p.s.: what means the exception 302 found? Is this really a error?

 

Re:Indy http form encoded post


include IdGlobal unit in your program and use URLEncode

Doychin
doic...@5group.com

Quote
"Karl Peters" <karl.h.pet...@gmx.net> wrote in message

news:3a4b6c33.16247522@news.t-online.de...
Quote
> Hi all,

> I program a front-end with Delphi and the Indy components, which
> communicate with a html cgi page.

> The post command works very well until I have to post a value with a
> dot in it:

> <select name="SERVER" size="1">
>    <option>server.net</option>

> And then the server returns something like that: invalid char given

> The content type as application/x-www-form-urlencoded.

> I think this because of the dot, a dot is specially encoded. This is
> my question:

> How is a dot encoded and is this the problem, or is this a indy
> problem?

> excuse my bad english and thanks for your help

> p.s.: what means the exception 302 found? Is this really a error?

Re:Indy http form encoded post


On Fri, 29 Dec 2000 15:09:50 +0200, "Doychin Bondzhev"

Quote
<doic...@5group.com> wrote:
>include IdGlobal unit in your program and use URLEncode

I try this and the encode function by nmurl and the result is the same
error message from the server script.
The dot is by nmurl as  %2E encoded like in a rfc (some http rfc) but
it does nor work.
It seems that urlencode from indy does not encode, because the output
from a dot or a ! is not different from its input (i am using indy
8009b).

I hope you can help with this situation.

karl peters

Other Threads