次の方法でログインフォームを送信しています。
$loginRequest = array(
'Username' => 'myUsername'
'Password' => 'myPassword'
);
$request = new HTTP_Request2($url, HTTP_REQUEST2::METHOD_POST);
$request->addPostParameter($loginRequest);
$response = $request->send();
POST は成功し、$ の出力response
は
</body>
<a id="refresh_url" href="/homepage">Loading...</a>
</body>
(少なくともChromeから手動でログインする場合)入力のある別のフォームにリダイレクトします
<FORM name="autologin" method=POST action="https://homepage/AccountSettings">
<input type="hidden" name="Z" value="0,0">
refresh_url
PHP をプログラムで処理してリダイレクトする方法がわかりません/homepage
また、PHP にこの最後のフォームも送信させるにはどうすればよいですか?
編集
中間ページには次のメタタグもあります
<meta http-equiv="Refresh" content="0; URL=/vdesk/?langchar=en.iso-8859-1&ui_translation=off&gbrowsertype=">