Hi Carl,

This issue is Redirecting with the server. you need to redirect it again.
below is the code snippet try this and u will surely get the response.

DefaultHttpClient dc = new DefaultHttpClient(ccm, params);
dc.setRedirectHandler(new RedirectHandler() {

@Override
public URI getLocationURI(HttpResponse response, HttpContext context)
throws ProtocolException {
// TODO Auto-generated method stub
return null;
}


@Override
public boolean isRedirectRequested(HttpResponse response, HttpContext
context) {
// TODO Auto-generated method stub
return false;
}

});



Warm Regards,
*Mukesh Kumar*,
Android Consultant/Freelancer,
India,Hyderabad.



On Mon, Jan 9, 2012 at 10:34 AM, Nikolay Elenkov
<[email protected]>wrote:

> On Mon, Jan 9, 2012 at 8:34 AM, Carl Minden <[email protected]> wrote:
> > I have an Android app which uses an SSLSocketFactory to load a pkcs12
> > certificate and use that certificate to perform SSL Client
> > authentication with my server. This process worked perfectly on
> > Android 2.1, 2.2, and 2.3, but when I attempt to run this code on a
> > phone or emulator running 4.0 my server does not receive a public key
> > from the request made by my application.
>
> Are you using a self-signed certificate for the server? If you are, you
> need to either add it to the system trust store, or pass your custom
> trust store to  SSLSocketFactory.
>
> --
> 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
>



--

-- 
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