[Helpe] HTTP_ERROR_MALFORMED_RESPONSE -
lucas_mdr1235 - 03.02.2014
PHP код:
forward AntiFurtoBloqueioGM(index, response_code, data[]);
#define PAG_HOSPED "antifurtodogamemode.playvirtualreality.esy.es/CodigoInternoDoGameMode.txt"
#define CODIGO "Triplo_xXx"
//OnGameModeInit()
HTTP(0, HTTP_GET, PAG_HOSPED, "", "AntiFurtoBloqueioGM");
public AntiFurtoBloqueioGM(index, response_code, data[])
{
new Respostas[24];
if(response_code == 200)
{
if(strcmp(data, CODIGO))
{
print("Cуdigo Interno do gamemode Incorreto ! ! !");
printf("Resposta do Servidor: %s ! ! !",data);
SendRconCommand("exit");
}
else
{
print("Cуdigo Interno do gamemode correto ! ! !");
printf("Resposta do Servidor: %s ! ! !",data);
}
return 1;
}
else if(response_code == 1)
{
Respostas = "Conexгo Ruim";
}
else if(response_code == 2)
{
Respostas = "Nгo conectado";
}
else if(response_code == 3)
{
Respostas = "Nгo й possнvel conectar";
}
else if(response_code == 4)
{
Respostas = "Nгo й possнvel gravar";
}
else if(response_code == 5)
{
Respostas = "Conteъdo muito grande";
}
else if(response_code == 6)
{
Respostas = "Resposta deformada";
}
else if(response_code == 403)
{
Respostas = "Cуdigo Proibido";
}
else if(response_code == 404)
{
Respostas = "Pбgina nгo encontrada";
}
else if(response_code == 500)
{
Respostas = "Erro de servidor";
}
else
{
Respostas = "Resposta desconhecida";
}
printf("Cуdigo de resposta %d: %s ! ! !",response_code,Respostas);
printf("Resposta do Servidor: %s ! ! !",data);
print("GameMode Sem permissгo para uso ! ! !");
SendRconCommand("exit");
return 1;
}
response_code == 6 ? what ?
antifurtodogamemode.playvirtualreality.esy.es/CodigoInternoDoGameMode.txt
what's wrong ?
Re: [Helpe] HTTP_ERROR_MALFORMED_RESPONSE -
Borg - 04.02.2014
I've tryed
the online interpreter and it works fine for me.
Check proxy settings on your server.
Re: [Helpe] HTTP_ERROR_MALFORMED_RESPONSE -
lucas_mdr1235 - 04.02.2014
Quote:
Originally Posted by Borg
|
could be more specific on how I do that? check the proxy settings of my server?
residential PC!
Re: [Helpe] HTTP_ERROR_MALFORMED_RESPONSE -
Borg - 04.02.2014
I cannot exactly say what is going on, but I think something can change data that the server receive. Did you try different URLs? Did you try to access received data[]?
Re: [Helpe] HTTP_ERROR_MALFORMED_RESPONSE -
lucas_mdr1235 - 04.02.2014
@EDIT forgot to translate English pro
but used different URL's! Does not receive any data (not print anything)! But differs URL with only 1 character he's back but with various data and telling the gamemode Incorrect Internal Code.
Re: [Helpe] HTTP_ERROR_MALFORMED_RESPONSE -
Borg - 04.02.2014
The script works fine on my PC too. This is not script-related error. Try to check your internet connection settings, firewall, proxy and so on. Try different files and different URLs.
Re: [Helpe] HTTP_ERROR_MALFORMED_RESPONSE -
lucas_mdr1235 - 04.02.2014
It was the anti virus that was blocking, I disabled web protection al Run, vlw al grateful for the help you friend ! ! !
Thank you for your help ! ! !
+ rep to you ! ! !