Hi All,
If I have a web page that does something like this,
protected void Page_Load(object sender, EventArgs e)
{
List<string> items = new List<string>()
{
"test1",
"test2",
"test3"
};
Response.Write(items);
}
How do I get the List back out at the other end, e.g. I have some code at the other end like this,
static void Main(string[] args)
{
HttpWebRequest request = (HttpWebRequest)WebRequest.Create("http://localhost:50513/Default.aspx");
HttpWebResponse response = (HttpWebResponse)request.GetResponse();
Stream responseStream = response.GetResponseStream();
}
How do I actually pull the list back out?
I have to use an asp .net page because of a restriction with a third party API that I have to use.