How to Download HTML Content Using Session Cookie #2013
-
I am trying to duplicate the curl command:
with Mojo::UserAgent in order to download some HTML from a URL that requires authentication. So far, I have the following:
I keep getting the error:
I'm not sure why since I'm not calling the method Thanks in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
According to the
|
Beta Was this translation helpful? Give feedback.
According to the
Mojo::UserAgent::CookieJar
example you should add aMojo::Cookie::Response
object and not aMojo::Cookie::Request
object.M:C:Request
does not have amax_age
attribute, which would explain the error you are getting.