SnapStream Forums

Go Back   SnapStream Forums > General Discussion > Off-Topic
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 02-10-2009, 08:45 AM
NickHark's Avatar
Registered User
 
Join Date: Nov 2003
Location: San Jose
Posts: 489
need utility for web login when required

I am looking for a utility, or to write a batch file, that can log me in to a web site when I need to.

This site requires re-login in random days.

I have an automated recording program recording a web program and I miss it occasionally because I haven't gone to the site and verified I am still logged in. This runs on a dedicated machine.

The utility will only have to
1, load the web page,
2, determine if my name appears and
3, if it doesn't, go to the text entry boxes and enter my login and password.

I have tried to write batch file but I can't locate an easy one to search for my name on the page and give result codes so the program can proceed.

Any help is appreciated.
__________________
Thx, Nick

XP Pro 32b
ASUS P6T 1366 X58 MOBO
Intel QUAD Core i7 920 2.66GHz
3g DDR3 (XP Pro max)
ATI HD 4650 PCIe graphics
HVR 1600 (ATSC & QAM/Analog)
HVR 1600 (ATSC & QAM/Analog)
HVR 1950 (USB QAM/Analog)
HVR 2250 (QAM/Analog)
1t SATA and 750g SATA in addition to 160g PATA system drive
BTV 4.9.2
BTVNegociator
BTVLink/BM on two Dell Optiplex GX620 USFF
Reply With Quote
  #2 (permalink)  
Old 02-10-2009, 09:02 AM
TomXP411's Avatar
Registered User
 
Join Date: Jul 2006
Location: Southern California
Posts: 880
Send a message via Skype™ to TomXP411
Re: need utility for web login when required

you can't really do that with a batch file... but you might be able to do it with a Firefox addon.

But having said that... I've never written a FireFox addon, so you'll have to go over to the Firefox site and poke around.
__________________
HTPC
BTV ◦ Phenom x4 9850 ◦ Gigabyte GA-78GM Mobo ◦ 4 GB ◦ XP SP2 1TB SATA, 250GB SATA, 80GB EIDE ◦ HVR 2250 (QAM+Analog) ◦ 2x HVR-1950 ◦ SA 4250 cable box ◦ GeForce 9600 ◦ 32" LCD TV ◦ Lite-On SATA DVD-RW ◦ Gyration Media Remote & Mini Wireless KB ◦ Via 7.1 sound card w/SP-DIF
Reply With Quote
  #3 (permalink)  
Old 02-10-2009, 09:17 AM
Registered User
 
Join Date: Nov 2007
Posts: 154
Re: need utility for web login when required

Autoit would probably be a better choice to automate this process. You should be able to do all that you need and the scripting for Autoit isn't hard to learn, plus they have tons of example scripts out there already. You can even compile the script into a standalone exe file, if you need to.

http://www.autoitscript.com/
__________________
BeyondTV 4.9.2 Server (Hardware Updated Sept 2009) :
Intel Core2Quad Q9550 | 4 GB RAM | Nvidia 7600GS
- Hauppauge WinTV 500 MCE Dual Tuner (x2) - 2 Tuners for Analog Cable, 1 Tuner for Cable Box
- Pinnacle PCTV HD USB Stick (x4) - Over the Air HD
- HDHomeRun (x2) - Clear QAM
- 52" Sony HD LCD TV

BTV Link:
Acer AspireRevo 1600
- 32" LCD HD TV
Reply With Quote
  #4 (permalink)  
Old 02-10-2009, 09:42 AM
Cal Cal is offline
Registered User
 
Join Date: Mar 2004
Location: Edmonton
Posts: 569
Re: need utility for web login when required

This is simple with something like Autoit.

But its a full language. There will be a steep learning curve. But its well worth it. I've written a few apps that interact with web pages. But web pages are only a small part.

If you do look at it, you will want to look at the ie.au3 functions to interact with web pages. However, what your looking for may be doable with just a few of the basic windows commands. It sounds simple enough.

I used the basic stuff for some simple web stuff before learning the more advanced ie functions.

A simple select/copy to clipboard of the screen. parse for text. a couple send keystrokes and your done.

then look at the ie functions after to learn how to interact fully and directly with the web without having to rely on keystrokes or macros or anything even showing on the screen.

and one last thing. Its completely .... Free.
__________________
Dedicated BTV 4.9.2, XP pro SP2 running on a P4 3.05, 2.5GB Ram, 300GBx3 Drives (Raid 5),
Quad Recording via 2 PVR250 cards and an Nvidia DualTV Card, VBR, 9800pro
USB-UIRT, UltraVNC, Bell ExpressVu.
Reply With Quote
  #5 (permalink)  
Old 02-10-2009, 10:51 AM
Registered User
 
Join Date: Jan 2006
Posts: 196
Re: need utility for web login when required

Basic authentication (dialog box prompt for username and password) or forms-based authentication (username and password on the webpage itself)?

If the site uses basic authentication, you can probably automate using CURL in a batch file, launched by task scheduler.

http://en.wikipedia.org/wiki/CURL

If not, you may still be able to use CURL to retreive the response HTML, parse it, and build a HTTP POST or other reply to the challange.

Last edited by Mike DiBella; 02-10-2009 at 10:53 AM.
Reply With Quote
  #6 (permalink)  
Old 02-10-2009, 09:56 PM
NickHark's Avatar
Registered User
 
Join Date: Nov 2003
Location: San Jose
Posts: 489
Re: need utility for web login when required

The Mind Reels.....

Great food for thought.
__________________
Thx, Nick

XP Pro 32b
ASUS P6T 1366 X58 MOBO
Intel QUAD Core i7 920 2.66GHz
3g DDR3 (XP Pro max)
ATI HD 4650 PCIe graphics
HVR 1600 (ATSC & QAM/Analog)
HVR 1600 (ATSC & QAM/Analog)
HVR 1950 (USB QAM/Analog)
HVR 2250 (QAM/Analog)
1t SATA and 750g SATA in addition to 160g PATA system drive
BTV 4.9.2
BTVNegociator
BTVLink/BM on two Dell Optiplex GX620 USFF
Reply With Quote
  #7 (permalink)  
Old 02-10-2009, 11:20 PM
Nick Burns's Avatar
Registered User
 
Join Date: Mar 2007
Location: Cypress, CA
Posts: 1,405
Re: need utility for web login when required

Have you tried passing the username/password in the url all the time? IE no longer supports this (unless it's a setting that can be changed), but Firefox does. the format would be:

http://username:password@website

If the website works with that, it would essentially log you in each time whether you need to or not. Then the rest can be taken care of as needed.
__________________
Case: HD160XT|PSU: CMPSU-520HX 520W|MB: Fatal1ty F-I90HD|OS HD: Seagate 160GB EIDE (WinXPSP3)|HDD: WD 750GB (x4 RAID0+1)|Intel E6420|Cooler: CNPS7700-CU|Mem: 2GB TWIN2X1024-6400C4 PC2-6400|ODD: LH-20A1H-185|Tuners (7OTA): (1) WINTV-HVR-1600 / (3) HDHomeRuns [8-way CVT-2/8PIA II]|Remotes: Harmony 1 / 880
BTV:v4.6.1 - 08/20/2007
BTV:v4.7.1 - 01/19/2008
BTV:v4.8.1 - 03/21/2008
BTV:v4.8.2 - 07/10/2008
BTV:v4.9.2 - 06/14/2009
Reply With Quote
  #8 (permalink)  
Old 02-11-2009, 05:30 AM
NickHark's Avatar
Registered User
 
Join Date: Nov 2003
Location: San Jose
Posts: 489
Re: need utility for web login when required

Quote:
Originally Posted by Nick Burns View Post
Have you tried passing the username/password in the url all the time? IE no longer supports this (unless it's a setting that can be changed), but Firefox does. the format would be:

http://usernameassword@website

If the website works with that, it would essentially log you in each time whether you need to or not. Then the rest can be taken care of as needed.
Fascinating. Thanks!

I found this @ Microsoft:

How to disable the new default behavior for handling user information in
HTTP or HTTPS URLs

To disable the new default behavior in Windows Explorer and Internet Explorer, create iexplore.exe and explorer.exe DWORD values in one of the following registry keys and set their value data to 0.

 For all users of the program, set the value in the following registry key:
HKEY_LOCAL_MACHINE\Software\Microsoft\Internet
Explorer\Main\FeatureControl\FEATURE_HTTP_USERNAME _PASSWORD_DISABLE

 For the current user of the program only, set the value in the following registry key:
HKEY_CURRENT_USER\Software\Microsoft\Internet
Explorer\Main\FeatureControl\FEATURE_HTTP_USERNAME _PASSWORD_DISABLE


I will give it a try, later.
__________________
Thx, Nick

XP Pro 32b
ASUS P6T 1366 X58 MOBO
Intel QUAD Core i7 920 2.66GHz
3g DDR3 (XP Pro max)
ATI HD 4650 PCIe graphics
HVR 1600 (ATSC & QAM/Analog)
HVR 1600 (ATSC & QAM/Analog)
HVR 1950 (USB QAM/Analog)
HVR 2250 (QAM/Analog)
1t SATA and 750g SATA in addition to 160g PATA system drive
BTV 4.9.2
BTVNegociator
BTVLink/BM on two Dell Optiplex GX620 USFF
Reply With Quote
  #9 (permalink)  
Old 02-11-2009, 01:00 PM
Registered User
 
Join Date: Jan 2006
Posts: 196
Re: need utility for web login when required

I'm pretty sure the password passing URL format only works for basic authentication, which is standardized and passed in the HTTP headers. Forms authentication is not standardized and each web publisher will use different names for the values passed from the authentication form.
Reply With Quote
  #10 (permalink)  
Old 02-11-2009, 01:28 PM
Nick Burns's Avatar
Registered User
 
Join Date: Mar 2007
Location: Cypress, CA
Posts: 1,405
Re: need utility for web login when required

Quote:
Originally Posted by Mike DiBella View Post
I'm pretty sure the password passing URL format only works for basic authentication, which is standardized and passed in the HTTP headers. Forms authentication is not standardized and each web publisher will use different names for the values passed from the authentication form.
True, it's just another option to try. If the website supports it, then he's good to go.
__________________
Case: HD160XT|PSU: CMPSU-520HX 520W|MB: Fatal1ty F-I90HD|OS HD: Seagate 160GB EIDE (WinXPSP3)|HDD: WD 750GB (x4 RAID0+1)|Intel E6420|Cooler: CNPS7700-CU|Mem: 2GB TWIN2X1024-6400C4 PC2-6400|ODD: LH-20A1H-185|Tuners (7OTA): (1) WINTV-HVR-1600 / (3) HDHomeRuns [8-way CVT-2/8PIA II]|Remotes: Harmony 1 / 880
BTV:v4.6.1 - 08/20/2007
BTV:v4.7.1 - 01/19/2008
BTV:v4.8.1 - 03/21/2008
BTV:v4.8.2 - 07/10/2008
BTV:v4.9.2 - 06/14/2009
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Uninstall Utility? The Newest Newb Beyond TV and Beyond TV Link 3 02-01-2007 04:29 PM
Notification utility. StephaneM SnapStream Discussion 0 08-29-2004 02:30 PM
Utility to cut files MJC Development Discussion 1 05-01-2004 09:35 AM
XMLTV and the import utility Asher Beyond TV and Beyond TV Link User-to-User Troubleshooting & Support Forum 4 07-21-2003 05:42 AM
MSI Cooler XP Utility Matt_W Beyond TV and Beyond TV Link User-to-User Troubleshooting & Support Forum 1 06-03-2003 02:36 PM


All times are GMT -6. The time now is 02:45 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.0 RC1
©2004-2009 Snapstream Media