DecipherCode Posted June 11, 2012 Report Share Posted June 11, 2012 I need help understanding this as when I try it I get invalid request.http://wiki.theory.org/BitTorrent_Tracker_Protocol#Basic_Tracker_Announce_RequestI know how to encode the SHA-1 info hash. I'm just having trouble understanding the parameters and different type of requests. I would really appreciate some examples.EncodedInfoHash: %ce%1f%c5%0b%ff%b0%99b%be%8f%3cIG%8c%be%b6%5e%2a%fe%0fTrackerResponse: d8:completei3628e10:incompletei714e8:intervali1686e12:min intervali843e5:peers0:eMy Request was: www.h33t.com/announce?info_hash=%ce%1f%c5%0b%ff%b0%99b%be%8f%3cIG%8c%be%b6%5e%2a%fe%0f&peer_id=ABCDEFGHIJKLMNOPQRST&ip=255.255.255.255&port=6881&downloaded=1234&left=98765&event=stoppedOn Port: 3310Thanks for any help in advance. Link to comment Share on other sites More sharing options...
mcaspi Posted June 11, 2012 Report Share Posted June 11, 2012 I guess the problem here: %99b...%3cIG Link to comment Share on other sites More sharing options...
DecipherCode Posted June 11, 2012 Author Report Share Posted June 11, 2012 I guess the problem here: %99b...%3cIGYour saying theres something wrong with my encoding function? How?I need help understanding what to specify for the different params. Link to comment Share on other sites More sharing options...
mcaspi Posted June 11, 2012 Report Share Posted June 11, 2012 "Query parameters must be encoded according to the rules for HTML form submissions through HTTP GET: 'reserved character' bytes are encoded in hexadecimal as %HH"The 2 above are the only ones that aren't in the format of %HH. Link to comment Share on other sites More sharing options...
DecipherCode Posted June 11, 2012 Author Report Share Posted June 11, 2012 "Query parameters must be encoded according to the rules for HTML form submissions through HTTP GET: 'reserved character' bytes are encoded in hexadecimal as %HH"The 2 above are the only ones that aren't in the format of %HH.The entire hash thats in hex isn't required to be escaped.Above is a response that I did recieve when requesting information about the encoded hash mention. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.