hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Marc Spaggiari <jean-m...@spaggiari.org>
Subject Re: Not able to fetch an OCSP Response
Date Thu, 13 Sep 2012 12:09:04 GMT
Can you past the complete exception here? Is there any causes in the exception?

2012/9/13, Oliver Zemann <oliver.zemann@gmail.com>:
> Hi,
>
> when i try to HttpGet the following URL http://ocsp.a-trust.at/ocsp
> (which i can access in FF and get OK 200 with size -1 (no idea why)
> its working as expexted) i get an
> org.apache.http.ProtocolException: The server failed to respond with a
> valid HTTP response
>
> Can someone tell me whats wrong?
>
> String uri = "http://ocsp.a-trust.at/ocsp";
> HttpGet httpGet = new HttpGet(uri);
> HttpResponse response = httpClient.execute(httpGet); -- here it will
> throw the exception
>
>
> HttpClient 4.2.1 and HttpCore 4.2.1
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
> For additional commands, e-mail: httpclient-users-help@hc.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
For additional commands, e-mail: httpclient-users-help@hc.apache.org


Mime
View raw message