Re-visiting the problem I was now able to fix this issue... I was grabbing
the URL via something like handler_vars['url'], which got me an escaped URL
which RemoteRequest can't handle (all the & became &). I'm not sure if
that's intended behaviour. Anyway, using handler_vars->raw('url') instead
did the trick, delivered the unescaped URL and now I can access the feed.
Am Samstag, 17. August 2013 04:15:53 UTC+2 schrieb Konzertheld:
>
> Hi everyone,
>
> here's another weird issue I came across.
>
> I'm trying to access Atom feeds of Wiki watchlists. Those require passing
> a token and a list of &ed parameters. It turned out I can't receive the
> feed because the token is not transmitted correctly for some reason.
> Testing with CURL myself, the same problem occured, but only if I did not
> put single quotes around the URL. Using single quotes or escaping all the
> &s with \ made it work for CURL in a bash. Now what should I do to make the
> links work with Habari's RemoteRequest?
>
> Those of you having an account in the Habari Wiki can test themselves:
>
> 1. Get the feed link for your watchlist (it's in the sidebar)
> 2. Throw it into RemoteRequest::get_contents()
> 3. Throw it into CURL in a terminal
> 4. Throw it into CURL in a terminal, enclosed in single quotes
>
> Only the last one will show your watchlist.
>
> I'm quite sure the problem is somewhere on the way between my or Habari's
> code setting up the request and CURL itself. So if you have any ideas, it
> will be appreciated.
>
> Konzertheld
>
--
--
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/habari-dev
---
You received this message because you are subscribed to the Google Groups
"habari-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.