I'm attempting to navigate a website that requires a login. In particular, does anyone have a solution that utilizes cookies? Looking at the included Net/http library, it doesn't appear to be supported - or at least it isn't mentioned. Thanks in advance!
I'm attempting to navigate a website that requires
a login. In particular, does anyone have a solution
that utilizes cookies? Looking at the included
Net/http library, it doesn't appear to be supported - or
at least it isn't mentioned. Thanks in advance!
Hi Brian,
I assume when you've logged in, your details are saved
in the cookie and you bypass the next login by providing
the saved cookie.
A cookie is sent as a Hash value ['Cookie'] in the headers
along with the request and received as a Hash value with
a key of ['Set-Cookie'] along with the response.
The snippet below will obtain a cookie from google
as a non-login example.
The commented hdrs['Cookie'] = 'blah' is where you
would provide a previously saved cookie.