Closed DimShadoWWW closed 9 years ago
What a noble use case :-)
Do I understand you correctly that Mechanize passes the port as a String?
Unfortunately, SOCKS5 expects nothing else than a 16 bit number. Should we look into /etc/services? Can Ruby do that for us already?
Ruby (libc, in fact) already can do this:
1.9.3-p448 :003 > Socket.getservbyname 'http'
=> 80
1.9.3-p448 :004 > Socket.getservbyname '8118'
=> 8118
I'm trying to use socksify-ruby for an script I made to download mangas from submanga.com using Mechanize , but when I tried to execute this:
socksify_ruby 127.0.0.1 1080 download.rb http://submanga.com/Code_Breaker/completa 41..50
It aborts with this error:
I enabled the @debug variable, and added this line before the line 214:
and this returned:
anything to test??