I'm trying to get live feed for my server from this page http://dkm.inx-gaming.co.uk/stats/server.php. As you can see, when it first loads, it says "Querying Server x, Please wait.." for a fraction of a second.. And that's what the openConnection function returns, too. Is there any way I can tell it to wait for the page status to be done or use another function, maybe?
claudiu_is
0
Light Poster
Recommended Answers
Jump to PostHave you enabled redirects on the URL, as it is probably getting redirected, which URLConnection does not automatically follow.
Jump to Postthe openConnection method doesn't read the content of the stream, it just opens the stream. So of course it doesn't wait for "the page to be loaded".
Jump to PostLike I said, it is probably getting redirected (and just because the address shown in the address bar doesn't change, doesn't mean it hasn't been redirected). And, if there is "AJAX involved", then the only thing you can do (without it getting much more complicated) is to print out the …
All 10 Replies
masijade
1,351
Industrious Poster
Team Colleague
Featured Poster
jwenting
1,889
duckman
Team Colleague
claudiu_is
0
Light Poster
masijade
1,351
Industrious Poster
Team Colleague
Featured Poster
claudiu_is
0
Light Poster
masijade
1,351
Industrious Poster
Team Colleague
Featured Poster
claudiu_is
0
Light Poster
masijade
1,351
Industrious Poster
Team Colleague
Featured Poster
~s.o.s~
2,560
Failure as a human
Team Colleague
Featured Poster
masijade
1,351
Industrious Poster
Team Colleague
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.