如何解析和回显 CGI 查询字符串参数?
我想使用 URL 中的系统请求参数在服务器上执行命令。我正在运行服务器。
在浏览器中->> //localhost:9009/?comd
它显示我放入代码中的目录中的文件列表
if (/comd/i ) { print $client `dir`; }
如何解析请求参数?例如:
http://localhost:9009/?comd&user= kkc&[电子邮件受保护]
我会喜欢回来->> 您好用户请确认您的电子邮件[电子邮件 ;protected]
如何解析url中的请求参数?
I would like to execute a command on the server by using the system request parameters in the URL. I am running the server.
In the browser ->> //localhost:9009/?comd
which is displaying the list of files in the directory as i placed in the code
if (/comd/i ) { print $client `dir`; }
How I can parse the request parameters? For example:
http://localhost:9009/?comd&user=kkc&[email protected]
I would like to return -->> hellouser please confirm your email[email protected]
How can I parse the request parameters in the url?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我希望这有帮助。
I hope this helps.