Helpful Information
 
 
Category: Perl Programming
automate login & booking

hi, how can i perform an automated login to web-based authentication like the following URL?
http://www.temasekclub.org.sg/MemberLoginParm.asp?FacilityTypeCode=100

<BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">quote:</font><HR>Originally posted by Corisen:
hi, how can i perform an automated login to web-based authentication like the following URL?
http://www.temasekclub.org.sg/MemberLoginParm.asp?FacilityTypeCode=100 [/quote]


You are asking how to write something (like a URL) that automatically authenticates and returns the page inside the members area?? If you have the username and password, something like this should work (for perl, don't know much about ASP):
http://www.temasekclub.org.sg/BookingPageSports.asp?UserID=MyUsername&Userpassword=MyPassword

I took "BookingPageSports.asp" from the action tag (of the source), there was some extra stuff '?NofDays=" 8' that may be important (looks malformed). And the '?UserId=MyUsername&UserPassword=MyPassword'are the HTTP standard way to passing two peices of data to a CGI script. I got their names by reading the source.

Does that answer your question?

thanks for your reply.

i'm thinking of using perl (or other more efficient tools) to automate the login at a pre-defined time and automatically book the facilities.

do u think it is possible?

<BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">quote:</font><HR>Originally posted by Corisen:
thanks for your reply.

i'm thinking of using perl (or other more efficient tools) to automate the login at a pre-defined time and automatically book the facilities.

do u think it is possible?[/quote]

I'm certain that it is possible. But it may be quite a bit harder than it looks on the surface and I don't know enough about what you are doing to say whether it seems like a good idea. A friend spent a year on a team coding a java system for surfing competitor's rates. To make a robust system you could spend a lot of time, I think. Maybe you have a simpler thing in mind.

-Alan










privacy (GDPR)