GET /tile.ashx?T=1&S=13&X=321&Y=3329&Z=10 HTTP/1.1\r\n
Accept: , , , , , , M\360\017\204-\002\r\n
User_Agent: Perl-Win32::Internet/0.081\r\n
Host: terraserver-usa.com\r\n
\r\n
####
GET /tile.ashx?T=1&S=13&X=321&Y=3329&Z=10 HTTP/1.1\r\n
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows 98) Opera 7.23 [en]\r\n
Host: terraserver-usa.com\r\n
Accept: text/html, application/xml;q=0.9, application/xhtml+xml;q=0.9, image/png, image/jpeg, image/gif, image/x-xbitmap, */*;q=0.1\r\n
Accept-Language: en\r\n
Accept-Charset: windows-1252, utf-8, utf-16, iso-8859-1;q=0.6, *;q=0.1\r\n
Accept-Encoding: deflate, gzip, x-gzip, identity, *;q=0\r\n
Cache-Control: no-cache\r\n
Connection: Keep-Alive, TE\r\n
TE: deflate, gzip, chunked, identity, trailers\r\n
\r\n
####
sub Get {
my ($url, $req) = @_;
my ($http, $request);
my $result = $Internet->HTTP($http, $url, 'anonymous', 'none', );
if ($result) {
my ($status, $header, $content) = $http->Request("/$req", 'GET', 'HTTP/1.1', 'none', "image/gif\0image/jpeg");
$http->Close;
return ($header, $content)
} else {
return undef
}
}