Programming help
1 July, 2012 - 09:09
Hi
I can successfully use Explorer/Firefox to interrogate HAH parameters via the webserver applet ie
http://***********:8080/dbzoo.livebox.Controller:1wire.1/input.state/dis...
I'm messing with Java and Android and have issued an httpGET request for same URL and keep getting "client protocol exception"
Probably something obvious but I'm out of my depth.
Any help?
John
2 July, 2012 - 11:04
#4
Yes that line is wrong in
Yes that line is wrong in fact I'm not sure why the slash was there in the first place. As you say it should be:
local message = "HTTP/1.0 200 OK\r\n"
I'll update the code and check that sample back in. Thx.
Brett
5 July, 2012 - 18:42
#6
Think you need to reload the
Think you need to reload the crontab once updated. It's "crontab root" from command line.
Maybe you can echo it from a script?
Garry
5 July, 2012 - 20:02
#8
I think by doing crontab -e
I think by doing crontab -e you automatically update the Cron scheduler. By just text editing not sure you do.
Maybe try this:
os.execute("crontab /etc/crontabs/root")
Although, reading up on Cron. I now agree with you that Cron should update on its own when it sees that the file has been changed??
Garry
5 July, 2012 - 20:30
#10
Cool. In that case I'll use
Cool. In that case I'll use it myself from now on instead if google calendar!!!
Garry
John,
The web server caching applet is a bit of a toy webserver in that it implements a very minimal amount of protocol to send back data via a http request. I wrote it in response to a problem that Gary was having integrating an iPhone app. It does work with the various devices I've used to prod it. To debug you will need a little more depth in your knowledge of HTTP protocols. You do have full source code for the lua applet if you care to play around.
Brett