From: Sue Yi <su...@gm...> - 2005-08-11 19:22:11
|
Hi Marc, Thanks, that was an awesome suggestion! I'm now using a custom HtmlWebConnection which wraps HtmlWebConnection. And then setWebConnection on the WebClient to use it -- there are no more problems with illegal URI's. > "/" with "\"? Sure? Not "\" with "/"? You were right =3D) Sue On 8/11/05, Marc Guillemot <mgu...@ya...> wrote: > >>What does your browser do (Firefox for instance, because IE...): does i= t change the received "\" to "/"? > > > > Ya, I noticed IE replaces "/" with "\" ... and the tested application > > only needs to run on IE, so these uri's must be worked with. >=20 > "/" with "\"? Sure? Not "\" with "/"? > Does your "'/a/b/..\BIN\c.ASP" gets the same thinks as "'/a/b/../BIN/c.AS= P"? >=20 >=20 > >>Is it in a redirect or as src of a frame, what suggests your stack trac= e? > > > > I think it is as src of an IFrame .. the page being loaded has several = IFrames. > > > > Do you think it is possible to solve this without building HtmlUnit > > source with added code to convert "\" to "/"? >=20 > a complete fix would need to build htmlunit to be integrate. Nevertheless= I guess that you can write your own > WebConnection wrapping the default one and rewriting the urls containing = "\". >=20 > Marc. >=20 >=20 > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practic= es > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & Q= A > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > |