From looking at your code, it seems that you are posting the data as Query parameters of the URL. In that case, TransferEncoding & SendChunked are not needed.
These are only needed if you are sending data in the entity body, and need to specify a transfer encoding.
If you had to send data in entity body, you can encode it with ISO-8859-1 as follows:
Encoding enc = Encoding.GetEncoding("ISO-8859-1");
int index = url.IndexOf("?");
byte [] body = null;
if (index != -1)
{
String query = url.Substring(index);
body = enc.GetBytes(query);
}
Stream requestStream = request.GetRequestStream();
requestStream.Write(body, 0, body.Length);
requestStream.Close();
HttpWebResponse response = ...
feroze
--
My blog