Y
Young Cho
Hi,
I am trying to POST XML data to my web server via HTTPS and port 5000. I am
specifying the port number on a WebRequest.Create call as code below. From
what I am seeing, this does not seem to be working. Can I specify a port
number on the WebRequest.Create() call? If so, is my syntax correct?
Thank you.
Young.
HttpWebRequest req =
(HttpWebRequest)WebRequest.Create(https://myserver:5000);
req.Method = "POST";
req.ContentType = "text/xml";
req.Headers.Add("Cookie: SMCHALLENGE=YES");
req.Headers.Add("Authorization: Basic " + authStr);
byte[] encodedBytes = Encoding.UTF8.GetBytes(deliveryPackage.Payload);
req.ContentLength = encodedBytes.Length;
requestStream = req.GetRequestStream();
I am trying to POST XML data to my web server via HTTPS and port 5000. I am
specifying the port number on a WebRequest.Create call as code below. From
what I am seeing, this does not seem to be working. Can I specify a port
number on the WebRequest.Create() call? If so, is my syntax correct?
Thank you.
Young.
HttpWebRequest req =
(HttpWebRequest)WebRequest.Create(https://myserver:5000);
req.Method = "POST";
req.ContentType = "text/xml";
req.Headers.Add("Cookie: SMCHALLENGE=YES");
req.Headers.Add("Authorization: Basic " + authStr);
byte[] encodedBytes = Encoding.UTF8.GetBytes(deliveryPackage.Payload);
req.ContentLength = encodedBytes.Length;
requestStream = req.GetRequestStream();