This is driving me absolutely mad. We've been using this code to
connect to a remote site:
System.Net.Serv icePointManager .CertificatePol icy = New
cCertificatePol icy
wr = CType(WebReques t.Create(goSett ings.NHSDPBClai msURL),
HttpWebRequest)
nc = New NetworkCredenti al(goSettings.N HSUserName,
goSettings.NHSP assword)
wr.Credentials = nc
wr.ContentType = "text/xml"
wr.Method = "POST"
xw = New XmlTextWriter(w r.GetRequestStr eam(), Nothing)
When the goSettings.NHSD PBClaimsURL in the webrequest statement is set
to https://ebusiness.dpb.nhs.uk/claims.asp it all works absolutely
fine. However I'm being asked to send the same data to a different
server at the location which is referred to as
https://195.212.12.173/claims.asp. However whenever we try this it
simply errors when it tries to perform the GetRequestStrea m and says it
can't connect to the remote server (even though we can use IE to access
it easily. We've tried all the usual things like creating our
certificate policy to get around any security certificates but nothing
has worked.
Please, if anyone has ANY suggestions can you let me know.