Fix using wrong types with the curl api

Merged Jørgen Lind requested to merge feature/jorgen.lind/CurlApiTypes into master

Merge request reports