Re: libwww-perl and proxies
Bob Reveal (breveal@c2o.com)
Thu, 03 Dec 1998 09:08:31 +0000
This is a multi-part message in MIME format.
--------------788853B984FB0E958FA92884
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
I am not under the impression that the
http://username:password@host.name/blah is valid "http 1.x protocol
syntax". I believe the browsers normally take this request and convert
it to valid http 1.x protocol request which would be to strip out the
username:password from the above URL and send just the URL followed by a
header line that included the encoded username:password. Assuming this
is correct, I would not think it would be wise to add this to the core
of the LWP library. If it was added, I would think a subclass of
UserAgent.pm would be an appropriate location for this type of
functionality.
Any other thoughts?
--------------788853B984FB0E958FA92884
Content-Type: text/html; charset=us-ascii; name="0542.html"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="0542.html"
Content-Base: "http://www.ics.uci.edu/pub/websoft/lib
www-perl/archive/1998h2/0542.html"
<!-- received="Wed Dec 2 19:24:44 1998 PST" -->
<!-- sent="Wed, 2 Dec 1998 22:17:54 -0500 (EST)" -->
<!-- name="Jeremy D. Impson" -->
<!-- email="jdimpson@source.syr.edu" -->
<!-- subject="libwww-perl and proxies" -->
<!-- id="852566CE.005A0B65.00@3cmc04smtp.chase.com" -->
<!-- inreplyto="852566CE.005A0B65.00@3cmc04smtp.chase.com" -->
<title>libwww-perl Mailing List Archive for 1998 (second half): libwww-perl and proxies</title>
<h1>libwww-perl and proxies</h1>
Jeremy D. Impson (<i>jdimpson@source.syr.edu</i>)<br>
<i>Wed, 2 Dec 1998 22:17:54 -0500 (EST)</i>
<p>
<ul>
<li> <b>Messages sorted by:</b> <a href="index.html#542">[ date ]</a><a href="thread.html#542">[ thread ]</a><a href="subject.html#542">[ subject ]</a><a href="author.html#542">[ author ]</a>
<!-- next="start" -->
<li> <b>Next message:</b> <a href="0543.html">Mark Turrin: "Re: NT vs Unix"</a>
<li> <b>Previous message:</b> <a href="0541.html">Jeff Richardson: "Need to write an Interface"</a>
<li> <b>In reply to:</b> <a href="0543.html">Mark Turrin: "Re: NT vs Unix"</a>
<!-- nextthread="start" -->
<!-- reply="end" -->
</ul>
<hr>
<!-- body="start" -->
<pre>
Hi. I'm having problems with libwww-perl and the JunkBuster
Internet Proxy (<a href="http://www.junkbuster.com">http://www.junkbuster.com</a>). I am not equipped to to test
if this is a problem with other HTTP proxies.
When requesting URLs of the form
<a href="http://username:passwd@host.name/blah">http://username:passwd@host.name/blah</a>
LWP passes this exact string to JunkBuster, which does not know how to
parse it. Without a proxy, LWP knows how to deal with these
authenticating URLs (i.e. figure out what part of the URL is the hostname,
make the request to the host, and supply username and password in the
GET/POST request.)
Apparently, JunkBuster doesn't know what to do about it, and complains
about ill-formed requests.
My question is, how should this be resolved? Should LWP strip out the
username/password pair before passing it to the proxy, or should the proxy
be taught how to handle such requests?
I think LWP should do it, for a couple of reasons. The first is that
since LWP already identifies the username and password and it is LWP apps
that actually use the information, the proxy has no need for the
information. The second is that I think proxy servers should have to do
as little computation as possible. (And the last time I sent a patch for
JunkBuster, I never got a response.)
I am currently running LWP version 5.36. I notice that the most recent on
CPAN is 5.41. If I have time, I'll upgrade, verify that it is still a
problem, and then come up with a fix, assuming the Powers That Be agree
that it is LWP that should be fixed. (And assuming someone else doesn't
beat me too it... Feel free!)
Thanks very much!
--Jeremy
---------------------------------------------------------------------------
Jeremy Impson Linux, Perl, and Network geek
jdimpson@source.syr.edu <a href="http://source.syr.edu/~jdimpson">http://source.syr.edu/~jdimpson</a>
</pre>
<!-- body="end" -->
<hr>
<p>
<ul>
<!-- next="start" -->
<li> <b>Next message:</b> <a href="0543.html">Mark Turrin: "Re: NT vs Unix"</a>
<li> <b>Previous message:</b> <a href="0541.html">Jeff Richardson: "Need to write an Interface"</a>
<li> <b>In reply to:</b> <a href="0543.html">Mark Turrin: "Re: NT vs Unix"</a>
<!-- nextthread="start" -->
<!-- reply="end" -->
</ul>
--------------788853B984FB0E958FA92884--