BaseElements-Plugin
BaseElements-Plugin copied to clipboard
[Feature]: TRURL support
Type of Feature
New Function
Description
Utilise the trurl code from curl, and have a BE function that did :
BE_Trurl ( url { ; set ; append ; trim } )
It would only ever do output as json, so utilising the --json parameter, so without any of the other params, would act as a url validator, and also return all the bits as json. If the validator failed it would return a blank and ? in the Error function.
Then for set you could pass "host=example.com" or "port=8080" or "user=::moo::" For append you could use "path=you" or "query=search=string" For trim you could send "query="utm_*"" or "query="search""
( examples copied from the trurl readme. New functions default to Pro version. )
Additional Information
No response