title: Automatically get images masked by PHP and Query-String
body: <p>I have access to some images that can be gathered like this:</p>
  
  <p><a href="http://www.example.com/imageGetter.php?a=0001" rel="nofollow">http://www.example.com/imageGetter.php?a=0001</a></p>
  
  <p>If I change the query-string a to 0002 I get the other image. It's thousands of images, and I'm attempting to get the images programatically (either by loading them in the browser, or by saving them to the disk).</p>
  
  <p>Question: How do I get images stored like this programatically ?</p>
  
  <p>I have two possible ways here here:</p>
  
  <p><strong>1)</strong> Using .NET, loading it (as a web-request), parsing the result (which is an image I can save, but can't get a real address, as it's gathered at run-time, not linked to me) and saving the image (which would be done via .net, using C#).</p>
  
  <p><strong>2)</strong> Copying it to memory (maybe in a java script image var) and putting it in an &lt; img > tag. I've got the repeating routine to keep appending &lt; img > tags, so I just have to load the image to an &lt; img >.</p>
  
  <p>All of this having in mind that I DO have access to those images, I could just save them all manually, I just don't want to, I'd like to save them automatically, as they change frequently.</p>
  
  <p>If you have other ways for solving this, feel free to leave an answer, and I'll gladly try it out!</p>
  
  <p><strong>Note:</strong> done a quick search, but didn't find any similar questions, but I'm not entirely sure this isn't a dupe, because I may not know the exact terms of what I want. If it's a dupe, let me know, and I'll delete this question.</p>