Re: [Htmlparser-user] use with Google App Engine
Brought to you by:
derrickoswald
From: Andy W. <an...@aw...> - 2009-12-16 15:05:19
|
Thanks again. Doesn't seem to work for me though.... The code now is: Parser.getConnectionManager().setCookieProcessingEnabled(false); Parser parser = new Parser (http://TEST_URL); StringBean sb = new StringBean (); parser.visitAllNodesWith (sb); String result = sb.getStrings (); and the stack trace is: at com.google.apphosting.utils.security.urlfetch.URLFetchServiceStreamHandler$Connection.getHeaderFields(URLFetchServiceStreamHandler.java:211) at com.google.apphosting.utils.security.urlfetch.URLFetchServiceStreamHandler$Connection.getHeaderField(URLFetchServiceStreamHandler.java:196) at org.htmlparser.http.ConnectionManager.parseCookies(ConnectionManager.java:1097) at org.htmlparser.http.ConnectionManager.openConnection(ConnectionManager.java:669) at org.htmlparser.http.ConnectionManager.openConnection(ConnectionManager.java:848) at org.htmlparser.Parser.<init>(Parser.java:301) at org.htmlparser.Parser.<init>(Parser.java:313) May be a red herring though, as I can get the same result testing locally if I switch off the http server that servers the TEST_URL. |