BE_HTTP_PUTFile ( url ; path {; username ; password } )


Does a HTTP PUT function with a referenced file and returns the results. This uses the curl library so output will be similar to that. This is used in conjunction with the BE_HTTP_SetCustomHeader function to set custom headers in advance and the BE_HTTP_ResponseCode and BE_HTTP_ResponseHeaders functions to get the result values after the PUT is complete.


Version : 2.0
2.1 : Changed the name to BE_HTTP_PUT_DATA to reflect the actual use of the function parameters.
4.0.2 : Renamed from BE_HTTP_PUTData


Parameters :
url : the url to retrieve.
path : The path to the file to upload.
username ( optional ) : username for basic HTTP authentication.
password ( optional ) : password for basic HTTP authentication.


Result : Returns the value that the url returns. Other returned values are in the BE_HTTP_ResponseCode and BE_HTTP_ResponseHeaders functions and error codes are in the BE_GetLastError function.

Have more questions? Submit a request


Please sign in to leave a comment.