I was wondering how, if possible I can parse the QUERY_STRING
in a .bat CGI script... like so:
我想知道如果可能的话我可以在.bat CGI脚本中解析QUERY_STRING ......就像这样:
Request:
QUERY_STRING=namebox=john%20doe&passwordbox=myPasscode
What I want:
我想要的是:
set namebox=john doe && set passwordbox=myPasscode
thanks all, C.
谢谢大家,C。
1 个解决方案
#1
1
for /f "tokens=1-3 delims=&%20" %a in ("%QUERY_STRING%") do set "namebox=%a %b" && set "passwordbox=%c"
for / f“tokens = 1-3 delims =&%20”%a in(“%QUERY_STRING%”)设置“namebox =%a%b”&& set“passwordbox =%c”
#1
1
for /f "tokens=1-3 delims=&%20" %a in ("%QUERY_STRING%") do set "namebox=%a %b" && set "passwordbox=%c"
for / f“tokens = 1-3 delims =&%20”%a in(“%QUERY_STRING%”)设置“namebox =%a%b”&& set“passwordbox =%c”