in reply to How to get a package by telnet

By the pieces you've shown us, we can only guess. Post some more of the code if you want to have anything resembling a meaningful reply.

Makeshifts last the longest.