samyghan Posted August 8, 2009 Report Share Posted August 8, 2009 [sOLUTION ON THE END OF THE POST]Hello,I am making a automatic php script witch seed a file with Get Right torrent specifications. But i have a problem while downloading the file from utorrent. I dont know where is the problem, maybe in the HTTP headers.I am using this PHP script for the upload : http://www.asp-php.net/ressources/bouts_de_code.aspx?id=700I paste you two wireshark captures, the first is the direct transfert (linking directly to the file) and the other using the php script./========== Direct transfert ==========/GET /seed/Paintball.avi HTTP/1.1Host: mywebsite.netUser-Agent: BTWebClient/1830Connection: keep-aliveRange: bytes=19922944-20971519GET /seed/Paintball.avi HTTP/1.1Host: mywebsite.netUser-Agent: BTWebClient/1830Connection: keep-aliveRange: bytes=18874368-19922943HTTP/1.1 206 Partial ContentDate: Sat, 08 Aug 2009 10:06:23 GMTServer: Apache/2.2.3 (Debian) PHP/5.2.0-8+etch15Last-Modified: Sat, 08 Aug 2009 09:59:20 GMTETag: "1fc8ceff-19af598-4709e68120e00"Accept-Ranges: bytesContent-Length: 1048576Content-Range: bytes 19922944-20971519/26932632Keep-Alive: timeout=15, max=100Connection: Keep-AliveContent-Type: video/x-msvideo[ DATAS ]/========== Transfert using PHP ==========/GET /seed/07aa3ba7d90c0038c782f1532dca98cb/f56ac0f172794ad16d8574f5913d3714/Paintball.avi HTTP/1.1Host: mywebsite.netUser-Agent: BTWebClient/1830Connection: keep-aliveRange: bytes=22020096-23068671GET /seed/07aa3ba7d90c0038c782f1532dca98cb/f56ac0f172794ad16d8574f5913d3714/Paintball.avi HTTP/1.1Host: mywebsite.netUser-Agent: BTWebClient/1830Connection: keep-aliveRange: bytes=5242880-6291455HTTP/1.1 206 Partial ContentDate: Sat, 08 Aug 2009 09:45:48 GMTServer: Apache/2.2.3 (Debian) PHP/5.2.0-8+etch15X-Powered-By: PHP/5.2.0-8+etch15Pragma: publicExpires: 0Cache-Control: publicContent-Description: File TransferContent-Disposition: attachment; filename="Paintball.avi";Content-Transfer-Encoding: binaryContent-Range: 22020096-23068671/26932632Content-Length: 1048576Keep-Alive: timeout=15, max=100Connection: Keep-AliveContent-Type: video/x-msvideo[ DATAS ]I would like to have more informations about debugging to make my script but i dont have many informations in the "Logger" tab in utorrent, just have this :"Banned 11.11.11.11:8" (11.11.11.11 is my server's ip).If someone can help me to understand what happened ?PS : the script looks to be good (it work on download accelerators using HTTP RANGE).Thanks you for your attention.[sOLUTION, EDIT]According to the Webseed BEP (http://www.bittorrent.org/beps/bep_0019.html) torrent client BAN if the piece of the file dont correspond to the hash in the .torrent but also if there are errors on HTTP headers (like for me).So, the "Content-Range" Header response is ambiguous, we can have "Content-Range: 0-17/18" witch work with several softwares but the correct syntax is "Content-Range: bytes 0-17/18" Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.