Somebody help ! I follow all directive in http://jakarta.apache.org/commons/httpclient/redirects.html...
But my PostMethode can still not follow redirection !! :-( My code : ************* Cookie cookie1 = new Cookie("www.XXX.com", "CFID", cookies[0].getValue(), "/", null, false); Cookie cookie2 = new Cookie("www.XXX.com", "CFTOKEN", cookies[1].getValue(), "/", null, false); parent.getHttpClient().getState().addCookie(cookie1); parent.getHttpClient().getState().addCookie(cookie2); methodePOST = new PostMethod("http://www.XXX.com/XXX/etape2h.cfm?ref=123456"); methodePOST.setFollowRedirects(true); methodePOST.setHttp11(false); System.out.print(methodePOST.getURI()+" "+methodePOST.getPath()); parent.getHttpClient().executeMethod(methodePOST); ****************** The error message : ******************* 20 janv. 2004 19:58:15 org.apache.commons.httpclient.HttpMethodBase processRedirectResponse INFO: Redirect requested but followRedirects is disabled *************** here the headers of the redirection : ***************** POST http://www.XXX.com/XXX/etape2h.cfm?ref=123456 HTTP/1.0 <--- URL redirection Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword, */* Referer: http://www.XXX.com/mirror/listehotels.cfm?&Vilarr=MRS&DatDep=210104&DatArr=2 30104&Adultes=2&ENFANTS=0&BEBES=0&ref=123456 Accept-Language: fr Content-Type: application/x-www-form-urlencoded Proxy-Connection: Keep-Alive User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1) Host: www.XXX.com Content-Length: 223 Pragma: no-cache Cookie: CFID=41696517; CFTOKEN=19746368 ***************** I need some ideas... Jean-Rémi --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]