Sha256: 5055fb36271ace2516077c4ba36225a7657c0699734dffcfb42f01827aa348b7

Contents?: true

Size: 393 Bytes

Versions: 154

Compression:

Stored size: 393 Bytes

Contents

#!/usr/bin/env ruby

# wcat for http-access2
# Copyright (C) 2001 TAKAHASHI Masayoshi

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

if ENV['HTTP_PROXY']
  h = HTTPClient.new(ENV['HTTP_PROXY'])
else
  h = HTTPClient.new()
end

while urlstr = ARGV.shift
  response = h.get(urlstr){ |data|
    print data
  }
  p response.contenttype
  p response.peer_cert if /^https/i =~ urlstr
end

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/wcat.rb
scout-5.9.12 vendor/httpclient/sample/wcat.rb
vagrant-unbundled-2.0.2.0 vendor/bundle/ruby/2.4.0/gems/httpclient-2.8.3/sample/wcat.rb
vagrant-unbundled-2.0.2.0 vendor/bundle/ruby/2.5.0/gems/httpclient-2.8.3/sample/wcat.rb
vagrant-unbundled-2.0.1.0 vendor/bundle/ruby/2.4.0/gems/httpclient-2.8.3/sample/wcat.rb
vagrant-unbundled-2.0.0.1 vendor/bundle/ruby/2.4.0/gems/httpclient-2.8.3/sample/wcat.rb
vagrant-unbundled-1.9.8.1 vendor/bundle/ruby/2.4.0/gems/httpclient-2.8.3/sample/wcat.rb
vagrant-unbundled-1.9.7.1 vendor/bundle/ruby/2.4.0/gems/httpclient-2.8.3/sample/wcat.rb
vagrant-unbundled-1.9.5.1 vendor/bundle/ruby/2.4.0/gems/httpclient-2.8.3/sample/wcat.rb
scout-5.9.11 vendor/httpclient/sample/wcat.rb
vagrant-unbundled-1.9.1.1 vendor/bundle/ruby/2.4.0/gems/httpclient-2.8.3/sample/wcat.rb
httpclient-2.8.3 sample/wcat.rb
vagrant-compose-yaml-0.1.3 vendor/bundle/ruby/2.2.0/gems/httpclient-2.8.0/sample/wcat.rb
vagrant-compose-yaml-0.1.2 vendor/bundle/ruby/2.2.0/gems/httpclient-2.8.0/sample/wcat.rb
vagrant-compose-yaml-0.1.1 vendor/bundle/ruby/2.2.0/gems/httpclient-2.8.0/sample/wcat.rb
vagrant-compose-yaml-0.1.0 vendor/bundle/ruby/2.2.0/gems/httpclient-2.8.0/sample/wcat.rb
httpclient-2.8.2.4 sample/wcat.rb
httpclient-2.8.2.3 sample/wcat.rb
httpclient-2.8.2.2 sample/wcat.rb
httpclient-2.8.2.1 sample/wcat.rb