All Projects → foundeo → bolthttp

foundeo / bolthttp

Licence: Apache-2.0 license
A HTTP Client for CFML

Programming Languages

ColdFusion
112 projects
shell
77523 projects

Projects that are alternatives of or similar to bolthttp

cfwheels-example-app
A CFWheels 2.x App with user management, role based permissions and password resets
Stars: ✭ 17 (-39.29%)
Mutual labels:  coldfusion, cfml
messaging-polyglot
RabbitMQ Messaging Polyglot with Java, ColdFusion, CommandBox, Groovy and more
Stars: ✭ 18 (-35.71%)
Mutual labels:  coldfusion, cfml
TestBox
TestBox is a next generation testing framework for ColdFusion (CFML) that is based on BDD (Behavior Driven Development) for providing a clean obvious syntax for writing tests. It also includes MockBox, our mocking and stubbing framework.
Stars: ✭ 54 (+92.86%)
Mutual labels:  coldfusion, cfml
cfml-tags-to-cfscript
A collection of examples defining how to convert CFML code blocks written in tags to CFScript.
Stars: ✭ 30 (+7.14%)
Mutual labels:  coldfusion, cfml
cfml-security-training
An INSECURE example website for use in CFML security training.
Stars: ✭ 26 (-7.14%)
Mutual labels:  coldfusion, cfml
core
FarCry Core: a web app framework for the ColdFusion language (supporting Lucee & Adobe ColdFusion engines). An ideal platform for building bespoke or tailor made solutions.
Stars: ✭ 34 (+21.43%)
Mutual labels:  coldfusion, cfml
lucee-docs
Source and build scripts for Lucee's documentation.
Stars: ✭ 39 (+39.29%)
Mutual labels:  coldfusion, cfml
Xindi
Xindi is a lightweight CFML content management system ideally suited to smaller websites.
Stars: ✭ 70 (+150%)
Mutual labels:  coldfusion
Slatwall
Slatwall - An Open Source Commerce Platform
Stars: ✭ 136 (+385.71%)
Mutual labels:  coldfusion
Validatethis
An object oriented validation framework for ColdFusion objects
Stars: ✭ 45 (+60.71%)
Mutual labels:  coldfusion
Fusebox Coldfusion
Fusebox is a free, easy to use framework for web development that organizes your code for fewer development bugs and faster maintenance. It has a low runtime overhead. It is mainly targeted to ColdFusion but also has versions for PHP and ASP.
Stars: ✭ 41 (+46.43%)
Mutual labels:  coldfusion
Cfselenium
A native Selenium WebDriver binding for ColdFusion
Stars: ✭ 77 (+175%)
Mutual labels:  coldfusion
Razuna
This is the source code for the famous open source digital asset management - Razuna
Stars: ✭ 144 (+414.29%)
Mutual labels:  coldfusion
Stripe Cfml
stripe-cfml is a CFML (Lucee and ColdFusion) library for interacting with the Stripe API.
Stars: ✭ 51 (+82.14%)
Mutual labels:  coldfusion
Cfwheels
An open source ColdFusion framework inspired by Ruby on Rails.
Stars: ✭ 188 (+571.43%)
Mutual labels:  coldfusion
Colddoc
ColdDoc is a tool that has been built to generate documentation based on ColdFusion Component Meta Data.
Stars: ✭ 44 (+57.14%)
Mutual labels:  coldfusion
Coldbox Platform
A modern, fluent and conventions based HMVC framework for ColdFusion (CFML)
Stars: ✭ 220 (+685.71%)
Mutual labels:  coldfusion
Cflint
Static code analysis for CFML (a linter)
Stars: ✭ 156 (+457.14%)
Mutual labels:  coldfusion
Di1
DI/1 - Inject One - is a very lightweight, convention over configuration, dependency injection (inversion of control) framework for ColdFusion / CFML.
Stars: ✭ 109 (+289.29%)
Mutual labels:  coldfusion
Cfstatic
CfStatic is a framework for managing the inclusion and packaging of CSS and JavaScript in CFML applications.
Stars: ✭ 102 (+264.29%)
Mutual labels:  coldfusion

BoltHTTP

CI

BoltHTTP is a HTTP client for CFML, it is a CFC that wraps the Apache HttpComponents java library. You can use the bolthttp CFC instead of CFHTTP when making HTTP requests within CFML.

How do I use it?

Here's a simple example:

bolt = new bolthttp();
response = bolt.request(url="http://httpbin.org/robots.txt", method="GET");
writeOutput(response.fileContent);

The return value of request value is a struct that contains keys mostly compatibale with what the cfhttp tag would return.

The request method has the following signature:

request(string url, string method="GET", array params=[], boolean close=true, struct options={})

url the url to request, the only required argument.

method the HTTP request method

params similar to the cfhttpparam tag, an array of structs for headers, formfields, etc. For example passing a header you would use [{type="header", name="X-MyHeader", value="My Value"}]

close when true it closes the internal HTTP Client for you once the request is complete, this means that you need to create another instance of bolthttp if you want to make a subsequent request, or set it to false and call getHttpClient().close() when you are done with the instance.

options a struct of request level options. Currently supported options are: maxredirects redirect sockettimeout connecttimeout and connectrequesttimeout

Advanced Usage

The response struct also contains a key httpResponse which is an instance of a org.apache.http.HttpResponse object. You should be able to get any part of the HTTP response you need from this object.

If you want to only work with the HttpResponse object instead of using the request() method of bolthttp you can use the rawRequest() method which only returns the HttpResponse object. Using rawRequest instead of request().httpResponse will offer better performance becauase it does not need to parse the response object to build the struct.

System Requirements

It requires Java 1.7 and ColdFusion 9 or greater or Lucee 4.5+

The requirement of ColdFusion 9+ is mainly due to it being written as a script based CFC, if you convert it to a tag based CFC it would probably run on CF8 or below as well.

Why use it?

  • Consistent implementation of CFHTTP across various CFML engine versions.
  • Ability to use TLS 1.2 on ColdFusion 9
  • Friendly for script based code
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].