Skip to content Skip to sidebar Skip to footer

Why Htmlunit Always Shows The Hostpage No Matter What Url I Type In (crawlable Gwt App)?

Here is the full code public class CrawlServlet implements Filter{ public static String getFullURL(HttpServletRequest request) { StringBuffer requestURL = request.getRequestUR

Solution 1:

First, instead of ?_escaped_fragment_=article, perhaps try &_escaped_fragment_=article because you already have ? for the gwt.codesvr, so 2 ? may mess up url parameter parsing.

Second, you need to make sure that your filter handle the case of having parameter gwt.codesvr. It looks like your filter assumes it is the first parameter -- i.e., starting with ?. I believe the example here does work either way.

Post a Comment for "Why Htmlunit Always Shows The Hostpage No Matter What Url I Type In (crawlable Gwt App)?"