C Christine Nguyen Jan 21, 2004 #1 Hi, Does anyone know how I can programmatically perform an HTTPS post in VB.NET?? Thanks.
N Nick Harris Jan 22, 2004 #2 Sure, Use the System/Web/ httpContext object. just use the full protocol name and, bam, your in there. Nick Harris, MCSD
Sure, Use the System/Web/ httpContext object. just use the full protocol name and, bam, your in there. Nick Harris, MCSD
K Klaus Salchner Jan 22, 2004 #4 You can also use the System.Net.WebRequest type. It provides a simple way how to make web requests. // Initialize the WebRequest. WebRequest myRequest = WebRequest.Create("https://www.contoso.com"); // Return the response. WebResponse myResponse = myRequest.GetResponse(); // Code to use the WebResponse goes here. // Close the response to free resources. myResponse.Close(); System.Net.WebClient is a higher level abstration to simplify uploads/downloads. ----------------------------------------------- Klaus Salchner email: (e-mail address removed) Proud member of http://gotdotnet.com http://theserverside.com
You can also use the System.Net.WebRequest type. It provides a simple way how to make web requests. // Initialize the WebRequest. WebRequest myRequest = WebRequest.Create("https://www.contoso.com"); // Return the response. WebResponse myResponse = myRequest.GetResponse(); // Code to use the WebResponse goes here. // Close the response to free resources. myResponse.Close(); System.Net.WebClient is a higher level abstration to simplify uploads/downloads. ----------------------------------------------- Klaus Salchner email: (e-mail address removed) Proud member of http://gotdotnet.com http://theserverside.com
C Christine Nguyen Jan 23, 2004 #5 Thanks, Klaus. I had decided that using WebRequest would be simpler, and you just confirmed that for me. Thanks!
Thanks, Klaus. I had decided that using WebRequest would be simpler, and you just confirmed that for me. Thanks!