public static void main(String[] args)throws Exception{
		
		if(args.length < 1){
			System.out.println("Usage: java ThreadRequest <u=url> <t=threads> <r=runs> <f=foundReturnMessage> <s=sleep>");
			return;
		}
		for(int i=0;i<args.length;i++){
			if(args[i].startsWith("u=")){
				spec = args[i].substring(2);
			}else
			if(args[i].startsWith("t=")){
				threads = Integer.parseInt(args[i].substring(2));
			}else
			if(args[i].startsWith("r=")){
				runs = Integer.parseInt(args[i].substring(2));
			}else
			if(args[i].startsWith("f=")){
				strFoundReturnMessage = args[i].substring(2);
			}else
			if(args[i].startsWith("s=")){
				sleep = Long.parseLong(args[i].substring(2));
			}
		}
		
		start = System.currentTimeMillis();
		
		File headersFile = new File("headers.ini");
		if(headersFile.exists()){
			InputStream headersInputStream = new FileInputStream(headersFile);
			headersProps.load(headersInputStream);
			headersInputStream.close();
		}
		
		ts = new ThreadRequest[threads];
		for(int i=0;i<threads;i++){
			ts[i] = new ThreadRequest();
			ts[i].start();
		}
		
		Daemon d = new Daemon();
		d.start();
	}