由买买提看人间百态

topics

全部话题 - 话题: loginurl
(共0页)
c*******t
发帖数: 1095
1
来自主题: Programming版 - 用C#读取网页的问题?
又有问题了,为啥我的程序执行第一次是对的,用循环让它执行第二次就出错了?死循
环出不来,在第二个网页GetResponse那
我的code:
static void LLogin(string loginUrl, string usr, string pwd)
{
string loginstr = "http://travel.united.com/ube/compactSearch.do?auth=NR";
string loginstr2 = "http://travel.united.com/ube/award/us/compactSearch.do?waitingPageFlag=true";

try
{
CookieCollection gCookieCollention = null;
HttpWebRequest BBSRequest = nu... 阅读全帖
s****y
发帖数: 983
2
来自主题: BuildingWeb版 - 请教有关iframe的问题
//if iframed, redirect parent window, otherwise redirect self
//(not considering depth of iframe > 1)
if(top!==self)
{
self.parent.location = loginUrl;
}
else
{
self.location = loginUrl;
}
c*******t
发帖数: 1095
3
来自主题: Programming版 - 用C#读取网页的问题?
网页如下:
http://travel.united.com/ube/award/us/compactSearch.do?Log=1&switch=true&submitingShopInputForm=true&shop_flightCount=2&changeLanguage=false&languageRedisplayPage=%2Fjsp%2Fshop%2FAward.jsp&actionType=search&waiting=true&award_type=Saver&shop_triptype=onew
ay&shop_from0=PHL&shop_to0=JFK&shop_departtime0=&shop_arrivetime0=&shop_arriveday0=01&shop_departmonth0=2010-12&shop_departday0=12&shop_arrivemonth0=2011-01&shop_viewresults=SCHEDULE&shop_passenger0=1-ADT&shop_passenger1=0-SRC&shop_passen... 阅读全帖
m**********e
发帖数: 19
4
来自主题: DotNet版 - ASP.NET -- help
Check Web.Config
There must be something like this:

timeout="1440"/>

...




This is ASP.NET's form authentication. It will redirect you to the login page
when you try to access protected pages without login.
D*****n
发帖数: 363
5
来自主题: DotNet版 - The "automatically log me in" option

Still not quite right here. After I check the "auto-log-me" box and
log in, Firefox shows the login cookie will expire in 30 minutes. By
msdn document, it should expire in 50 years. After I log out, the
cookie is gone from the Firefox browser. It's almost the same in IE.
My authentication setting is pretty simple:

loginUrl="SignIn.aspx"
protection="All" path="/" />
n*******d
发帖数: 4
6
折腾了二个星期了 :(
Tomcat 4.0 on Linux, trying to connect to MySQL
It can't find the data source I defined and throws this error:
javax.servlet.ServletException: Cannot create resource instance
I'm not sure if there's any security setting preventig this?
I can access MySQL using the following jsp code:
Class.forName("org.gjt.mm.mysql.Driver");
Connection dbcon = DriverManager.getConnection(loginUrl,
loginUser, loginPasswd);
Statement statement = dbcon.createSta
(共0页)