########################################################################### @main[] ^if(def $form:type){ $sRequestType[^form:type.upper[]] } ^if(!def $sRequestType || !($sRequestType eq "GET" || $sRequestType eq "POST")){ $sRequestType[^if(^math:random(100) >= 50){GET}{POST}] } Parser version of Subsys_JsHttpRequest_Js ^js[$sRequestType;/_js_http_request_load.html]

Parser version of Subsys_JsHttpRequest_Js

Trying $sRequestType requests^if(!def $form:type){ (press Reload for trying another request type)}.

Results
Debug info
########################################################################### @js[sRequestType;sLoaderUri]