title: Gmail/Facebook without username/password - PHP Login Header Problem
body: <p>I want to create my own personal login gateway into Gmail/Facebook/any other site. In this gateway I enter my master username and password, then I can choose where to login (gmail/facebook/etc) without entering those usernames because they are stored on the server.</p>
  
  <p>I tried to implement this by using cURL to send POST request with the headers and post data sent in Firefox during regular login. However, this doesn't work for neither facebook or gmail.</p>
  
  <p>Has anyone tried this or have an idea about why this doesn't work?</p>
  
  <p>Thanks.</p>
  
  <p>// Edited
  I am thinking the problem that it doesn't work lie in the fact that the IP address of the php server which sent the curl request to gmail is different from my browser's so, when the response from the gmail server is fed back to the browser, it still cannot authenticate.</p>
  
  <p>Or is that the cookie I sent using curl to Gmail server actually changes according to time.</p>