D
danny
Anyone Know of a good free webhosting site that supports java?
danny said:Anyone Know of a good free webhosting site that supports java?
Daniel said:Do you mean Java servlets, or do you mean Applets on the page?
Applets on the page doesn't require any special hosting.
You're highly unlikely to get free hosting for a Java servlet, whatever
the quality.
ck said:You could try www.eatj.com. It does provide free hosting(there is a
annoying catch though)
I had a look over their 'free offer' specs., and
the limits seem modest, but fine for a small,
relatively sedate (not high volume) site.
The 'terms and conditions' do not seem
beyond reason..
Andrew T.
....
The catch I was talking about is the need to start the server every 6
hours for free accounts on eatj.
Andrew said:ck wrote:
..
Huh! Bummer..
I see your point, now.
Andrew T.
ck said:The catch I was talking about is the need to start the server every 6
hours for free accounts on eatj.
John said:Seems pointless. Especially as anyone with even a tiny bit of real
wizardry can quickly knock up a scraper and a cron job to run on their
own PC to automate it.
Daniel said:I was thinking the same thing.
It would still be a PITA though.
ck said:I don't know anything about cron daemon and how it works, but can a
cron daemon fix this issue of logging in to the server and restarting
the app(I believe the server checks from which url request is getting
generated. That should be quite an easy way to make sure that the
request are not automated. I might be wrong, but thats what I think
happens.)?
If I am wrong could you give an idea how to do that? I tried doing this
using javascript which refreshes after every 20 minutes but that failed
too.
By the way I did try using commons httpclient to do the same thing. But
that was no good either.
Cheers,
Ck
http://www.gfour.net
Daniel said:cron just allows you to schedule a program/script run.
As for urls and referers, those are all set by the client. You can set
the referer URL to however you want. Referer is nothing more than a
header set by the User-Agent. I've had to write a program that
pretended to be Mozilla, logged into a web site (saving cookies), and
did some things, and then logged off. It had to be indistinguishible
from a regular user.
It wasn't too hard to do
ck said:I don't know anything about cron daemon and how it works, but can a
cron daemon fix this issue of logging in to the server and restarting
the app(I believe the server checks from which url request is getting
generated. That should be quite an easy way to make sure that the
request are not automated. I might be wrong, but thats what I think
happens.)?
ck said:Yea I get that. Just read about it. I am not a linux user myself
though.
ck said:The catch I was talking about is the need to start the server every 6
hours for free accounts on eatj.
Alex said:Couldn't we set up a servlet somewhere else to access their web
interface and automatically restart the servlets?
)
401 is "Unauthorized", meaning you probably need to do someck said:Well that's exactly what I was talking about. I tried it using commons
http client. Though it results in 401 error. (mostly, redirect by the
server). I have tried to set follow redirect but that results in
exception.
If anyone is interested I can put the code that fails.
Cheers,
Ck
http://www.gfour.net
ck said:Well that's exactly what I was talking about. I tried it using commons
http client. Though it results in 401 error. (mostly, redirect by the
server). I have tried to set follow redirect but that results in
exception.
If anyone is interested I can put the code that fails.
I suggest using Ethereal to monitor traffic. No need to set up aAlex said:As Daniel pointed out, you may be missing a cookie. The other classic
things they might be looking for are:
1) referrer string - if it's not apparently the correct URL from their
site going to their form submission URL (as referrer), they might block
2) user agent - if it doesn't look like some sort of standard browser,
they might also block
To get under the bonnet and see what HTTP traffic is doing, I recommend
something like the Proxomitron web proxy: you set your browser to use
this proxy, and then check out the Proxomitron log window (turn on
things like 'view posted data' too) - very handy for seeing what cookies
are set, the exact headers flying about, where a redirect happened,
etc., when you visit a site and do things.
Proxomitron is free (as in beer) and funky:
http://www.proxomitron.info/
Also there's a decent Java HTTP proxy called Charles, but it's not free
- you have to buy it after N days trial.
lex
Daniel said:I suggest using Ethereal to monitor traffic. No need to set up a
proxy, and you can monitor other types of communication, not just HTTP.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.