You can send binvars with sockwrite. So write the urlencoded text to a file and bread it, or create a bvar dynamically. Then: sockwrite -n $sockname &bvar