Difference between revisions of "Curl"
Jump to navigation
Jump to search
(Created page with "<html><p>curl -X PUT -H 'Content-Type: image/png' --data-binary @/mnt/newserver/shared/Fotos/200911\ -\ caro\ parijs/Foto0247.jpg http://tiddlyweb.vanwill.com/bags/common/tidd...") |
|
| (One intermediate revision by the same user not shown) | |
(No difference)
| |
Latest revision as of 19:42, 27 August 2020
curl -X PUT -H 'Content-Type: image/png' --data-binary @/mnt/newserver/shared/Fotos/200911\ -\ caro\ parijs/Foto0247.jpg http://tiddlyweb.vanwill.com/bags/common/tiddlers/test
1) First use curl to post username and password to the cookie_form and
store a cookie for it locally:
curl --cookie-jar cookies.txt -d "user=dirkjan&password= &submit=submit" http://tiddlyweb.vanwill.com/challenge/cookie_form
2) Pass the created cookie to subsequent post to upload tiddlers
curl --cookie cookies.txt -X PUT -H 'Content-Type: text/plain' --data-binary @