Re: use with Google App Engine
Andy Wickson <[email protected]>
| Newsgroups | gmane.comp.parsers.htmlparser.user |
|---|---|
| Message-ID | <[email protected]> |
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.
------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev
_______________________________________________
Htmlparser-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/htmlparser-user