require 'net/http'
require 'net/https'
def get_feed(server,path,username,password)
http = Net::HTTP.new(server,443)
req = Net::HTTP::Get.new(path)
http.use_ssl = true
req.basic_auth username, password
response = http.request(req)
return response.body
endreq = Net::HTTP::Get.new(path)
http.use_ssl = true
req.basic_auth username, password
response = http.request(req)
return response.body
Thanks that helped.
ReplyDeletethanks
ReplyDeleteThanks a ton. This was very helpful.
ReplyDeleteThanks !
ReplyDeleteGreat help, thanks!
ReplyDeleteI was very happy that I found this site. I want to to thank you for this great information!! I certainly enjoyed every bit of it and I have bookmarked your blog to see the new stuff you post in the future
ReplyDeleteAwesome. Thanks. I have been trying to get this done since night yesterday.. Worked after i saw it here. very clear and concise!
ReplyDeleteMy friends love this post that carry a high profile stuff. thanks for all that.
ReplyDelete