public static BufferedImage getImage(String url,String refer,EventCallback callback){
	    	BufferedImage image = null;
	    	HttpURLConnection conn = null;
	    	InputStream is = null;
	        try {
	        	URL serverUrl = new URL(url);  
	            conn = (HttpURLConnection) serverUrl.openConnection();   
	            conn.setRequestMethod("GET");//"POST" ,"GET"  
	           // conn.setDoOutput(true);   
	            if (refer!=null) {
	            	conn.addRequestProperty("Referer",refer);  
				}else {
		            conn.addRequestProperty("Referer", URL_REFER_Q);  
				}
	            conn.addRequestProperty("Cookie", getCookie());  
	            conn.addRequestProperty("Accept-Charset", "UTF-8;");//GB2312, 
	            conn.addRequestProperty("Accept", "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8");
	            conn.addRequestProperty("Connection", "keep-alive");
	            conn.addRequestProperty("User-Agent", "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.125 Safari/537.36");
	            conn.connect();  
	             
	            if(conn.getHeaderFields().get("Set-Cookie") != null){  
	                for(String s:conn.getHeaderFields().get("Set-Cookie")){  
	                    addCookie(new BotCookie(s));
	                }  
	            }  
	            is =  conn.getInputStream();  
	            image = ImageIO.read(is);
	        } catch (Exception e) {
	           if (callback!=null) {
	        	   callback.exec(false);
	           }
			}finally{
	        	if(is!=null){
	        		try {
						is.close();
					} catch (IOException e) {
						e.printStackTrace();
					}finally{
						is  =null;
					}
	        		
	        	}
	 
	        }
	        String verifyString = HttpHelper.getCookie("verifysession");
	        if (verifyString!=null) {
		        Bot.getInstance().setVerifySession(verifyString);
		        HttpHelper.addCookie(new BotCookie("ptvfsession",verifyString));
			}
	        if (callback!=null) {
				callback.exec(true);
			}
	        return image;
	    }