A
Andrew Walrond
I have to type
http://username:[email protected]/downloads/file
into a browser to download a file. How can I do this with the net/http module
in ruby?
I have tried:
require 'net/http'
h = Net::HTTP.new('username[email protected]')
h.get('/downloads/file',nil,'destfile')
Which works fine for files without the usernameassword@ part, but here gives
SocketError: getaddrinfo: Name or service not known
I am totally html ignorant, so any suggestions greatly apprieciated!
Andrew Walrond
http://username:[email protected]/downloads/file
into a browser to download a file. How can I do this with the net/http module
in ruby?
I have tried:
require 'net/http'
h = Net::HTTP.new('username[email protected]')
h.get('/downloads/file',nil,'destfile')
Which works fine for files without the usernameassword@ part, but here gives
SocketError: getaddrinfo: Name or service not known
I am totally html ignorant, so any suggestions greatly apprieciated!
Andrew Walrond