title: Curl or Ajax to display only captcha?
body: <p>I'm trying to make a php script, which would allow me to auto submit a form to a page.
  Something like that can be achieved pretty easy with Curl.</p>
  
  <p>But now I'm facing a challenge.
  I want to save me some time, so I thought I could make a php script, that would only show me the CAPTCHA. I would only have to write in the CAPTCHA and the script would auto submit it together with all the other form elements.</p>
  
  <p>I actually have no idea where to start. I thought about using Curl, but I don't know if it's possible to use the same resource across different pages. After all, I would have to log in, get the CAPTCHA image and display it (that would be the first part). After I input the CAPTCHA I would have to submit the form (the second part).</p>
  
  <p>Would JavaScript be better suited for such a project? And if so, where can I find an explanation on how to use JavaScript to achieve Curl like functionality? After all, that wouldn't be just an easy AJAX call, I would need to keep the Session open, else the CAPTCHA wouldn't be the same anymore.</p>
  
  <p>I searched everywhere in the hopes of finding something, but I didn't find anything.</p>