hmmm. that parsing code is only invoked (answering from the top of my  
head) if you set feedQuery.Uri = Uri...

if you create the object like this:

FeedQuery query = new FeedQuery(stringUri) ;

it should be fine....

Would that work for you?

Frank Mantek
Google
On Oct 8, 2007, at 7:06 PM, JMac wrote:

>
> Thanks Frank,
>
> The problem is that the ATOM service I'm trying to talk to
> differentiates between http://feedsource/url and http://feedsource/ 
> url/.
> It requires me to request from a URI with the trailing slash ...
> unfortunately I can't set this through the FeedQuery object.  Is there
> a workaround for this?
>
> - John
>
> On Oct 5, 1:42 am, Frank Mantek <[EMAIL PROTECTED]> wrote:
>> 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-  
>>> Hide quoted text -
>>
>> - Show quoted text -
>
>
> >


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