You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
699 B
13 lines
699 B
#!/bin/bash |
|
curl -sk -c /tmp/c4.txt https://databaselist.gisportal.id/login \ |
|
--resolve databaselist.gisportal.id:443:127.0.0.1 -o /tmp/l4.html |
|
TOKEN=$(grep -oP 'name="_token" value="\K[^"]+' /tmp/l4.html) |
|
curl -sk -b /tmp/c4.txt -c /tmp/c4.txt -X POST https://databaselist.gisportal.id/login \ |
|
--resolve databaselist.gisportal.id:443:127.0.0.1 \ |
|
-d "username=admin&password=geonet$123&_token=${TOKEN}" \ |
|
-w "post_no_L: %{http_code}\n" -D /tmp/h4.txt -o /tmp/r4.html |
|
head -5 /tmp/h4.txt |
|
curl -sk -b /tmp/c4.txt https://databaselist.gisportal.id/ \ |
|
--resolve databaselist.gisportal.id:443:127.0.0.1 \ |
|
-w "dash_after: %{http_code}\n" -o /tmp/d4.html |
|
grep -c 'opr_hse' /tmp/d4.html || true
|
|
|