Hi,
I have duplicated the http header that IE sends to a particular url. But
when I send access the URL using httpclient, I get socket closed
exception. Its a https site and it opens with IE. I am unable to access
that site with httpclient.
2007/07/30 17:15:35:218 CEST [DEBUG] HttpMethodBase - Adding Host request
header
2007/07/30 17:15:35:228 CEST [DEBUG] header - >> "connection:
Keep-Alive[\r][\n]"
2007/07/30 17:15:35:228 CEST [DEBUG] header - >> "accept: image/gif,
image/x-xbitmap,image/jpeg, ima
ge/pjpeg, application/x-shockwave-flash, application/vnd.ms-powerpoint,
application/msword, applicat
ion/vnd.ms-excel, */*[\r][\n]"
2007/07/30 17:15:35:228 CEST [DEBUG] header - >> "accept-language:
en-us[\r][\n]"
2007/07/30 17:15:35:238 CEST [DEBUG] header - >> "accept-encoding: gzip,
deflate[\r][\n]"
2007/07/30 17:15:35:238 CEST [DEBUG] header - >> "User-Agent: Mozilla/4.0
(compatible; MSIE 6.0; Win
dows NT 5.1; SV1) [\r][\n]"
2007/07/30 17:15:35:248 CEST [DEBUG] header - >> "Host:
knetca1.place.lexmark.com[\r][\n]"
2007/07/30 17:15:35:248 CEST [DEBUG] header - >> "[\r][\n]"
2007/07/30 17:15:35:398 CEST [DEBUG] HttpMethodDirector - Closing the
connection.
2007/07/30 17:15:35:408 CEST [DEBUG] HttpMethodDirector - Method retry
handler returned false. Autom
atic recovery will not be attempted
2007/07/30 17:15:35:408 CEST [DEBUG] HttpConnection - Releasing connection
back to connection manage
r.
java.net.SocketException: Socket closed
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA12275)
at com.sun.net.ssl.internal.ssl.AppOutputStream.write(DashoA12275)
at
java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:67)
at
java.io.BufferedOutputStream.flush(BufferedOutputStream.java:125)
at
org.apache.commons.httpclient.HttpConnection.flushRequestOutputStream(Unknown
Source)
at
org.apache.commons.httpclient.HttpMethodBase.writeRequest(Unknown Source)
at org.apache.commons.httpclient.HttpMethodBase.execute(Unknown
Source)
at
org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(Unknown
Source)
at
org.apache.commons.httpclient.HttpMethodDirector.executeMethod(Unknown
Source)
at org.apache.commons.httpclient.HttpClient.executeMethod(Unknown
Source)
at org.apache.commons.httpclient.HttpClient.executeMethod(Unknown
Source)
thanks and regards,
Saurabh Ambasta
Phone : 33 - (0) 2 38 71 1508
Email : [EMAIL PROTECTED]