I am trying to use the download () method to load the username and password in an HTTP header to authenticate an HTTP request (talking to a Rails application).
I'm a little new when it comes to this.
I did not understand if I should automatically use the syntax below (username: pwd @), or if the username and password need to be created manually inside the HTTP header (which I think I can access with: the headers of the download method )
download "http://username:pwd@127.0.0.1:3000/authenticate", :method => "POST" do |result|
end
Any help would be appreciated
source
share