简体   繁体   中英

How URL query parameters are generated?

在此处输入图片说明

How are the parameters after node?_=xxxxxx are being generated?

How can I capture these if using a Python script to get the URL?

edit: Apologies for not enough info. My first novice post.

I am trying to get the nodes dictionary using Python from Eve-NG API.

Eve-NG API Docs Ref: https://www.eve-ng.net/index.php/documentation/howtos/how-to-eve-ng-api/

curl -s -c /tmp/cookie -b /tmp/cookie
-X GET -H 'Content-type: application/json'
http://127.0.0.1/api/labs/User1/Lab%201.unl/nodes

with above I get a dictionary with nodes data, all the info is correct except url key value "url":"/html5/#/client/MzI3OTIAYwBteXNxbA==?token=AE...000"

expected value is - "url": "telnet://127.0.0.1:32769" as show in eve-ng docs.

From Chrome Developer Tools if I open - http://127.0.0.1/api/labs/User1/Lab%201.unl/nodes?158489xxxx in a tab, I can see the correct "url": "telnet://127.0.0.1:32769" key/value pair.

you can see in the screenshot the GET request has query parameters node?_=xxxxxxx how can find out how these numbers/timestamps/encoded values are being generated? or how can I modify Python script to capture these can make the correct GET request?

Hope this explains the issue.

Thanks

<div class="form-group has-feedback">
<select name="html5" class="form-control" ng-init="html5='-1'" placeholder="html5" ng-model="html5">
    <option value="-1" selected="">Native console</option>
    <option value="1">Html5 console</option>
</select>
  </div>

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