When you execute this line:

query.Uri = queryUri

the library needs to parse the incoming uri (queryUri) for it's
potential categories and parameters, because if you passed in
something like this:

query.Uri = new Uri(http://....?q=text)

you want to get this by accessing query.Query

In the process of parsing, we use the Uri.Segments collection to
iterate over the different parts in the URI. And, for better or
worse, :

http://www.foo.com/text

is the same as

http://www.foo.com/text/

for this kind of parsing.

Is this causing you any kind of problems?

Regards

Frank Mantek
Google
On Oct 3, 11:51 pm, JMac <[EMAIL PROTECTED]> wrote:
> I'm trying to request a feed from a URI with a trailing slash.  It
> appears that when I set the URI for the FeedQuery the trailing slash
> is truncated ... is this expected?
>
> ////Sample
> FeedQuery query = new FeedQuery();
> String feedUrl = new String("http://www.foobar.com/blah/goo/";)
> Uri queryUri = new Uri(feedurl);
>
> Console.WriteLine("Query Absolute Uri: " +
> queryUri.AbsoluteUri.ToString());
>
> query.Uri = queryUri;
> Console.WriteLine("URL set in FeedQuery object is: " +
> query.Uri.AbsoluteUri.ToString());
>
> /////
>
> Output:
> Query Absolute Uri:http://www.foobar.com/blah/goo/
> URL set in FeedQuery object is:http://www.foobar.com/blah/goo


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Data API" group.
To post to this group, send email to google-help-dataapi@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-help-dataapi?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to