Wassrã好ãã§å¥½ãã§ãããããªãã»Twitterãªãã¦äºåº¦ã¨è¦ãããªãï¼ ãããªWassrå³ç¿¼ã« /etc/hostsã« 127.0.0.1 twitter.com ã追å ããã 㧠require "socket" proxy = TCPServer.open(80) while true Thread.start(proxy.accept) do |twitter_client| TCPSocket.open("api.wassr.jp", 80) do |wassr| buff = "" while !(twitter_client.gets =~ /^(\n|\r\n)$/) buff << $_ end wassr.write buff.gsub(/Host: twitter.com/, "Host: api.wassr.jp") + "\r\n" twitter_clien
{{#tags}}- {{label}}
{{/tags}}