Sha256: aa0e14d542f492a0d56c13b3ac4e4122ace492bc6667918e17f849dc9618c8d6

Contents?: true

Size: 340 Bytes

Versions: 154

Compression:

Stored size: 340 Bytes

Contents

#!/usr/bin/env ruby

$:.unshift(File.join('..', 'lib'))
require 'httpclient'

proxy = ENV['HTTP_PROXY']
clnt = HTTPClient.new(proxy)
clnt.set_cookie_store("cookie.dat")
clnt.debug_dev = STDOUT if $DEBUG

while urlstr = ARGV.shift
  response = clnt.get(urlstr){ |data|
    print data
  }
  p response.contenttype
end

clnt.save_cookie_store

Version data entries

154 entries across 146 versions & 13 rubygems

Version Path
vagrant-unbundled-2.0.3.0 vendor/bundle/ruby/2.5.0/gems/httpclient-2.8.3/sample/cookie.rb
scout-5.9.12 vendor/httpclient/sample/cookie.rb
vagrant-unbundled-2.0.2.0 vendor/bundle/ruby/2.5.0/gems/httpclient-2.8.3/sample/cookie.rb
vagrant-unbundled-2.0.2.0 vendor/bundle/ruby/2.4.0/gems/httpclient-2.8.3/sample/cookie.rb
vagrant-unbundled-2.0.1.0 vendor/bundle/ruby/2.4.0/gems/httpclient-2.8.3/sample/cookie.rb
vagrant-unbundled-2.0.0.1 vendor/bundle/ruby/2.4.0/gems/httpclient-2.8.3/sample/cookie.rb
vagrant-unbundled-1.9.8.1 vendor/bundle/ruby/2.4.0/gems/httpclient-2.8.3/sample/cookie.rb
vagrant-unbundled-1.9.7.1 vendor/bundle/ruby/2.4.0/gems/httpclient-2.8.3/sample/cookie.rb
vagrant-unbundled-1.9.5.1 vendor/bundle/ruby/2.4.0/gems/httpclient-2.8.3/sample/cookie.rb
scout-5.9.11 vendor/httpclient/sample/cookie.rb
vagrant-unbundled-1.9.1.1 vendor/bundle/ruby/2.4.0/gems/httpclient-2.8.3/sample/cookie.rb
httpclient-2.8.3 sample/cookie.rb
vagrant-compose-yaml-0.1.3 vendor/bundle/ruby/2.2.0/gems/httpclient-2.8.0/sample/cookie.rb
vagrant-compose-yaml-0.1.2 vendor/bundle/ruby/2.2.0/gems/httpclient-2.8.0/sample/cookie.rb
vagrant-compose-yaml-0.1.1 vendor/bundle/ruby/2.2.0/gems/httpclient-2.8.0/sample/cookie.rb
vagrant-compose-yaml-0.1.0 vendor/bundle/ruby/2.2.0/gems/httpclient-2.8.0/sample/cookie.rb
httpclient-2.8.2.4 sample/cookie.rb
httpclient-2.8.2.3 sample/cookie.rb
httpclient-2.8.2.2 sample/cookie.rb
httpclient-2.8.2.1 sample/cookie.rb