Do curl_init above any curl_setopt, and take it out of that if block since it applies to all types.
Do curl_init above any curl_setopt, and take it out of that if block since it applies to all types.

ch1c4um/pfsense,phil-davis/pfsense,jxmx/pfsense,ch1c4um/pfsense,brunostein/pfsense,pfsense/pfsense,NOYB/pfsense,pfsense/pfsense,ptorsten/pfsense,NewEraCracker/pfsense,dennypage/pfsense,ptorsten/pfsense,phil-davis/pfsense,phil-davis/pfsense,ch1c4um/pfsense,pfsense/pfsense,pfsense/pfsense,brunostein/pfsense,dennypage/pfsense,NewEraCracker/pfsense,NOYB/pfsense,BlackstarGroup/pfsense,BlackstarGroup/pfsense,ch1c4um/pfsense,jxmx/pfsense,NOYB/pfsense,phil-davis/pfsense,BlackstarGroup/pfsense,NewEraCracker/pfsense,BlackstarGroup/pfsense,brunostein/pfsense,jxmx/pfsense,NewEraCracker/pfsense,dennypage/pfsense,ptorsten/pfsense,dennypage/pfsense