[英]Get URL parameters before sending to server?
Is it possible to get all parameters from a URL?是否可以从 URL 获取所有参数? For example, in https://e-consultaruc.sunat.gob.pe/cl-ti-itmrconsruc/frameCriterioBusqueda.jsp
例如,在https://e-consultaruc.sunat.gob.pe/cl-ti-itmrconsruc/frameCriterioBusqueda.jsp
Is it possible to retrieve all the parameters in the URL address that sends to the server (the query) when I enter all the required information and press "Search" (buscar) button?当我输入所有必需的信息并按“搜索”(buscar)按钮时,是否可以检索发送到服务器(查询)的 URL 地址中的所有参数?
I'm not sure what you want to accomplish.我不确定你想完成什么。 Not enough information in your question.您的问题中没有足够的信息。 But I assuming you only want to get all parts of a given URL.但我假设您只想获取给定 URL 的所有部分。
If so, you can easily use php for that, for instance to extract the last part of a URL :如果是这样,您可以轻松地使用 php,例如提取 URL 的最后一部分:
<?php
$string = 'https://e-consultaruc.sunat.gob.pe/cl-titmrconsruc/frameCriterioBusqueda.jsp';
$part = substr(strstr($string, '/'), 1);
我想知道该表单的所有可能参数
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.