Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: How do i send an HTTP command from batch file??  (Read 7292 times)

0 Members and 1 Guest are viewing this topic.

bjjere

    Topic Starter


    Newbie

    Thanked: 1
    • Experience: Beginner
    • OS: Windows 7
    How do i send an HTTP command from batch file??
    « on: May 30, 2013, 02:46:16 PM »
    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!!

    Salmon Trout

    • Guest

    Salmon Trout

    • Guest

    bjjere

      Topic Starter


      Newbie

      Thanked: 1
      • Experience: Beginner
      • OS: Windows 7
      Re: How do i send an HTTP command from batch file??
      « Reply #3 on: June 04, 2013, 08:23:16 PM »
      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!! :)