follow-up re handling redirects with cookies and other stuff
Maurice Aubrey (maurice@hevanet.com)
Thu, 16 Jul 1998 23:26:57 -0600
After looking at the code further, I see that cookies are handled
in internal redirects if a cookie jar is associated with the
user agent object. Perhaps a note should be added to LWP::UserAgent
saying something along the lines of:
Redirect responses may include cookies, which will be lost if
the redirection is handled internally and no cookie jar
has been associated with the object.
Also, the following code
$url = url '../../images/interface_images/logo.gif', 'http://www.ahn.com/';
$url = $url->abs;
print "$url\n";
produces:
http://www.ahn.com/../../images/interface_images/logo.gif
Is that the correct behavior? It seems like it should realize it's
impossible, and produce:
http://www.ahn.com/images/interface_images/logo.gif
which is apparently what Netscape thinks it is. Or is Netscape broken?
Finally, I noticed that HTML::LinkExtor doesn't find URLs in
META tags (such as refresh). From reading the HTML 4.0 spec,
it looks like there's no official specification for the attribute
syntax (yet?) ... it says it's specified by 'profiles' and
'This specification does not define formats for profiles'.
Anyway, I'm wondering if the development of something like
HTML::Meta would be useful, which could understand the profile
format and correctly parse meta tags? Is anyone working on this?
Thanks,
--
Maurice Aubrey <maurice@hevanet.com>
They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety.
- Benjamin Franklin