On Oct 4, 1:32 pm, Nikolay Elenkov <[email protected]> wrote:
> Are you using a single instance of DefaultHttpClient from multiple threads?
> A bit unlikely, but might be a multi-threading issue. You can try to
> explicitly initialize a ThreadSafeClientConnectionManager with SchemeRegistry
> and all and pass that to the constructor, so you are sure http and htps are
> registered.

No, the HttpClient is discarded after each use.

> As for the https error, even if you are not trying to access an HTTPS URL,
> there might be a proxy in-between, or some other redirect. Especially on
> public WiFi networks, people get redirected to all sorts of intermediary sites
> on first access.

Thanks Nikolay, I suspected it must be something like that. In that
case is registering an SSLSocketFactory on port 443 sufficient? Ie I
don't need to try to provide any credentials via the HttpClient?

William

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to