Raised This Month: $114 Target: $400
 28% 

HTTP:X


Post New Thread Reply   
 
Thread Tools Display Modes
Black Rose
Veteran Member
Join Date: Feb 2011
Location: Upplands Väsby, Sweden
Old 11-25-2019 , 13:44   Re: HTTP:X
Reply With Quote #31

You can disable the check, I don't see a reason for updating it in the near future.
__________________
Black Rose is offline
karaulov
Senior Member
Join Date: Jul 2018
Old 12-03-2019 , 04:24   Re: HTTP:X
Reply With Quote #32

"D:\CounterStrike\Server\cs_16_server\cstrike \addons\amxmodx\scripting\httpx.sma(706) : warning 233: symbol "socket_change" is marked as deprecated: Use socket_is_readable() instead"
how to fix this fatal error???
karaulov is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 12-04-2019 , 05:35   Re: HTTP:X
Reply With Quote #33

Quote:
Originally Posted by karaulov View Post
"D:\CounterStrike\Server\cs_16_server\cstrike \addons\amxmodx\scripting\httpx.sma(706) : warning 233: symbol "socket_change" is marked as deprecated: Use socket_is_readable() instead"
how to fix this fatal error???
>warning
>fatal error

Pick one.
__________________
HamletEagle is offline
Black Rose
Veteran Member
Join Date: Feb 2011
Location: Upplands Väsby, Sweden
Old 12-15-2019 , 10:33   Re: HTTP:X
Reply With Quote #34

Quote:
Originally Posted by karaulov View Post
"D:\CounterStrike\Server\cs_16_server\cstrike \addons\amxmodx\scripting\httpx.sma(706) : warning 233: symbol "socket_change" is marked as deprecated: Use socket_is_readable() instead"
how to fix this fatal error???
I really don't care about 1.10 for 2 reasons.

1. Not a stable release. If you use this release you should be able to handle these warnings/errors yourself. If you are unable to do so, use the stable release.

2. For the idiotic choice of naming it 1.10.
__________________
Black Rose is offline
RaZ_HU
Senior Member
Join Date: May 2015
Location: Hungary
Old 01-23-2020 , 07:59   Re: HTTP:X
Reply With Quote #35

I get a new error that was never present before:
[httpx.amxx] [HTTP:X] Socket error: Couldn't connect to host. (proxycheck.io:80)

There was no change in the code neither in the server (same plugins for 1+ year).
Any ideas?


Website is up and working when opening manually, plugin also works on local windows server, but not on linux dedicated.

Last edited by RaZ_HU; 01-23-2020 at 08:00.
RaZ_HU is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 01-23-2020 , 11:13   Re: HTTP:X
Reply With Quote #36

Do you have any iptables/firewall rules that could block the connection?
__________________
HamletEagle is offline
RaZ_HU
Senior Member
Join Date: May 2015
Location: Hungary
Old 01-25-2020 , 05:35   Re: HTTP:X
Reply With Quote #37

Not that I am aware of.
Going to ask the host if the did add anything new.

I have tried with other website ( https://ip.teoh.io ) but got the same results.

Last edited by RaZ_HU; 01-25-2020 at 05:36.
RaZ_HU is offline
lexzor
Senior Member
Join Date: Nov 2020
Old 05-10-2021 , 13:34   Re: HTTP:X
Reply With Quote #38

the plugin is updating only when i upload it. i did a debug but didn t even read the version of plugin
PHP Code:
#include <amxmodx>

enum {
    
REQUEST_GET,
    
REQUEST_POST
}

native HTTPX_Download(const URL[], const Filename[] = "", const CompleteHandler[] = "", const ProgressHandler[] = ""Port 0RequestType REQUEST_GET, const Username[] = "", const Password[] = "", ... /* For possible future use */)
native HTTPX_GetData(data[], len)

#define AUTOUPDATE_FILE_ID "76775"
#define AUTOUPDATE_HOW_OFTEN 0 // Download immediately

new const VersionNum =      102
new gHTTPX true;

public 
plugin_init() {

    new 
temp[5];
    
num_to_str(VersionNumtemp[1], charsmax(temp));
    
temp[0] = temp[1];
    
temp[1] = '.';
    
    
register_plugin("HTTP:X Autoupdate example 2"temp"[ --{[email protected] ]");

    if ( 
gHTTPX )
        
HTTPX_Download("https://lexzor.warface.ro/AutoUpdate/Test/version.txt""dada.amxx""Complete"""80REQUEST_GET""""0, -1);
}

public 
Complete(DownloadIDError) {
    if ( 
Error )
    return;

    new 
temp[16];
    
HTTPX_GetData(tempcharsmax(temp));
    
server_print("%s"temp)
    if ( 
str_to_num(temp) > VersionNum )
    
UpdatePlugin();
}

UpdatePlugin() {
    new 
hHTTPX is_plugin_loaded("HTTP:X");
    
server_print("plugin loaded")
    if ( 
hHTTPX )
    {
        new 
filename[64];
        
get_plugin(hHTTPXfilenamecharsmax(filename));
        
server_print("%s"filename)
        if ( 
callfunc_begin("AutoupdatePlugin"filename) == ) {
            
server_print("auto update start")
            
callfunc_push_int(get_plugin(-1));
            
callfunc_push_str(AUTOUPDATE_FILE_IDfalse);
            
callfunc_push_int(AUTOUPDATE_HOW_OFTEN);
            
callfunc_end();
        }
    }
}

public 
plugin_natives()
set_native_filter("forwardNativeFilter");

public 
forwardNativeFilter(const Native[], IndexTrap) {
    
    if ( 
Trap )
    return 
PLUGIN_CONTINUE;

    if ( 
equal(Native"HTTPX_Download") || equal(Native"HTTPX_GetData") ) {
        
gHTTPX false;
        return 
PLUGIN_HANDLED;
    }

    return 
PLUGIN_CONTINUE;


Last edited by lexzor; 05-10-2021 at 13:35.
lexzor is offline
Th3822
Member
Join Date: Jan 2013
Location: Venezuela
Old 05-11-2021 , 08:16   Re: HTTP:X
Reply With Quote #39

Quote:
Originally Posted by lexzor View Post
the plugin is updating only when i upload it. i did a debug but didn t even read the version of plugin
Quote:
Originally Posted by lexzor View Post
PHP Code:
        HTTPX_Download("https://lexzor.warface.ro/AutoUpdate/Test/version.txt""dada.amxx""Complete"""80REQUEST_GET""""0, -1); 
This plugin doesn't support HTTPS connections, if you really need HTTPS, check the cURL module.
Th3822 is offline
Old 05-12-2021, 18:13
Black Rose
This message has been deleted by Black Rose. Reason: Uneccessary
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 12:30.


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