ck wrote:
Alex Hunsley wrote:
The catch I was talking about is the need to start the server every 6
hours for free accounts on eatj.
Couldn't we set up a servlet somewhere else to access their web
interface and automatically restart the servlets?
:))
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.
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
I suggest using Ethereal to monitor traffic. No need to set up a