• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Simulating Tibia login in post request

elkingahmed

New Member
Joined
May 31, 2012
Messages
116
Reaction score
2
is it possible to send tibia login request in HTTP post

like this
PHP:
POST
Content-Type: application/json
Content-Disposition: form-data; name="metadata"
Content-Length: 86
Connection: Keep-Alive
Accept-Encoding: gzip, deflate
Accept-Language: en-US,*
User-Agent: Mozilla/5.0
Host: myot.com:7171

{"accountname":"myaccount","password":"mypassword","type":"login"}

and then get the reply back from server as same as the original client

PHP:
{"errorCode":3,"errorMessage":"Failed to get account. Try again!"}
 
If you make your TFS receive that POST then ofcourse its possible, with default tfs no.
 
No, it's not possible because OTServ/TFS does not understand HTTP Requests.

It is, however, possible, in client 11+ where the login server is written in PHP. Then the web server would understand the request.

You can see here how the server sends a response to the client in JSON format:
 
Just for curiosity, there is a way to prepare a package for tibia protocol and send by hand? (something like postman for custom packages)
 
Back
Top