Hello,

I don't think the HTTPSocket class supports proxies with NTLM authentication. There is an alternative: the CurlPlugin, this plugin wraps the libcrul C library and this library supports NTML authentication, see: http://wiki.squeak.org/squeak/5865

Jan.

2009/5/25 Bernhard Pieber <pieber@acm.org>
Hi all,

I would like to use Pharo behind a corporate firewall with a proxy with NTLM authentication. Having read the thread "Proxy with authentication support" (http://lists.gforge.inria.fr/pipermail/pharo-project/2009-May/008717.html)�I thought I might try if it works with NTLM. Short version: It doesn't. ;-)

Has someone solved that particular problem?

Thanks for your support!

Cheers,
Bernhard

Long version:
If I do:
HTTPSocket httpGet: 'http://www.pieber.com'

I get:
'HTTP/1.1 400 Bad Request
Cache-Control: no-cache
Pragma: no-cache
Content-Type: text/html; charset=utf-8
Proxy-Connection: close
Connection: close
Content-Length: 1251<HTML><HEAD>
<TITLE>Invalid username/password</TITLE>
</HEAD>
<BODY>
<FONT face="Helvetica">
<big><strong></strong></big><BR>
</FONT>
<blockquote>
<TABLE border=0 cellPadding=1 width="80%">
<TR><TD>
<FONT face="Helvetica">
<big>Invalid username/password (bad_credentials)</big>
<BR>
<BR>
</FONT>
</TD></TR>
<TR><TD>
<FONT face="Helvetica">
���<p>Your username or password were sent using an invalid/unrecognized format.</p>
���<p><i>Please close your browser window.</i></p>
���<p>Then, either contact technical support,
���or try again using a different username/password combination.</p>
���<p><small>
���There are two possible causes:
���<ul>
���<li>Your username or password contains non-ASCII characters,
����and the ProxySG is not configured to use the same authentication character
����encoding as is being used by your web browser.
���<li>Your username or password is too long.
����(The limits for the username and password are 64 bytes each,
����after being translated to UTF-8.)
���</ul>
���</small></p>
���
</FONT>
</TD></TR>
<TR><TD>
<FONT face="Helvetica">
</FONT>
</TD></TR>
<TR><TD>
<FONT face="Helvetica" SIZE=2>
<BR>
For assistance, contact your network support team.
</FONT>
</TD></TR>
</TABLE>
</blockquote>
</FONT>
</BODY></HTML>
'


_______________________________________________
Pharo-project mailing list
Pharo-project@lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project