public static HttpURLConnection getConnection(URL url, String method, HashMap<String, Object> header)throws Exception
	{
		
		HttpURLConnection request = (HttpURLConnection) url.openConnection();
		
		request.setRequestMethod(method);
		request.setDoInput(true);
		request.setDoOutput(true);
		
		request.setUseCaches(false);
		
		request.setRequestProperty("Accept-Charset", "UTF-8");	//No I18N
		request.setRequestProperty("User-Agent", "ZohoProjects-Java-Wrappers/1.0");	//No I18N
		
		request.setConnectTimeout(60 * 1000);
		request.setReadTimeout(80 * 1000);
		
		if(header != null && !header.isEmpty())
		{
			Iterator<String> keyIterator = header.keySet().iterator();
			
			while(keyIterator.hasNext())
			{
				String key = keyIterator.next();
				
				request.setRequestProperty(key, header.get(key).toString());
			}
			
		}
		
		return request;
		
		
	}