Thread HTTP-Anfrage starten (3 answers)
Opened by Gast at 2006-02-20 10:46

renee
 2006-02-20 11:35
#37127 #37127
User since
2003-08-04
14371 Artikel
ModeratorIn
[Homepage] [default_avatar]
Zur Not koenntest Du es ja mal so probieren:
Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
$ENV{http_proxy} = 'http://service:3128';

my $ua = LWP::UserAgent->new;#
$ua->timeout(100);

my $response = $ua->get('http://www.gom.com/');

#print $response;

if ($response->is_success) {
print $response->content; # or whatever
}
else {
print "shit!";
}

my $content = $response->contene;
print $content if(defined $content);
OTRS-Erweiterungen (http://feature-addons.de/)
Frankfurt Perlmongers (http://frankfurt.pm/)
--

Unterlagen OTRS-Workshop 2012: http://otrs.perl-services.de/workshop.html
Perl-Entwicklung: http://perl-services.de/

View full thread HTTP-Anfrage starten