title: libcurl C++ adding http get parameters
body: <p>I am new to C++ development and I have been trying to work with libcurl.</p>
  
  <p>I basically am looking for a function that lets me enter in parameters similar to the -d flag in curl.</p>
  
  <p>for example if I were to just send a url request in curl directly or the web browser the url would look like '<a href="https://www.example.com/hello.json?whoisawesome=me&amp;whosucks=yomomma" rel="nofollow noreferrer">https://www.example.com/hello.json?whoisawesome=me&amp;whosucks=yomomma</a>'</p>
  
  <p>then how could i feed it to libcurl not as just one url as suggested in the accepted answer of this question:
  <a href="https://stackoverflow.com/questions/19582838/add-paramethers-to-libcurl-get-in-c/19582883#19582883">Add paramethers to libcurl GET in c++</a></p>
  
  <p>but as parameters I could add? I am hoping the call would automatically 'clean up' the text (e.g., to support ampersands(&amp;) and equal signs (=) in the string. I'm sure there's other cases but that's the only one i can think of for now). Of course I could make a function that cleans up the string myself but I'd like to know if there's one built into libcurl.</p>
  
  <p>I checked the api doc but I guuss I was not familiar enough to successfully navigate it to find what I needed.</p>
  
  <p>Thanks for your time</p>