<div dir="ltr">Hi again everyone! It's Eli ...<div><br></div><div>So thanks to Teor and Nick's help, my python client (tor OP) is finally able to successfully establish a three-hop circuit with any TOR relays in the whole public network! </div><div><br></div><div>Now It's on to the Data Cells...</div><div>As of writing this, I can send and receive the proper RELAY_BEGIN and RELAY_CONNECTED to and from my exit node, but I'm not quite sure what to do next...</div><div><br></div><div>Do I just start sending RELAY_DATA cells (where the "data" of the cell is literally the encoded HTTP requests)?</div><div><br></div><div>I've tried connecting to '<a href="http://www.facebook.com:443">www.facebook.com:443</a>'  with the RELAY_BEGIN cells as a test (I do get a Relay Connected Cell so at least I know that part works).</div><div><br></div><div>After getting back the RELAY_CONNECTED cell, I send a RELAY_DATA cell with the data of the cell being the following 'utf-8' encoded string:</div><div><b> #######this is how i wrote the literal in python#### <br></b></div><div><b>'GET / HTTP/1.1\r\nHost: <a href="http://www.facebook.com">www.facebook.com</a>\r\nUser-Agent: python-requests/2.23.0\r\nAccept-Encoding: gzip, deflate\r\nAccept: */*\r\nConnection: keep-alive\r\n\r\n\r\n'.encode() </b></div><div><br></div><div>What I get back is a short couple of bytes:</div><div><br></div><div><b>\x15\x03\x03\x00\x02\x022<br></b></div><div><br></div><div>I had no idea what this meant but after digging around a bit I found that this seems to be some part of the TLS handshake that is used in HTTPS.</div><div><br></div><div>So now two questions arise:</div><div><br></div><div>1. Is this a good TLS response? What does it mean exactly? </div><div><br></div><div>2. Generally speaking, is this how the RELAY_DATA cells are supposed to be sent and received? </div><div>Just to clarify it would be great if I could get an exact example of how the stream of data should look. For example, if someone could maybe break down the steps of how a basic HTTP GET request would work through a TOR circuit (starting from sending a RELAY_BEGIN cell) that would help me tremendously.  </div><div><br></div><div>Thanks again to everyone who've helped me so far, and thanks in advance to anyone with an answer to any of my questions!</div><div><br></div><div>Regards,</div><div>Eli  </div><div><br></div></div>