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
8 comments:
Thanks that helped.
thanks
Thanks a ton. This was very helpful.
Thanks !
Great help, thanks!
I 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
Awesome. Thanks. I have been trying to get this done since night yesterday.. Worked after i saw it here. very clear and concise!
My friends love this post that carry a high profile stuff. thanks for all that.
Post a Comment