PawelR wrote:
How send few value using HttpWebReguest with POST method in one request?
What kind of "values", what kind of Content-Type should the request body
have?
If you simply want to POST some name=value pairs as
application/x-www-form-urlencoded contents then it might be easier to
use WebClient and its UploadValues method:
<http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemNetWebClientClassUploadValuesTopic.asp>
If you want to do that with HttpWebRequest then get hold of the request
stream, construct the request body (i.e. name=value pairs encoded as
application/x-www-form-urlencoded) and write it to the request stream.
To urlencode the name and values you can use UrlEncode method of
HttpUtitity.
--
Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/