Fixes

Fixed some of your bad design.
You mustn't recreate curl  handlefor every request, you should use one handle  every time, if your library is single threaded, if it is multithreaded you should make ptoto of curl handle and copy it for every thread.