Fahd,
When you press the Submit button on the form, it encodes the fields in
the form (which may contain hidden fields) and then sends that data to the
server.
Your best bet here is to get an HTTP request sniffer (look for Fiddler,
it's free, and will do what you want). Basically, you will be able to issue
the request in your browser of choice, and see how it is sent to the server.
That will help determine the best way to construct the message in code.

Signature
- Nicholas Paldino [.NET/C# MVP]
- mvp@spam.guard.caspershouse.com
> Hi,
>
[quoted text clipped - 74 lines]
> Kind Regards
> Fahd
fahd - 31 Jul 2008 16:07 GMT
Hi Nicholas,
Thanks for the tip, im on it.
Just one question if you may
does the following piece of code sends the data to the server
System.IO.Stream os = req.GetRequestStream();
os.Write (bytes, 0, bytes.Length);
os.Close();
or this bit sends data to the server
HttpWebResponse resp = (HttpWebResponse)
req.GetResponse();
Thanks
Fahd
fahd - 31 Jul 2008 16:37 GMT
Hi Nicholas,
used fiddler and got to know my mistake the dreaded escape
characters!!!
and I found out answer to my question as well. Thanks a million and
Fiddler is a gem :)
take care
Fahd