public void extract(String getdata)
	{
		if (getdata.startsWith("GET"))
		{
			get = getdata;	
			url = (getdata.substring(getdata.indexOf("/"))).split(" ")[0];
			try {
				url = URLDecoder.decode(url, "UTF-8");
			} catch (UnsupportedEncodingException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
			if (url.indexOf("?") >= 0)
			{
				dataget = url.split("\\?")[1];
				url = url.split("\\?")[0];
			}
			else
			{
				dataget="ZERO";
			}
			ext = url.split("\\.")[((url.split("\\.")).length)-1];
			if (url.length() == 0)
			{
				url="index.html";
			}
		}
		else if(getdata.startsWith("Accept:"))
		{
			accept = getdata.substring(getdata.indexOf(":")+1);
		}
		else if(getdata.startsWith("Accept-Language:"))
		{
			acceptLang = getdata.substring(getdata.indexOf(":")+1);
		}
		else if(getdata.startsWith("Accept-Encoding:"))
		{
			acceptEnc = getdata.substring(getdata.indexOf(":")+1);
		}
		else if(getdata.startsWith("User-Agent:"))
		{
			userAgent = getdata.substring(getdata.indexOf(":")+1);
		}
		else if(getdata.startsWith("Host:"))
		{
			host = getdata.substring(getdata.indexOf(":")+1);
		}
	}