unter uns @Rolf B
der Server macht ein
Connection: Close
. Wenn er die Connection offen halten würdeConnectio: Keep-Alive
also, könnte man tatsächlich drei Requests hintereinander in das Socket schieben und bekommt dadurch auch 3 Images geliefert.Das müsste aber auch über einen Proxy funktionieren wenn der Proxy die Connection offenhält. Mit dem Proxy meines Providers funktioniert das so.
Script folgt!
Hier isses, as liefert auch 3 Bilder
use IO::Socket;
my $proxy = IO::Socket::INET->new('www-proxy.t-online.de:80') or die $@;
$proxy->print("GET https://finviz.com/chart.ashx?t=STZ&p=m HTTP/1.1\r\n");
$proxy->print("Connection: Keep-Alive\r\n");
$proxy->print("Host: www-proxy.t-online.de\r\n\r\n");
$proxy->print("GET https://finviz.com/chart.ashx?t=STZ&p=d HTTP/1.1\r\n");
$proxy->print("Connection: Keep-Alive\r\n");
$proxy->print("Host: www-proxy.t-online.de\r\n\r\n");
$proxy->print("GET https://finviz.com/chart.ashx?t=STZ&p=w HTTP/1.1\r\n");
$proxy->print("Connection: Close\r\n");
$proxy->print("Host: www-proxy.t-online.de\r\n\r\n");
print while <$proxy>;
MFG