For my company, I'm doing a torrent tracker to share big files.
It's the beginning, the client Transmission on linux send a query like this to the tracker :
GET /?info_hash=%85%ad%ec%a8%22c%f2%cc%fb%b3~%f1%e8q%cf%fc%7bm%cf%f8&peer_id=-TR2920-tyz0o3hmcrwh&port=4242&uploaded=0&downloaded=0&left=565698&numwant=80&key=2e3e92a2&compact=1&supportcrypto=1&event=started HTTP/1.1
Host: ip_client:posrt_client
User-Agent: Transmission/2.92
Accept: */*
Accept-Encoding: gzip;q=1.0, deflate, identity
I have to send to the client a some informations. In them I must give the list of peers (leecher and sender). How to create a list with the protocol http?
Actually I did it, but it's not working...
GET /?interval=1&complete=0&incomplete=0&peers=peer_id0=-TR2920-vjf4r2l0l91u/ip0=156.90.27.15/port0=4202peer_id1=-TR2920-52wf0pdmossm/ip1=100.80.28.190/port1=4267&peer_id2=-TR2920-tyz0o3hmcrwh/ip2=170.100.2.185/port2=4278 HTTP/1.1
HOST: ip_tracker:port_tracker
User-Agent: my_tracker
Accept: */*
Accept-Encoding: gzip;q=1.0, deflate, identity
I don't understand how to create this answer...
Can you help me please?
Aucun commentaire:
Enregistrer un commentaire