/src/main/java/org/htmlunit/util/FalsifyingWebConnection.java
webRequest.getUrl( ) ;
webRequest.setUrl ( url ) ;
public FalsifyingWebConnection(final WebClient webClient) throws IllegalArgumentException { super(webClient); } protected WebResponse deliverFromAlternateUrl(final WebRequest webRequest, final URL url) throws IOException { final URL originalUrl = webRequest.getUrl(); <extra_id_0> final WebResponse resp = super.getResponse(webRequest); resp.getWebRequest().setUrl(originalUrl); return resp; } protected WebResponse replaceContent(final WebResponse wr, final String newContent) throws IOException { final byte[] body = newContent.getBytes(wr.getContentCharset());