Schrift
Wiki:Tipp zum Debugging: use Data::Dumper; local $Data::Dumper::Useqq = 1; print Dumper \@var;
[thread]12260[/thread]

Mit Proxy aus Liste Connecten

Leser: 3


<< >> 2 Einträge, 1 Seite
Proxy
 2008-07-27 00:25
#112806 #112806
User since
2008-07-20
5 Artikel
BenutzerIn
[default_avatar]
Guten Abend,

Ich hoffe hier ist noch jemmand, da ich weitermachen will, bin grad sehr schön drin.

Also ich habe ein Problem, dass ich Proxys in einer Liste habe, und jetzt will ich sie zum connecten auf eine seite nehmen.

Ich habe gedacht das ich LWP::UserAgent nehme, aber ich finde dafür nur Beispiele die die Proxys aus einer Internet holen!

Also wie kann ich mir meiner @zeilen[0] darin mein Proxy ist auf eine Seite Connecten?

Kann ich auch programmieren das jeden Tag ein neuer genommen wird? Wie mit Sleep?

Danke für euere Antworten

mfg Proxy
MatthiasW
 2008-07-27 00:36
#112807 #112807
User since
2008-01-27
367 Artikel
BenutzerIn
[default_avatar]
Deiner Rechtschreibung nach sitzt du schon zu lange vorm Rechner ;)
Ich zitiere aus der LWP::UserAgent Dokumentation:
Quote
Proxy attributes
The following methods set up when requests should be passed via a proxy server.
Code: (dl )
1
2
$ua->proxy(\@schemes, $proxy_url)
$ua->proxy($scheme, $proxy_url)

Set/retrieve proxy URL for a scheme:
Code: (dl )
1
2
$ua->proxy(['http', 'ftp'], 'http://proxy.sn.no:8001/');
$ua->proxy('gopher', 'http://proxy.sn.no:8001/');

The first form specifies that the URL is to be used for proxying of access methods listed in the list in the first method argument, i.e. 'http' and 'ftp'.
The second form shows a shorthand form for specifying proxy URL for a single access scheme.

Falls du nach etwas anderem suchst, beschreibe dein Problem bitte genauer.

MfG
perl -E'*==*",s;;%ENV=~m,..$,,$&+42;e,$==f;$"++for+ab..an;@"=qw,u t,,print+chr;sub f{split}say"@{=} me"'
<< >> 2 Einträge, 1 Seite



View all threads created 2008-07-27 00:25.