Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Perl + RISON

by nikster (Novice)
on Jun 19, 2020 at 23:14 UTC ( [id://11118265]=perlquestion: print w/replies, xml ) Need Help??

nikster has asked for the wisdom of the Perl Monks concerning the following question:

Hello Monks.
Today I learned that a thing called RISON exists: https://github.com/Nanonid/rison.
I stumbled upon it as I was writing a script that (amongst other things) generates several Links, one of them is a Kibana URL, so people can see related logs.
It turned out that this is no simple task.
First I tried to escape the URI manually, didn't seem too hard.
Then I tried uri::escape.

At last I started googling around and found RISON (it's a data serialization Format used in Kibana URLs).
I didn't find much more on it though - is anyone of you aware of a perl encoder for RISON?

thanks and best regards

Replies are listed 'Best First'.
Re: Perl + RISON
by LanX (Saint) on Jun 20, 2020 at 00:33 UTC
Re: Perl + RISON
by Anonymous Monk on Jun 20, 2020 at 01:52 UTC
    I suppose it really depends upon what sort of information you actually can rely upon a web-browser to keep "as part of the browser-history URL."
      Thanks for your answers but it turned out to be a "simple" html encoding problem.
      Even though I had used escape::uri and escaped the url manually, it worked finally after replacing an ampersand not by "%26" and/or "& \amp" but by '& # 038'.
      Hadn't thought about that, a years old stackoverflow thread had the solution.

      best regards

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://11118265]
Approved by herveus
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2024-04-25 10:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found