From: Mike B. <gar...@ya...> - 2002-09-23 13:57:25
|
> In HtmlUnit the submit of the > form-parameters via is POST is correct. But when it tries to > follow the redirect, it somehow converts the POST parameters > into GET parameters and appends them to the URL-string. That's > not right behavior and our application can't handle that. > Is there a possibility to switch that off or does anyone know a > workaround? You can disable automatic redirection handling with WebClient.setRedirectEnabled(false). It's certainly possible that I've made a mistake in the redirection handling but as far as I know, it is correct according to the HTTP/1.1 specification. http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.3 If you think that HtmlUnit is handling this incorrectly then please open a bug report. I'll need to know the exact status code being returned from the server as the redirection logic is different for different status codes. Since you mentioned the method switching from post to get, I assume that the status code you got was either a 302 or a 303. -- Mike Bowler Principal, Gargoyle Software Inc. Voice: (416) 822-0973 | Email : mb...@Ga... Fax : (416) 822-0975 | Website: http://www.GargoyleSoftware.com ______________________________________________________________________ Post your free ad now! http://personals.yahoo.ca |