Hi!
I am supposed to post some data to a site, using C#. I could post by just using a formular and simple html code. But I do not want any user to be able to look at the source code.
My basic code is:
WebRequest request = WebRequest.Create("https://blabla.bla");
request.ContentType = "application/x-www-form-urlencoded";
byte[] bytes = Encoding.ASCII.GetBytes(parameters);
request.Method = "POST";
try
{
request.ContentLength = bytes.Length;
request.GetRequestStream().Write(bytes, 0, bytes.Length);
}
catch (Exception e)
{
}
finally
{
if (request.GetRequestStream() != null)
{
request.GetRequestStream().Close();
}
}
This posts the data. But how would I do if I want to be transfered to the url and bringing the needed variables? Is it even possible? The site I want to be transfered to is a https.