HTTP-POST integration

From ProVide DocWiki
Revision as of 13:56, 20 June 2018 by Lukas Wiberg (talk | contribs) (Created page with "ProVide receive links are integrated with HTTP-POST and can be used in for example CURL like in the following example to upload 'file.zip' to the ProVide server. <source lang=...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

ProVide receive links are integrated with HTTP-POST and can be used in for example CURL like in the following example to upload 'file.zip' to the ProVide server.

curl -u :password -X POST '(ProVide receive link)' -H "Content-Type: binary" --data-binary '@/path/to/file/file.zip'

Another example doing the same things just using wget instead of CURL:

wget  --post-file="path/to/file/file.zip" "(ProVide receive link)" --header="Content-Type: binary"

The only thing you need to do is example the (ProVide receive link) with the receive link you are using. it does not however need to be CURL or wget as it can be used with any HTTP-POST.