Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {{Information
- |Description={{en|Figure 3: Allelopathy test plates on anchored structures at the IEAPM field laboratory.}}
- |Source=[[doi:10.7717/peerj.3186]]
- |Date=2017-03-04
- |Author= Felipe V. Ribeiro, Bernardo A.P. da Gama, Renato C. Pereira
- |Permission={{cc-by-4.0}}
- |other_versions=
- }}
- [[Category:Media from PeerJ]]
- #!/bin/sh
- # Titel = $1, Text = $2, Name = $3, Passwort = $4
- #Logintoken anfordern und Login ausführen, Ergebnis in cookies:
- curl -b cookies -c cookies --data "action=clientlogin&username=George_Fock&password=judenfranz&loginreturnurl=http://commons.wikimedia.org&logintoken=$(curl -c cookies --data "action=query&meta=tokens&type=login&format=xml" "https://commons.wikimedia.org/w/api.php" | grep -o "[0-9a-z]\{40\}")%2B%5C&format=xml" "https://commons.wikimedia.org/w/api.php"
- #CSRFtoken anfordern:
- CSRFTOKEN=$(curl -b cookies -c cookies --data "action=query&meta=tokens&type=csrf&format=xml" "https://commons.wikimedia.org/w/api.php" | grep -o "[0-9a-z]\{40\}")
- #Upload mit aktuellem CSRF-Token:
- curl -b cookies -c cookies -F "action=upload" -F "filename=$1" -F "token=$CSRFTOKEN+\\" -F "file=@$2" "https://commons.wikimedia.org/w/api.php"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement