sde
Centurion
i have been trying to figure out a way to send this xml data to ups for rate quotes.
the goal here is to connect to this url, and send data. then receive the data it sends back.
i get an exception because i'm trying to connect to a url instead of an IP.
how do i connect to this url and send the data to the appropriate place?
here is an example of what i'm attempting:
the goal here is to connect to this url, and send data. then receive the data it sends back.
i get an exception because i'm trying to connect to a url instead of an IP.
how do i connect to this url and send the data to the appropriate place?
here is an example of what i'm attempting:
Code:
TcpClient tc=new TcpClient("https://www.ups.com/ups.app/xml/Rate");
NetworkStream ns=tc.GetStream();
StreamWriter sw=new StreamWriter(ns);
sw.WriteLine(xml);
sw.Flush();
StreamReader sr=new StreamReader(ns);
txtResponse.Text = sr.ReadLine();