简体   繁体   中英

Get URL parameters before sending to server?

Is it possible to get all parameters from a URL? For example, in 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?

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.

If so, you can easily use php for that, for instance to extract the last part of a URL :

<?php

$string = 'https://e-consultaruc.sunat.gob.pe/cl-titmrconsruc/frameCriterioBusqueda.jsp';

$part = substr(strstr($string, '/'), 1);

我想知道该表单的所有可能参数

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM