Esempio n. 1
0
        private void button1_Click(object sender, EventArgs e)
        {
            if (!string.IsNullOrEmpty(url1.Text) && !string.IsNullOrEmpty(url2.Text))
            {
                HttpResponseArgs resOne = _httpHandler.GetContent((url1.Text).ToString());
                response1.Text = $"httpBody = {resOne.httpBody} \n\n responseCode = {resOne.responseCode}";

                HttpResponseArgs resTwo = _httpHandler.GetContent((url2.Text).ToString());
                response2.Text = $"httpBody = {resTwo.httpBody} \n\n responseCode = {resTwo.responseCode}";
            }
            else
            {
                MessageBox.Show("Url Textboxes are required");
            }
        }