Difference between revisions of "HTTP-POST integration"

From ProVide DocWiki
Jump to: navigation, search
(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=...")
 
 
Line 1: Line 1:
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.
+
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.
 
<source lang="html5">
 
<source lang="html5">
curl -u :password -X POST '(ProVide receive link)' -H "Content-Type: binary" --data-binary '@/path/to/file/file.zip'  
+
curl -u :password -X POST '[link]/name.zip' -H "Content-Type: binary" --data-binary '@/path/to/file/file.zip'  
 
</source>
 
</source>
  
 
Another example doing the same things just using wget instead of CURL:
 
Another example doing the same things just using wget instead of CURL:
 
<source lang ="html5">
 
<source lang ="html5">
wget  --post-file="path/to/file/file.zip" "(ProVide receive link)" --header="Content-Type: binary"
+
wget  --post-file="path/to/file/file.zip" "[link]/name.zip" --header="Content-Type: binary"
 
</source>
 
</source>
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.
+
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.

Latest revision as of 10:21, 21 June 2018

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.