|< 1 2 >| | 11 Einträge, 2 Seiten |
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/perl --
print "Content-type: text/html\n\n";
my ($Map,$start,$end);
use LWP::Simple;
$Map = get("http://www.map24.ch/map24/routing.php3?lang=de&mid=LINK2&lid=f6424470&maptype=java&rtype=fast&sstreet=&szip=4150&scity=&scountry=ch&sdescription=Startbeschreibung&dstreet=Bergstrasse&dzip=4114&dcity=Hofstetten&dcountry=ch&ddescription=Zielbeschreibung");
die "Couldn't get it! $!" unless defined $data;
$start = '<script language=JavaScript type=text/javascript>';
$end = '<!-- Route - Links Description //-->';
$data =~ m/$start.*$end/si;
$data = $&;
$start = '<!-- begin titlebar -->';
$end = '<!-- end titlebar -->';
$data =~ m/$start.*$end/si;
$Main_data = $`.$';
print $Main_data;
1
2
3
use LWP::Simple;
$Map = get("http://www.map24.ch/map24/routing.php3?lang=de&mid=LINK2&lid=f6424470&maptype=java&rtype=fast&sstreet=&szip=4150&scity=&scountry=ch&sdescription=Startbeschreibung&dstreet=Bergstrasse&dzip=4114&dcity=Hofstetten&dcountry=ch&ddescription=Zielbeschreibung");
die "Couldn't get it! $!" unless defined $data;
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/perl --
print "Content-type: text/html\n\n";
my ($Map,$start,$end);
use LWP::Simple;
$data = get("http://www.map24.ch/map24/routing.php3?lang=de&mid=LINK2&lid=f6424470&maptype=java&rtype=fast&sstreet=&szip=4150&scity=&scountry=ch&sdescription=Startbeschreibung&dstreet=Bergstrasse&dzip=4114&dcity=Hofstetten&dcountry=ch&ddescription=Zielbeschreibung");
die "Couldn't get it! $!" unless defined $data;
$start = '<script language=JavaScript type=text/javascript>';
$end = '<!-- Route - Links Description //-->';
$data =~ m/$start.*$end/si;
$data = $&;
$start = '<!-- begin titlebar -->';
$end = '<!-- end titlebar -->';
$data =~ m/$start.*$end/si;
$Main_data = $`.$';
print $Main_data;
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/perl --
print "Content-type: text/html\n\n";
my ($Map,$start,$end);
use LWP::Simple;
$data = get("http://www.map24.ch/map24/routing.php3?lang=de&mid=LINK2&lid=f6424470&maptype=java&rtype=fast&sstreet=&szip=4150&scity=&scountry=ch&sdescription=Startbeschreibung&dstreet=Bergstrasse&dzip=4114&dcity=Hofstetten&dcountry=ch&ddescription=Zielbeschreibung");
die "Couldn't get it! $!" unless defined $data;
$start = '<!-- begin titlebar -->';
$end = '<!-- end titlebar -->';
$data =~ m/$start(.*)$end/si;
$Main_data = $1;
print $Main_data;
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use strict;
use LWP::UserAgent;
use HTTP::Request::Common;
my $link = "http://server/script.pl?param1=value1;param2=value4¶m3=5";
my ($script,@params) = split /\?|;|&|=/,$link;
my $ua = LWP::UserAgent->new();
$ua->agent('MyUserAgent');
my $request = $ua->request(GET $script,[@params]);
if ($request->is_success()) {
print $request->content();
}
else {
print "Seite $link konnte nicht erreicht werden.";
}
|< 1 2 >| | 11 Einträge, 2 Seiten |