Hi,
Yes. I tried to connect to the index.asp file.
still it doesn't work. I think the client is cookie enabled.
I found such code in the index.asp file--
<% If Session("__CheckCookieRedirTo_") = "" Then %>
<% End If %>
<%
' If Session("__SignupRedirTo_") = "" Then
' If InStr(Request.ServerVariables("HTTP_REFERER"), "vshare") Or _
If InStr(Request.ServerVariables("HTTP_REFERER"), "videoshare")
Then
Session("__SignupRedirTo_") = Application("Home") &
"videoshare/"
Else
Session("__SignupRedirTo_") = "/"
End If
' End If
' perform a check of user's cookie to see if already exists in db
If (Request.QueryString("ignorecookie") <> "yes") AND ((getIdFromCookie <>
-1) OR Session("urluser_id") <> "") Then
Response.Redirect("/error/ismember.asp")
Else
Session("__NewUser_") = "Y"
%>
What code should I add to my jsp file so that I could bypass the cookie
test in the .asp file?
I guess I need to make the "ignorecookie" thing to be "yes"?
(btw, I use sun's JSWDK)
Thanks a lot.
>Did you try "http://www.myvideoshare.com/members/join/index.asp"?
>Also, the .asp file might be setting a dummy cookie and reading it back
to
see if the client is cookie enabled. Note that this is not a static HTML
page...
----- Original Message -----
From: "Yunyun Cai" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, June 09, 2000 9:27 AM
Subject: need help on setting cookies to a URL object
> Hi,
> I used such code as follows to get a page using the URL object:
> <%
> URL url=new URL("http://www.myvideoshare.com/members/join");
>
> BufferedReader rd=new BufferedReader(new
> InputStreamReader(url.openStream()));
> String s="";
> while((s=rd.readLine())!=null)
> out.println(s);
> %>
> But instead of the sign-up page, what I got is a "Cookies Required"
page.
> Could anybody help me on this?
> Thanks!
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=Serv
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets