title: How do you use libcurl to get the output of a website?
body: <p>I've been recently writing a program that I will want to request and receive information from URLs. For example:
      <a href="http://www.example.com/getRecords.asp?name=Jack&amp;surname=Jackson" rel="nofollow">http://www.example.com/getRecords.asp?name=Jack&amp;surname=Jackson</a></p>
  
  <p>If that website responded by printing
      exists=true or exists=false</p>
  
  <p>It would display on the terminal
      The user exists! or The user does not exist!</p>
  
  <p>Also, it would be good if the person using the program could type in the variables themselves, e.g
      Name to check: Chuck Surname to check: Norris
      <a href="http://www.example.com/getRecords.asp?name=Chuck&amp;surname=Norris" rel="nofollow">http://www.example.com/getRecords.asp?name=Chuck&amp;surname=Norris</a></p>
  
  <p>But there's another thing, if for example the test returns true, the website also says
      exists=true&amp;age=30
  It would be good to be able to print this other variable on the screen or even save it to a file.</p>
  
  <p>If you can help please answer down below, or send me a link to an <strong>understandable</strong> tutorial on how to use libcurl. Thanks.</p>
  
  <p>EDIT: Thank you for your answers! I have also figured out the variable part on my own.</p>