why? I follow this example 
http://matthiaswessendorf.wordpress.com/2009/08/27/twitter-status-post-with-apache-wink/
which uses the Apache Wink client that uses basic auth to post to Twitter.
and it worked!

why it is not supported?

________________________________
From: Michael Elman [mailto:[email protected]]
Sent: Thursday, October 01, 2009 3:48 PM
To: [email protected]
Subject: Re: FW: Basic Authentication in WINK Client

Wink doesn't support Basic Authentication, but Apache HttpClient does.
You can do something like this:

DefaultHttpClient httpclient = new DefaultHttpClient();
httpclient.
getCredentialsProvider()
            .setCredentials(new AuthScope(AuthScope.ANY_HOST, 
AuthScope.ANY_PORT),
                            new UsernamePasswordCredentials("tomcat", 
"tomcat"));

ApacheHttpClientConfig apacheHttpClientConfig = new 
ApacheHttpClientConfig(httpclient);
RestClient restClient = new RestClient(apacheHttpClientConfig);

make sure that you use 4.0 version of apache client.



On Thu, Oct 1, 2009 at 3:15 PM, Shukrun, Eytan 
<[email protected]<mailto:[email protected]>> wrote:

How do I do Basic Authentication in WINK Client


Reply via email to