[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

not working Your idea.
please check before reply.


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


SOCKS is better but I don't know what use it

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