http://name:password@www.company.com/whatever/to/get.html
Substitute in a name and password you use. Substitute
in a protocol like ftp if that is easier. Give it a
shot from your browser, LWP::Simple, etc.
This pattern is in the spec. It will work with any tool
that I have ever tried. It will work with every protocol.
If it does not work with your tool, then that is
a bug.
This is why japhy would have used the standard library.
He doesn't know the spec off of the top of his head. He
knows he doesn't. And rather than finding it and having
to figure out how to do the whole thing correctly, he can
just use an existing library and be confident that it will
Just Work. By contrast his off-the-cuff solution will
work for 99% of the domain space, but (exactly as he
predicted) will break somewhere...
The goal is be right with as little work as possible. So
use the module. |