Skip to content

Instantly share code, notes, and snippets.

@kmiyake
Created December 19, 2009 12:33
Show Gist options
  • Save kmiyake/260063 to your computer and use it in GitHub Desktop.
Save kmiyake/260063 to your computer and use it in GitHub Desktop.
#!/usr/bin/ruby
require 'net/http'
require 'pit'
config = Pit.get("dyn.value-domain.com", :require => {
"domain" => "your domain in valuedomain",
"password" => "your password in valuedomain"
})
Net::HTTP.version_1_2
Net::HTTP.start('dyn.value-domain.com', 80) {|http|
response = http.get("/cgi-bin/dyn.fcg?d=#{config["domain"]}&p=#{config["password"]}&h=*")
puts response.body
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment