HTTP-POST integration

From ProVide DocWiki
Revision as of 10:21, 21 June 2018 by Nicklas Bergfeldt (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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

curl -u :password -X POST '[link]/' -H "Content-Type: binary" --data-binary '@/path/to/file/'

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

wget  --post-file="path/to/file/" "[link]/" --header="Content-Type: binary"

The only thing you need to do is to exchange "[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 command in any regular programming language for instance.