HTTP/1.1 400 Bad Request

Scripting questions, discussions, etc
2 posts Page 1 of 1
Hodo33
Posts: 94
Joined: Fri Dec 29, 2017 4:34 pm
by Hodo33 » Tue Nov 26, 2019 4:25 pm
This has worked for me in the past and copy/paste to a new app now it does not work. gameone.php exists on the server, just simple code to write to a text file

%data = "code="@$TCPCode @ "&sname="@%sname @ "&wmis="@%mission;

%httpCmd="POST /game/gameone.php HTTP/1.1\nHost: www.myweb.com:80\nUser-Agent: Torque/1.0 \nAccept: */*\nContent-Length: "@ strlen(%data) @"\nContent-Type: application/x-www-form-urlencoded; charset=UTF-8\n\n" @ %data;

%this.send(%httpCmd @ " \r\n");


function TCPObj::onLine(%this, %line)
{
echo("TCP LINE "@%line); // returns HTTP/1.1 400 Bad Request
}

Anyone know if things have changed since 1.5.2 ?
Hodo33
Posts: 94
Joined: Fri Dec 29, 2017 4:34 pm
by Hodo33 » Wed Dec 04, 2019 5:37 pm
Bump ... any ideas on this ?
I have a good system for messaging game activity if I can get this working and willing to share.....
2 posts Page 1 of 1

Who is online

Users browsing this forum: No registered users and 0 guests