08/09/04 19:49:53
<?php
require_once "HTTP/Client.php";
$URL = "URLリンク(register.www.infoseek.co.jp)";
$LOGIN_ID = 'xxxx';
$LOGIN_PW = 'xxxx';
$http = new HTTP_Client();
$http->setDefaultHeader(
array(
'User-Agent' => 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)',
'Referer' => $URL,
)
);
$params = array(
'username' => $LOGIN_ID,
'password' => $LOGIN_PW,
'plogin' => 'on',
'saveId' => 'on',
'sv' => 'JP',
);
$ret = $http->post($URL, $params);
$response = $http->currentResponse();
print_r($response['body']);
$cookie = $http->getCookieManager();
print_r($cookie);
?>
なぜ駄目なんでしょう??実行してる環境の問題??