Old 01-09-2005, 16:14   #1 (permalink)
Omnetix
Senior Member
 
Omnetix's Avatar
 
Join Date: Jun 2003
Location: Texas
Posts: 109
PHP trouble

I have a program that has worked for over a year that logs onto a wholesaler's website and automatically checks inventory on products. It broke this week, and nobody knows why, including the wholesaler's IT dept. I can log in manually entering my UserID and Password. But this bit of PHP script does not anymore. My PHP developers are stumped, and I have spent a week and more money on 'consultants' who seem to know less about PHP than we do...

This is the offending bit of script (with UserID changed of course).

###############
$page = PostPage("https://techdata.com/security/loginPage.aspx", "__EVENTTARGET=&__EVENTARGUMENT=&__VIEWSTATE=dDwtM TYwMzkwNjYxNTs7bDxjaGtTYXZlTG9naW47bXlTU0w7Pj4%3D& txtUserID=123456&txtPassword=$password&btnLogin=++ Login&chkSaveLogin=on");
###############

The viewstate currently on the login page's source is __VIEWSTATE" value="dDwxOTY4NjQ4MDc1OztsPGNoa1NhdmVMb2dpbjtteVN TTDs+Pg==" We have tried changing the script to reflect that of course, but this doesnt seem to be the problem, as it has been that for some time and was working just fine.

Any ideas?
__________________
Simon Dwyer
Omnetix Corporation
simon@omnetix.com
www.omnetix.com
www.omnetixpc.com
  Reply With Quote
Old 01-09-2005, 17:51   #2 (permalink)
Luke Redpath
Barney army!
 
Luke Redpath's Avatar
 
Join Date: Mar 2003
Location: London
Posts: 692
To be honest, without having access to the PostPage function source and a working login, its gonna be pretty hard for anybody here to debug.
__________________
Luke Redpath .::. Software Engineer .::. Reevoo - Real Reviews From Real Customers
  Reply With Quote
Old 01-09-2005, 18:35   #3 (permalink)
Omnetix
Senior Member
 
Omnetix's Avatar
 
Join Date: Jun 2003
Location: Texas
Posts: 109
I got it fixed.

Wow. And it was simple. Arent these seemingly unfathomable script problems always simple? My 'hotshot PHP-expert' employees that couldnt find the problem are all hiding from me now...
__________________
Simon Dwyer
Omnetix Corporation
simon@omnetix.com
www.omnetix.com
www.omnetixpc.com
  Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Contact Us - Web Design Forums - Archive - Top
Search Engine Optimization by vBSEO 3.0.0 RC8