Sha256: 547e6e9940bdd45cc5d63a91143767d2b00f9409007cddbe231efdaccb24ee64
Contents?: true
Size: 559 Bytes
Versions: 1
Compression:
Stored size: 559 Bytes
Contents
require 'typhoeus' module Iconoclasm module Downloader @@user_agent = 'Mozilla/4.0 (compatible; MSIE 5.5; Windows NT)' def self.user_agent=(agent) @@user_agent = agent end def self.user_agent @@user_agent end def user_agent @@user_agent end def get(url) Typhoeus::Request.get(url, :user_agent => user_agent, :follow_location => true, :timeout => 1000) end def head(url) Typhoeus::Request.head(url, :user_agent => user_agent, :timeout => 1000) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
iconoclasm-1.0.6 | lib/iconoclasm/downloader.rb |