Raised This Month: $51 Target: $400
 12% 

CURL Help


Post New Thread Reply   
 
Thread Tools Display Modes
lexzor
Veteran Member
Join Date: Nov 2020
Old 05-13-2021 , 20:41   Re: CURL Help
Reply With Quote #11

My output:
Code:
curl complete
Upgrade not needed [Is 0 > 997 ?]
lexzor is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 05-13-2021 , 20:47   Re: CURL Help
Reply With Quote #12

It's working code as it works for me, it looks like you are missing the SSL cert piece.

PHP Code:
new g_szCurlSSLCert64 ];


iLen get_modnameg_szCurlSSLCert charsmaxg_szCurlSSLCert ) );
g_szCurlSSLCertiLen++ ] = '/';
copyg_szCurlSSLCert[ ( iLen += get_datadirg_szCurlSSLCertiLen ] , charsmaxg_szCurlSSLCert ) - iLen ) ) ] , charsmaxg_szCurlSSLCert ) - iLen "/curl_cert/cacert.pem" );

if ( !
file_existsg_szCurlSSLCert true ) )
{
    
set_fail_state"curl SSL certificate not found.^nPlace here: %s^nVisit: https://curl.se/docs/caextract.html" g_szCurlSSLCert );
    return;
}


//Then add
curl_easy_setoptcURLHandle CURLOPT_SSL_VERIFYPEER );
curl_easy_setoptcURLHandle CURLOPT_CAINFO g_szCurlSSLCert ); 
__________________

Last edited by Bugsy; 05-13-2021 at 20:49.
Bugsy is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 12:07.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode