BE_HTTP_PATCH ( url ; parameters { ; username ; password } )

Does a http PATCH function 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 POST is complete.

Version : 3.3

Parameters :
url : the url to send the data to.
parameters : The data to send to the url. 
username ( optional ) : username for HTTP authentication.  
password ( optional ) : password for HTTP authentication.

Use BE_Curl_Set_Option ( "CURLOPT_HTTPAUTH" ; type ) to set authentication types. 

parameters is a text string, which is a list of all of the parameters to send in name value pair format. Put an "=" between the name and value, and an ampersand "&" between each pair.  Use file=@path for external files.

Results : whatever response the service returns.  It could be empty so always check BE_HTTP_ResponseCode for the expected code.

Check for errors using the BE_GetLastError function and use for error details.

Examples :

BE_HTTP_PATCH ( $url ; "image=@/Users/nick/Desktop/test.jpg" )

"" ; 
"{\"method\" : \"Workgroup.projects.listActive\", \"args\" : []}" ;
"Administrator" ;

Still need help? Contact Us Contact Us