AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   New Plugin Submissions (https://forums.alliedmods.net/forumdisplay.php?f=26)
-   -   HTTP:X (https://forums.alliedmods.net/showthread.php?t=282949)

Black Rose 11-25-2019 13:44

Re: HTTP:X
 
You can disable the check, I don't see a reason for updating it in the near future.

karaulov 12-03-2019 04:24

Re: HTTP:X
 
"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???

HamletEagle 12-04-2019 05:35

Re: HTTP:X
 
Quote:

Originally Posted by karaulov (Post 2675485)
"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.

Black Rose 12-15-2019 10:33

Re: HTTP:X
 
Quote:

Originally Posted by karaulov (Post 2675485)
"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.

RaZ_HU 01-23-2020 07:59

Re: HTTP:X
 
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? :D


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

HamletEagle 01-23-2020 11:13

Re: HTTP:X
 
Do you have any iptables/firewall rules that could block the connection?

RaZ_HU 01-25-2020 05:35

Re: HTTP:X
 
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.

lexzor 05-10-2021 13:34

Re: HTTP:X
 
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"[ --{-@ ]");

    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;



Th3822 05-11-2021 08:16

Re: HTTP:X
 
Quote:

Originally Posted by lexzor (Post 2746463)
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 (Post 2746463)
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.

loki_himself 10-31-2022 16:48

Re: HTTP:X
 
...


All times are GMT -4. The time now is 20:05.

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