Created
January 19, 2011 19:02
-
-
Save loe/786644 to your computer and use it in GitHub Desktop.
How do I do basic_auth against the conn block var
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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