I’m trying to put together a project that on certain events will hit a URL with some parameters that will set various commands on a WebCam.
A made up example would be something like: http:///camera_control.cgi?user=user&password=password&command=
This works fine in a browser, but I’m having a little trouble getting this to work with the ethernet shield.
The program connects fine and the following is output:
HTTP/1.1 401 Unauthorized
Server: Netwave IP Camera
Date: Wed, 01 Feb 2012 21:37:37 GMT
WWW-Authenticate: Basic realm=“ipcamera_000DC5D34ADE”
401 UnauthorizedAuthorization required.
after which the connection is closed (from the WebCam side I’d imagine), which means I’m unable to do the next step and execute the actual command.
Note that I’m able to connect to google etc just fine and execute commands.
I guess the WebCam is prevent the type of connection that the Arduino board is attempting (its not an HTTPS connection) - is there an alternative way to hit arbitrary URLs without first making a connection?
As a temporary workaround I’m going to setup a script on a server that the Ethernet board can connect to, which will in turn trigger the webcam command.
Any ideas would be much appreciated!