[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Field names?



Sender: daparnin@xxxxxxxxxxxxxxxxxx





When posting to a web page do you assign values to the name= tag as opposed
to an id= tag?  With my recent adventures in web access with the HTTP API's
I'm now trying to do a login to an internal site that runs off of one of
our NT servers.  I can log in find from a browser but the message that I'm
getting back is the HTML for the invalid employee number.  Any thoughts
would be appreciated.

Dave Parnin
Nishikawa Standard Company
Topeka, IN  46571
daparnin@xxxxxxxxxxxxxxxxxx


My code snippet:
eval      data='emplnbr=12345&pass=xxxxx' + CRLF
eval      url='http://10.24.3.1/spede/SpMenu.asp'
eval      rc = http_url_post(url:
          %addr(data): %len(%trimr(data)):
          '/tmp/SPEDELogon.html')


HTML:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=unicode" http-equiv=Content-Type>
<META content="MSHTML 5.00.2920.0" name=GENERATOR></HEAD>
<title>SPEDE ASP Login Screen</title>

<BODY><P><FONT face=Arial size=4>
<center><STRONG>S&nbsp;P&nbsp;E&nbsp;D&nbsp;E&nbsp;
  &nbsp;L&nbsp;o&nbsp;g&nbsp;o&nbsp;n</STRONG> </FONT></P>
<P align=left><center><FONT color=mediumblue face="Arial Rounded MT Bold">
 Use this page to logon to&nbsp;SPEDE&nbsp;</FONT></P>

<FORM action="SpMenu.asp" method=post id=form1 name=form1>

<P align=left><center>EmplNbr:
<INPUT id=text1 name="emplnbr"></P>

<P align=left><center>Password:
<INPUT id=password1 name="pass"
type=password></P>

<INPUT type="submit" value="Submit" id=submit1 name=submit1>

<BR><BR><small>Note: This site is best viewed at a screen resolution of at
least 800x600</small>
</FORM></BODY></HTML>

-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubsribe from the list send mail
to majordomo@xxxxxxxxxxxxx with the body: unsubscribe ftpapi mymailaddr
-----------------------------------------------------------------------