This forum is in read-only mode. The new forum is live at and registrations are open!

How Can I Use TCP Block On Configs

  • What title says, I just want a simple expanation not an detailed guide

  • Admin

    You can use it to emulate any protocol on top of a TCP stack, like HTTP, IMAP, RTCP, SIP, FTP, SSH, WS...
    First connect to the socket (host, port) and if the server sends a message upon connection check Wait for hello.
    Then use the send command to send the request, put \r\n at the end otherwise the server might hang waiting for the end of the message.
    Finally disconnect.
    In order to check how to write requests for different protocols, refer to their documentation and examples.
    E.g. a raw HTTP request would go like this

    GET /index.html HTTP/1.1

    which you need to input as
    GET /index.html HTTP/1.1\r\nHost:\r\n\r\n
    in the send command of the TCP block in order for it to work.

  • Admin

    Of course if you want the secure versions (HTTPS, FTPS, WSS etc.) you need to check the SSL checkbox.

  • thanks a lot @Ruri

Log in to reply