POST /process.php HTTP/1.0
Host: cp.gaming-service.com
User-Agent: HTTPTool/1.0
Content-Type: application/x-www-form-urlencoded
Content-Length: 32
task=login&return=&
[email protected]&password=yourpassword
You must change that 32 to the lenght of the last string (task=*)
I'm noobb :oops::oops: That doesn't work :( I checked everything several times, I thing i haven't got errors. What is then wrong?
socket5 = socket_open("cp.gaming-service.com", 80, SOCKET_TCP, error)
formatex(request, charsmax(request), "POST /process.php HTTP/1.0^n")
formatex(request2, charsmax(request2), "%sHost: cp.gaming-service.com^n",request)
formatex(request, charsmax(request), "%sContent-Type: application/x-www-form-urlencoded^n",request2)
formatex(request2, charsmax(request2), "%sContent-Length: 58^n^n", request)
formatex(request, charsmax(request), "%stask=login&return=&
[email protected]&password=password^n^n", request2)
socket_send(socket5, request, charsmax(request))
server_print("%s",request)
//go to cp.gaming-service.com/servermanage.php?task=restart&serverid=24
formatex(request, charsmax(request), "POST /servermanage.php HTTP/1.0^n")
formatex(request2, charsmax(request2), "%sHost: cp.gaming-service.com^n",request)
formatex(request, charsmax(request), "%sContent-Type: application/x-www-form-urlencoded^n",request2)
formatex(request2, charsmax(request2), "%sContent-Length: 30^n^n", request)
formatex(request, charsmax(request), "%stask=restart&serverid=24^n^n", request2)
server_print("%s",request)
socket_send(socket5, request, charsmax(request2))