Авторизация с CURL online.teztour.com, Не могу авторизоваться - прошу помощи.

Статус
В этой теме нельзя размещать новые ответы.

lexey2006.90

Новичок
Вроде отправляю в POST все input, кроме submit. online.teztour.com - страница авторизации.
PHP:
<html>
<head>
	<title>TEZ TOUR - Вход в систему / Sign In</title>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<link rel="stylesheet" href="http://static.dev.teztour.com/portal/styles/style.css" type="text/css" media="screen" />
</head>
<body class="login_body">
<table style="width:100%; height:100%;">
		<tr>

		 <td align="center" style="vertical-align: middle;">			  
			  <div class="shadow-block" style="display: inherit;">
				<div style="background-color: #fff;padding: 20px; width:550px; margin-top:10px; text-align: left;">					 					 
					 <div class="clear"></div>
					 <div style="float:left; width:120px; text-align: center; padding-right:20px;">
						 <div class="login_logo"><a href="http://www.teztour.com/" title="TEZ TOUR"></a></div>
						 <a href="mailto:[email protected]">[email protected]</a>
					 </div>
					 
					 <div style="float:right; width:389px; text-align: justify; border-left: 1px dotted #C0C0C0; padding-left:20px;">						
						<h1 style="margin: 0 0 20px 0;">Вход в систему / Sign In</h1>

                  
                   
                  
						<form name="f" action="login.htm" method="POST">
							<input type="hidden" name="ref" value="http://online.teztour.com/armmanager/">
							<label class="label_login" for="j_username">Имя пользователя / Login</label><input type="text" name="j_username" id="j_username" value="">
							<label class="label_login" for="j_password">Пароль / Password</label><input type="password" name="j_password" id="j_password" value="">
							
							<input name="submit" type="submit" value="Войти / Sign in" class="login-butt">
						</form>
						 
					 </div>
					<div class="clear"></div>

					
				</div>
			  </div>
		 </td>
	</tr>
</table>
</body>
</html>
вот код curl
PHP:
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "http://".$host.$url);
curl_setopt($curl, CURLOPT_REFERER, 'http://'.$host.$url);
curl_setopt($ch, CURLOPT_VERBOSE, 1);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS,"j_username=".$teztour_login."&j_password=".$teztour_passwd."&ref=http://online.teztour.com/armmanager/");
curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/4.0 (Windows; U; Windows NT 5.0; En; rv:1.8.0.2) Gecko/20070306 Firefox/1.0.0.4");
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_COOKIEJAR, 'cook.txt');
curl_setopt($ch, CURLOPT_COOKIEFILE, 'cook.txt');
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
$result=curl_exec($ch);
var_dump($result);
curl_close($ch);
 

zerkms

TDD infected
Команда форума
По морально-этическим причинам подобные вопросы на этом форуме не обсуждаются
 
Статус
В этой теме нельзя размещать новые ответы.
Сверху