using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;

using System.IO;
using System.Net;
using System.Text.RegularExpressions;
using System.Collections;
using System.Collections.Specialized;

namespace BrunoForecast
{
    public class MyWeatherData
    {
        private string rawHtml;        // private Global variable to store a copy of returned raw HTML
        private string result;
        private string url;
        public string data;

        public MyWeatherData(string city, string zip)
        {
            url = "http://weather.cnn.com/weather/forecast.jsp?locCode=" + city + "&zipCode=" + zip;
            WebRequest objRequest = HttpWebRequest.Create(url);
            WebResponse objResponse = objRequest.GetResponse();
            Stream stream = objResponse.GetResponseStream();
            StreamReader sr = new StreamReader(stream);
            result = sr.ReadToEnd();
            rawHtml = result.ToLower();

            //data = GetData(rawHtml);  // need to be implemented
            objResponse.Close();
        }
    }
}