Difference between revisions of "Curl"
Jump to navigation
Jump to search
(Replaced content with "Curl Category:log") Tag: Replaced |
|||
| Line 1: | Line 1: | ||
| − | + | <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/tiddlers/test</p><p> </p><p>1) First use curl to post username and password to the cookie_form and</p><p>store a cookie for it locally:</p><p>curl --cookie-jar cookies.txt -d "user=dirkjan&password= &submit=submit" http://tiddlyweb.vanwill.com/challenge/cookie_form</p><p> </p><p>2) Pass the created cookie to subsequent post to upload tiddlers</p><p> </p><p>curl --cookie cookies.txt -X PUT -H 'Content-Type: text/plain' --data-binary @<filename> http://tiddlyweb.vanwill.com/bags/default/tiddlers/monkey</p></html> | |
[[Category:log]] | [[Category:log]] | ||
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 @