title: How to use urllib2.urlopen to make POST request without data argument
body: <p>I am trying to use urllib2.urlopen to perform GET and POST requests via the Facebook Graph API. I noticed from here: <a href="https://stackoverflow.com/questions/2690723/facebook-graph-api-and-django">https://stackoverflow.com/questions/2690723/facebook-graph-api-and-django</a>
  that I can perform GET request fairly easily.</p>
  
  <p>And from here: <a href="https://stackoverflow.com/questions/5308060/how-to-send-a-post-request-using-django">How to send a POST request using django?</a> and the Python docs <a href="http://docs.python.org/library/urllib2.html" rel="nofollow noreferrer">http://docs.python.org/library/urllib2.html</a> it seems that it needs the data param to perform a POST request.</p>
  
  <p>But looking at the Facebook's API: <a href="http://developers.facebook.com/docs/reference/api/event/#invited" rel="nofollow noreferrer">http://developers.facebook.com/docs/reference/api/event/#invited</a> it says</p>
  
  <blockquote>
    <p>You can invite users to an event by issuing an HTTP POST to
    /EVENT_ID/invited/USER_ID</p>
  </blockquote>
  
  <p>I am not sure how I could do that with urlopen, since opening this url directly is going to only check if the user has been invited, as mentioned on the API page:</p>
  
  <blockquote>
    <p>You can check whether a specific user has been invited to an event by
    issuing an HTTP GET to /EVENT_ID/invited/USER_ID:</p>
  </blockquote>
  
  <p>Appreciate the input. </p>