Thread LWP und proxy (52 answers)
Opened by perl-snaks at 2012-04-25 13:04

GwenDragon
 2012-04-25 13:10
#157834 #157834
User since
2005-01-17
14510 Artikel
Admin1
[Homepage]
user image
2012-04-25T11:02:11 perl-snaks
Code: (dl )
500 Can't connect to search.cpan.org:80 (Bad hostname) at C:/Programme/Apache/cgi-bin/parsetesta.pl line 20.\r

(...)
Code: (dl )
$ua->protocols_allowed( [ 'http','https'],'http://surfproxy.prox:8080');

(...)
Code (perl): (dl )
1
2
$ua->protocols_allowed( [ 'http','https'],'http://*****:8080');
 #$ua->protocols_allowed( [ 'http','https'],'http://*****:8080');

Was soll denn da die Angabe einer URL hinten dran bezewcken? magst du das erklären, wie du das verstehst?

//EDIT:
Ich rate mal.
Anstatt:
Code (perl): (dl )
1
2
3
$ua->protocols_allowed( [ 'http','https'],'http://*****:8080');
$ua->protocols_allowed( [ 'http','https'],'http://*****:8080');
$ua->protocols_allowed( [ 'http','https'],'http://surfproxy.prox:8080');
wolltest do wohl:
Code (perl): (dl )
1
2
3
4
5
6
$ua->proxy( http  => 'http://*****:8080');
$ua->proxy( https => 'http://*****:8080');
$ua->proxy( http  => 'http://*****:8080');
$ua->proxy( https => 'http://*****:8080');
$ua->proxy( http  => 'http://surfproxy.prox:8080');
$ua->proxy( https => 'http://surfproxy.prox:8080');

Last edited: 2012-04-27 09:59:12 +0200 (CEST)
die Drachin, Gwendolyn


Unterschiedliche Perl-Versionen auf Windows (fast wie perlbrew) • Meine Perl-Artikel

View full thread LWP und proxy