Bei fast jedem Proxy gibt warn $mech->content; eine Fehlermeldung vom Proxy aus.
Paar Beispiele:
QuoteBeginn
<head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><TITLE>SCM® appliance CMSDMailGateway.colum
bus.k12.ms.us reports illegal proxy request</TITLE></head><body><h1>400 - Bad Request</h1><hr><table border=0 width=100%
cellpadding=2><tr><td width=175 valign=top align=left><img hspace=6 border=0 alt="SCM® appliance Logo" src="
http:///
10.101.16.2:80/
http://-internal-/00137253b9ef/webshield.jpg"></td><td valign=top align=left><h2>SCM<sup>®</sup> appl
iance CMSDMailGateway.columbus.k12.ms.us reports illegal proxy request<br></h2><br><h3>The requested URL does not contai
n a path</h3><br><h3>URL:
http://www.microsoft.com/</h3></td></tr></table><hr><h6><p><p>Copyright © 1993-2007 McAfee
, Inc.<br>All Rights Reserved.<br> <a href="
http://www.mcafee.com/">
http://www.mcafee.com/</a></p></p></h6></body> at mech
anize_neu.pl line 23, <FILE> line 1.
Ende
QuoteBeginn
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>403 Forbidden</title>
</head><body>
<h1>Forbidden</h1>
<p>You don't have permission to access
http://www.microsoft.com/
on this server.</p>
</body></html>
Ende
QuoteBeginn
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>403 Forbidden</title>
</head><body>
<h1>Forbidden</h1>
<p>You don't have permission to access /
on this server.</p>
</body></html>
Ende
Wenn ich die selbe Webseite mit dem Browser aufrufe erscheint keine Fehlermeldung.
Woran liegt das bitte?