ok i have basically written an exe which can be used to post some xml files
to both http and https sites.It works very fine for http sites.But it
doesn't work for https site.
Do i need to do anything extra for posting .I use the WebClient class.A
snippet of the code is as below:
WebClient wc = new WebClient();
wc.Headers.Add("Content-Type","application/octet-stream");
netCred = new NetworkCredential(uid,pwd);
wc.Credentials = netCred;
byte[] byteArray = Encoding.ASCII.GetBytes(strXML);
postStream = wc.OpenWrite(textBox1.Text.Trim(),"POST");
postStream.Write(byteArray,0,byteArray.Length);
Rgds
Sreejumon said:
Hi Sudha,
No need to encrypt the request. In order to use the HTTPS u ahev to
configure the SSL in your IIS. You ahve to use the deigital
certificates
to
configure the SSL. Then then encryption will be taken care by the browser
and web server.
--
Let me know if you need further help
Regards
Sreejumon[MVP]
DOTNET makes IT happen
I want to create a POST Https webrequest .
Do i need to encrypt??
what all i need to encrypt?
how do i do that?