• Previous message: [greg-dev] Fwd: hooks for feed fetch
  • Next message: [greg-dev] Fwd: hooks for feed fetch
  • Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

    [greg-dev] Fwd: hooks for feed fetch

    Hmm... Let me explain this way: I assume each feed is an outbound http
    request. What I need to need to do the following things before the request
    is sent.
    1. determine if it's internal site (by parsing URI).
    2. if it's an internal site, I need to include a special cookie in the
    request header.
    3. if it's an external site, I need to apply the proxy server setting
    instead.
    
    Now I am a newbie in PHP but I will be supprised if this can do be done
    quickly in PHP.
    
    Looks like this hook is not going to do it, am I right? Also I need to know
    how to access the feed request object so that I can do my things.
    
    Thanks!
    
    -Yao
    
    
    On 2/22/06, Marco Bonetti <mbonetti at gmail.com> wrote:
    >
    > Yao,
    >
    > The "rss.plugins.updates.before" hook is called exactly once, before
    > all feeds are refreshed, not each time a single feed is fetched.
    >
    > If you need the latter, please let me know: this can definitely be done.
    >
    > -m
    >
    >
    >
    > On 2/22/06, Yao Ge <yaogee at gmail.com> wrote:
    > > Hi,
    > >
    > > I am evaluating Gregarius behind a firewall. I need to be able to fetch
    > > feeds across a proxy server. Meanwhile, other internal RSS sources are
    > > protected with a single sign-on cookie. So I need to write a plug-in
    > that do
    > > a few things before each RSS feed read. What would the appropriate hook?
    > Is
    > > it " rss.plugins.updates.before"?
    > >
    > > It appears receiving RSS feed across firewall would be common needs,
    > have
    > > anyone written this before?
    > >
    > > Thanks!
    > >
    > > -Yao
    > > _______________________________________________
    > > gregarius-dev mailing list
    > > gregarius-dev at sinless.org
    > > http://sinless.org/mailman/listinfo/gregarius-dev
    > >
    > >
    > >
    >
    > _______________________________________________
    > gregarius-dev mailing list
    > gregarius-dev at sinless.org
    > http://sinless.org/mailman/listinfo/gregarius-dev
    >
    -------------- next part --------------
    An HTML attachment was scrubbed...
    URL: http://sinless.org/pipermail/gregarius-dev/attachments/20060222/84d95f35/attachment.html
    
    Posted by Yao Ge [reply] at Wed Feb 22 19:40:02 CET 2006