[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [tor-talk] simple example in ruby



> On Mon, Aug 6, 2012 at 1:44 PM,  <grubymis@xxxxxxxxxxx> wrote:
>> Please send me a simple example in Ruby.
>> How I can read from onion adress.
>>
>> connect to ypr7i2smxhcjalla.onion
>> socker.write("string")
>> and get ansver.
>
> behind transparent Tor proxy (see FAQ :)
>
> s = TCPSocket.new 'ypr7i2smxhcjalla.onion', 80
> s.puts "string"
> while line = s.gets
>   puts line         # this is your answer(s)
> end
> s.close

this not working.

:in `initialize': getaddrinfo: Name or service not known (SocketError)
	from ./client.rb:18:in `open'


> if you want to speak to Tor SOCKS port directly, and use name
> resolution correctly, that's a longer answer... and this is not the
> right forum to ask.

Yes I need SOCKS directly.


_______________________________________________
tor-talk mailing list
tor-talk@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-talk