可能重复:
Is there a PHP equivalent of Perl's WWW::Mechanize?使用php curl来自动化网站。
无论如何,卷曲PHP来做到这一点?
import mechanize
br=mechanize.Browser()
br.open('https://www.google.com/calendar/exporticalzip')
br.select_form(nr=0)
br['Email']='[email protected]'
br['Passwd']='Password'
br.submit()
br.retrieve('https://www.google.com/calendar/exporticalzip','exportical.zip')
机械化和卷曲并非如此相似,事实上他们都可以检索基于HTTP的内容。 – Orbling
[有没有Perl的WWW :: Mechanize的PHP等价物?](http://stackoverflow.com/questions/199045/is-there-a-php-equivalent-of-perls-wwwmechanize)或[Mechanizeize和BeautifulSoup for PHP?](http://stackoverflow.com/questions/1263800/mechanize-and-beautifulsoup-for-php) – Orbling