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

[EXTENSION] cURL & Hash


Post New Thread Reply   
 
Thread Tools Display Modes
exc4libur
Member
Join Date: Oct 2015
Old 11-01-2016 , 11:43   Re: [EXTENSION] cURL & Hash
Reply With Quote #191

Solved!

Best regards
Christian

Last edited by exc4libur; 11-10-2016 at 21:31. Reason: Wrong entry
exc4libur is offline
couldbepurplecouldbepink
Member
Join Date: Aug 2011
Old 01-10-2017 , 23:58   Re: [EXTENSION] cURL & Hash
Reply With Quote #192

How the hell do I install this on a windows server?
__________________
I'm feeling skinny Tony!
couldbepurplecouldbepink is offline
Peace-Maker
SourceMod Plugin Approver
Join Date: Aug 2008
Location: Germany
Old 01-12-2017 , 15:25   Re: [EXTENSION] cURL & Hash
Reply With Quote #193

The original download is down, but this is the windows binary that was included in that one.
Attached Files
File Type: dll curl.ext.dll (1.09 MB, 605 views)
__________________
Peace-Maker is offline
couldbepurplecouldbepink
Member
Join Date: Aug 2011
Old 01-12-2017 , 15:37   Re: [EXTENSION] cURL & Hash
Reply With Quote #194

Quote:
Originally Posted by Peace-Maker View Post
The original download is down, but this is the windows binary that was included in that one.
Thank you!
__________________
I'm feeling skinny Tony!
couldbepurplecouldbepink is offline
away000
Veteran Member
Join Date: Sep 2010
Old 02-10-2017 , 15:58   Re: [EXTENSION] cURL & Hash
Reply With Quote #195

Quote:
Originally Posted by Penetal View Post
I got the same crap when I tried some of them. I don't remember who it was that uploaded this (got it from somewhere in this thread), but it works for me when I get this error

Code:
 [SM] Unable to load extension "curl.ext": /path/to/csgo/addons/sourcemod/extensions/curl.ext.so: undefined symbol: _ZNSs9_M_mutateEjjj
Just download the extension and replace the one you currently have, hope it works for you too.
Thanks, this worked fine for me.
__________________
away000 is offline
Treek
Junior Member
Join Date: Feb 2017
Old 06-12-2017 , 13:52   Re: [EXTENSION] cURL & Hash
Reply With Quote #196

I can't send a post request. I have it set up so when my PHP code gets a post request, it will send my discord channel a message.
PHP Code:
if(isset($_POST['winner'])){
        
$winner $_POST['winner'];
        
$content = array(
        
"content" => "```$winner won```",
        );
        
$url "https://discordapp.com/api/webhooks/$web_hook_id/$web_hook_token";
        
$new_content json_encode($content);
        
$ch curl_init($url);
        
curl_setopt($chCURLOPT_POST1);
        
curl_setopt($chCURLOPT_POSTFIELDS$new_content);
        
curl_setopt($chCURLOPT_RETURNTRANSFERtrue);
        
$response curl_exec($ch);
        
curl_close($ch);
    } 
Now when I send the post request with
PHP Code:
public Action Event_RoundEnd(Event event, const char[] namebool dontBroadcast) {
    
int winner GetClientOfUserId(event.GetInt("Winner"));
    
int reason event.GetInt("Reason");
    
int message event.GetInt("Message");
    
char data[512]; 
    
Format(datasizeof(data), "winner=%d&reason=%d&message=%d"winnerreasonmessage);
    
Handle curl curl_easy_init();
    if(
curl != INVALID_HANDLE){
       
CURL_DEFAULT_OPT(curl);
       
curl_easy_setopt_string(curlCURLOPT_URL"<My website that I removed my URL from>");
       
curl_easy_setopt_string(curlCURLOPT_POSTFIELDSdata);
       
curl_easy_perform(curl);
       
PrintToServer("Post request sent");
       
PrintToServer(data);
        } else {
            
PrintToServer("Post request failed");
            
PrintToServer(data);
        }

On my server it will say "Post request sent" but my discord webhook did not send.
Treek is offline
Peace-Maker
SourceMod Plugin Approver
Join Date: Aug 2008
Location: Germany
Old 06-12-2017 , 18:24   Re: [EXTENSION] cURL & Hash
Reply With Quote #197

You could start by checking the return value of curl_easy_perform to see if the request was successful. Is your php script posting to the discord api correctly when you run it manually?

Remember to close the curl handle after the curl_easy_perform call!
__________________
Peace-Maker is offline
Weetabix
Member
Join Date: Feb 2017
Location: United Kingdom
Old 06-16-2017 , 13:45   Re: [EXTENSION] cURL & Hash
Reply With Quote #198

I get

PHP Code:
[13] <FAILEDfile "curl.ext.so": /home/test/serverfiles/csgo/addons/sourcemod/extensions/curl.ext.soundefined symbol_ZNSs9_M_mutateEjjj 
When trying to load the extention on linux, I tried all of the avaliable downloads.
Weetabix is offline
axiom123
Member
Join Date: May 2013
Location: Ukraine, Kiev
Old 06-23-2017 , 07:42   Re: [EXTENSION] cURL & Hash
Reply With Quote #199

How to send messages to telegram?
axiom123 is offline
Send a message via ICQ to axiom123 Send a message via Skype™ to axiom123
Cripix
Senior Member
Join Date: Sep 2016
Location: French, Bordeaux
Old 06-24-2017 , 11:24   Re: [EXTENSION] cURL & Hash
Reply With Quote #200

Quote:
Originally Posted by DiSonDS View Post
The same problem. Any fix?
https://forums.alliedmods.net/showpo...&postcount=101
__________________
My jailbreak Server :
Cripix is offline
Reply


Thread Tools
Display Modes

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 21:28.


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