pharo-smalltalk
pharo-smalltalk copied to clipboard
Some error http conditions don't give exeception, just a web page with forbidden
With some proxies - you don't get an http error and so a get results in a page like below. Might need to detect this kind of string and generate an applicaiton execption:
<html>
<head>
<title>Forbidden access</title>
</head>
<body style="text-align:center">
<div style="width:80%; border:1px solid #64696C; color:#64696C; font-weight:bold; text-align:center; padding:20px; margin:auto; margin-top:20px">
<p id="small_p" style="font-size:small;">Forbidden access</p>
<p id="large_p" style="font-size:large;">Your current web browser cannot access this page.</p>
</div>
</body>
</html>
This might not happen if we better config the znClient. Sven alerted me to using :
^ ZnClient new
systemPolicy;
This also means we need to redo the exception handling (it actually simplifies it)