want to login on other site with the help of curl function??

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
djdon11
Forum Commoner
Posts: 90
Joined: Wed Jun 20, 2007 5:03 pm

want to login on other site with the help of curl function??

Post by djdon11 »

Hi friends..

i have an issue

actually i want to login on yahoo suppose .. but not with the login page of yahoo.com , that means i made a login form where i will enter the username & password of my yahoo account .. now i want to login on yahoo through my login form ... is it possbile through curl function of php ????

if anybody have any kind of idea than it is most welcome

Thanks
ASDen
Forum Commoner
Posts: 55
Joined: Fri Aug 24, 2007 10:27 am

Post by ASDen »

i think yahoo uses a simple get call for logging in so [s]u[/s] you can log in easily(use webdev extension/livehttpheaders/ or just read the source)

i don't know why you want but as you call yahoo will keep asking for user/pass during your session which may corrupt [s]ur[/s] your attempt

Anyway just try it
[url=http://forums.devnetwork.net/viewtopic.php?t=30037]Forum Rules[/url] Section 1.1 wrote:11. Please use proper, complete spelling when posting in the forums. AOL Speak, leet speak and other abbreviated wording can confuse those that are trying to help you (or those that you are trying to help). Please keep in mind that there are many people from many countries that use our forums to read, post and learn. They do not always speak English as well as some of us, nor do they know these aberrant abbreviations. Therefore, use as few abbreviations as possible, especially when using such simple words.

Some examples of what not to do are ne1, any1 (anyone); u (you); ur (your or you're); 2 (to too); prolly (probably); afaik (as far as I know); etc.
User avatar
aaronhall
DevNet Resident
Posts: 1040
Joined: Tue Aug 13, 2002 5:10 pm
Location: Back in Phoenix, missing the microbrews
Contact:

Post by aaronhall »

Also consider the possibility of session cookies being sent to you before you post to the login page, and referrer header checks
regexpert
Forum Newbie
Posts: 7
Joined: Sat Oct 20, 2007 3:41 am

Use Wget command

Post by regexpert »

If you can use system or shell_exec function, and send commands to the command line, I recommend you to use wget since it's faster than all the other solutions.
Post Reply