[kaffe] Patch: http proxy correction

Jukka Santala jsantala@morphine.tml.hut.fi
Tue, 22 Oct 2002 15:29:10 +0300 (EEST)


  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.
  Send mail to mime@docserver.cac.washington.edu for more info.

---559023410-341603450-1035289750=:7907
Content-Type: TEXT/PLAIN; charset=US-ASCII

Well, this proves nobody actually uses Kaffe with proxy for HTTP
implementations ;) My last patch to match its behaviour with Sun's
behaviour unfortunately broke the proxy support; it did open a socket to
the proxy, but then nonetheless use the proxyless connection. I tried to
think of a more elegant way to do it, but couldn't come up with one, so
here's the straightforward patch.

Tue Oct 22 15:22:23 EEST 2002 Jukka Santala <jsantala@nic.fi>
	* libraries/javalib/kaffe/net/www/protocol/http/
	HttpURLConnection.java: Actually use the proxy socket.

I think Kaffe's overall proxy-handling is not quite up to par with Sun's,
altough large part of this is due to it being one of Sun's undocumented
features. I may have reason to look into Kaffe's proxy-handling in detail,
but in the meanwhile I think this patch should go in for people who do
need working http proxy.

Proxy authenticiation... Is there anythign we can do about sun.util.Base64
or whatever? Kaffe has its own implementation, but apparently can't be
named the same.

 -Jukka Santala

---559023410-341603450-1035289750=:7907
Content-Type: TEXT/PLAIN; charset=US-ASCII; name="kaffe-donwulff-hproxy.patch"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.GSO.4.44.0210221529100.7907@morphine.tml.hut.fi>
Content-Description: 
Content-Disposition: attachment; filename="kaffe-donwulff-hproxy.patch"

SW5kZXg6IGxpYnJhcmllcy9qYXZhbGliL2thZmZlL25ldC93d3cvcHJvdG9j
b2wvaHR0cC9IdHRwVVJMQ29ubmVjdGlvbi5qYXZhDQo9PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09DQpSQ1MgZmlsZTogL2N2cy9rYWZmZS9rYWZmZS9saWJyYXJp
ZXMvamF2YWxpYi9rYWZmZS9uZXQvd3d3L3Byb3RvY29sL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