![]() |
Coding gurus: How to get past a login form
I have some PHP code that is getting the source code of a forums page, BUT the forum requires you to be logged in to view any threads. Is there any kind of way to make the script "log in" or any way to get past vBulletins required login?
|
curl can do what you want
|
Quote:
|
http://curl.haxx.se/libcurl/php/exam...bay_login.html
sample for ebay, will have to modify it of course, but im sure you can find an example if you just search goog for a bit |
Make sure if you use curl to use cookies too or you'll lose the 'login' state.
WG |
basically use post to login, keep the cookie, follow the location, and access the next page with the stored cookie
|
PHP Code:
|
Quote:
If someone could throw something really basic together that logs into a vBulletin forum I'll PayPal you like $10 for it. |
if you provide a demo account to the vbulletin maybe someone can do it, so they can test it out
|
Quote:
|
Quote:
http://board.rapbasement.com/ username: RBdummyaccount password: 123456 Quote:
|
Quote:
|
Quote:
P.S. I tested your login via my script and it works perfectly. |
http://www.phpclasses.org/browse/package/1988.html
They also have documentation on how to use the class file and interface with it. I use phpclasses a lot, when I don't want to reinvent the wheel, yet I want a nice OOP approach to whatever I'm doing. They always give basic examples on how to do things, as well. :thumbsup:thumbsup |
You may also be able to find a great PEAR package to handling CURL. Good luck!:thumbsup
|
I know I'll be visiting 13scripts.com for all my coding needs :1orglaugh
|
All times are GMT -7. The time now is 02:21 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123