| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
|
|
#1 (permalink) |
|
Senior Member
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? |
|
|
|
|
|
#2 (permalink) |
|
Barney army!
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
|
|
|
|
#3 (permalink) |
|
Senior Member
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... |
|
![]() |