did you think of sending that as a documentation-patch to Andy Lester?
| [reply] |
holli,
Thanks. I thought of that as well and had already /msg'd him with a pointer to this thread. Not sure if Andy would prefer to add more miscellaneous methods, modify the documentation, add to the FAQ, or something else entirely.
| [reply] |
$mech->response->headers->as_string
?
| [reply] [d/l] |
merlyn,
What's wrong with: $mech->response->headers->as_string?
Nothing, except it solves a problem other than the one I was going after (see Description).
First, the docs for WWW::Mechanize leave a little to be desired as far as getting at the headers in the first place. You have to know that the HTTP::Response object returned by the response() method has what you are looking for.
Second, the intention by accessing them by key was just to get the value you wanted as per the Description. In this particular case, water was after the p3p key. Of course you could parse the results of the as_string method, but why?
| [reply] [d/l] |
Patches welcome. If something's unclear, please send me updates to the doc that expand on it. It's hard for me, as the author, to know what people need to know, or if it's not as clear as should be.
| [reply] |