From: <Mik...@su...> - 2003-02-19 18:35:40
|
> > Assuming there is not, one simple way to partially solve > > the problem is to add the following function to HtmlPage: > Take a look at page.getWebResponse().getUrl() and see if that does what > you need (for GET requests anyway). That works! > > However, this will only work for pages that are a result of a HTTP Get > > requests. It will work for pages that were a result of a Post request, > > because the URL will not contain the request parameters. > Right, the WebResponse doesn't currently retain the request parameters > which is what you'd need for a proper refresh. > At a minimum the WebResponse would have to change to retain the > parameters that were originally used and the request type > (GET/POST/etc). Then Page could additionally have a reload() method (I > want to avoid the word "refresh" as that implies updating the current > object and I'd want to return a new one). > Would this do everything you need? Yes I believe so. Note that I actually only need support for GET's currently. Mike Bresnahan |