title: Power Shell version 1 http
body: <p>So i am a beginner at powershell and would appreciate some help, what i need to do is to be able to send a commadns to multiple devices with as little code as possible. so far i can send to a single device at a time with the below code</p>
  
  <pre><code>$Body = [byte[]][char[]]'asdf';
  $Request = [System.Net.HttpWebRequest]::CreateHttp('http://172.25.183.2/axis-cgi/restart.cgi');
  $Request.Method = 'POST';
  $Request.Credentials = New-Object Net.NetworkCredential("root", "pass");
  $Stream = $Request.GetRequestStream();
  $Stream.Write($Body, 0, $Body.Length);
  $Request.GetResponse();
  </code></pre>
  
  <p>so for example i would like to send to multiple devices similar as you do with curl </p>
  
  <pre><code>curl "http://root:pass@10.21.1.(196,197,198,199,200}/axis-cgi/restart.cgi"
  </code></pre>
  
  <p>The above works as expected but i need to send to more than 200 devices, also i need to be able to use powershell version 1 so it is compatible with all windows versions from windows 7 onward.</p>
  
  <p>Any help appreciated </p>