does that matter? the point is that i can put the below URL into the  
browser and get a problem, where if i replace the # with a %24, it  
works as expected (at least it asks me for authorization)

Frank
On Apr 21, 2008, at 3:46 PM, Kulvinder Singh wrote:

> I think the culprit is :
>
> protected virtual Uri ParseUri(Uri targetUri)
>         {
>             Reset();
>             StringBuilder newPath = null;
>             UriBuilder newUri = null;
>
>             if (targetUri != null)
>             {
>                 TokenCollection tokens;
>                 // want to check some basic things on this guy  
> first...
>                 ValidateUri(targetUri);
>                 newPath = new StringBuilder("", 2048);
>                 newUri = new UriBuilder(targetUri);
>                 newUri.Path = null;
>                 newUri.Query = null;
>
>                 // now parse the query string and take the  
> properties out
>                 string[] parts = targetUri.Segments;
>
>
> When we supply http://www.google.com/calendar/feeds/[EMAIL PROTECTED] 
> /private/full?max-results=2147483647&start- 
> min=2005-07-26T18:30:00Z&start-max=2011-01-15T18:30:00Z&ctz=Asia/ 
> Calcutta
>
> the last statement above divides it into 4 parts with "p" as one of  
> them which should have been [EMAIL PROTECTED]
>
> Thanks
> Kulvinder Singh
>
> ----- Original Message ----
> From: Kulvinder Singh <[EMAIL PROTECTED]>
> To: [email protected]
> Sent: Monday, April 21, 2008 5:54:49 PM
> Subject: Re: The remote server returned an error: (400) Bad Request.
>
> Thanks Frank. I see that.
>
> But where are you using this new method because the diff. is showing  
> only the new addition ? I think it would have been better if you  
> would have removed UrlEncodeReserved and used the new one directly.  
> What do you say ?
>
> Thanks
> Kulvinder Singh
>
> ----- Original Message ----
> From: Frank Mantek <[EMAIL PROTECTED]>
> To: Frank Mantek <[EMAIL PROTECTED]>
> Cc: [email protected]
> Sent: Monday, April 21, 2008 4:46:13 PM
> Subject: Re: The remote server returned an error: (400) Bad Request.
>
> I noticed that i don't have a helper method to deal with this. Just  
> added UrlEncodeUnsafe to the Utilities class. UrlEncodeReserved  
> would not have fixed this, as the # sign is not a reserved char, but  
> seems to be the culprit here.
>
> Frank Mantek
> Google
> On Apr 21, 2008, at 1:01 PM, Frank Mantek wrote:
>> How did you construct that URI? I would assume that the [EMAIL PROTECTED] 
>>  should be encoded?
>>
>> Frank Mantek
>> Google
>> On Apr 21, 2008, at 11:41 AM, Kulvinder Singh wrote:
>>> Hi,
>>>
>>> I am trying to download the weather calendar data but getting the  
>>> following error :
>>>
>>> Execution of request failed: http://www.google.com/calendar/feeds/p#weather 
>>> @group.v.calendar.google.com/private/full?max- 
>>> results=2147483647&start-min=2005-07-26T18:30:00Z&start- 
>>> max=2011-01-15T18:30:00Z&ctz=Asia/Calcutta
>>>
>>> InnerException : The remote server returned an error: (400) Bad  
>>> Request.
>>> Invalid UserId p
>>> StackTrace :    at Google.GData.Client.Service.Query(Uri queryUri,  
>>> DateTime ifModifiedSince)
>>>
>>> Please let me know how did the google server figured out the  
>>> username as "p" which is wrong.
>>>
>>> Thanks
>>> Kulvinder Singh
>>>
>>> Be a better friend, newshound, and know-it-all with Yahoo! Mobile.  
>>> Try it now.
>>>
>>>
>>
>
>
> Be a better friend, newshound, and know-it-all with Yahoo! Mobile.  
> Try it now.
>
>
> Be a better friend, newshound, and know-it-all with Yahoo! Mobile.  
> Try it now.
> >


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to