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')
 
     
    