Batch Wizard username and password failure - 15.02 32-bit

For technical support for all editions of CSS HTML Validator. Includes bug reports.
Post Reply
User avatar
moganero
Rank II - Novice
Rank II - Novice
Posts: 32
Joined: Tue Feb 01, 2005 5:47 am
Location: Newcastle under Lyme, UK
Contact:

Batch Wizard username and password failure - 15.02 32-bit

Post by moganero » Wed Apr 01, 2015 6:30 am

I'm trying to link check a site that is accessible only if logged in, but only the login page is checked, even though the username and password are entered in the Batch Wizard fields.

The php login script sets session variables for user_id, username, and user_group , which are checked each time a page is requested.

15.02 32-bit

User avatar
Albert Wiersch
Site Admin
Site Admin
Posts: 3412
Joined: Sat Dec 11, 2004 9:23 am
Location: Near Dallas, TX
Contact:

Re: Batch Wizard username and password failure - 15.02 32-bit

Post by Albert Wiersch » Wed Apr 01, 2015 7:53 am

Hello,

I assume your login page posts to a php login script?

The username and password fields are only for NTLM & HTTP authentication... which you are probably not using.

I'm thinking the easiest way to solve this may be to add the ability to post a string to a URL... then you could post the username and password to the login script. Would you like to try this? If so, I can work on adding this and get back to you when a test version is ready to try.

Otherwise you'd probably need the enterprise edition and to use the addTarget() function in a user functions file for the Batch Wizard job:
https://www.htmlvalidator.com/v150/docs ... target.htm
Image
Albert Wiersch

User avatar
moganero
Rank II - Novice
Rank II - Novice
Posts: 32
Joined: Tue Feb 01, 2005 5:47 am
Location: Newcastle under Lyme, UK
Contact:

Re: Batch Wizard username and password failure - 15.02 32-bit

Post by moganero » Wed Apr 01, 2015 8:45 am

I'd be very happy to try it out if you're happy to give it a go!

User avatar
Albert Wiersch
Site Admin
Site Admin
Posts: 3412
Joined: Sat Dec 11, 2004 9:23 am
Location: Near Dallas, TX
Contact:

Re: Batch Wizard username and password failure - 15.02 32-bit

Post by Albert Wiersch » Wed Apr 01, 2015 9:53 am

Great! Let me work on this and get back to you when I have a version ready to try. I'm not sure how long it will be but probably at least a few days.
Image
Albert Wiersch

User avatar
moganero
Rank II - Novice
Rank II - Novice
Posts: 32
Joined: Tue Feb 01, 2005 5:47 am
Location: Newcastle under Lyme, UK
Contact:

Re: Batch Wizard username and password failure - 15.02 32-bit

Post by moganero » Wed Apr 01, 2015 9:59 am

No rush - I've got tons of work on at the moment (too much). Contacting you was by way of a break!

User avatar
Albert Wiersch
Site Admin
Site Admin
Posts: 3412
Joined: Sat Dec 11, 2004 9:23 am
Location: Near Dallas, TX
Contact:

Re: Batch Wizard username and password failure - 15.02 32-bit

Post by Albert Wiersch » Thu Apr 09, 2015 10:29 am

Hello,

I've emailed you a link to a test version to try which allows you to POST variables to URLs. Please try it and let me know how it works.

I think this should allow you to more easily emulate a website login, by posting the correct variables (like a username and password) to a login script.

Thanks!
Image
Albert Wiersch

Post Reply