Skip to content

Instantly share code, notes, and snippets.

@loe
Created January 19, 2011 19:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save loe/786644 to your computer and use it in GitHub Desktop.
Save loe/786644 to your computer and use it in GitHub Desktop.
How do I do basic_auth against the conn block var
def process
Net::HTTP.start(HOST, PORT) do |conn|
conn.post "/reports/upload", "report=" + CGI.escape(self.to_yaml)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment