HTTP-POST integration

From ProVide DocWiki
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 'file.zip' to the ProVide server in your organization.

curl -u :password -X POST '[link]/name.zip' -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" "[link]/name.zip" --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.