Hi there, I recently upgraded from httpclient 2.0 to 3.0.1 and noticed that communication does not work via proxy.
I set proxy host port using this call .... httpMethod.getHostConfiguration().setProxy(proxyHost, proxyPort); // (which is depricated in 3.0) .... and then I see that http request bypasses proxy host : 2007/06/22 16:19:39:745 CEST [DEBUG] DefaultHttpParams - Set parameter http.authentication.preemptive = false 2007/06/22 16:19:39:761 CEST [DEBUG] HttpConnection - Open connection to myhost:80 2007/06/22 16:19:39:855 CEST [DEBUG] header - >> "POST /servlet/selectFiles HTTP/1.1[\r][\n]" 2007/06/22 16:19:39:855 CEST [DEBUG] HttpMethodBase - Adding Host request header 2007/06/22 16:19:39:901 CEST [DEBUG] header - >> "Accept-Language: en[\r][\n]" 2007/06/22 16:19:39:901 CEST [DEBUG] header - >> "User-Agent: Jakarta Commons-HttpClient/3.0.1[\r][\n]" 2007/06/22 16:19:39:901 CEST [DEBUG] header - >> "Host: myhost[\r][\n]" 2007/06/22 16:19:39:901 CEST [DEBUG] header - >> "Cookie: uiGroup=unit,picas,pagesize,1073741814[\r][\n]" 2007/06/22 16:19:39:901 CEST [DEBUG] header - >> "Cookie: clientID=760441440576EFFEE256567D2D0BA4CE1179318620079[\r][\n]" 2007/06/22 16:19:39:901 CEST [DEBUG] header - >> "Cookie: collapsed=false[\r][\n]" 2007/06/22 16:19:39:901 CEST [DEBUG] header - >> "Cookie: uploadGroup=httpUploadApplet,true,advancedApplet,true[\r][\n]" 2007/06/22 16:19:39:901 CEST [DEBUG] header - >> "Cookie: edition=2[\r][\n]" 2007/06/22 16:19:39:901 CEST [DEBUG] header - >> "Cookie: strippingGroup=customWidth,1729134,customHeight,2437795,marginTop,0,currentTemplateSelectMethodType,STRIPPINGLAYOUT,currentTemplate,55,currentPreviewSize,100,currentStripCell,1,currentWorkStyle,Perfecting,currentBindingStyle,PERFECT_BOUND[\r][\n]" 2007/06/22 16:19:39:901 CEST [DEBUG] header - >> "Cookie: readerspreadView=gangingView[\r][\n]" 2007/06/22 16:19:39:901 CEST [DEBUG] header - >> "Cookie: deviceType=PRESS[\r][\n]" 2007/06/22 16:19:39:901 CEST [DEBUG] header - >> "Cookie: currentDirectory=C:\PDF[\r][\n]" 2007/06/22 16:19:39:901 CEST [DEBUG] header - >> "Cookie: currentFilterName=All Files (*.*)[\r][\n]" 2007/06/22 16:19:39:901 CEST [DEBUG] header - >> "Cookie: nrThreadsToStrippingLayout=1,2[\r][\n]" 2007/06/22 16:19:39:901 CEST [DEBUG] header - >> "Cookie: resourcesView=listWithoutThumbnailView[\r][\n]" 2007/06/22 16:19:39:901 CEST [DEBUG] header - >> "Cookie: contentGroup=131[\r][\n]" 2007/06/22 16:19:39:901 CEST [DEBUG] header - >> "Cookie: collapsedHierarchy=false[\r][\n]" 2007/06/22 16:19:39:901 CEST [DEBUG] header - >> "Cookie: approvalMode=REMAIN_ON_SAME_SCREEN[\r][\n]" 2007/06/22 16:19:39:901 CEST [DEBUG] header - >> "Cookie: JSESSIONID=60BFC65AE58DFC629E8538E2ED8E5B11[\r][\n]" 2007/06/22 16:19:39:901 CEST [DEBUG] header - >> "Cookie: delanoURL=http://gs2474.eps.agfa.be/[\r][\n]" 2007/06/22 16:19:39:901 CEST [DEBUG] header - >> "Content-Length: 627[\r][\n]" 2007/06/22 16:19:39:901 CEST [DEBUG] header - >> "Content-Type: multipart/form-data; boundary=----------------314159265358979323846[\r][\n]" 2007/06/22 16:19:39:901 CEST [DEBUG] header - >> "[\r][\n]" 2007/06/22 16:19:40:355 CEST [DEBUG] header - << "HTTP/1.1 200 OK[\r][\n]" 2007/06/22 16:19:40:370 CEST [DEBUG] header - << "Server: Apache-Coyote/1.1[\r][\n]" 2007/06/22 16:19:40:370 CEST [DEBUG] header - << "X-Powered-By: Servlet 2.4; JBoss-4.0.5.GA (build: CVSTag=Branch_4_0 date=200610162339)/Tomcat-5.5[\r][\n]" 2007/06/22 16:19:40:370 CEST [DEBUG] header - << "Content-Length: 0[\r][\n]" 2007/06/22 16:19:40:370 CEST [DEBUG] header - << "Date: Fri, 22 Jun 2007 14:19:40 GMT[\r][\n]" 2007/06/22 16:19:40:370 CEST [DEBUG] header - << "Connection: close[\r][\n]" What could be the reason that HttpClient does not acknowledge proxy host? May be it is related to depricated method that I use? How can I set proxy hos and port on the http method using 3.0 API? Thanx Peter Tolmachov
