Hi Jenna,
thanks for seeing this ... unfortunately, I had it right in my code.
But I removed the parenthesis as you suggest. Still doesn't work. Here
is the exact code:
button "Login(Download())" do
@status.text = "One moment..."
headers = {}
headers['Authorization'] = 'Basic ' +
Base64.encode64("[EMAIL PROTECTED]:[EMAIL PROTECTED]").chop
download "http://#{$SITE_URL}/ambisonic_files/new.xml",
:method => "GET", :headers => headers do |result|
@status.text = "The result is #{result.response.body}
... \n and the Headers: " + result.response.headers.inspect
end
end
My Rails app reaches the call to authenticate_with_http_basic ... but
no username and password are passed in (so the block doesn't seem to
get called).
No big deal because I can do it differently ... but if it should work,
I'm wondering if the passed in headers thingy is working properly (I
could be wildly wrong).
Etienne