Difference between revisions of "Curl"

From knowledgebase
Jump to navigation Jump to search
(Replaced content with "Curl Category:log")
Tag: Replaced
 
Line 1: Line 1:
−
Curl
+
<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>&nbsp;</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>&nbsp;</p><p>2) Pass the created cookie to subsequent post to upload tiddlers</p><p>&nbsp;</p><p>curl --cookie cookies.txt -X PUT -H 'Content-Type: text/plain' --data-binary @<filename>&nbsp; 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 @  http://tiddlyweb.vanwill.com/bags/default/tiddlers/monkey