title: Unable to upload file to Google cloud storage using python - get a 404 error
body: <p>I am trying a upload a file to Google Cloud Storage via a python script but keep getting a 404 error! I am sure I am not trying to reference a non-available resource. My code snippet is:</p>
  
  <pre><code>uploadFile = open("testUploadFile.txt", "r")
  httpObj = httplib.HTTPSConnection("googleapis.com", timeout = 10)
  httpObj.request("PUT", requestString, uploadFile, headerString)
  uploadResponse = httpObj.getresponse()
  print "Request string is:" + requestString
  print "Return status:" + str(uploadResponse.status)
  print "Reason:" + str(uploadResponse.reason)
  </code></pre>
  
  <p>Where</p>
  
  <pre><code>requestString = /upload/storage/v1beta2/b/bucket_id_12345678/o?uploadType=resumable&amp;name=1%2FtestUploadFile.txt%7Calm_1391258335&amp;upload_id=AbCd-1234
  headerString = {'Content-Length': '47', 'Content-Type': 'text/plain'}
  </code></pre>
  
  <p>Any idea where I'm going wrong?</p>