Hello Kulvinder, I have filed a bug against the .NET client library to have the password URL encoded by default.
Thanks for the report. Cheers, -Ryan On 2/11/07, Kulvinder Singh <[EMAIL PROTECTED]> wrote: > > Thanks for your help. > > My problem is solved. I need to URLEncode the Password. > > > *Kulvinder Singh <[EMAIL PROTECTED]>* wrote: > > I got the reason on my own. Its a bug in the API. > > look into the gauthRequest.cs class for the method : > > QueryAuthToken(NetworkCredential nc) > > here when you set the > > string > postData = GoogleAuthentication.Email + "=" + nc.UserName + "&"; postData > += > GoogleAuthentication.Password + "=" + nc.Password + "&"; postData += > GoogleAuthentication.Source + "=" + this.factory.ApplicationName + "&"; > postData > += > GoogleAuthentication.Service + "=" + this.factory.Service + "&"; postData > += > GoogleAuthentication.AccountType; > and since the Password contains & it breaks the string. > > I have solved half of your problem myself. Rest should be solved ASAP by > you guys. > > Thanks > > > *Kulvinder Singh <[EMAIL PROTECTED]>* wrote: > > Hi, > > In my application using Google Calendar API when i sent my Google Account > User and Password to fetch the data from my Calendar, i got the > "Error=BadAuthentication" error from google server. After a few hit and > trials, i found that my password had "&" (ampersand) in it due to which i > was getting this error. > > Any reason why the APi doesnt accept ampersand (&) in the Network > credentials i suppiled ? or any change i need to do to accomplish my task. I > dont want to change my password for this. > > Please help ASAP. > > Regards > Kulvinder Singh > ------------------------------ > Access over 1 million songs - Yahoo! Music > Unlimited.<http://pa.yahoo.com/*http://us.rd.yahoo.com/evt=36035/*http://music.yahoo.com/unlimited/> > ------------------------------ > Need Mail bonding? > Go to the Yahoo! Mail > Q&A<http://answers.yahoo.com/dir/index;_ylc=X3oDMTFvbGNhMGE3BF9TAzM5NjU0NTEwOARfcwMzOTY1NDUxMDMEc2VjA21haWxfdGFnbGluZQRzbGsDbWFpbF90YWcx?link=ask&sid=396546091>for > great > tips from Yahoo! > Answers<http://answers.yahoo.com/dir/index;_ylc=X3oDMTFvbGNhMGE3BF9TAzM5NjU0NTEwOARfcwMzOTY1NDUxMDMEc2VjA21haWxfdGFnbGluZQRzbGsDbWFpbF90YWcx?link=ask&sid=396546091>users > ------------------------------ > Need a quick answer? Get one in minutes from people who know. Ask your > question on Yahoo! > Answers<http://answers.yahoo.com/;_ylc=X3oDMTFvbGNhMGE3BF9TAzM5NjU0NTEwOARfcwMzOTY1NDUxMDMEc2VjA21haWxfdGFnbGluZQRzbGsDbWFpbF90YWcx> > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Calendar Data API" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/google-calendar-help-dataapi?hl=en -~----------~----~----~----~------~----~------~--~---
