Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP 3 Classic ASP Active Server Pages 3.0 > ASP Pro Code Clinic
|
ASP Pro Code Clinic As of Oct 5, 2005, this forum is now locked. No posts have been deleted. Please use "Classic ASP Professional" at: http://p2p.wrox.com/forum.asp?FORUM_ID=56 for discussions similar to the old ASP Pro Code Clinic or one of the other many remaining ASP and ASP.NET forums here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP Pro Code Clinic section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 18th, 2003, 09:10 AM
Authorized User
 
Join Date: Jun 2003
Posts: 54
Thanks: 1
Thanked 0 Times in 0 Posts
Default How To Perform Programmatic Log In To Another Site

I would like to write an application that logs in to some other webite, Yahoo for example, with a user name and password that is retrieved from a database, not typed in manually, and then retrieve information from a table. How does one do this. TIA
 
Old June 18th, 2003, 07:27 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 215
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You just need to send an HTTP Post. Generate a form with the same input fields as the Yahoo login form and submit it. Yahoo might check the HTTP-Referrer header so this may not work.

regards
David Cameron
 
Old June 25th, 2003, 03:30 PM
Registered User
 
Join Date: Jun 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

David,

Hi, I am trying to do something similar to what sg48 is trying to do. Could you elaborate a little on how to do what you have suggested? Any input you can provide is greatly appreciated.
 
Old June 25th, 2003, 06:37 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 215
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Generate a form that has the same fields as the yahoo login form, except that the fields are hidden. Set the action as the same as the yahoo form and add a submit button.

What I said about the HTTP-REFERRER header is that the browser will say where the page came from, and yahoo (and other sites) may check this and only allow people to login if they have passwed through the yahoo login page.

regards
David Cameron





Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't get Log to write the Log.txt file jnbutler BOOK: Professional XNA Game Programming: For Xbox 360 and Windows ISBN: 978-0-470-12677-6 3 July 31st, 2007 04:04 AM
Cant log in to the admin site? okboy BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 3 July 1st, 2006 07:08 AM
Cannot log in to Wrox United site Wullie BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 0 June 6th, 2006 01:51 PM
Programmatic Validation rit01 ASP.NET 2.0 Professional 3 May 11th, 2006 01:23 AM
AppException Class -Log Error to Event Log bekim BOOK: ASP.NET Website Programming Problem-Design-Solution 7 December 7th, 2004 01:01 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.