englm
asked on
Getting rid of Netscape Login prompt for .asp
I am using an .htm form to prompt a user for info which is then passed to a .asp file to add info to an Access database. Whenever I "submit" the info on the .htm form, Netscape 4.04 prompts me for a userid & password. This does not happen in IE4. What is causing this and how can I stop the dialog from popping up? Also, even if I type any userid & password it is rejected. I am using NT4 workstation.
ASKER
Here is the .htm file:
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html;charset =windows-1 252">
<TITLE>info</TITLE>
</HEAD>
<BODY>
<FORM METHOD="POST" ACTION="http://george/aspsamp/advworks/test2.asp"
ENCTYPE="application/x-ww w-form-url encoded">
<TABLE>
<TR>
<TD ALIGN="RIGHT" VALIGN="MIDDLE">Name?
<TD ALIGN="LEFT">
<INPUT TYPE="text" NAME="name" VALUE=""
SIZE="20" MAXLENGTH="150">
<TR>
<TD ALIGN="RIGHT" VALIGN="MIDDLE">Organizati on?
<TD ALIGN="LEFT">
<INPUT TYPE="text" NAME="organization" VALUE=""
SIZE="25" MAXLENGTH="150">
<TR>
<TD ALIGN="RIGHT" VALIGN="MIDDLE">
Email Address?
<TD ALIGN="LEFT">
<INPUT TYPE="text" NAME="email" VALUE=""
SIZE="25" MAXLENGHT="150">
<TR>
<TD ALIGN="RIGHT" VALIGN="MIDDLE">Phone Number?
<TD ALIGN="LEFT">
<INPUT TYPE="text" NAME="phone" VALUE=""
SIZE="25" MAXLENGHT="150">
</TABLE>
<INPUT TYPE="reset">
<INPUT TYPE="submit" NAME="submit" VALUE="Submit">
</FORM>
Here is my .asp code:
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html;charset =windows-1 252">
<TITLE>info</TITLE>
</HEAD>
<BODY>
<%
Param = Request.QueryString("Param ")
Data = Request.QueryString("Data" )
%>
<%
If IsObject(Session("test_con n")) Then
Set conn = Session("test_conn")
Else
Set conn = Server.CreateObject("ADODB .Connectio n")
conn.open "test","admin","admin"
Set Session("test_conn") = conn
End If
%>
<%
Set rs = Server.CreateObject("ADODB .Recordset ")
rs.Open "info", conn, 1, 3, 2
name=request.form("name")
organization=request.form( "organizat ion")
email=request.form("email" )
phone=request.form("phone" )
rs.AddNew
rs("name") = name
rs("organization") = organization
rs("email") = email
rs("phone") = phone
rs.Update
rs.Close
%>
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html;charset
<TITLE>info</TITLE>
</HEAD>
<BODY>
<FORM METHOD="POST" ACTION="http://george/aspsamp/advworks/test2.asp"
ENCTYPE="application/x-ww
<TABLE>
<TR>
<TD ALIGN="RIGHT" VALIGN="MIDDLE">Name?
<TD ALIGN="LEFT">
<INPUT TYPE="text" NAME="name" VALUE=""
SIZE="20" MAXLENGTH="150">
<TR>
<TD ALIGN="RIGHT" VALIGN="MIDDLE">Organizati
<TD ALIGN="LEFT">
<INPUT TYPE="text" NAME="organization" VALUE=""
SIZE="25" MAXLENGTH="150">
<TR>
<TD ALIGN="RIGHT" VALIGN="MIDDLE">
Email Address?
<TD ALIGN="LEFT">
<INPUT TYPE="text" NAME="email" VALUE=""
SIZE="25" MAXLENGHT="150">
<TR>
<TD ALIGN="RIGHT" VALIGN="MIDDLE">Phone Number?
<TD ALIGN="LEFT">
<INPUT TYPE="text" NAME="phone" VALUE=""
SIZE="25" MAXLENGHT="150">
</TABLE>
<INPUT TYPE="reset">
<INPUT TYPE="submit" NAME="submit" VALUE="Submit">
</FORM>
Here is my .asp code:
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html;charset
<TITLE>info</TITLE>
</HEAD>
<BODY>
<%
Param = Request.QueryString("Param
Data = Request.QueryString("Data"
%>
<%
If IsObject(Session("test_con
Set conn = Session("test_conn")
Else
Set conn = Server.CreateObject("ADODB
conn.open "test","admin","admin"
Set Session("test_conn") = conn
End If
%>
<%
Set rs = Server.CreateObject("ADODB
rs.Open "info", conn, 1, 3, 2
name=request.form("name")
organization=request.form(
email=request.form("email"
phone=request.form("phone"
rs.AddNew
rs("name") = name
rs("organization") = organization
rs("email") = email
rs("phone") = phone
rs.Update
rs.Close
%>
You have set the webserver (IIS) to Challenge/Respond for the virtual directory. Turn that off.
Challenge/Respond can only be used by IE. It is an authentication method. The server will ask for username/password and the browser will send it encrypted. IE will use the current NT username/password from the machine on which the browser is running.
Netscape does not know what to do with it.
Challenge/Respond can only be used by IE. It is an authentication method. The server will ask for username/password and the browser will send it encrypted. IE will use the current NT username/password from the machine on which the browser is running.
Netscape does not know what to do with it.
ASKER
Sybe,
I turned off the NT Challenge/Response for my www directories through Inet Service Manger, but the same problem occurs.
I also noticed that in Netscape I cannot type http://myserver/mystuff.htm as I can in IE. When I type this URL into the Netscape box I immediately get a login prompt. Netscape wants to see File://E:/mydirectory/myst uff.htm.
I turned off the NT Challenge/Response for my www directories through Inet Service Manger, but the same problem occurs.
I also noticed that in Netscape I cannot type http://myserver/mystuff.htm as I can in IE. When I type this URL into the Netscape box I immediately get a login prompt. Netscape wants to see File://E:/mydirectory/myst
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Thanks