1. This is not a SOCKS4-related forum. 2. The SOCKS4 documentation contains information about the SOCKS4 protocol. To assume that we are here to repeat everything the documentation says for your own benefit is lazy, rude and a sign of stupidity. Please leave and never come back. 3. Your SOCKS4 CONNECT packet in the second example is invalid.
Horstl, though I understand where you are coming from here, a proper understanding of the SOCKS4 protocol is required to understand why that particular "connection string" is an invalid connection string.