💾 Archived View for rawtext.club › ~sloum › geminilist › 001381.gmi captured on 2020-09-24 at 01:55:21. Gemini links have been rewritten to link to archived content
-=-=-=-=-=-=-
Sean Conner sean at conman.org
Sat Jun 6 23:16:27 BST 2020
- - - - - - - - - - - - - - - - - - -
It was thus said that the Great Luke Emmet once stated:
On 06-Jun-2020 22:56, Sean Conner wrote:
It was thus said that the Great Luke Emmet once stated:
You should be able to throw any simple arithmetic calculation at it,
including brackets, scientific notation etc. It will try to help you out
if you feed it nonsense or invalid input. It doesn't have any inbuilt
functions like sine, or mathematical constants like e, i, pi though. So
it's kinda basic, but fun.
So at first, I tried:
3*2+1
It failed, saying I needed to space the operands. Okay. I then tried:
3 * 2 + 1
And it still failed. I wonder if you aren't decoding the query properly.
That should work. It works for me:
gemini://gemini.marmaladefoo.com/cgi-bin/calc.cgi?3%20*%202%20+%201
That did not work. What did work?
"gemini://gemini.marmaladefoo.com/cgi-bin/calc.cgi?3 * 2 + 1"
That is, when I *did not* encode the query [1], it worked.
Is your client url escaping the request?
Define "url escaping the request". Because a query like "3 * 2 + 1" needsto be esscpaed to "3%20*%202%20+%201"---it can also be escaped as"%33%20%2A%20%32%20%2B%20%31". It's that escaped string that is sent to theserver.
-spc
[1] I have a *very* basic Gemini client that sends verbatim what I tell it to send.