i am working on a vb.net web service that calls another web service sitting on amazon. Now i initially wrote it for http and it is working alright. Now i need to use https and a couple of certificates are to be used. How do i go about writing the code ? Here is a snippet of what i am using for the http case.
Dim wr As HttpWebRequest = DirectCast(WebRequest.Create(url), HttpWebRequest)
wr.Headers("Authorization") = "BASIC" & Space(1) & GenerateAuthHeader()
wr.ContentType = Convert.ToString("multipart/related; boundary=") & boundary & Space(1) &
"start=<""" & startId & """>"
wr.Method = "POST"
wr.KeepAlive = True
wr.Credentials = System.Net.CredentialCache.DefaultCredentials
To be more specific i want to know what needs to change here apart from the https URL which is obvious.