I'm writing code to connect to an SSL server. Although I can see the
responses I'm expecting in the wire trace, the program still fails on a
ProtocolException (when I call client.executeMethod() with a
PostMethod). I've tried several adjustments:
client = new HttpClient();
client.getParams().setParameter(
"http.protocol.version",
HttpVersion.HTTP_1_0);
client.getParams().setParameter(
"http.protocol.content-charset",
"UTF-8");
client.getParams().setParameter(
"http.protocol.unambiguous-statusline",
false);
client.getParams().setParameter(
"http.protocol.strict-transfer-encoding",
false);
client.getParams().setParameter(
"http.protocol.status-line-garbage-limit",
Integer.MAX_VALUE);
Is there anything obvious I might have missed? This is the stack trace:
org.apache.commons.httpclient.ProtocolException: The server
xxxxxxxx.xxxxxxxx.com failed to respond with a valid HTTP response
at
org.apache.commons.httpclient.HttpMethodBase.readStatusLine(HttpMethodBase.java:1846)
at
org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase.java:1590)
at
org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:995)
at
org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:397)
at
org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170)
at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396)
at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:324)
--
____________________________________________________________
Glenn Holmer [EMAIL PROTECTED]
Software Engineer phone: 414-908-1809
Weyco Group, Inc. fax: 414-908-1601
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]