#include "FiveWin.ch"
function SendSMSI()
local oWnd, oActiveX
DEFINE WINDOW oWnd
@ 0, 0 ACTIVEX oActiveX PROGID "Shell.Explorer" OF oWnd
oWnd:oClient = oActiveX
ACTIVATE WINDOW oWnd ;
ON INIT oActiveX:Do( "Navigate2",;
"http://mensaredempresas.vodafone.es/",,,;
GetPostData( "enterprise=miempresa&login=milogin&password=mipassword" ),;
"Content-Type: application/x-www-form-urlencoded" + CRLF )
return nil
<TABLE bgcolor=#ffffff border="0" cellpadding="0" cellspacing="0"
width="759">
<TBODY>
<TR>
<TD><IMG height="1" src="imagenes/pixel.gif" width="14"></TD>
<TD width="164" valign="top"> </TD>
<TD width="7"><img src="imagenes/pixel.gif" width="7" height="1"></TD>
<TD width="403" valign="top" class="txtGrey">
<table width="395" height="18" border="0" cellpadding="0"
cellspacing="0" background="css/imagenes_css/dot_red.gif">
<tr>
<td class="TopLevelRed">Validación Usuario</td>
</tr>
</table>
<br>
<FORM name="form1" method="post" action="servlet/AuthenUserServlet">
<span class="txtGrey">Empresa:</span><br>
<input name="enterprise" type="text" class="txtBlack" size="20">
<br>
<br>
<span class="txtGrey">Usuario:</span><br>
<input name="login" type="text" class="txtBlack" size="20"> <br>
<br>
<span class="txtGrey">Contraseña:</span><br>
<input name="password" type="password" class="txtBlack" size="20">
<br>
<br>
<br>
<input type="submit" class="redBtn" value="Aceptar"
onSubmit="javascript:checkParams(document.form1)"> <input
type="reset" class="redBtn" value="Cancelar"></FORM>
</TD>
<TD width="7"><img src="imagenes/pixel.gif" width="7" height="1"></TD>
<TD width="164" valign="top"><br>
</TD>
<TD><IMG height="1" src="imagenes/pixel.gif" width="15"></TD>
</TR>
</TBODY>
</TABLE>
<html>
<head>
<title>:: FiveTech Software :: HTTPS Post test</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<style type="text/css">
BODY {
SCROLLBAR-SHADOW-COLOR: #000000; SCROLLBAR-ARROW-COLOR: #ffffff; SCROLLBAR-BASE-COLOR: #000000; scrollbar-3d-light-color: #800000; scrollbar-dark-shadow-color: #800000
}
</style>
<body background="../images/back.jpg" bgcolor="#000000">
<font color="#FFFFFF" size="3" face="Verdana, Arial, Helvetica, sans-serif">This is a HTTPS post test. Please check your supplied data:</font><br>
<form name="form1">
<table width="721">
<tr>
<td><table border="0" bordercolor="#FFFFFF">
<tr>
<td width="101"><font color="#FFFFFF" size="2" face="Verdana, Arial, Helvetica, sans-serif">First:</font></td>
<td width="248"><font color="#FFFFFF" size="2" face="Verdana, Arial, Helvetica, sans-serif"> <? echo $HTTP_POST_VARS['first'] ?></font></td>
</tr>
<tr>
<td><font color="#FFFFFF" size="2" face="Verdana, Arial, Helvetica, sans-serif">Last:</font></td>
<td><font color="#FFFFFF" size="2" face="Verdana, Arial, Helvetica, sans-serif"> <? echo $HTTP_POST_VARS['last'] ?></font></td>
</tr>
</table></td>
</tr>
</table>
</form>
<br>
<br>
</body>
</html>
<FORM name="form1" method="post" action="servlet/AuthenUserServlet">
<span class="txtGrey">Empresa:</span><br>
<input name="enterprise" type="text" class="txtBlack" size="20">
<br>
<br>
<span class="txtGrey">Usuario:</span><br>
<input name="login" type="text" class="txtBlack" size="20"> <br>
<br>
<span class="txtGrey">Contraseña:</span><br>
<input name="password" type="password" class="txtBlack" size="20">
<br>
<br>
<br>
<input type="submit" class="redBtn" value="Aceptar"
onSubmit="javascript:checkParams(document.form1)"> <input
type="reset" class="redBtn" value="Cancelar"></FORM>
#include "FiveWin.ch"
function SendSMSI()
local oWnd, oActiveX
DEFINE WINDOW oWnd
@ 0, 0 ACTIVEX oActiveX PROGID "Shell.Explorer" OF oWnd
oWnd:oClient = oActiveX
ACTIVATE WINDOW oWnd ;
ON INIT oActiveX:Do( "Navigate2",;
"http://mensaredempresas.vodafone.es/servlet/AuthenUserServlet",,,;
GetPostData( "enterprise=miempresa&login=miuser&password=mipas" ),;
"Content-Type: application/x-www-form-urlencoded" + CRLF )
return nil
Return to FiveWin para Harbour/xHarbour
Users browsing this forum: cmsoft and 41 guests