|
Answer» I want to create a BATCH file that will issue an http command to my IP camera to take a photo. When I enter the FOLLOWING in chrome or IE it works to capture like i want: http://192.168.0.171/axis-cgi/io/virtualinput.cgi?action=6:/1000\
How can I PUT this in a windows batch file?! I do not need a response from the command, just to SEND the into to the address listed...
Thanks in advance for your help!!Try wget.exe with the url
like this
wget http://192.168.0.171/axis-cgi/io/virtualinput.cgi?action=6:/1000\
http://gnuwin32.sourceforge.net/packages/wget.htm
Better link for wget
http://users.ugent.be/~bpuype/cgi-bin/fetch.pl?dl=wget/wget.exe
Thank you!!! Wget turned out to work for me but by taking a different approach. At first I wanted to "send" the http "command" to my axis camera which i had programmed to SAVE a snapshot to a specified location upon receiving the command. While wget did not send the http command like I thought it would I did use Wget to instead download an image from the camera web interface.
i can now use: wget http://192.168.2.22/axis-cgi/jpg/image.cgi? to automatically download the live image to my hard drive.
Trying to use xml.http post or get commands did not get me anywhere either... was probably using wrong. As I was not trying to post anything to the URL or Get anything back, just send the cgi command, i think it was the wrong approach.
Thanks for your help!!
|