jahabdank Posted April 17, 2012 Report Share Posted April 17, 2012 Hey,I am trying to understand how to make Scrape and Announce requests to the trackers. I have read the following documentation:http://wiki.theory.org/BitTorrentSpecificationhttp://wiki.vuze.com/w/Scrapehttp://wiki.vuze.com/w/Announceand all looks fine except one thing:For a 20-byte hash of \x12\x34\x56\x78\x9a\xbc\xde\xf1\x23\x45\x67\x89\xab\xcd\xef\x12\x34\x56\x78\x9a,The right encoded form is %124Vx%9A%BC%DE%F1%23Eg%89%AB%CD%EF%124Vx%9AHow come the this part of the hash "\x12\x34\x56\x78" is translated to some strange %124Vx rather then simply to "%12%34%56%78". In the URI specification it explicitly says (http://www.faqs.org/rfcs/rfc1738.html) that the encoding is %nn with the n being the hex. How come these 4 bytes are translated to a %124Vx, which actually violates the %nn specification?Can you please tell me where can I find a full specification how to encode that, and best if you could tell me if there any libraries in C# which do that.Thank you in advance,Josef Habdank Link to comment Share on other sites More sharing options...
DreadWingKnight Posted April 17, 2012 Report Share Posted April 17, 2012 Because you're reading things wrong when trying to test the example.You're reading the 20-byte hash as if it were raw text and not the escaped text that it's actually displayed as. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.