abdera-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James M Snell <jasn...@gmail.com>
Subject Re: HTTP-GET-Problem with Abdera-Client 0.3.0.
Date Mon, 10 Dec 2007 15:38:28 GMT
Some changes were checked into the trunk the other day that allow this
to be configured.  We can make it a bit easier.

- James

herbert wrote:
> Hi James!
> 
> I found the cause of my problem.
> 
> When calling new AbderaClient().get(...)
> a HttpMethod is created by
> 
> org.apache.abdera.protocol.client.util.MethodHelper.createMethod(...);
> 
> In the MethodHelper.createMethod(...) 
> new GetMethod(uri) is called for a GET-Request.
> 
> In the constructor of the GetMethod-class
> followRedirects is set to true.
> 
> So I need an instance of GetMethod with followRedirects set to false.
> Do you see a chance of making this parameter configurable?
> 
> Regards, Herbert
> 
> 
> To use SSL. You need to register a trust manager.  There is a default
> non-op trust manager provided. Before calling your request, call
> AbderaClient.registerTrustManager() and things should work.

Mime
View raw message