HTTPS Post

  • Thread starter Thread starter Christine Nguyen
  • Start date Start date
C

Christine Nguyen

Hi,

Does anyone know how I can programmatically perform an HTTPS post in
VB.NET?? Thanks.
 
Sure,

Use the System/Web/ httpContext object. just use the full protocol name
and, bam, your in there.

Nick Harris, MCSD
 
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
 
Thanks, Klaus. I had decided that using WebRequest would be simpler, and you
just confirmed that for me. Thanks!
 
Back
Top