Board index » delphi » TNMHTTP.post problem writing '=' and '&'

TNMHTTP.post problem writing '=' and '&'

Hi all

(sorry for asking stupid questions)

I need to send data from a delphi-app to a .asp-site. I use TNMHTTP.post.
But I don't get it, how to send a simple String like
"data1=value1&data2=value2. It always makes some data1%XYvalue1%XY...

I read the example for the TidHTTP.post, but I don't know this TidHTTP thing
and would like to get it done using TNMHTTP.

Help would be very apreciated. thanx

Martin Roethenmund

 

Re:TNMHTTP.post problem writing '=' and '&'


Quote
Martin Roethenmund wrote:

> , how to send a simple String like
> "data1=value1&data2=value2. It always makes some data1%XYvalue1%XY...

Where does it make that ?
In your app with the TNMHTTP component or at the
webserver side that receives the post ?

The TNMHTTP component will url-encode the postdata before sending
it to a webserver. This is normal.

Hans.

Other Threads