编码:
self.response = Net::HTTP.get_response(URI.parse(url.strip))
网址:
http://www.apmebf.com/g7116vpyxF/pw0/EDDEGMFH/EGJFDKJ/D/D/D?h=q<<lxxt%3A%2F%2F000.htfspz0.rix%3AC4%2Fgpmgo-57A64BA-54457D68<<K<<
给出这个错误:
bad URI(is not URI?)
我尝试使用URI.encode
,但随后抛出此错误:
undefined method `request_uri' for #<URI::Generic:0x007fc7ae31ecf0>
这让我发疯——有什么想法吗?