【PHP】PEAR Part3at PHP
【PHP】PEAR Part3 - 暇つぶし2ch315:309
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);
?>
なぜ駄目なんでしょう??実行してる環境の問題??


次ページ
続きを表示
1を表示
最新レス表示
レスジャンプ
類似スレ一覧
スレッドの検索
話題のニュース
おまかせリスト
オプション
しおりを挟む
スレッドに書込
スレッドの一覧
暇つぶし2ch