Just an update,
I quickly tested the code, but for some reason the auth part isn't working.
If I telnet to the Camera and run it manually like so
telnet 192.168.80.218 80
GET /cgi-bin/action?action=snapshot HTTP/1.0
Accept: */*
Authorization: Basic "YWRtaW46YWRtaW4="
HTTP/1.0 200 OK
Date: Tue, 03 Apr 1984 01:53:38 GMT
Server: Boa/0.94.14rc18-ipcam
Accept-Ranges: bytes
Connection: close
Saved 33156 bytes to /tmp/s/snapshot.jpg.
Content-type: image/jpeg
Content-Length: 33156
etc
But if I try and view the image through the linuxmce web admin, tcpdump shows this.
14:18:50.480366 IP dcerouter.35688 > 192.168.80.218.www: P 1:103(102) ack 1 win 92
E....
@.@.F3..P...P..h.PU.:.|...P..\....GET /cgi-bin/action?action=snapshot
HTTP/1.0
Accept: */*
Authorization: Basic YWRtaW46YWRtaW4=
14:18:50.481030 IP 192.168.80.218.www > dcerouter.35688: . ack 103 win 2920
E..(p.@.@.....P...P..P.h|...U.;.P..hV.........
14:18:50.489427 IP 192.168.80.218.www > dcerouter.35682: . ack 2 win 2920
E..(..@.@.q...P...P..P.b{.x.Pr..P..h..........
14:18:50.489958 IP 192.168.80.218.www > dcerouter.35682: F 1:1(0) ack 2 win 2920
E..(..@.@.q...P...P..P.b{.x.Pr..P..h..........
14:18:50.489987 IP dcerouter.35682 > 192.168.80.218.www: . ack 2 win 92
E..(..@.@.....P...P..b.PPr..{.x.P..\....
14:18:50.491760 IP 192.168.80.218.www > dcerouter.35688: P 1:181(180) ack 103 win 2920
E...p.@.@..$..P...P..P.h|...U.;.P..h~F..<HTML><HEAD><TITLE>401 Unauthorized</TITLE></HEAD>
<BODY><H1>401 Unauthorized</H1>
Your client does not have permission to get URL /cgi-bin/action from this server.
</BODY></HTML>
As mentioned I have pasted the Code to the wiki, any help would be great. I didn't have this problem when I first created the template, but for some reason I do now
Slampt