From professional translators, enterprises, web pages and freely available translation repositories.
function postwithparams() { // set up the array of post parameters.
{ // richtet das datenfeld der post-parameter ein.
Last Update: 2018-02-13
Usage Frequency: 1
Quality:
function postwithnamedargs() { // set up the array of post parameters. params = new array(); params[1] = {name:"arg1", type:"formfield", value:"value1"}; params[2] = {name:"arg2", type:"url", value:"value2"}; params[3] = {name:"arg3", type:"cgi", value:"value3"}; url = "http://localhost:8100/"; path = application.getcontext("/").getrealpath("/"); file = "foo.txt"; result = cf.http({method:"post", url:url, username:"karl", password:"salsa", resolveurl:true, params:params, path:path, file:file}); if (result) return result.get("statuscode"); return null; } // example of a basic http get operation // shows that http get is the default function basicget() { url = "http://localhost:8100/"; // invoke with just the url. this is an http get. result = cf.http(url); return result.get("filecontent"); } // example showing simple array created to pass params arguments function postwithparams() { // set up the array of post parameters.
function postwithnamedargs() { // richtet das datenfeld der post-parameter ein. params = new array(); params[1] = {name:"arg1", type:"formfield", value:"value1"}; params[2] = {name:"arg2", type:"url", value:"value2"}; params[3] = {name:"arg3", type:"cgi", value:"value3"}; url = "http://localhost:8500/"; path = application.getcontext("/").getrealpath("/"); file = "foo.txt"; result = cf.http({method:"post", url:url, username:"karl", password:"salsa", resolveurl:true, params:params, path:path, file:file}); if (result) return result.get("statuscode"); return null; } // beispiel für einen grundlegenden http-get-vorgang. // zeigt, dass http get die standardfunktion ist. function basicget() { url = "http://localhost:8500/"; // aufruf erfolgt nur mit der url. dies ist eine http-get-methode. result = cf.http(url); return result.get("filecontent"); } // beispiel für ein einfaches datenfeld, das für die Übergabe von parameter-argumenten erstellt wurde. function postwithparams() { // richtet das datenfeld der post-parameter ein.
Last Update: 2018-02-13
Usage Frequency: 1
Quality:
Warning: Contains invisible HTML formatting