On Tue, Jan 28, 2014 at 2:49 PM, Kelemen Szabolcs <[email protected]> wrote:
> Default CookieHandler simply does not work.However this line throws the > following error: > java.lang.NoClassDefFoundError: java.net.CookiePolicy is a restricted > class. Please see the Google App Engine developer's guide for more details. > Now my question is if there is a workaround (eg.: to accept all the > cookies) or should I choose a hosting solution different than Google App > Engine where this class is not blacklisted? I have tried to implement my > own CookiePolicy interface instead of the built-in one, but it did not > help. I also tried to find other ways to download RSS feeds but none of the > other methods have worked. > When I was implementing similar code, I ended up using the low level URL Fetch API ( https://developers.google.com/appengine/docs/java/javadoc/com/google/appengine/api/urlfetch/package-summary) and manually processing, storing, and sending back cookies. It isn't too difficult especially if you narrow down which cookie is actually doing the authenticating. There are also alternatives: you can run the RSS feed through a fetch proxy that retains cookies, run the feed through an external service such as IFTTT which can transform feeds into more-easily-parsable feeds for you, or find another way of authenticating. Can you give a specific example of a feed URL that isn't working for you? ----------------- -Vinny P Technology & Media Advisor Chicago, IL App Engine Code Samples: http://www.learntogoogleit.com -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/google-appengine. For more options, visit https://groups.google.com/groups/opt_out.
