title: cURL & C++ (libcurl?)
body: <p>I'm sort of confused to go about taking a simple shell script I made and compile it into an exe in C++.
  The problem I'm running into now and have researched to no avail is how to get cURL to work in conjunction with C++.
  Essentially, I want to have a user input a url, store it in a string and then use it in the following line to detect if there is a url redirection.</p>
  
  <pre><code>var url,
  cout&lt;&lt;"Please enter a URL to detect if there is a redirect."&lt;&lt;endll
  cin&lt;&lt;URL;
  curl -b cookies -w "%{url_effective}\n" -L -s -S -o /dev/null URL      // &lt;-   http://website.com/page/Redirected_PATH/
  </code></pre>
  
  <p>Is there any way I can import a header file to support the previous cURL flags I was using previously in the terminal?</p>
  
  <p>Thank you for any insight.</p>