twitter basic authorisation not working?
        Posted  
        
            by Bunny Rabbit
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Bunny Rabbit
        
        
        
        Published on 2010-04-05T11:00:51Z
        Indexed on 
            2010/04/05
            11:03 UTC
        
        
        Read the original article
        Hit count: 326
        
URL url = new URL("http://twitter.com/statuses/update.xml");
        HttpURLConnection conn = (HttpURLConnection) url.openConnection();
        conn.setDoOutput(true);
        String cridentials = new sun.misc.BASE64Encoder().encode((username + ":" + password).getBytes());
        conn.setRequestProperty ("Authorization", "Basic " + cridentials);
        OutputStreamWriter wr = new OutputStreamWriter(conn.getOutputStream());
        wr.write(status);
        wr.flush();
        wr.close();
why the above code for updating twitter status is not working ? i am running it on google app engine.
© Stack Overflow or respective owner