Bulk Correction In Java

In Java bulk Correction API can be accessed by using following Code ,

Code Sample

import java.net.*;
import java.io.*;
	public class Test {
public static void main(String[] args) throws MalformedURLException,IOException { String data = "{\"address\":[[\"Case1\",\"564 HELIGAN LN #1q\",\"\",\"LIVERMORE\",\"CA\",\"94551\"]],\"count\":\"1\",\"jobs\":\"1\", \"data\":\"USPS\",\"log\":\"Enable\"}"; byte[] bytesData = data.getBytes(); URL url = new URL("https://www.fixaddress.com/SACAPI/bulkFromCode"); HttpURLConnection conn = (HttpURLConnection) url.openConnection(); conn.setDoOutput(true); conn.setReadTimeout(60000); conn.setRequestProperty("Content-Type", "application/octet-stream"); conn.setRequestProperty("data", data); OutputStream out = conn.getOutputStream(); out.write(bytesData); out.flush(); BufferedReader br = new BufferedReader(new InputStreamReader(conn.getInputStream())); String output; while ((output = br.readLine()) != null) { System.out.println(output); } } }