Skip to content

Instantly share code, notes, and snippets.

@michimau
Last active October 30, 2019 08:15
Show Gist options
  • Save michimau/974896bc669eea5e1e15eb9f7e1cd36e to your computer and use it in GitHub Desktop.
Save michimau/974896bc669eea5e1e15eb9f7e1cd36e to your computer and use it in GitHub Desktop.
curl 'https://staging-eunis.eea.europa.eu/login.jsp' \
-H 'Origin: https://staging-eunis.eea.europa.eu' \
-H 'Content-Type: application/x-www-form-urlencoded' \
-H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3' \
-H 'Referer: https://staging-eunis.eea.europa.eu/login.jsp' \
-H 'Accept-Encoding: gzip, deflate, br' \
--data 'cmd=login&username=USERNAME&password=PASSWOED&Submit=EUNIS+Login' \
--compressed \
-c /tmp/eunis-cokie \
-o /tmp/login.html
curl -b /tmp/eunis-cokie https://staging-eunis.eea.europa.eu/dataimport/services.jsp -o /tmp/services.html
curl -b /tmp/eunis-cokie https://staging-eunis.eea.europa.eu/dataimport/importcdda.jsp -o /tmp/importcdda.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment