Telling Yahoo Pipes How YOU Want URI Arguments Ordered

I had an email today from reader Stephen Harlow asking a Yahoo Pipes related question (I get this evry 2-3 weeks, at the moment, and try to answer them as best I can): “My problem is that the URL Builder in Pipes seems to muddle the order of query parameters in the URL… Is there anyway of fixing the order within Pipes’ URL builder?”

Hmm… so here’s the problem:

(Is this a reverse alphabetical ordering by the Pipe I wonder? One to explore…)

Now most of the time, the order of the arguments in a URI doesn’t matter, although for some systems, (as seems to be the case for the crappy Library OPAC Stephen was building a pipe for) it does matter.

So here was my suggested fix: use the String Builder to build the URI:

If necessary, you can get the argument values from a user input in the normal way:

I’m not sure if this sorted Stephen’s problem, but it’s another trick to remember… :-)

Author: Tony Hirst

I'm a Senior Lecturer at The Open University, with an interest in #opendata policy and practice, as well as general web tinkering...

One thought on “Telling Yahoo Pipes How YOU Want URI Arguments Ordered”

  1. Thanks Tony, it has fixed the problem. The next hurdle will be getting the Fetch Page module to correctly dice up the poorly structured OPAC hmtl!

Comments are closed.

%d bloggers like this: