title: The remote server returned an error: (403) Forbidden. error?
body: <p>below is my code..I get an error  -"The remote server returned an error: (403) Forbidden."..:</p>
  
  <pre><code>           TimeSpan t = DateTime.Now - new DateTime(1970, 1, 1);
  
             string content = @"&lt;entry xmlns='http://www.w3.org/2005/Atom'   
              xmlns:media='http://search.yahoo.com/mrss/'  
              xmlns:gphoto='http://schemas.google.com/photos/2007' &gt;
              &lt;title type='text'&gt;Trip To Italy&lt;/title&gt;
              &lt;summary type='text'&gt;This was the recent trip I took to Italy.&lt;/summary&gt;
              &lt;gphoto:location&gt;Italy&lt;/gphoto:location&gt;
              &lt;gphoto:access&gt;public&lt;/gphoto:access&gt;
              &lt;gphoto:timestamp&gt;" + t.Milliseconds.ToString() + @"&lt;/gphoto:timestamp&gt;
              &lt;media:group&gt;&lt;media:keywords&gt;italy&lt;/media:keywords&gt;&lt;/media:group&gt;
              &lt;category scheme='http://schemas.google.com/g/2005#kind' 
               term='http://schemas.google.com/photos/2007#album'&gt;&lt;/category&gt;
              &lt;/entry&gt;";
          ServicePointManager.ServerCertificateValidationCallback = new 
          RemoteCertificateValidationCallback(delegate(object sender2, X509Certificate 
          certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors)
          {
              return true;
          });
          string url = "https://www.picasaweb.google.com/data/feed/api/user/default";
          HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url);
          request.Method = "POST";
          request.ContentType = "application/atom+xml";
          request.Headers.Add(HttpRequestHeader.Authorization, "AuthSub token=\"" + 
          Session["token"].ToString() + "\"");
          request.Headers.Add("GData-Version", "2.0");
          byte[] send = System.Text.UTF8Encoding.UTF8.GetBytes(content);
          request.ContentLength = send.Length;
          int bytesRead = 0;
          Stream requestStream = request.GetRequestStream();
          while (send.Length - bytesRead &gt; 1)
              requestStream.Write(send, bytesRead++ , 1); //Edited
          requestStream.Close();
          HttpWebResponse response = (HttpWebResponse)request.GetResponse();
          StreamReader responseReader = new StreamReader(response.GetResponseStream());
  
          string responseStr = responseReader.ReadToEnd();
  </code></pre>
  
  <p>please help :)</p>