sjenit / google-gdata

Automatically exported from code.google.com/p/google-gdata
0 stars 0 forks source link

When fetching contacts from GMail using Google.GData.Contacts.dll ,returns The remote server returned an error: (400) Bad Request #646

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I m using 
Google API google.GData.Contacts.dll when i get response on my website from 
google after Authentication i get error 
" The remote server returned an error: (400) Bad Request"
on line 
...................................................

     requestStream.Write(postcontentsArray, 0, postcontentsArray.Length);
                requestStream.Close();
>>error occured here>>> WebResponse response = request.GetResponse();
     using (Stream responseStream =  response.GetResponseStream())
     using (StreamReader reader = new StreamReader(responseStream))
       {
          ......

.................................................

everything is fine i also get Token from google after authentication 
which is like 
"/FollowPeople.aspx?code=4/nPX3o06k9DMZ4QeRgBb2VSiduzbM.omfFQA2gvCQTgrKXntQAax0E
hNIyeQI"

so please help me out here....
I could not understand why this is happening..

Thank you 
Anuj Sharma

Original issue reported on code.google.com by anuj.sharma@deft.in on 2 Feb 2013 at 5:45