Author |
Message |
irgangla
Joined: 11 Sep 2009 Posts: 3
|
|
algorithm in Java |
|
Hi,
has someone of you solved the puzzle with a Java programm? I have problems with downloading the levels higher than 500 at once and it seems if I resume the download with the range header I get unsolveable levels. Had someone the same problem and was able to solve it?
Greetings,
irgangla
|
|
Fri Aug 24, 2012 12:03 pm |
|
 |
m!nus

Joined: 28 Jul 2007 Posts: 202 Location: Germany |
|
|
|
To anyone who comes across this problem: The webserver doesn't deliver the whole response, thus you get an incomplete board. I had this problem with my Python implementation too. You have to accept gzipped content, then it works just fine
 |
 |
request = Request(url)
request.add_header('Accept-encoding', 'gzip')
res = self.opener.open(request)
ret = res.read()
if res.getheader("Content-Encoding") == "gzip":
ret = gzip.decompress(ret) |
|
|
Thu Jun 27, 2013 6:13 pm |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|