Code example for HttpDelete

0
     * @param Token 
     *            : oauth token or accesstoken 
     * @return UrlEncodedFormEntity: encoed entity 
     */ 
 
    public static String openUrl(Context context, String url, String method,
            WeiboParameters params, Token token) throws WeiboException {
        String rlt = "";
        String file = "";
        for (int loc = 0; loc < params.size(); loc++) {
            String key = params.getKey(loc);
            if (key.equals("pic")) {
                file = params.getValue(key);
                params.remove(key);
            } 
        } 
        if (TextUtils.isEmpty(file)) {
            rlt = openUrl(context, url, method, params, null, token);
        } else { 
            rlt = openUrl(context, url, method, params, file, token);
        }