1

Possible Duplicate:
Is there a PHP equivalent of Perl's WWW::Mechanize?

Anyway to do this with curl php?

  import mechanize
  br=mechanize.Browser()
  br.open('https://www.google.com/calendar/exporticalzip')
  br.select_form(nr=0)
  br['Email']='Username@gmail.com'
  br['Passwd']='Password'
  br.submit()
  br.retrieve('https://www.google.com/calendar/exporticalzip','exportical.zip')
Community
  • 1
  • 1
mnouh1
  • 234
  • 3
  • 9
  • Mechanize and curl are not that similar, after the fact they both can retrieve HTTP-based content. – Orbling Jul 28 '11 at 14:31
  • Possible duplicate of [Is there a PHP equivalent of Perl's WWW::Mechanize?](http://stackoverflow.com/questions/199045/is-there-a-php-equivalent-of-perls-wwwmechanize) or [Mechanize and BeautifulSoup for PHP?](http://stackoverflow.com/questions/1263800/mechanize-and-beautifulsoup-for-php) – Orbling Jul 28 '11 at 14:31

2 Answers2

0

Read Using cURL to interact with Google Data services.

Refer to PHP Curl with Google Calendar and Class: Google Calendar Wrapper.

Community
  • 1
  • 1
Sukumar
  • 3,502
  • 3
  • 26
  • 29
0

There is an excellent PHP class which emulates web browsers much like curl does called Snoopy.

It allows a lot of extra functionality like extracting links from a fetched page and extracting form elements which might be quite useful in your case.