Link to home
Start Free TrialLog in
Avatar of petepalmer
petepalmer

asked on

Ruby and HTTP

Hi,

I need to access a website from within a Ruby app. The problem is that the built in net/http and net/https libraries don't support cookies which is something I really need.

Does anyone know of an alternative way to do this? There are a couple of scripts around but they haven't been maintained for years....
ASKER CERTIFIED SOLUTION
Avatar of F. Dominicus
F. Dominicus
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Here is a sample of using cookies (just tell Ruby cookie store filename, then save if needed).
http://raa.ruby-lang.org/gonzui/markup/http-access2/sample/howto.rb