Group Abstract Group Abstract

Message Boards Message Boards

0
|
9.9K Views
|
2 Replies
|
1 Total Like
View groups...
Share
Share this post:

Strange APIFunction / Interpreter Behaviour, Possible Bug

Posted 11 years ago
POSTED BY: Robert Ferguson
2 Replies
Posted 11 years ago

Thanks very much for your explanation Kuba, that's given me something to work on.

POSTED BY: Robert Ferguson
Posted 11 years ago

There are some special symbols in urls world, like ?, +, % and so on.

You can't use them explicitly but you can use dedicated functions to create a valid URL:

cloudobject =    CloudDeploy @ APIFunction[{"p" -> "Expression"}, # &, "WL"]

SystemOpen @ URLBuild[ cloudobject, {"p" -> "2+3"}]
<|p->5|>

If you want to be able to write url by hand, then you have to know how to do this replacements. Or you can use FullForm of the expression:

[...url...]?p=Plus[2,3]

POSTED BY: Kuba Podkalicki
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard