Retourner au contenu associé (journal : Faire remonter les sondages !)
Posté par Vincent Richard (site web personnel) le 25 octobre 2003 à 19:53. En réponse au journal Faire remonter les sondages !. Évalué à 1.
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
[^] # Re: Faire remonter les sondages !
Posté par Vincent Richard (site web personnel) . En réponse au journal Faire remonter les sondages !. Évalué à 1.
#!/usr/bin/perl --
use Socket;
$host = 'www.phpfrance.com';
$crlf = "015円012円";
$http = "POST /sondage/phpPollCollector.php3 HTTP/1.0$crlf".
"Host: $host$crlf".
"User-Agent: Mozilla GNU/Linux$crlf".
"Connection: close$crlf".
"Content-Type: application/x-www-form-urlencoded$crlf".
"Content-Length: 76$crlf$crlf".
"poll_id=4&poll_forwarder=somewhere&poll_voteNr=3";
$tcp = getprotobyname('tcp') or die "getprotobyname\n";
$hosti = inet_aton($host) or die "inet_aton\n";
$hosts = sockaddr_in(80, $hosti);
socket(SOK, PF_INET, SOCK_STREAM, $tcp) or die "socket\n";
connect(SOK, $hosts) or die "connect\n";
select SOK; $| = 1; select STDOUT;
print SOK $http;
$junk = '';
while () { $junk .= $_; }
close SOK or die "close\n";
Mais sépabien, cémemtrémal (tm)(c) !!!! ;-)
OK, je ---->[ ]