From: Bill Kelly Date: 2008-09-13T05:17:50+09:00 Subject: Re: HTTPS POST with basic authentication From: "Piyush Ranjan" > > I need to do a https POST with basic authentication to query a service. I am > unable to find this in api or any of the blog entries I am seen so far. Is > it possible to do this ? require 'base64' # NOTE: the name of this module may be different headers = {} headers['Authorization'] = 'Basic ' + encode64("#{user}:#{pass}").chop resp = http.post(path, body, headers) Hope this helps, Bill