package Feeds;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.apache.http.client.ClientProtocolException;
import org.apache.http.client.HttpClient;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.impl.client.DefaultHttpClient;
import java.util.ArrayList;

public class ThreatFeedsFetcher {

	public  ArrayList<String> maliciousIPs = new ArrayList<String>();


	public  ArrayList<String> FeedsFetchers(String url,String type) {

		String IP_container;// space delimited ip list

		try {

			HttpClient client = new DefaultHttpClient();

			HttpGet request = new HttpGet(url);

			HttpResponse Response = client.execute(request);

			HttpEntity entity = Response.getEntity();

			System.out.println("----------------------------------------");
			System.out.println(Response.getStatusLine());
			System.out.println(type+"\n----------------------------------------");

			BufferedReader breader;

			try {

				breader = new BufferedReader(new InputStreamReader((Response.getEntity().getContent())));
				if (entity != null) {
					while ((IP_container = breader.readLine()) != null) {

						maliciousIPs.add(IP_container);

					}

					breader.close();

				}
			} catch (IOException e) {
				e.printStackTrace();

			}

		} catch (ClientProtocolException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		}
		return maliciousIPs;
	}

}

@@ -719,16 +719,184 @@
 et(url);
+%0A%09%09%09%0A%09%09%09String encoding = DatatypeConverter.printBase64Binary(%22user:ti@user_TI%22.getBytes(%22UTF-8%22));%0A%09       %0A%09%09%09request.setHeader(%22Authorization%22, %22Basic %22 + encoding);
 %0A%0A%09%09%09Htt

Update ThreatFeedsFetcher.java