Fixes

Fixed some of your bad design.
You mustn't every time recreate curl  handle, 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.