Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // CFHTTP:
- objMyHttpPost = new HTTP(url='http://somewebsite.com/gateway/api.php', method="post");
- objMyHttpPost.addParam(type='formfield', name='someField', value='someValue');
- objMyHttpPost.addParam(type='formfield', name='anotherField', value='anotherValue');
- // send the post and assign the result to a variable, this will gave a result like cfhttp.fileContent
- postResponse = objMyHttpPost.send().getPrefix();
- // CFFLUSH
- getPageContext().getOut().flush();
- // CFSWITCH
- switch(myVar)
- {
- case 'PS':
- local.accountType = 'S';
- break;
- case 'CS':
- local.accountType = 'S';
- break;
- default:
- local.accountType = 'C';
- }
Advertisement
Add Comment
Please, Sign In to add comment