C
csjasnoch
I am running a script to issue a script run on a video server. The only
way I really have to issue the command is via http it seems (or through
the WUI for the server).
So is there anyway to put the user name in and password for when the
prompt comes up?
For example this is what I want to request,
<server ip>/evscript?runcmd=start
however, if I were to issue this command via web browser a prompt will
come up for my user name and password. But doing this with a script as
require 'net/http'
server = Net::HTTP.new(<server ip>,80)
resp, data = server.get("/evscript?runcmd=start",nil)
will return
#<Net::HTTPUnathorized 401 readbody=true>, (unathorized HTML code
display)
or maybe there is another way I could do this than using 'net/http'??
Thank you in advance.
-Collin
way I really have to issue the command is via http it seems (or through
the WUI for the server).
So is there anyway to put the user name in and password for when the
prompt comes up?
For example this is what I want to request,
<server ip>/evscript?runcmd=start
however, if I were to issue this command via web browser a prompt will
come up for my user name and password. But doing this with a script as
require 'net/http'
server = Net::HTTP.new(<server ip>,80)
resp, data = server.get("/evscript?runcmd=start",nil)
will return
#<Net::HTTPUnathorized 401 readbody=true>, (unathorized HTML code
display)
or maybe there is another way I could do this than using 'net/http'??
Thank you in advance.
-Collin