title: Persistent connection with libcurl
body: <p>The following is from the libcurl homepage: </p>
  
  <blockquote>
    <p>curl and libcurl have excellent support for persistent connections when transferring several files from the same server. Curl will attempt to reuse connections for all URLs specified on the same command line/config file, and libcurl will reuse connections for all transfers that are made using the same libcurl handle.</p>
  </blockquote>
  
  <p>Just to be sure, if I create a CURL handle (curl_easy_init()) and set it's headers, make a HTTP-request, then change the headers and make another request, libcurl will still attempt to use a persistent connection even though the headers have changed?</p>
  
  <p>The libcurl homepage also says</p>
  
  <blockquote>
    <p>If you use the easy interface, and you call curl_easy_cleanup, all the possibly open connections held by libcurl will be closed and forgotten.</p>
  </blockquote>
  
  <p>So as long as I dont call curl_easy_cleanup, CURL will attempt to re-use the same connection even though the requests are made with different headers?</p>
  
  <p>Thank you.</p>