i'm wondering if theres something similar in php to libwww in perl [FONT=Courier New] [INDENT] $f = HTML::Form->parse("http://www.example.com/index.html"); $action = "http://login.example.com/login.cgi?etcetcetc="; $f->action($action); $f->push_input("text",{email=>"email@email.com"}); $f->push_input("password",{password=>"pw"}); $f->click [/INDENT] [/FONT] so i can login via a simulated post from php rather than through a form
you won;t be able to login that way, as the 'server' will do the login, not the 'client'. There are ways of sending post data, but as a login, it just won't work.
I understand the server is doing the login, but its getting information from a form...i'd appreciate if you could elaborate on this or direct me to some more information...at least how to do it assuming its not a login... thanks.
nevermind..."sending post data" google did the trick. http://www.faqts.com/knowledge_base/view.phtml/aid/12039/fid/51
http://www.zend.com/zend/spotlight/mimocsumissions.php
Take a look at the [man]curl[/man] extension. Much eaiser than rolling your own using sockets.